source: trunk/mgpp/configure@ 3365

Last change on this file since 3365 was 3365, checked in by kjdon, 22 years ago

Initial revision

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 161.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.50.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Be Bourne compatible
11if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12 emulate sh
13 NULLCMD=:
14elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15 set -o posix
16fi
17
18# Name of the executable.
19as_me=`echo "$0" |sed 's,.*[\\/],,'`
20
21if expr a : '\(a\)' >/dev/null 2>&1; then
22 as_expr=expr
23else
24 as_expr=false
25fi
26
27rm -f conf$$ conf$$.exe conf$$.file
28echo >conf$$.file
29if ln -s conf$$.file conf$$ 2>/dev/null; then
30 # We could just check for DJGPP; but this test a) works b) is more generic
31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32 if test -f conf$$.exe; then
33 # Don't use ln at all; we don't have any links
34 as_ln_s='cp -p'
35 else
36 as_ln_s='ln -s'
37 fi
38elif ln conf$$.file conf$$ 2>/dev/null; then
39 as_ln_s=ln
40else
41 as_ln_s='cp -p'
42fi
43rm -f conf$$ conf$$.exe conf$$.file
44
45as_executable_p="test -f"
46
47# Support unset when possible.
48if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
49 as_unset=unset
50else
51 as_unset=false
52fi
53
54# NLS nuisances.
55$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
56$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
57$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
58$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
59$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
60$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
61$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
62$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
63
64# IFS
65# We need space, tab and new line, in precisely that order.
66as_nl='
67'
68IFS=" $as_nl"
69
70# CDPATH.
71$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
72
73# Name of the host.
74# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
75# so uname gets run too.
76ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
77
78exec 6>&1
79
80#
81# Initializations.
82#
83ac_default_prefix=/usr/local
84cross_compiling=no
85subdirs=
86MFLAGS= MAKEFLAGS=
87SHELL=${CONFIG_SHELL-/bin/sh}
88
89# Maximum number of lines to put in a shell here document.
90# This variable seems obsolete. It should probably be removed, and
91# only ac_max_sed_lines should be used.
92: ${ac_max_here_lines=38}
93
94# Avoid depending upon Character Ranges.
95ac_cr_az='abcdefghijklmnopqrstuvwxyz'
96ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
97ac_cr_09='0123456789'
98ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
99
100# Sed expression to map a string onto a valid sh and CPP variable names.
101ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
103
104ac_unique_file="text/MGQuery.cpp"
105# Factoring default headers for most tests.
106ac_includes_default="\
107#include <stdio.h>
108#include <sys/types.h>
109#include <sys/stat.h>
110#if STDC_HEADERS
111# include <stdlib.h>
112# include <stddef.h>
113#else
114# if HAVE_STDLIB_H
115# include <stdlib.h>
116# endif
117#endif
118#if HAVE_STRING_H
119# if !STDC_HEADERS && HAVE_MEMORY_H
120# include <memory.h>
121# endif
122# include <string.h>
123#else
124# if HAVE_STRINGS_H
125# include <strings.h>
126# endif
127#endif
128#if HAVE_INTTYPES_H
129# include <inttypes.h>
130#endif
131#if HAVE_UNISTD_H
132# include <unistd.h>
133#endif"
134
135# Initialize some variables set by options.
136ac_init_help=
137ac_init_version=false
138# The variables have the same names as the options, with
139# dashes changed to underlines.
140cache_file=/dev/null
141exec_prefix=NONE
142no_create=
143no_recursion=
144prefix=NONE
145program_prefix=NONE
146program_suffix=NONE
147program_transform_name=s,x,x,
148silent=
149site=
150srcdir=
151verbose=
152x_includes=NONE
153x_libraries=NONE
154
155# Installation directory options.
156# These are left unexpanded so users can "make install exec_prefix=/foo"
157# and all the variables that are supposed to be based on exec_prefix
158# by default will actually change.
159# Use braces instead of parens because sh, perl, etc. also accept them.
160bindir='${exec_prefix}/bin'
161sbindir='${exec_prefix}/sbin'
162libexecdir='${exec_prefix}/libexec'
163datadir='${prefix}/share'
164sysconfdir='${prefix}/etc'
165sharedstatedir='${prefix}/com'
166localstatedir='${prefix}/var'
167libdir='${exec_prefix}/lib'
168includedir='${prefix}/include'
169oldincludedir='/usr/include'
170infodir='${prefix}/info'
171mandir='${prefix}/man'
172
173# Identity of this package.
174PACKAGE_NAME=
175PACKAGE_TARNAME=
176PACKAGE_VERSION=
177PACKAGE_STRING=
178PACKAGE_BUGREPORT=
179
180ac_prev=
181for ac_option
182do
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
186 ac_prev=
187 continue
188 fi
189
190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
191
192 # Accept the important Cygnus configure options, so we can diagnose typos.
193
194 case $ac_option in
195
196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 ac_prev=bindir ;;
198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
199 bindir=$ac_optarg ;;
200
201 -build | --build | --buil | --bui | --bu)
202 ac_prev=build_alias ;;
203 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
204 build_alias=$ac_optarg ;;
205
206 -cache-file | --cache-file | --cache-fil | --cache-fi \
207 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
208 ac_prev=cache_file ;;
209 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
210 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
211 cache_file=$ac_optarg ;;
212
213 --config-cache | -C)
214 cache_file=config.cache ;;
215
216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
217 ac_prev=datadir ;;
218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
219 | --da=*)
220 datadir=$ac_optarg ;;
221
222 -disable-* | --disable-*)
223 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224 # Reject names that are not valid shell variable names.
225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227 { (exit 1); exit 1; }; }
228 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
229 eval "enable_$ac_feature=no" ;;
230
231 -enable-* | --enable-*)
232 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233 # Reject names that are not valid shell variable names.
234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236 { (exit 1); exit 1; }; }
237 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238 case $ac_option in
239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
240 *) ac_optarg=yes ;;
241 esac
242 eval "enable_$ac_feature='$ac_optarg'" ;;
243
244 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246 | --exec | --exe | --ex)
247 ac_prev=exec_prefix ;;
248 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250 | --exec=* | --exe=* | --ex=*)
251 exec_prefix=$ac_optarg ;;
252
253 -gas | --gas | --ga | --g)
254 # Obsolete; use --with-gas.
255 with_gas=yes ;;
256
257 -help | --help | --hel | --he | -h)
258 ac_init_help=long ;;
259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
260 ac_init_help=recursive ;;
261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
262 ac_init_help=short ;;
263
264 -host | --host | --hos | --ho)
265 ac_prev=host_alias ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host_alias=$ac_optarg ;;
268
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir=$ac_optarg ;;
275
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir=$ac_optarg ;;
280
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir=$ac_optarg ;;
285
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir=$ac_optarg ;;
292
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir=$ac_optarg ;;
301
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir=$ac_optarg ;;
306
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
310
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
314
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
318
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir=$ac_optarg ;;
327
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix=$ac_optarg ;;
332
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix=$ac_optarg ;;
339
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix=$ac_optarg ;;
346
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name=$ac_optarg ;;
363
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
366 silent=yes ;;
367
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir=$ac_optarg ;;
373
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir=$ac_optarg ;;
384
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site=$ac_optarg ;;
389
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir=$ac_optarg ;;
394
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir=$ac_optarg ;;
401
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target_alias ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target_alias=$ac_optarg ;;
406
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 verbose=yes ;;
409
410 -version | --version | --versio | --versi | --vers | -V)
411 ac_init_version=: ;;
412
413 -with-* | --with-*)
414 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
417 { echo "$as_me: error: invalid package name: $ac_package" >&2
418 { (exit 1); exit 1; }; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 case $ac_option in
421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
422 *) ac_optarg=yes ;;
423 esac
424 eval "with_$ac_package='$ac_optarg'" ;;
425
426 -without-* | --without-*)
427 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
432 ac_package=`echo $ac_package | sed 's/-/_/g'`
433 eval "with_$ac_package=no" ;;
434
435 --x)
436 # Obsolete; use --with-x.
437 with_x=yes ;;
438
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes=$ac_optarg ;;
445
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries=$ac_optarg ;;
452
453 -*) { echo "$as_me: error: unrecognized option: $ac_option
454Try \`$0 --help' for more information." >&2
455 { (exit 1); exit 1; }; }
456 ;;
457
458 *=*)
459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
460 # Reject names that are not valid shell variable names.
461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463 { (exit 1); exit 1; }; }
464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
465 eval "$ac_envvar='$ac_optarg'"
466 export $ac_envvar ;;
467
468 *)
469 # FIXME: should be removed in autoconf 3.0.
470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
474 ;;
475
476 esac
477done
478
479if test -n "$ac_prev"; then
480 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
481 { echo "$as_me: error: missing argument to $ac_option" >&2
482 { (exit 1); exit 1; }; }
483fi
484
485# Be sure to have absolute paths.
486for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487 localstatedir libdir includedir oldincludedir infodir mandir \
488 exec_prefix prefix
489do
490 eval ac_val=$`echo $ac_var`
491 case $ac_val in
492 [\\/$]* | ?:[\\/]* ) ;;
493 NONE ) ;;
494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495 { (exit 1); exit 1; }; };;
496 esac
497done
498
499# There might be people who depend on the old broken behavior: `$host'
500# used to hold the argument of --host etc.
501build=$build_alias
502host=$host_alias
503target=$target_alias
504
505# FIXME: should be removed in autoconf 3.0.
506if test "x$host_alias" != x; then
507 if test "x$build_alias" = x; then
508 cross_compiling=maybe
509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
510 If a cross compiler is detected then cross compile mode will be used." >&2
511 elif test "x$build_alias" != "x$host_alias"; then
512 cross_compiling=yes
513 fi
514fi
515
516ac_tool_prefix=
517test -n "$host_alias" && ac_tool_prefix=$host_alias-
518
519test "$silent" = yes && exec 6>/dev/null
520
521# Find the source files, if location was not specified.
522if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
525 ac_prog=$0
526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
531 fi
532else
533 ac_srcdir_defaulted=no
534fi
535if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
538 { (exit 1); exit 1; }; }
539 else
540 { echo "$as_me: error: cannot find sources in $srcdir" >&2
541 { (exit 1); exit 1; }; }
542 fi
543fi
544srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545ac_env_build_alias_set=${build_alias+set}
546ac_env_build_alias_value=$build_alias
547ac_cv_env_build_alias_set=${build_alias+set}
548ac_cv_env_build_alias_value=$build_alias
549ac_env_host_alias_set=${host_alias+set}
550ac_env_host_alias_value=$host_alias
551ac_cv_env_host_alias_set=${host_alias+set}
552ac_cv_env_host_alias_value=$host_alias
553ac_env_target_alias_set=${target_alias+set}
554ac_env_target_alias_value=$target_alias
555ac_cv_env_target_alias_set=${target_alias+set}
556ac_cv_env_target_alias_value=$target_alias
557ac_env_CXX_set=${CXX+set}
558ac_env_CXX_value=$CXX
559ac_cv_env_CXX_set=${CXX+set}
560ac_cv_env_CXX_value=$CXX
561ac_env_CXXFLAGS_set=${CXXFLAGS+set}
562ac_env_CXXFLAGS_value=$CXXFLAGS
563ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
564ac_cv_env_CXXFLAGS_value=$CXXFLAGS
565ac_env_LDFLAGS_set=${LDFLAGS+set}
566ac_env_LDFLAGS_value=$LDFLAGS
567ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
568ac_cv_env_LDFLAGS_value=$LDFLAGS
569ac_env_CPPFLAGS_set=${CPPFLAGS+set}
570ac_env_CPPFLAGS_value=$CPPFLAGS
571ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
572ac_cv_env_CPPFLAGS_value=$CPPFLAGS
573ac_env_CC_set=${CC+set}
574ac_env_CC_value=$CC
575ac_cv_env_CC_set=${CC+set}
576ac_cv_env_CC_value=$CC
577ac_env_CFLAGS_set=${CFLAGS+set}
578ac_env_CFLAGS_value=$CFLAGS
579ac_cv_env_CFLAGS_set=${CFLAGS+set}
580ac_cv_env_CFLAGS_value=$CFLAGS
581ac_env_CPP_set=${CPP+set}
582ac_env_CPP_value=$CPP
583ac_cv_env_CPP_set=${CPP+set}
584ac_cv_env_CPP_value=$CPP
585
586#
587# Report the --help message.
588#
589if test "$ac_init_help" = "long"; then
590 # Omit some internal or obsolete options to make the list less imposing.
591 # This message is too long to be a string in the A/UX 3.1 sh.
592 cat <<EOF
593\`configure' configures this package to adapt to many kinds of systems.
594
595Usage: $0 [OPTION]... [VAR=VALUE]...
596
597To assign environment variables (e.g., CC, CFLAGS...), specify them as
598VAR=VALUE. See below for descriptions of some of the useful variables.
599
600Defaults for the options are specified in brackets.
601
602Configuration:
603 -h, --help display this help and exit
604 --help=short display options specific to this package
605 --help=recursive display the short help of all the included packages
606 -V, --version display version information and exit
607 -q, --quiet, --silent do not print \`checking...' messages
608 --cache-file=FILE cache test results in FILE [disabled]
609 -C, --config-cache alias for \`--cache-file=config.cache'
610 -n, --no-create do not create output files
611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
612
613EOF
614
615 cat <<EOF
616Installation directories:
617 --prefix=PREFIX install architecture-independent files in PREFIX
618 [$ac_default_prefix]
619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
620 [PREFIX]
621
622By default, \`make install' will install all the files in
623\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
624an installation prefix other than \`$ac_default_prefix' using \`--prefix',
625for instance \`--prefix=\$HOME'.
626
627For better control, use the options below.
628
629Fine tuning of the installation directories:
630 --bindir=DIR user executables [EPREFIX/bin]
631 --sbindir=DIR system admin executables [EPREFIX/sbin]
632 --libexecdir=DIR program executables [EPREFIX/libexec]
633 --datadir=DIR read-only architecture-independent data [PREFIX/share]
634 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
635 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
636 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
637 --libdir=DIR object code libraries [EPREFIX/lib]
638 --includedir=DIR C header files [PREFIX/include]
639 --oldincludedir=DIR C header files for non-gcc [/usr/include]
640 --infodir=DIR info documentation [PREFIX/info]
641 --mandir=DIR man documentation [PREFIX/man]
642EOF
643
644 cat <<\EOF
645
646Program names:
647 --program-prefix=PREFIX prepend PREFIX to installed program names
648 --program-suffix=SUFFIX append SUFFIX to installed program names
649 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
650EOF
651fi
652
653if test -n "$ac_init_help"; then
654
655 cat <<\EOF
656
657Optional Features:
658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
660 --enable-override-longlong
661 overide use of long long with GCC
662
663Optional Packages:
664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
666 --with-dmalloc use dmalloc, as in
667 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
668 --with-regex use older regex in lieu of GNU rx for matching
669 --with-gnu-readline compile with GNU readline support
670
671Some influential environment variables:
672 CXX C++ compiler command
673 CXXFLAGS C++ compiler flags
674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
675 nonstandard directory <lib dir>
676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
677 headers in a nonstandard directory <include dir>
678 CC C compiler command
679 CFLAGS C compiler flags
680 CPP C preprocessor
681
682Use these variables to override the choices made by `configure' or to help
683it to find libraries and programs with nonstandard names/locations.
684
685EOF
686fi
687
688if test "$ac_init_help" = "recursive"; then
689 # If there are subdirs, report their specific --help.
690 ac_popdir=`pwd`
691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
692 cd $ac_subdir
693 # A "../" for each directory in /$ac_subdir.
694 ac_dots=`echo $ac_subdir |
695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
696
697 case $srcdir in
698 .) # No --srcdir option. We are building in place.
699 ac_sub_srcdir=$srcdir ;;
700 [\\/]* | ?:[\\/]* ) # Absolute path.
701 ac_sub_srcdir=$srcdir/$ac_subdir ;;
702 *) # Relative path.
703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
704 esac
705
706 # Check for guested configure; otherwise get Cygnus style configure.
707 if test -f $ac_sub_srcdir/configure.gnu; then
708 echo
709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
710 elif test -f $ac_sub_srcdir/configure; then
711 echo
712 $SHELL $ac_sub_srcdir/configure --help=recursive
713 elif test -f $ac_sub_srcdir/configure.ac ||
714 test -f $ac_sub_srcdir/configure.in; then
715 echo
716 $ac_configure --help
717 else
718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
719 fi
720 cd $ac_popdir
721 done
722fi
723
724test -n "$ac_init_help" && exit 0
725if $ac_init_version; then
726 cat <<\EOF
727
728Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
729Free Software Foundation, Inc.
730This configure script is free software; the Free Software Foundation
731gives unlimited permission to copy, distribute and modify it.
732EOF
733 exit 0
734fi
735exec 5>config.log
736cat >&5 <<EOF
737This file contains any messages produced by compilers while
738running configure, to aid debugging if configure makes a mistake.
739
740It was created by $as_me, which was
741generated by GNU Autoconf 2.50. Invocation command line was
742
743 $ $0 $@
744
745EOF
746{
747cat <<_ASUNAME
748## ---------- ##
749## Platform. ##
750## ---------- ##
751
752hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
753uname -m = `(uname -m) 2>/dev/null || echo unknown`
754uname -r = `(uname -r) 2>/dev/null || echo unknown`
755uname -s = `(uname -s) 2>/dev/null || echo unknown`
756uname -v = `(uname -v) 2>/dev/null || echo unknown`
757
758/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
759/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
760
761/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
762/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
763/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
764hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
765/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
766/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
767/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
768
769PATH = $PATH
770
771_ASUNAME
772} >&5
773
774cat >&5 <<EOF
775## ------------ ##
776## Core tests. ##
777## ------------ ##
778
779EOF
780
781# Keep a trace of the command line.
782# Strip out --no-create and --no-recursion so they do not pile up.
783# Also quote any args containing shell meta-characters.
784ac_configure_args=
785ac_sep=
786for ac_arg
787do
788 case $ac_arg in
789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
790 | --no-cr | --no-c) ;;
791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
796 ac_sep=" " ;;
797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
798 ac_sep=" " ;;
799 esac
800 # Get rid of the leading space.
801done
802
803# When interrupted or exit'd, cleanup temporary files, and complete
804# config.log. We remove comments because anyway the quotes in there
805# would cause problems or look ugly.
806trap 'exit_status=$?
807 # Save into config.log some information that might help in debugging.
808 echo >&5
809 echo "## ----------------- ##" >&5
810 echo "## Cache variables. ##" >&5
811 echo "## ----------------- ##" >&5
812 echo >&5
813 # The following way of writing the cache mishandles newlines in values,
814{
815 (set) 2>&1 |
816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
817 *ac_space=\ *)
818 sed -n \
819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
820 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
821 ;;
822 *)
823 sed -n \
824 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
825 ;;
826 esac;
827} >&5
828 sed "/^$/d" confdefs.h >conftest.log
829 if test -s conftest.log; then
830 echo >&5
831 echo "## ------------ ##" >&5
832 echo "## confdefs.h. ##" >&5
833 echo "## ------------ ##" >&5
834 echo >&5
835 cat conftest.log >&5
836 fi
837 (echo; echo) >&5
838 test "$ac_signal" != 0 &&
839 echo "$as_me: caught signal $ac_signal" >&5
840 echo "$as_me: exit $exit_status" >&5
841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
842 exit $exit_status
843 ' 0
844for ac_signal in 1 2 13 15; do
845 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
846done
847ac_signal=0
848
849# confdefs.h avoids OS command line length limits that DEFS can exceed.
850rm -rf conftest* confdefs.h
851# AIX cpp loses on an empty file, so make sure it contains at least a newline.
852echo >confdefs.h
853
854# Let the site file select an alternate cache file if it wants to.
855# Prefer explicitly selected file to automatically selected ones.
856if test -z "$CONFIG_SITE"; then
857 if test "x$prefix" != xNONE; then
858 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
859 else
860 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
861 fi
862fi
863for ac_site_file in $CONFIG_SITE; do
864 if test -r "$ac_site_file"; then
865 { echo "$as_me:865: loading site script $ac_site_file" >&5
866echo "$as_me: loading site script $ac_site_file" >&6;}
867 cat "$ac_site_file" >&5
868 . "$ac_site_file"
869 fi
870done
871
872if test -r "$cache_file"; then
873 # Some versions of bash will fail to source /dev/null (special
874 # files actually), so we avoid doing that.
875 if test -f "$cache_file"; then
876 { echo "$as_me:876: loading cache $cache_file" >&5
877echo "$as_me: loading cache $cache_file" >&6;}
878 case $cache_file in
879 [\\/]* | ?:[\\/]* ) . $cache_file;;
880 *) . ./$cache_file;;
881 esac
882 fi
883else
884 { echo "$as_me:884: creating cache $cache_file" >&5
885echo "$as_me: creating cache $cache_file" >&6;}
886 >$cache_file
887fi
888
889# Check that the precious variables saved in the cache have kept the same
890# value.
891ac_suggest_removing_cache=false
892for ac_var in `(set) 2>&1 |
893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
895 eval ac_new_set=\$ac_env_${ac_var}_set
896 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
897 eval ac_new_val="\$ac_env_${ac_var}_value"
898 case $ac_old_set,$ac_new_set in
899 set,)
900 { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
901echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
902 ac_suggest_removing_cache=: ;;
903 ,set)
904 { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5
905echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
906 ac_suggest_removing_cache=: ;;
907 ,);;
908 *)
909 if test "x$ac_old_val" != "x$ac_new_val"; then
910 { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5
911echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
912 { echo "$as_me:912: WARNING: former value: $ac_old_val" >&5
913echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
914 { echo "$as_me:914: WARNING: current value: $ac_new_val" >&5
915echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
916 ac_suggest_removing_cache=:
917 fi;;
918 esac
919done
920if $ac_suggest_removing_cache; then
921 { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5
922echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
923 { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5
924echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
925fi
926
927ac_ext=c
928ac_cpp='$CPP $CPPFLAGS'
929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
931ac_compiler_gnu=$ac_cv_c_compiler_gnu
932
933case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
934 *c*,-n*) ECHO_N= ECHO_C='
935' ECHO_T=' ' ;;
936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
938esac
939echo "#! $SHELL" >conftest.sh
940echo "exit 0" >>conftest.sh
941chmod +x conftest.sh
942if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5
943 (PATH=".;."; conftest.sh) 2>&5
944 ac_status=$?
945 echo "$as_me:945: \$? = $ac_status" >&5
946 (exit $ac_status); }; then
947 ac_path_separator=';'
948else
949 ac_path_separator=:
950fi
951PATH_SEPARATOR="$ac_path_separator"
952rm -f conftest.sh
953
954ac_config_headers="$ac_config_headers config.h"
955
956if test "$program_transform_name" = s,x,x,; then
957 program_transform_name=
958else
959 # Double any \ or $. echo might interpret backslashes.
960 cat <<\EOF >conftest.sed
961s,\\,\\\\,g; s,\$,$$,g
962EOF
963 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
964 rm -f conftest.sed
965fi
966test "$program_prefix" != NONE &&
967 program_transform_name="s,^,${program_prefix},;$program_transform_name"
968# Use a double $ so make ignores it.
969test "$program_suffix" != NONE &&
970 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
971
972# sed with no file args requires a program.
973test -z "$program_transform_name" && program_transform_name="s,x,x,"
974
975PACKAGE=mgpp
976VERSION=1.3
977
978cat >>confdefs.h <<EOF
979#define PACKAGE "$PACKAGE"
980EOF
981
982cat >>confdefs.h <<EOF
983#define VERSION "$VERSION"
984EOF
985
986ac_ext=cc
987ac_cpp='$CXXCPP $CPPFLAGS'
988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
991if test -n "$ac_tool_prefix"; then
992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
993 do
994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
996echo "$as_me:996: checking for $ac_word" >&5
997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
998if test "${ac_cv_prog_CXX+set}" = set; then
999 echo $ECHO_N "(cached) $ECHO_C" >&6
1000else
1001 if test -n "$CXX"; then
1002 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1003else
1004 ac_save_IFS=$IFS; IFS=$ac_path_separator
1005ac_dummy="$PATH"
1006for ac_dir in $ac_dummy; do
1007 IFS=$ac_save_IFS
1008 test -z "$ac_dir" && ac_dir=.
1009 $as_executable_p "$ac_dir/$ac_word" || continue
1010ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1011echo "$as_me:1011: found $ac_dir/$ac_word" >&5
1012break
1013done
1014
1015fi
1016fi
1017CXX=$ac_cv_prog_CXX
1018if test -n "$CXX"; then
1019 echo "$as_me:1019: result: $CXX" >&5
1020echo "${ECHO_T}$CXX" >&6
1021else
1022 echo "$as_me:1022: result: no" >&5
1023echo "${ECHO_T}no" >&6
1024fi
1025
1026 test -n "$CXX" && break
1027 done
1028fi
1029if test -z "$CXX"; then
1030 ac_ct_CXX=$CXX
1031 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
1032do
1033 # Extract the first word of "$ac_prog", so it can be a program name with args.
1034set dummy $ac_prog; ac_word=$2
1035echo "$as_me:1035: checking for $ac_word" >&5
1036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1037if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1039else
1040 if test -n "$ac_ct_CXX"; then
1041 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1042else
1043 ac_save_IFS=$IFS; IFS=$ac_path_separator
1044ac_dummy="$PATH"
1045for ac_dir in $ac_dummy; do
1046 IFS=$ac_save_IFS
1047 test -z "$ac_dir" && ac_dir=.
1048 $as_executable_p "$ac_dir/$ac_word" || continue
1049ac_cv_prog_ac_ct_CXX="$ac_prog"
1050echo "$as_me:1050: found $ac_dir/$ac_word" >&5
1051break
1052done
1053
1054fi
1055fi
1056ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1057if test -n "$ac_ct_CXX"; then
1058 echo "$as_me:1058: result: $ac_ct_CXX" >&5
1059echo "${ECHO_T}$ac_ct_CXX" >&6
1060else
1061 echo "$as_me:1061: result: no" >&5
1062echo "${ECHO_T}no" >&6
1063fi
1064
1065 test -n "$ac_ct_CXX" && break
1066done
1067test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1068
1069 CXX=$ac_ct_CXX
1070fi
1071
1072cat >conftest.$ac_ext <<_ACEOF
1073#line 1073 "configure"
1074#include "confdefs.h"
1075
1076int
1077main ()
1078{
1079
1080 ;
1081 return 0;
1082}
1083_ACEOF
1084ac_clean_files_save=$ac_clean_files
1085ac_clean_files="$ac_clean_files a.out a.exe"
1086# Try to create an executable without -o first, disregard a.out.
1087# It will help us diagnose broken compiler, and finding out an intuition
1088# of exeext.
1089echo "$as_me:1089: checking for C++ compiler default output" >&5
1090echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1091ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1092if { (eval echo "$as_me:1092: \"$ac_link_default\"") >&5
1093 (eval $ac_link_default) 2>&5
1094 ac_status=$?
1095 echo "$as_me:1095: \$? = $ac_status" >&5
1096 (exit $ac_status); }; then
1097 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1098 case $ac_file in
1099 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1100 a.out ) # We found the default executable, but exeext='' is most
1101 # certainly right.
1102 break;;
1103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1104 export ac_cv_exeext
1105 break;;
1106 * ) break;;
1107 esac
1108done
1109else
1110 echo "$as_me: failed program was:" >&5
1111cat conftest.$ac_ext >&5
1112{ { echo "$as_me:1112: error: C++ compiler cannot create executables" >&5
1113echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1114 { (exit 77); exit 77; }; }
1115fi
1116
1117ac_exeext=$ac_cv_exeext
1118echo "$as_me:1118: result: $ac_file" >&5
1119echo "${ECHO_T}$ac_file" >&6
1120
1121# Check the compiler produces executables we can run. If not, either
1122# the compiler is broken, or we cross compile.
1123echo "$as_me:1123: checking whether the C++ compiler works" >&5
1124echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1125# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1126# If not cross compiling, check that we can run a simple program.
1127if test "$cross_compiling" != yes; then
1128 if { ac_try='./$ac_file'
1129 { (eval echo "$as_me:1129: \"$ac_try\"") >&5
1130 (eval $ac_try) 2>&5
1131 ac_status=$?
1132 echo "$as_me:1132: \$? = $ac_status" >&5
1133 (exit $ac_status); }; }; then
1134 cross_compiling=no
1135 else
1136 if test "$cross_compiling" = maybe; then
1137 cross_compiling=yes
1138 else
1139 { { echo "$as_me:1139: error: cannot run C++ compiled programs.
1140If you meant to cross compile, use \`--host'." >&5
1141echo "$as_me: error: cannot run C++ compiled programs.
1142If you meant to cross compile, use \`--host'." >&2;}
1143 { (exit 1); exit 1; }; }
1144 fi
1145 fi
1146fi
1147echo "$as_me:1147: result: yes" >&5
1148echo "${ECHO_T}yes" >&6
1149
1150rm -f a.out a.exe conftest$ac_cv_exeext
1151ac_clean_files=$ac_clean_files_save
1152# Check the compiler produces executables we can run. If not, either
1153# the compiler is broken, or we cross compile.
1154echo "$as_me:1154: checking whether we are cross compiling" >&5
1155echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1156echo "$as_me:1156: result: $cross_compiling" >&5
1157echo "${ECHO_T}$cross_compiling" >&6
1158
1159echo "$as_me:1159: checking for executable suffix" >&5
1160echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1161if { (eval echo "$as_me:1161: \"$ac_link\"") >&5
1162 (eval $ac_link) 2>&5
1163 ac_status=$?
1164 echo "$as_me:1164: \$? = $ac_status" >&5
1165 (exit $ac_status); }; then
1166 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1167# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1168# work properly (i.e., refer to `conftest.exe'), while it won't with
1169# `rm'.
1170for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1171 case $ac_file in
1172 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1174 export ac_cv_exeext
1175 break;;
1176 * ) break;;
1177 esac
1178done
1179else
1180 { { echo "$as_me:1180: error: cannot compute EXEEXT: cannot compile and link" >&5
1181echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1182 { (exit 1); exit 1; }; }
1183fi
1184
1185rm -f conftest$ac_cv_exeext
1186echo "$as_me:1186: result: $ac_cv_exeext" >&5
1187echo "${ECHO_T}$ac_cv_exeext" >&6
1188
1189rm -f conftest.$ac_ext
1190EXEEXT=$ac_cv_exeext
1191ac_exeext=$EXEEXT
1192echo "$as_me:1192: checking for object suffix" >&5
1193echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1194if test "${ac_cv_objext+set}" = set; then
1195 echo $ECHO_N "(cached) $ECHO_C" >&6
1196else
1197 cat >conftest.$ac_ext <<_ACEOF
1198#line 1198 "configure"
1199#include "confdefs.h"
1200
1201int
1202main ()
1203{
1204
1205 ;
1206 return 0;
1207}
1208_ACEOF
1209rm -f conftest.o conftest.obj
1210if { (eval echo "$as_me:1210: \"$ac_compile\"") >&5
1211 (eval $ac_compile) 2>&5
1212 ac_status=$?
1213 echo "$as_me:1213: \$? = $ac_status" >&5
1214 (exit $ac_status); }; then
1215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1216 case $ac_file in
1217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1219 break;;
1220 esac
1221done
1222else
1223 echo "$as_me: failed program was:" >&5
1224cat conftest.$ac_ext >&5
1225{ { echo "$as_me:1225: error: cannot compute OBJEXT: cannot compile" >&5
1226echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1227 { (exit 1); exit 1; }; }
1228fi
1229
1230rm -f conftest.$ac_cv_objext conftest.$ac_ext
1231fi
1232echo "$as_me:1232: result: $ac_cv_objext" >&5
1233echo "${ECHO_T}$ac_cv_objext" >&6
1234OBJEXT=$ac_cv_objext
1235ac_objext=$OBJEXT
1236echo "$as_me:1236: checking whether we are using the GNU C++ compiler" >&5
1237echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1238if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1240else
1241 cat >conftest.$ac_ext <<_ACEOF
1242#line 1242 "configure"
1243#include "confdefs.h"
1244
1245int
1246main ()
1247{
1248#ifndef __GNUC__
1249 choke me
1250#endif
1251
1252 ;
1253 return 0;
1254}
1255_ACEOF
1256rm -f conftest.$ac_objext
1257if { (eval echo "$as_me:1257: \"$ac_compile\"") >&5
1258 (eval $ac_compile) 2>&5
1259 ac_status=$?
1260 echo "$as_me:1260: \$? = $ac_status" >&5
1261 (exit $ac_status); } &&
1262 { ac_try='test -s conftest.$ac_objext'
1263 { (eval echo "$as_me:1263: \"$ac_try\"") >&5
1264 (eval $ac_try) 2>&5
1265 ac_status=$?
1266 echo "$as_me:1266: \$? = $ac_status" >&5
1267 (exit $ac_status); }; }; then
1268 ac_compiler_gnu=yes
1269else
1270 echo "$as_me: failed program was:" >&5
1271cat conftest.$ac_ext >&5
1272ac_compiler_gnu=no
1273fi
1274rm -f conftest.$ac_objext conftest.$ac_ext
1275ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1276
1277fi
1278echo "$as_me:1278: result: $ac_cv_cxx_compiler_gnu" >&5
1279echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1280GXX=`test $ac_compiler_gnu = yes && echo yes`
1281ac_test_CXXFLAGS=${CXXFLAGS+set}
1282ac_save_CXXFLAGS=$CXXFLAGS
1283CXXFLAGS="-g"
1284echo "$as_me:1284: checking whether $CXX accepts -g" >&5
1285echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1286if test "${ac_cv_prog_cxx_g+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1288else
1289 cat >conftest.$ac_ext <<_ACEOF
1290#line 1290 "configure"
1291#include "confdefs.h"
1292
1293int
1294main ()
1295{
1296
1297 ;
1298 return 0;
1299}
1300_ACEOF
1301rm -f conftest.$ac_objext
1302if { (eval echo "$as_me:1302: \"$ac_compile\"") >&5
1303 (eval $ac_compile) 2>&5
1304 ac_status=$?
1305 echo "$as_me:1305: \$? = $ac_status" >&5
1306 (exit $ac_status); } &&
1307 { ac_try='test -s conftest.$ac_objext'
1308 { (eval echo "$as_me:1308: \"$ac_try\"") >&5
1309 (eval $ac_try) 2>&5
1310 ac_status=$?
1311 echo "$as_me:1311: \$? = $ac_status" >&5
1312 (exit $ac_status); }; }; then
1313 ac_cv_prog_cxx_g=yes
1314else
1315 echo "$as_me: failed program was:" >&5
1316cat conftest.$ac_ext >&5
1317ac_cv_prog_cxx_g=no
1318fi
1319rm -f conftest.$ac_objext conftest.$ac_ext
1320fi
1321echo "$as_me:1321: result: $ac_cv_prog_cxx_g" >&5
1322echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1323if test "$ac_test_CXXFLAGS" = set; then
1324 CXXFLAGS=$ac_save_CXXFLAGS
1325elif test $ac_cv_prog_cxx_g = yes; then
1326 if test "$GXX" = yes; then
1327 CXXFLAGS="-g -O2"
1328 else
1329 CXXFLAGS="-g"
1330 fi
1331else
1332 if test "$GXX" = yes; then
1333 CXXFLAGS="-O2"
1334 else
1335 CXXFLAGS=
1336 fi
1337fi
1338for ac_declaration in \
1339 ''\
1340 '#include <stdlib.h>' \
1341 'extern "C" void std::exit (int) throw (); using std::exit;' \
1342 'extern "C" void std::exit (int); using std::exit;' \
1343 'extern "C" void exit (int) throw ();' \
1344 'extern "C" void exit (int);' \
1345 'void exit (int);'
1346do
1347 cat >conftest.$ac_ext <<_ACEOF
1348#line 1348 "configure"
1349#include "confdefs.h"
1350#include <stdlib.h>
1351$ac_declaration
1352int
1353main ()
1354{
1355exit (42);
1356 ;
1357 return 0;
1358}
1359_ACEOF
1360rm -f conftest.$ac_objext
1361if { (eval echo "$as_me:1361: \"$ac_compile\"") >&5
1362 (eval $ac_compile) 2>&5
1363 ac_status=$?
1364 echo "$as_me:1364: \$? = $ac_status" >&5
1365 (exit $ac_status); } &&
1366 { ac_try='test -s conftest.$ac_objext'
1367 { (eval echo "$as_me:1367: \"$ac_try\"") >&5
1368 (eval $ac_try) 2>&5
1369 ac_status=$?
1370 echo "$as_me:1370: \$? = $ac_status" >&5
1371 (exit $ac_status); }; }; then
1372 :
1373else
1374 echo "$as_me: failed program was:" >&5
1375cat conftest.$ac_ext >&5
1376continue
1377fi
1378rm -f conftest.$ac_objext conftest.$ac_ext
1379 cat >conftest.$ac_ext <<_ACEOF
1380#line 1380 "configure"
1381#include "confdefs.h"
1382$ac_declaration
1383int
1384main ()
1385{
1386exit (42);
1387 ;
1388 return 0;
1389}
1390_ACEOF
1391rm -f conftest.$ac_objext
1392if { (eval echo "$as_me:1392: \"$ac_compile\"") >&5
1393 (eval $ac_compile) 2>&5
1394 ac_status=$?
1395 echo "$as_me:1395: \$? = $ac_status" >&5
1396 (exit $ac_status); } &&
1397 { ac_try='test -s conftest.$ac_objext'
1398 { (eval echo "$as_me:1398: \"$ac_try\"") >&5
1399 (eval $ac_try) 2>&5
1400 ac_status=$?
1401 echo "$as_me:1401: \$? = $ac_status" >&5
1402 (exit $ac_status); }; }; then
1403 break
1404else
1405 echo "$as_me: failed program was:" >&5
1406cat conftest.$ac_ext >&5
1407fi
1408rm -f conftest.$ac_objext conftest.$ac_ext
1409done
1410echo '#ifdef __cplusplus' >>confdefs.h
1411echo $ac_declaration >>confdefs.h
1412echo '#endif' >>confdefs.h
1413
1414ac_ext=c
1415ac_cpp='$CPP $CPPFLAGS'
1416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418ac_compiler_gnu=$ac_cv_c_compiler_gnu
1419
1420for ac_prog in mawk gawk nawk awk
1421do
1422 # Extract the first word of "$ac_prog", so it can be a program name with args.
1423set dummy $ac_prog; ac_word=$2
1424echo "$as_me:1424: checking for $ac_word" >&5
1425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426if test "${ac_cv_prog_AWK+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1428else
1429 if test -n "$AWK"; then
1430 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1431else
1432 ac_save_IFS=$IFS; IFS=$ac_path_separator
1433ac_dummy="$PATH"
1434for ac_dir in $ac_dummy; do
1435 IFS=$ac_save_IFS
1436 test -z "$ac_dir" && ac_dir=.
1437 $as_executable_p "$ac_dir/$ac_word" || continue
1438ac_cv_prog_AWK="$ac_prog"
1439echo "$as_me:1439: found $ac_dir/$ac_word" >&5
1440break
1441done
1442
1443fi
1444fi
1445AWK=$ac_cv_prog_AWK
1446if test -n "$AWK"; then
1447 echo "$as_me:1447: result: $AWK" >&5
1448echo "${ECHO_T}$AWK" >&6
1449else
1450 echo "$as_me:1450: result: no" >&5
1451echo "${ECHO_T}no" >&6
1452fi
1453
1454 test -n "$AWK" && break
1455done
1456
1457for ac_prog in 'bison -y' byacc
1458do
1459 # Extract the first word of "$ac_prog", so it can be a program name with args.
1460set dummy $ac_prog; ac_word=$2
1461echo "$as_me:1461: checking for $ac_word" >&5
1462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463if test "${ac_cv_prog_YACC+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465else
1466 if test -n "$YACC"; then
1467 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1468else
1469 ac_save_IFS=$IFS; IFS=$ac_path_separator
1470ac_dummy="$PATH"
1471for ac_dir in $ac_dummy; do
1472 IFS=$ac_save_IFS
1473 test -z "$ac_dir" && ac_dir=.
1474 $as_executable_p "$ac_dir/$ac_word" || continue
1475ac_cv_prog_YACC="$ac_prog"
1476echo "$as_me:1476: found $ac_dir/$ac_word" >&5
1477break
1478done
1479
1480fi
1481fi
1482YACC=$ac_cv_prog_YACC
1483if test -n "$YACC"; then
1484 echo "$as_me:1484: result: $YACC" >&5
1485echo "${ECHO_T}$YACC" >&6
1486else
1487 echo "$as_me:1487: result: no" >&5
1488echo "${ECHO_T}no" >&6
1489fi
1490
1491 test -n "$YACC" && break
1492done
1493test -n "$YACC" || YACC="yacc"
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500if test -n "$ac_tool_prefix"; then
1501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1502set dummy ${ac_tool_prefix}gcc; ac_word=$2
1503echo "$as_me:1503: checking for $ac_word" >&5
1504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505if test "${ac_cv_prog_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 if test -n "$CC"; then
1509 ac_cv_prog_CC="$CC" # Let the user override the test.
1510else
1511 ac_save_IFS=$IFS; IFS=$ac_path_separator
1512ac_dummy="$PATH"
1513for ac_dir in $ac_dummy; do
1514 IFS=$ac_save_IFS
1515 test -z "$ac_dir" && ac_dir=.
1516 $as_executable_p "$ac_dir/$ac_word" || continue
1517ac_cv_prog_CC="${ac_tool_prefix}gcc"
1518echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1519break
1520done
1521
1522fi
1523fi
1524CC=$ac_cv_prog_CC
1525if test -n "$CC"; then
1526 echo "$as_me:1526: result: $CC" >&5
1527echo "${ECHO_T}$CC" >&6
1528else
1529 echo "$as_me:1529: result: no" >&5
1530echo "${ECHO_T}no" >&6
1531fi
1532
1533fi
1534if test -z "$ac_cv_prog_CC"; then
1535 ac_ct_CC=$CC
1536 # Extract the first word of "gcc", so it can be a program name with args.
1537set dummy gcc; ac_word=$2
1538echo "$as_me:1538: checking for $ac_word" >&5
1539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542else
1543 if test -n "$ac_ct_CC"; then
1544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1545else
1546 ac_save_IFS=$IFS; IFS=$ac_path_separator
1547ac_dummy="$PATH"
1548for ac_dir in $ac_dummy; do
1549 IFS=$ac_save_IFS
1550 test -z "$ac_dir" && ac_dir=.
1551 $as_executable_p "$ac_dir/$ac_word" || continue
1552ac_cv_prog_ac_ct_CC="gcc"
1553echo "$as_me:1553: found $ac_dir/$ac_word" >&5
1554break
1555done
1556
1557fi
1558fi
1559ac_ct_CC=$ac_cv_prog_ac_ct_CC
1560if test -n "$ac_ct_CC"; then
1561 echo "$as_me:1561: result: $ac_ct_CC" >&5
1562echo "${ECHO_T}$ac_ct_CC" >&6
1563else
1564 echo "$as_me:1564: result: no" >&5
1565echo "${ECHO_T}no" >&6
1566fi
1567
1568 CC=$ac_ct_CC
1569else
1570 CC="$ac_cv_prog_CC"
1571fi
1572
1573if test -z "$CC"; then
1574 if test -n "$ac_tool_prefix"; then
1575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1576set dummy ${ac_tool_prefix}cc; ac_word=$2
1577echo "$as_me:1577: checking for $ac_word" >&5
1578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579if test "${ac_cv_prog_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582 if test -n "$CC"; then
1583 ac_cv_prog_CC="$CC" # Let the user override the test.
1584else
1585 ac_save_IFS=$IFS; IFS=$ac_path_separator
1586ac_dummy="$PATH"
1587for ac_dir in $ac_dummy; do
1588 IFS=$ac_save_IFS
1589 test -z "$ac_dir" && ac_dir=.
1590 $as_executable_p "$ac_dir/$ac_word" || continue
1591ac_cv_prog_CC="${ac_tool_prefix}cc"
1592echo "$as_me:1592: found $ac_dir/$ac_word" >&5
1593break
1594done
1595
1596fi
1597fi
1598CC=$ac_cv_prog_CC
1599if test -n "$CC"; then
1600 echo "$as_me:1600: result: $CC" >&5
1601echo "${ECHO_T}$CC" >&6
1602else
1603 echo "$as_me:1603: result: no" >&5
1604echo "${ECHO_T}no" >&6
1605fi
1606
1607fi
1608if test -z "$ac_cv_prog_CC"; then
1609 ac_ct_CC=$CC
1610 # Extract the first word of "cc", so it can be a program name with args.
1611set dummy cc; ac_word=$2
1612echo "$as_me:1612: checking for $ac_word" >&5
1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 if test -n "$ac_ct_CC"; then
1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1619else
1620 ac_save_IFS=$IFS; IFS=$ac_path_separator
1621ac_dummy="$PATH"
1622for ac_dir in $ac_dummy; do
1623 IFS=$ac_save_IFS
1624 test -z "$ac_dir" && ac_dir=.
1625 $as_executable_p "$ac_dir/$ac_word" || continue
1626ac_cv_prog_ac_ct_CC="cc"
1627echo "$as_me:1627: found $ac_dir/$ac_word" >&5
1628break
1629done
1630
1631fi
1632fi
1633ac_ct_CC=$ac_cv_prog_ac_ct_CC
1634if test -n "$ac_ct_CC"; then
1635 echo "$as_me:1635: result: $ac_ct_CC" >&5
1636echo "${ECHO_T}$ac_ct_CC" >&6
1637else
1638 echo "$as_me:1638: result: no" >&5
1639echo "${ECHO_T}no" >&6
1640fi
1641
1642 CC=$ac_ct_CC
1643else
1644 CC="$ac_cv_prog_CC"
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649 # Extract the first word of "cc", so it can be a program name with args.
1650set dummy cc; ac_word=$2
1651echo "$as_me:1651: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1658else
1659 ac_prog_rejected=no
1660 ac_save_IFS=$IFS; IFS=$ac_path_separator
1661ac_dummy="$PATH"
1662for ac_dir in $ac_dummy; do
1663 IFS=$ac_save_IFS
1664 test -z "$ac_dir" && ac_dir=.
1665 $as_executable_p "$ac_dir/$ac_word" || continue
1666if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1667 ac_prog_rejected=yes
1668 continue
1669fi
1670ac_cv_prog_CC="cc"
1671echo "$as_me:1671: found $ac_dir/$ac_word" >&5
1672break
1673done
1674
1675if test $ac_prog_rejected = yes; then
1676 # We found a bogon in the path, so make sure we never use it.
1677 set dummy $ac_cv_prog_CC
1678 shift
1679 if test $# != 0; then
1680 # We chose a different compiler from the bogus one.
1681 # However, it has the same basename, so the bogon will be chosen
1682 # first if we set CC to just the basename; use the full file name.
1683 shift
1684 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1685 shift
1686 ac_cv_prog_CC="$@"
1687 fi
1688fi
1689fi
1690fi
1691CC=$ac_cv_prog_CC
1692if test -n "$CC"; then
1693 echo "$as_me:1693: result: $CC" >&5
1694echo "${ECHO_T}$CC" >&6
1695else
1696 echo "$as_me:1696: result: no" >&5
1697echo "${ECHO_T}no" >&6
1698fi
1699
1700fi
1701if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1703 for ac_prog in cl
1704 do
1705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707echo "$as_me:1707: checking for $ac_word" >&5
1708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1714else
1715 ac_save_IFS=$IFS; IFS=$ac_path_separator
1716ac_dummy="$PATH"
1717for ac_dir in $ac_dummy; do
1718 IFS=$ac_save_IFS
1719 test -z "$ac_dir" && ac_dir=.
1720 $as_executable_p "$ac_dir/$ac_word" || continue
1721ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722echo "$as_me:1722: found $ac_dir/$ac_word" >&5
1723break
1724done
1725
1726fi
1727fi
1728CC=$ac_cv_prog_CC
1729if test -n "$CC"; then
1730 echo "$as_me:1730: result: $CC" >&5
1731echo "${ECHO_T}$CC" >&6
1732else
1733 echo "$as_me:1733: result: no" >&5
1734echo "${ECHO_T}no" >&6
1735fi
1736
1737 test -n "$CC" && break
1738 done
1739fi
1740if test -z "$CC"; then
1741 ac_ct_CC=$CC
1742 for ac_prog in cl
1743do
1744 # Extract the first word of "$ac_prog", so it can be a program name with args.
1745set dummy $ac_prog; ac_word=$2
1746echo "$as_me:1746: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751 if test -n "$ac_ct_CC"; then
1752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1753else
1754 ac_save_IFS=$IFS; IFS=$ac_path_separator
1755ac_dummy="$PATH"
1756for ac_dir in $ac_dummy; do
1757 IFS=$ac_save_IFS
1758 test -z "$ac_dir" && ac_dir=.
1759 $as_executable_p "$ac_dir/$ac_word" || continue
1760ac_cv_prog_ac_ct_CC="$ac_prog"
1761echo "$as_me:1761: found $ac_dir/$ac_word" >&5
1762break
1763done
1764
1765fi
1766fi
1767ac_ct_CC=$ac_cv_prog_ac_ct_CC
1768if test -n "$ac_ct_CC"; then
1769 echo "$as_me:1769: result: $ac_ct_CC" >&5
1770echo "${ECHO_T}$ac_ct_CC" >&6
1771else
1772 echo "$as_me:1772: result: no" >&5
1773echo "${ECHO_T}no" >&6
1774fi
1775
1776 test -n "$ac_ct_CC" && break
1777done
1778
1779 CC=$ac_ct_CC
1780fi
1781
1782fi
1783
1784test -z "$CC" && { { echo "$as_me:1784: error: no acceptable cc found in \$PATH" >&5
1785echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1786 { (exit 1); exit 1; }; }
1787
1788echo "$as_me:1788: checking whether we are using the GNU C compiler" >&5
1789echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1790if test "${ac_cv_c_compiler_gnu+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 cat >conftest.$ac_ext <<_ACEOF
1794#line 1794 "configure"
1795#include "confdefs.h"
1796
1797int
1798main ()
1799{
1800#ifndef __GNUC__
1801 choke me
1802#endif
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808rm -f conftest.$ac_objext
1809if { (eval echo "$as_me:1809: \"$ac_compile\"") >&5
1810 (eval $ac_compile) 2>&5
1811 ac_status=$?
1812 echo "$as_me:1812: \$? = $ac_status" >&5
1813 (exit $ac_status); } &&
1814 { ac_try='test -s conftest.$ac_objext'
1815 { (eval echo "$as_me:1815: \"$ac_try\"") >&5
1816 (eval $ac_try) 2>&5
1817 ac_status=$?
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1820 ac_compiler_gnu=yes
1821else
1822 echo "$as_me: failed program was:" >&5
1823cat conftest.$ac_ext >&5
1824ac_compiler_gnu=no
1825fi
1826rm -f conftest.$ac_objext conftest.$ac_ext
1827ac_cv_c_compiler_gnu=$ac_compiler_gnu
1828
1829fi
1830echo "$as_me:1830: result: $ac_cv_c_compiler_gnu" >&5
1831echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1832GCC=`test $ac_compiler_gnu = yes && echo yes`
1833ac_test_CFLAGS=${CFLAGS+set}
1834ac_save_CFLAGS=$CFLAGS
1835CFLAGS="-g"
1836echo "$as_me:1836: checking whether $CC accepts -g" >&5
1837echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1838if test "${ac_cv_prog_cc_g+set}" = set; then
1839 echo $ECHO_N "(cached) $ECHO_C" >&6
1840else
1841 cat >conftest.$ac_ext <<_ACEOF
1842#line 1842 "configure"
1843#include "confdefs.h"
1844
1845int
1846main ()
1847{
1848
1849 ;
1850 return 0;
1851}
1852_ACEOF
1853rm -f conftest.$ac_objext
1854if { (eval echo "$as_me:1854: \"$ac_compile\"") >&5
1855 (eval $ac_compile) 2>&5
1856 ac_status=$?
1857 echo "$as_me:1857: \$? = $ac_status" >&5
1858 (exit $ac_status); } &&
1859 { ac_try='test -s conftest.$ac_objext'
1860 { (eval echo "$as_me:1860: \"$ac_try\"") >&5
1861 (eval $ac_try) 2>&5
1862 ac_status=$?
1863 echo "$as_me:1863: \$? = $ac_status" >&5
1864 (exit $ac_status); }; }; then
1865 ac_cv_prog_cc_g=yes
1866else
1867 echo "$as_me: failed program was:" >&5
1868cat conftest.$ac_ext >&5
1869ac_cv_prog_cc_g=no
1870fi
1871rm -f conftest.$ac_objext conftest.$ac_ext
1872fi
1873echo "$as_me:1873: result: $ac_cv_prog_cc_g" >&5
1874echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1875if test "$ac_test_CFLAGS" = set; then
1876 CFLAGS=$ac_save_CFLAGS
1877elif test $ac_cv_prog_cc_g = yes; then
1878 if test "$GCC" = yes; then
1879 CFLAGS="-g -O2"
1880 else
1881 CFLAGS="-g"
1882 fi
1883else
1884 if test "$GCC" = yes; then
1885 CFLAGS="-O2"
1886 else
1887 CFLAGS=
1888 fi
1889fi
1890# Some people use a C++ compiler to compile C. Since we use `exit',
1891# in C++ we need to declare it. In case someone uses the same compiler
1892# for both compiling C and C++ we need to have the C++ compiler decide
1893# the declaration of exit, since it's the most demanding environment.
1894cat >conftest.$ac_ext <<_ACEOF
1895#ifndef __cplusplus
1896 choke me
1897#endif
1898_ACEOF
1899rm -f conftest.$ac_objext
1900if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1902 ac_status=$?
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1907 (eval $ac_try) 2>&5
1908 ac_status=$?
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1911 for ac_declaration in \
1912 ''\
1913 '#include <stdlib.h>' \
1914 'extern "C" void std::exit (int) throw (); using std::exit;' \
1915 'extern "C" void std::exit (int); using std::exit;' \
1916 'extern "C" void exit (int) throw ();' \
1917 'extern "C" void exit (int);' \
1918 'void exit (int);'
1919do
1920 cat >conftest.$ac_ext <<_ACEOF
1921#line 1921 "configure"
1922#include "confdefs.h"
1923#include <stdlib.h>
1924$ac_declaration
1925int
1926main ()
1927{
1928exit (42);
1929 ;
1930 return 0;
1931}
1932_ACEOF
1933rm -f conftest.$ac_objext
1934if { (eval echo "$as_me:1934: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:1937: \$? = $ac_status" >&5
1938 (exit $ac_status); } &&
1939 { ac_try='test -s conftest.$ac_objext'
1940 { (eval echo "$as_me:1940: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:1943: \$? = $ac_status" >&5
1944 (exit $ac_status); }; }; then
1945 :
1946else
1947 echo "$as_me: failed program was:" >&5
1948cat conftest.$ac_ext >&5
1949continue
1950fi
1951rm -f conftest.$ac_objext conftest.$ac_ext
1952 cat >conftest.$ac_ext <<_ACEOF
1953#line 1953 "configure"
1954#include "confdefs.h"
1955$ac_declaration
1956int
1957main ()
1958{
1959exit (42);
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964rm -f conftest.$ac_objext
1965if { (eval echo "$as_me:1965: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
1967 ac_status=$?
1968 echo "$as_me:1968: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -s conftest.$ac_objext'
1971 { (eval echo "$as_me:1971: \"$ac_try\"") >&5
1972 (eval $ac_try) 2>&5
1973 ac_status=$?
1974 echo "$as_me:1974: \$? = $ac_status" >&5
1975 (exit $ac_status); }; }; then
1976 break
1977else
1978 echo "$as_me: failed program was:" >&5
1979cat conftest.$ac_ext >&5
1980fi
1981rm -f conftest.$ac_objext conftest.$ac_ext
1982done
1983echo '#ifdef __cplusplus' >>confdefs.h
1984echo $ac_declaration >>confdefs.h
1985echo '#endif' >>confdefs.h
1986
1987else
1988 echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990fi
1991rm -f conftest.$ac_objext conftest.$ac_ext
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998ac_aux_dir=
1999for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2000 if test -f $ac_dir/install-sh; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f $ac_dir/install.sh; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f $ac_dir/shtool; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2012 fi
2013done
2014if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:2015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2016echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2017 { (exit 1); exit 1; }; }
2018fi
2019ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2020ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2021ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2022
2023# Find a good install program. We prefer a C program (faster),
2024# so one script is as good as another. But avoid the broken or
2025# incompatible versions:
2026# SysV /etc/install, /usr/sbin/install
2027# SunOS /usr/etc/install
2028# IRIX /sbin/install
2029# AIX /bin/install
2030# AmigaOS /C/install, which installs bootblocks on floppy discs
2031# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2032# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2033# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2034# ./install, which can be erroneously created by make from ./install.sh.
2035echo "$as_me:2035: checking for a BSD compatible install" >&5
2036echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2037if test -z "$INSTALL"; then
2038if test "${ac_cv_path_install+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
2041 ac_save_IFS=$IFS; IFS=$ac_path_separator
2042 for ac_dir in $PATH; do
2043 IFS=$ac_save_IFS
2044 # Account for people who put trailing slashes in PATH elements.
2045 case $ac_dir/ in
2046 / | ./ | .// | /cC/* \
2047 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2048 | /usr/ucb/* ) ;;
2049 *)
2050 # OSF1 and SCO ODT 3.0 have their own names for install.
2051 # Don't use installbsd from OSF since it installs stuff as root
2052 # by default.
2053 for ac_prog in ginstall scoinst install; do
2054 if $as_executable_p "$ac_dir/$ac_prog"; then
2055 if test $ac_prog = install &&
2056 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2057 # AIX install. It has an incompatible calling convention.
2058 :
2059 elif test $ac_prog = install &&
2060 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2061 # program-specific install script used by HP pwplus--don't use.
2062 :
2063 else
2064 ac_cv_path_install="$ac_dir/$ac_prog -c"
2065 break 2
2066 fi
2067 fi
2068 done
2069 ;;
2070 esac
2071 done
2072
2073fi
2074 if test "${ac_cv_path_install+set}" = set; then
2075 INSTALL=$ac_cv_path_install
2076 else
2077 # As a last resort, use the slow shell script. We don't cache a
2078 # path for INSTALL within a source directory, because that will
2079 # break other packages using the cache if that directory is
2080 # removed, or if the path is relative.
2081 INSTALL=$ac_install_sh
2082 fi
2083fi
2084echo "$as_me:2084: result: $INSTALL" >&5
2085echo "${ECHO_T}$INSTALL" >&6
2086
2087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2088# It thinks the first close brace ends the variable substitution.
2089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2090
2091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2092
2093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2094
2095echo "$as_me:2095: checking whether ln -s works" >&5
2096echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2097LN_S=$as_ln_s
2098if test "$LN_S" = "ln -s"; then
2099 echo "$as_me:2099: result: yes" >&5
2100echo "${ECHO_T}yes" >&6
2101else
2102 echo "$as_me:2102: result: no, using $LN_S" >&5
2103echo "${ECHO_T}no, using $LN_S" >&6
2104fi
2105
2106echo "$as_me:2106: checking whether ${MAKE-make} sets \${MAKE}" >&5
2107echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2108set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2109if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111else
2112 cat >conftest.make <<\EOF
2113all:
2114 @echo 'ac_maketemp="${MAKE}"'
2115EOF
2116# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2117eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2118if test -n "$ac_maketemp"; then
2119 eval ac_cv_prog_make_${ac_make}_set=yes
2120else
2121 eval ac_cv_prog_make_${ac_make}_set=no
2122fi
2123rm -f conftest.make
2124fi
2125if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2126 echo "$as_me:2126: result: yes" >&5
2127echo "${ECHO_T}yes" >&6
2128 SET_MAKE=
2129else
2130 echo "$as_me:2130: result: no" >&5
2131echo "${ECHO_T}no" >&6
2132 SET_MAKE="MAKE=${MAKE-make}"
2133fi
2134
2135if test -n "$ac_tool_prefix"; then
2136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2137set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2138echo "$as_me:2138: checking for $ac_word" >&5
2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2140if test "${ac_cv_prog_RANLIB+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142else
2143 if test -n "$RANLIB"; then
2144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2145else
2146 ac_save_IFS=$IFS; IFS=$ac_path_separator
2147ac_dummy="$PATH"
2148for ac_dir in $ac_dummy; do
2149 IFS=$ac_save_IFS
2150 test -z "$ac_dir" && ac_dir=.
2151 $as_executable_p "$ac_dir/$ac_word" || continue
2152ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2153echo "$as_me:2153: found $ac_dir/$ac_word" >&5
2154break
2155done
2156
2157fi
2158fi
2159RANLIB=$ac_cv_prog_RANLIB
2160if test -n "$RANLIB"; then
2161 echo "$as_me:2161: result: $RANLIB" >&5
2162echo "${ECHO_T}$RANLIB" >&6
2163else
2164 echo "$as_me:2164: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168fi
2169if test -z "$ac_cv_prog_RANLIB"; then
2170 ac_ct_RANLIB=$RANLIB
2171 # Extract the first word of "ranlib", so it can be a program name with args.
2172set dummy ranlib; ac_word=$2
2173echo "$as_me:2173: checking for $ac_word" >&5
2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 if test -n "$ac_ct_RANLIB"; then
2179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2180else
2181 ac_save_IFS=$IFS; IFS=$ac_path_separator
2182ac_dummy="$PATH"
2183for ac_dir in $ac_dummy; do
2184 IFS=$ac_save_IFS
2185 test -z "$ac_dir" && ac_dir=.
2186 $as_executable_p "$ac_dir/$ac_word" || continue
2187ac_cv_prog_ac_ct_RANLIB="ranlib"
2188echo "$as_me:2188: found $ac_dir/$ac_word" >&5
2189break
2190done
2191
2192 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2193fi
2194fi
2195ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2196if test -n "$ac_ct_RANLIB"; then
2197 echo "$as_me:2197: result: $ac_ct_RANLIB" >&5
2198echo "${ECHO_T}$ac_ct_RANLIB" >&6
2199else
2200 echo "$as_me:2200: result: no" >&5
2201echo "${ECHO_T}no" >&6
2202fi
2203
2204 RANLIB=$ac_ct_RANLIB
2205else
2206 RANLIB="$ac_cv_prog_RANLIB"
2207fi
2208
2209ac_ext=c
2210ac_cpp='$CPP $CPPFLAGS'
2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214echo "$as_me:2214: checking how to run the C preprocessor" >&5
2215echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2216# On Suns, sometimes $CPP names a directory.
2217if test -n "$CPP" && test -d "$CPP"; then
2218 CPP=
2219fi
2220if test -z "$CPP"; then
2221 if test "${ac_cv_prog_CPP+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223else
2224 # Double quotes because CPP needs to be expanded
2225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2226 do
2227 # break 2 since there is a loop in there.
2228 ac_preproc_ok=false
2229for ac_c_preproc_warn_flag in '' yes
2230do
2231 # Use a header file that comes with gcc, so configuring glibc
2232 # with a fresh cross-compiler works.
2233 # On the NeXT, cc -E runs the code through the compiler's parser,
2234 # not just through cpp. "Syntax error" is here to catch this case.
2235 cat >conftest.$ac_ext <<_ACEOF
2236#line 2236 "configure"
2237#include "confdefs.h"
2238#include <assert.h>
2239 Syntax error
2240_ACEOF
2241if { (eval echo "$as_me:2241: \"$ac_cpp conftest.$ac_ext\"") >&5
2242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2243 ac_status=$?
2244 egrep -v '^ *\+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:2247: \$? = $ac_status" >&5
2248 (exit $ac_status); } >/dev/null; then
2249 if test -s conftest.err; then
2250 ac_cpp_err=$ac_c_preproc_warn_flag
2251 else
2252 ac_cpp_err=
2253 fi
2254else
2255 ac_cpp_err=yes
2256fi
2257if test -z "$ac_cpp_err"; then
2258 :
2259else
2260 echo "$as_me: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 # Broken: fails on valid input.
2263continue
2264fi
2265rm -f conftest.err conftest.$ac_ext
2266
2267 # OK, works on sane cases. Now check whether non-existent headers
2268 # can be detected and how.
2269 cat >conftest.$ac_ext <<_ACEOF
2270#line 2270 "configure"
2271#include "confdefs.h"
2272#include <ac_nonexistent.h>
2273_ACEOF
2274if { (eval echo "$as_me:2274: \"$ac_cpp conftest.$ac_ext\"") >&5
2275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2276 ac_status=$?
2277 egrep -v '^ *\+' conftest.er1 >conftest.err
2278 rm -f conftest.er1
2279 cat conftest.err >&5
2280 echo "$as_me:2280: \$? = $ac_status" >&5
2281 (exit $ac_status); } >/dev/null; then
2282 if test -s conftest.err; then
2283 ac_cpp_err=$ac_c_preproc_warn_flag
2284 else
2285 ac_cpp_err=
2286 fi
2287else
2288 ac_cpp_err=yes
2289fi
2290if test -z "$ac_cpp_err"; then
2291 # Broken: success on invalid input.
2292continue
2293else
2294 echo "$as_me: failed program was:" >&5
2295 cat conftest.$ac_ext >&5
2296 # Passes both tests.
2297ac_preproc_ok=:
2298break
2299fi
2300rm -f conftest.err conftest.$ac_ext
2301
2302done
2303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2304rm -f conftest.err conftest.$ac_ext
2305if $ac_preproc_ok; then
2306 break 2
2307fi
2308
2309 done
2310 ac_cv_prog_CPP=$CPP
2311
2312fi
2313 CPP=$ac_cv_prog_CPP
2314else
2315 ac_cv_prog_CPP=$CPP
2316fi
2317echo "$as_me:2317: result: $CPP" >&5
2318echo "${ECHO_T}$CPP" >&6
2319ac_preproc_ok=false
2320for ac_c_preproc_warn_flag in '' yes
2321do
2322 # Use a header file that comes with gcc, so configuring glibc
2323 # with a fresh cross-compiler works.
2324 # On the NeXT, cc -E runs the code through the compiler's parser,
2325 # not just through cpp. "Syntax error" is here to catch this case.
2326 cat >conftest.$ac_ext <<_ACEOF
2327#line 2327 "configure"
2328#include "confdefs.h"
2329#include <assert.h>
2330 Syntax error
2331_ACEOF
2332if { (eval echo "$as_me:2332: \"$ac_cpp conftest.$ac_ext\"") >&5
2333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2334 ac_status=$?
2335 egrep -v '^ *\+' conftest.er1 >conftest.err
2336 rm -f conftest.er1
2337 cat conftest.err >&5
2338 echo "$as_me:2338: \$? = $ac_status" >&5
2339 (exit $ac_status); } >/dev/null; then
2340 if test -s conftest.err; then
2341 ac_cpp_err=$ac_c_preproc_warn_flag
2342 else
2343 ac_cpp_err=
2344 fi
2345else
2346 ac_cpp_err=yes
2347fi
2348if test -z "$ac_cpp_err"; then
2349 :
2350else
2351 echo "$as_me: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 # Broken: fails on valid input.
2354continue
2355fi
2356rm -f conftest.err conftest.$ac_ext
2357
2358 # OK, works on sane cases. Now check whether non-existent headers
2359 # can be detected and how.
2360 cat >conftest.$ac_ext <<_ACEOF
2361#line 2361 "configure"
2362#include "confdefs.h"
2363#include <ac_nonexistent.h>
2364_ACEOF
2365if { (eval echo "$as_me:2365: \"$ac_cpp conftest.$ac_ext\"") >&5
2366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2367 ac_status=$?
2368 egrep -v '^ *\+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:2371: \$? = $ac_status" >&5
2372 (exit $ac_status); } >/dev/null; then
2373 if test -s conftest.err; then
2374 ac_cpp_err=$ac_c_preproc_warn_flag
2375 else
2376 ac_cpp_err=
2377 fi
2378else
2379 ac_cpp_err=yes
2380fi
2381if test -z "$ac_cpp_err"; then
2382 # Broken: success on invalid input.
2383continue
2384else
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 # Passes both tests.
2388ac_preproc_ok=:
2389break
2390fi
2391rm -f conftest.err conftest.$ac_ext
2392
2393done
2394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2395rm -f conftest.err conftest.$ac_ext
2396if $ac_preproc_ok; then
2397 :
2398else
2399 { { echo "$as_me:2399: error: C preprocessor \"$CPP\" fails sanity check" >&5
2400echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2401 { (exit 1); exit 1; }; }
2402fi
2403
2404ac_ext=c
2405ac_cpp='$CPP $CPPFLAGS'
2406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409
2410echo "$as_me:2410: checking for AIX" >&5
2411echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2412cat >conftest.$ac_ext <<_ACEOF
2413#line 2413 "configure"
2414#include "confdefs.h"
2415#ifdef _AIX
2416 yes
2417#endif
2418
2419_ACEOF
2420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2421 egrep "yes" >/dev/null 2>&1; then
2422 echo "$as_me:2422: result: yes" >&5
2423echo "${ECHO_T}yes" >&6
2424cat >>confdefs.h <<\EOF
2425#define _ALL_SOURCE 1
2426EOF
2427
2428else
2429 echo "$as_me:2429: result: no" >&5
2430echo "${ECHO_T}no" >&6
2431fi
2432rm -f conftest*
2433
2434echo "$as_me:2434: checking for POSIXized ISC" >&5
2435echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2436if test -d /etc/conf/kconfig.d &&
2437 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2438then
2439 echo "$as_me:2439: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441 ISC=yes # If later tests want to check for ISC.
2442
2443cat >>confdefs.h <<\EOF
2444#define _POSIX_SOURCE 1
2445EOF
2446
2447 if test "$GCC" = yes; then
2448 CC="$CC -posix"
2449 else
2450 CC="$CC -Xp"
2451 fi
2452else
2453 echo "$as_me:2453: result: no" >&5
2454echo "${ECHO_T}no" >&6
2455 ISC=
2456fi
2457
2458echo "$as_me:2458: checking for minix/config.h" >&5
2459echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2460if test "${ac_cv_header_minix_config_h+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 cat >conftest.$ac_ext <<_ACEOF
2464#line 2464 "configure"
2465#include "confdefs.h"
2466#include <minix/config.h>
2467_ACEOF
2468if { (eval echo "$as_me:2468: \"$ac_cpp conftest.$ac_ext\"") >&5
2469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470 ac_status=$?
2471 egrep -v '^ *\+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
2474 echo "$as_me:2474: \$? = $ac_status" >&5
2475 (exit $ac_status); } >/dev/null; then
2476 if test -s conftest.err; then
2477 ac_cpp_err=$ac_c_preproc_warn_flag
2478 else
2479 ac_cpp_err=
2480 fi
2481else
2482 ac_cpp_err=yes
2483fi
2484if test -z "$ac_cpp_err"; then
2485 ac_cv_header_minix_config_h=yes
2486else
2487 echo "$as_me: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 ac_cv_header_minix_config_h=no
2490fi
2491rm -f conftest.err conftest.$ac_ext
2492fi
2493echo "$as_me:2493: result: $ac_cv_header_minix_config_h" >&5
2494echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2495if test $ac_cv_header_minix_config_h = yes; then
2496 MINIX=yes
2497else
2498 MINIX=
2499fi
2500
2501if test "$MINIX" = yes; then
2502
2503cat >>confdefs.h <<\EOF
2504#define _POSIX_SOURCE 1
2505EOF
2506
2507cat >>confdefs.h <<\EOF
2508#define _POSIX_1_SOURCE 2
2509EOF
2510
2511cat >>confdefs.h <<\EOF
2512#define _MINIX 1
2513EOF
2514
2515fi
2516
2517echo "$as_me:2517: checking for ${CC-cc} option to accept ANSI C" >&5
2518echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2519if test "${ac_cv_prog_cc_stdc+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2521else
2522 ac_cv_prog_cc_stdc=no
2523ac_save_CFLAGS="$CFLAGS"
2524# Don't try gcc -ansi; that turns off useful extensions and
2525# breaks some systems' header files.
2526# AIX -qlanglvl=ansi
2527# Ultrix and OSF/1 -std1
2528# HP-UX -Aa -D_HPUX_SOURCE
2529# SVR4 -Xc
2530for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
2531do
2532 CFLAGS="$ac_save_CFLAGS $ac_arg"
2533 cat >conftest.$ac_ext <<_ACEOF
2534#line 2534 "configure"
2535#include "confdefs.h"
2536#if !defined(__STDC__) || __STDC__ != 1
2537choke me
2538#endif
2539
2540int
2541main ()
2542{
2543int test (int i, double x);
2544struct s1 {int (*f) (int a);};
2545struct s2 {int (*f) (double a);};
2546 ;
2547 return 0;
2548}
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2553 ac_status=$?
2554 echo "$as_me:2554: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:2557: \"$ac_try\"") >&5
2558 (eval $ac_try) 2>&5
2559 ac_status=$?
2560 echo "$as_me:2560: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 ac_cv_prog_cc_stdc="$ac_arg"; break
2563else
2564 echo "$as_me: failed program was:" >&5
2565cat conftest.$ac_ext >&5
2566fi
2567rm -f conftest.$ac_objext conftest.$ac_ext
2568done
2569CFLAGS="$ac_save_CFLAGS"
2570
2571fi
2572
2573echo "$as_me:2573: result: $ac_cv_prog_cc_stdc" >&5
2574echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2575case "x$ac_cv_prog_cc_stdc" in
2576 x|xno) ;;
2577 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
2578esac
2579
2580echo "$as_me:2580: checking for function prototypes" >&5
2581echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2582if test "$ac_cv_prog_cc_stdc" != no; then
2583 echo "$as_me:2583: result: yes" >&5
2584echo "${ECHO_T}yes" >&6
2585 cat >>confdefs.h <<\EOF
2586#define PROTOTYPES 1
2587EOF
2588
2589 U= ANSI2KNR=
2590else
2591 echo "$as_me:2591: result: no" >&5
2592echo "${ECHO_T}no" >&6
2593 U=_ ANSI2KNR=ansi2knr
2594fi
2595
2596echo "$as_me:2596: checking for $CC option to accept ANSI C" >&5
2597echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2598if test "${ac_cv_prog_cc_stdc+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601 ac_cv_prog_cc_stdc=no
2602ac_save_CC=$CC
2603cat >conftest.$ac_ext <<_ACEOF
2604#line 2604 "configure"
2605#include "confdefs.h"
2606#include <stdarg.h>
2607#include <stdio.h>
2608#include <sys/types.h>
2609#include <sys/stat.h>
2610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2611struct buf { int x; };
2612FILE * (*rcsopen) (struct buf *, struct stat *, int);
2613static char *e (p, i)
2614 char **p;
2615 int i;
2616{
2617 return p[i];
2618}
2619static char *f (char * (*g) (char **, int), char **p, ...)
2620{
2621 char *s;
2622 va_list v;
2623 va_start (v,p);
2624 s = g (p, va_arg (v,int));
2625 va_end (v);
2626 return s;
2627}
2628int test (int i, double x);
2629struct s1 {int (*f) (int a);};
2630struct s2 {int (*f) (double a);};
2631int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2632int argc;
2633char **argv;
2634int
2635main ()
2636{
2637return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642# Don't try gcc -ansi; that turns off useful extensions and
2643# breaks some systems' header files.
2644# AIX -qlanglvl=ansi
2645# Ultrix and OSF/1 -std1
2646# HP-UX 10.20 and later -Ae
2647# HP-UX older versions -Aa -D_HPUX_SOURCE
2648# SVR4 -Xc -D__EXTENSIONS__
2649for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2650do
2651 CC="$ac_save_CC $ac_arg"
2652 rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:2653: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>&5
2655 ac_status=$?
2656 echo "$as_me:2656: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:2659: \"$ac_try\"") >&5
2660 (eval $ac_try) 2>&5
2661 ac_status=$?
2662 echo "$as_me:2662: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 ac_cv_prog_cc_stdc=$ac_arg
2665break
2666else
2667 echo "$as_me: failed program was:" >&5
2668cat conftest.$ac_ext >&5
2669fi
2670rm -f conftest.$ac_objext
2671done
2672rm -f conftest.$ac_ext conftest.$ac_objext
2673CC=$ac_save_CC
2674
2675fi
2676
2677case "x$ac_cv_prog_cc_stdc" in
2678 x|xno)
2679 echo "$as_me:2679: result: none needed" >&5
2680echo "${ECHO_T}none needed" >&6 ;;
2681 *)
2682 echo "$as_me:2682: result: $ac_cv_prog_cc_stdc" >&5
2683echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2684 CC="$CC $ac_cv_prog_cc_stdc" ;;
2685esac
2686
2687echo "$as_me:2687: checking for an ANSI C-conforming const" >&5
2688echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2689if test "${ac_cv_c_const+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
2692 cat >conftest.$ac_ext <<_ACEOF
2693#line 2693 "configure"
2694#include "confdefs.h"
2695
2696int
2697main ()
2698{
2699/* FIXME: Include the comments suggested by Paul. */
2700#ifndef __cplusplus
2701 /* Ultrix mips cc rejects this. */
2702 typedef int charset[2];
2703 const charset x;
2704 /* SunOS 4.1.1 cc rejects this. */
2705 char const *const *ccp;
2706 char **p;
2707 /* NEC SVR4.0.2 mips cc rejects this. */
2708 struct point {int x, y;};
2709 static struct point const zero = {0,0};
2710 /* AIX XL C 1.02.0.0 rejects this.
2711 It does not let you subtract one const X* pointer from another in
2712 an arm of an if-expression whose if-part is not a constant
2713 expression */
2714 const char *g = "string";
2715 ccp = &g + (g ? g-g : 0);
2716 /* HPUX 7.0 cc rejects these. */
2717 ++ccp;
2718 p = (char**) ccp;
2719 ccp = (char const *const *) p;
2720 { /* SCO 3.2v4 cc rejects this. */
2721 char *t;
2722 char const *s = 0 ? (char *) 0 : (char const *) 0;
2723
2724 *t++ = 0;
2725 }
2726 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2727 int x[] = {25, 17};
2728 const int *foo = &x[0];
2729 ++foo;
2730 }
2731 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2732 typedef const int *iptr;
2733 iptr p = 0;
2734 ++p;
2735 }
2736 { /* AIX XL C 1.02.0.0 rejects this saying
2737 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2738 struct s { int j; const int *ap[3]; };
2739 struct s *b; b->j = 5;
2740 }
2741 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2742 const int foo = 10;
2743 }
2744#endif
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:2751: \"$ac_compile\"") >&5
2752 (eval $ac_compile) 2>&5
2753 ac_status=$?
2754 echo "$as_me:2754: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:2757: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_cv_c_const=yes
2763else
2764 echo "$as_me: failed program was:" >&5
2765cat conftest.$ac_ext >&5
2766ac_cv_c_const=no
2767fi
2768rm -f conftest.$ac_objext conftest.$ac_ext
2769fi
2770echo "$as_me:2770: result: $ac_cv_c_const" >&5
2771echo "${ECHO_T}$ac_cv_c_const" >&6
2772if test $ac_cv_c_const = no; then
2773
2774cat >>confdefs.h <<\EOF
2775#define const
2776EOF
2777
2778fi
2779
2780echo "$as_me:2780: checking for ANSI C header files" >&5
2781echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2782if test "${ac_cv_header_stdc+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 cat >conftest.$ac_ext <<_ACEOF
2786#line 2786 "configure"
2787#include "confdefs.h"
2788#include <stdlib.h>
2789#include <stdarg.h>
2790#include <string.h>
2791#include <float.h>
2792
2793_ACEOF
2794if { (eval echo "$as_me:2794: \"$ac_cpp conftest.$ac_ext\"") >&5
2795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796 ac_status=$?
2797 egrep -v '^ *\+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); } >/dev/null; then
2802 if test -s conftest.err; then
2803 ac_cpp_err=$ac_c_preproc_warn_flag
2804 else
2805 ac_cpp_err=
2806 fi
2807else
2808 ac_cpp_err=yes
2809fi
2810if test -z "$ac_cpp_err"; then
2811 ac_cv_header_stdc=yes
2812else
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 ac_cv_header_stdc=no
2816fi
2817rm -f conftest.err conftest.$ac_ext
2818
2819if test $ac_cv_header_stdc = yes; then
2820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2821 cat >conftest.$ac_ext <<_ACEOF
2822#line 2822 "configure"
2823#include "confdefs.h"
2824#include <string.h>
2825
2826_ACEOF
2827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2828 egrep "memchr" >/dev/null 2>&1; then
2829 :
2830else
2831 ac_cv_header_stdc=no
2832fi
2833rm -f conftest*
2834
2835fi
2836
2837if test $ac_cv_header_stdc = yes; then
2838 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2839 cat >conftest.$ac_ext <<_ACEOF
2840#line 2840 "configure"
2841#include "confdefs.h"
2842#include <stdlib.h>
2843
2844_ACEOF
2845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2846 egrep "free" >/dev/null 2>&1; then
2847 :
2848else
2849 ac_cv_header_stdc=no
2850fi
2851rm -f conftest*
2852
2853fi
2854
2855if test $ac_cv_header_stdc = yes; then
2856 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2857 if test "$cross_compiling" = yes; then
2858 :
2859else
2860 cat >conftest.$ac_ext <<_ACEOF
2861#line 2861 "configure"
2862#include "confdefs.h"
2863#include <ctype.h>
2864#if ((' ' & 0x0FF) == 0x020)
2865# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2866# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2867#else
2868# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2869 || ('j' <= (c) && (c) <= 'r') \
2870 || ('s' <= (c) && (c) <= 'z'))
2871# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2872#endif
2873
2874#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2875int
2876main ()
2877{
2878 int i;
2879 for (i = 0; i < 256; i++)
2880 if (XOR (islower (i), ISLOWER (i))
2881 || toupper (i) != TOUPPER (i))
2882 exit(2);
2883 exit (0);
2884}
2885_ACEOF
2886rm -f conftest$ac_exeext
2887if { (eval echo "$as_me:2887: \"$ac_link\"") >&5
2888 (eval $ac_link) 2>&5
2889 ac_status=$?
2890 echo "$as_me:2890: \$? = $ac_status" >&5
2891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2892 { (eval echo "$as_me:2892: \"$ac_try\"") >&5
2893 (eval $ac_try) 2>&5
2894 ac_status=$?
2895 echo "$as_me:2895: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2897 :
2898else
2899 echo "$as_me: program exited with status $ac_status" >&5
2900echo "$as_me: failed program was:" >&5
2901cat conftest.$ac_ext >&5
2902ac_cv_header_stdc=no
2903fi
2904rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2905fi
2906fi
2907fi
2908echo "$as_me:2908: result: $ac_cv_header_stdc" >&5
2909echo "${ECHO_T}$ac_cv_header_stdc" >&6
2910if test $ac_cv_header_stdc = yes; then
2911
2912cat >>confdefs.h <<\EOF
2913#define STDC_HEADERS 1
2914EOF
2915
2916fi
2917
2918for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
2919do
2920ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2921echo "$as_me:2921: checking for $ac_header" >&5
2922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2923if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 cat >conftest.$ac_ext <<_ACEOF
2927#line 2927 "configure"
2928#include "confdefs.h"
2929#include <$ac_header>
2930_ACEOF
2931if { (eval echo "$as_me:2931: \"$ac_cpp conftest.$ac_ext\"") >&5
2932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2933 ac_status=$?
2934 egrep -v '^ *\+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 echo "$as_me:2937: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev/null; then
2939 if test -s conftest.err; then
2940 ac_cpp_err=$ac_c_preproc_warn_flag
2941 else
2942 ac_cpp_err=
2943 fi
2944else
2945 ac_cpp_err=yes
2946fi
2947if test -z "$ac_cpp_err"; then
2948 eval "$ac_ac_Header=yes"
2949else
2950 echo "$as_me: failed program was:" >&5
2951 cat conftest.$ac_ext >&5
2952 eval "$ac_ac_Header=no"
2953fi
2954rm -f conftest.err conftest.$ac_ext
2955fi
2956echo "$as_me:2956: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2957echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2958if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2959 cat >>confdefs.h <<EOF
2960#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2961EOF
2962
2963fi
2964done
2965
2966echo "$as_me:2966: checking for off_t" >&5
2967echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2968if test "${ac_cv_type_off_t+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2970else
2971 cat >conftest.$ac_ext <<_ACEOF
2972#line 2972 "configure"
2973#include "confdefs.h"
2974$ac_includes_default
2975int
2976main ()
2977{
2978if ((off_t *) 0)
2979 return 0;
2980if (sizeof (off_t))
2981 return 0;
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext
2987if { (eval echo "$as_me:2987: \"$ac_compile\"") >&5
2988 (eval $ac_compile) 2>&5
2989 ac_status=$?
2990 echo "$as_me:2990: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -s conftest.$ac_objext'
2993 { (eval echo "$as_me:2993: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:2996: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2998 ac_cv_type_off_t=yes
2999else
3000 echo "$as_me: failed program was:" >&5
3001cat conftest.$ac_ext >&5
3002ac_cv_type_off_t=no
3003fi
3004rm -f conftest.$ac_objext conftest.$ac_ext
3005fi
3006echo "$as_me:3006: result: $ac_cv_type_off_t" >&5
3007echo "${ECHO_T}$ac_cv_type_off_t" >&6
3008if test $ac_cv_type_off_t = yes; then
3009 :
3010else
3011
3012cat >>confdefs.h <<EOF
3013#define off_t long
3014EOF
3015
3016fi
3017
3018echo "$as_me:3018: checking for size_t" >&5
3019echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3020if test "${ac_cv_type_size_t+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 cat >conftest.$ac_ext <<_ACEOF
3024#line 3024 "configure"
3025#include "confdefs.h"
3026$ac_includes_default
3027int
3028main ()
3029{
3030if ((size_t *) 0)
3031 return 0;
3032if (sizeof (size_t))
3033 return 0;
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>&5
3041 ac_status=$?
3042 echo "$as_me:3042: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:3045: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:3048: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_type_size_t=yes
3051else
3052 echo "$as_me: failed program was:" >&5
3053cat conftest.$ac_ext >&5
3054ac_cv_type_size_t=no
3055fi
3056rm -f conftest.$ac_objext conftest.$ac_ext
3057fi
3058echo "$as_me:3058: result: $ac_cv_type_size_t" >&5
3059echo "${ECHO_T}$ac_cv_type_size_t" >&6
3060if test $ac_cv_type_size_t = yes; then
3061 :
3062else
3063
3064cat >>confdefs.h <<EOF
3065#define size_t unsigned
3066EOF
3067
3068fi
3069
3070echo "$as_me:3070: checking whether time.h and sys/time.h may both be included" >&5
3071echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3072if test "${ac_cv_header_time+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
3075 cat >conftest.$ac_ext <<_ACEOF
3076#line 3076 "configure"
3077#include "confdefs.h"
3078#include <sys/types.h>
3079#include <sys/time.h>
3080#include <time.h>
3081
3082int
3083main ()
3084{
3085struct tm *tp;
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:3094: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:3097: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_cv_header_time=yes
3103else
3104 echo "$as_me: failed program was:" >&5
3105cat conftest.$ac_ext >&5
3106ac_cv_header_time=no
3107fi
3108rm -f conftest.$ac_objext conftest.$ac_ext
3109fi
3110echo "$as_me:3110: result: $ac_cv_header_time" >&5
3111echo "${ECHO_T}$ac_cv_header_time" >&6
3112if test $ac_cv_header_time = yes; then
3113
3114cat >>confdefs.h <<\EOF
3115#define TIME_WITH_SYS_TIME 1
3116EOF
3117
3118fi
3119
3120echo "$as_me:3120: checking whether struct tm is in sys/time.h or time.h" >&5
3121echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3122if test "${ac_cv_struct_tm+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 cat >conftest.$ac_ext <<_ACEOF
3126#line 3126 "configure"
3127#include "confdefs.h"
3128#include <sys/types.h>
3129#include <time.h>
3130
3131int
3132main ()
3133{
3134struct tm *tp; tp->tm_sec;
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext
3140if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>&5
3142 ac_status=$?
3143 echo "$as_me:3143: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (eval echo "$as_me:3146: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:3149: \$? = $ac_status" >&5
3150 (exit $ac_status); }; }; then
3151 ac_cv_struct_tm=time.h
3152else
3153 echo "$as_me: failed program was:" >&5
3154cat conftest.$ac_ext >&5
3155ac_cv_struct_tm=sys/time.h
3156fi
3157rm -f conftest.$ac_objext conftest.$ac_ext
3158fi
3159echo "$as_me:3159: result: $ac_cv_struct_tm" >&5
3160echo "${ECHO_T}$ac_cv_struct_tm" >&6
3161if test $ac_cv_struct_tm = sys/time.h; then
3162
3163cat >>confdefs.h <<\EOF
3164#define TM_IN_SYS_TIME 1
3165EOF
3166
3167fi
3168
3169if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
3170cat >conftest.$ac_ext <<_ACEOF
3171#line 3171 "configure"
3172#include "confdefs.h"
3173#include <stdio.h>
3174
3175int
3176main ()
3177{
3178 FILE *rubbish = popen("yes", "r");
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3186 ac_status=$?
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:3190: \"$ac_try\"") >&5
3191 (eval $ac_try) 2>&5
3192 ac_status=$?
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 :
3196else
3197 echo "$as_me: failed program was:" >&5
3198cat conftest.$ac_ext >&5
3199CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
3200fi
3201rm -f conftest.$ac_objext conftest.$ac_ext
3202fi
3203
3204echo "$as_me:3204: checking for main in -lm" >&5
3205echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3206if test "${ac_cv_lib_m_main+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209 ac_check_lib_save_LIBS=$LIBS
3210LIBS="-lm $LIBS"
3211cat >conftest.$ac_ext <<_ACEOF
3212#line 3212 "configure"
3213#include "confdefs.h"
3214
3215int
3216main ()
3217{
3218main ();
3219 ;
3220 return 0;
3221}
3222_ACEOF
3223rm -f conftest.$ac_objext conftest$ac_exeext
3224if { (eval echo "$as_me:3224: \"$ac_link\"") >&5
3225 (eval $ac_link) 2>&5
3226 ac_status=$?
3227 echo "$as_me:3227: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -s conftest$ac_exeext'
3230 { (eval echo "$as_me:3230: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 ac_cv_lib_m_main=yes
3236else
3237 echo "$as_me: failed program was:" >&5
3238cat conftest.$ac_ext >&5
3239ac_cv_lib_m_main=no
3240fi
3241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3242LIBS=$ac_check_lib_save_LIBS
3243fi
3244echo "$as_me:3244: result: $ac_cv_lib_m_main" >&5
3245echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3246if test $ac_cv_lib_m_main = yes; then
3247 cat >>confdefs.h <<EOF
3248#define HAVE_LIBM 1
3249EOF
3250
3251 LIBS="-lm $LIBS"
3252
3253fi
3254
3255ac_header_dirent=no
3256for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3257 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
3258echo "$as_me:3258: checking for $ac_hdr that defines DIR" >&5
3259echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3260if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 cat >conftest.$ac_ext <<_ACEOF
3264#line 3264 "configure"
3265#include "confdefs.h"
3266#include <sys/types.h>
3267#include <$ac_hdr>
3268
3269int
3270main ()
3271{
3272DIR *dirp = 0;
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5
3279 (eval $ac_compile) 2>&5
3280 ac_status=$?
3281 echo "$as_me:3281: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -s conftest.$ac_objext'
3284 { (eval echo "$as_me:3284: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:3287: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 eval "$ac_ac_Header=yes"
3290else
3291 echo "$as_me: failed program was:" >&5
3292cat conftest.$ac_ext >&5
3293eval "$ac_ac_Header=no"
3294fi
3295rm -f conftest.$ac_objext conftest.$ac_ext
3296fi
3297echo "$as_me:3297: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3298echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3299if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3300 cat >>confdefs.h <<EOF
3301#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
3302EOF
3303
3304ac_header_dirent=$ac_hdr; break
3305fi
3306
3307done
3308# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3309if test $ac_header_dirent = dirent.h; then
3310 echo "$as_me:3310: checking for opendir in -ldir" >&5
3311echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3312if test "${ac_cv_lib_dir_opendir+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315 ac_check_lib_save_LIBS=$LIBS
3316LIBS="-ldir $LIBS"
3317cat >conftest.$ac_ext <<_ACEOF
3318#line 3318 "configure"
3319#include "confdefs.h"
3320
3321/* Override any gcc2 internal prototype to avoid an error. */
3322#ifdef __cplusplus
3323extern "C"
3324#endif
3325/* We use char because int might match the return type of a gcc2
3326 builtin and then its argument prototype would still apply. */
3327char opendir ();
3328int
3329main ()
3330{
3331opendir ();
3332 ;
3333 return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext conftest$ac_exeext
3337if { (eval echo "$as_me:3337: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3339 ac_status=$?
3340 echo "$as_me:3340: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -s conftest$ac_exeext'
3343 { (eval echo "$as_me:3343: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:3346: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_lib_dir_opendir=yes
3349else
3350 echo "$as_me: failed program was:" >&5
3351cat conftest.$ac_ext >&5
3352ac_cv_lib_dir_opendir=no
3353fi
3354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3355LIBS=$ac_check_lib_save_LIBS
3356fi
3357echo "$as_me:3357: result: $ac_cv_lib_dir_opendir" >&5
3358echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3359if test $ac_cv_lib_dir_opendir = yes; then
3360 LIBS="$LIBS -ldir"
3361fi
3362
3363else
3364 echo "$as_me:3364: checking for opendir in -lx" >&5
3365echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3366if test "${ac_cv_lib_x_opendir+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369 ac_check_lib_save_LIBS=$LIBS
3370LIBS="-lx $LIBS"
3371cat >conftest.$ac_ext <<_ACEOF
3372#line 3372 "configure"
3373#include "confdefs.h"
3374
3375/* Override any gcc2 internal prototype to avoid an error. */
3376#ifdef __cplusplus
3377extern "C"
3378#endif
3379/* We use char because int might match the return type of a gcc2
3380 builtin and then its argument prototype would still apply. */
3381char opendir ();
3382int
3383main ()
3384{
3385opendir ();
3386 ;
3387 return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext conftest$ac_exeext
3391if { (eval echo "$as_me:3391: \"$ac_link\"") >&5
3392 (eval $ac_link) 2>&5
3393 ac_status=$?
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -s conftest$ac_exeext'
3397 { (eval echo "$as_me:3397: \"$ac_try\"") >&5
3398 (eval $ac_try) 2>&5
3399 ac_status=$?
3400 echo "$as_me:3400: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_lib_x_opendir=yes
3403else
3404 echo "$as_me: failed program was:" >&5
3405cat conftest.$ac_ext >&5
3406ac_cv_lib_x_opendir=no
3407fi
3408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3409LIBS=$ac_check_lib_save_LIBS
3410fi
3411echo "$as_me:3411: result: $ac_cv_lib_x_opendir" >&5
3412echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
3413if test $ac_cv_lib_x_opendir = yes; then
3414 LIBS="$LIBS -lx"
3415fi
3416
3417fi
3418
3419echo "$as_me:3419: checking for ANSI C header files" >&5
3420echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3421if test "${ac_cv_header_stdc+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 cat >conftest.$ac_ext <<_ACEOF
3425#line 3425 "configure"
3426#include "confdefs.h"
3427#include <stdlib.h>
3428#include <stdarg.h>
3429#include <string.h>
3430#include <float.h>
3431
3432_ACEOF
3433if { (eval echo "$as_me:3433: \"$ac_cpp conftest.$ac_ext\"") >&5
3434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3435 ac_status=$?
3436 egrep -v '^ *\+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:3439: \$? = $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 else
3444 ac_cpp_err=
3445 fi
3446else
3447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 ac_cv_header_stdc=yes
3451else
3452 echo "$as_me: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 ac_cv_header_stdc=no
3455fi
3456rm -f conftest.err conftest.$ac_ext
3457
3458if test $ac_cv_header_stdc = yes; then
3459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3460 cat >conftest.$ac_ext <<_ACEOF
3461#line 3461 "configure"
3462#include "confdefs.h"
3463#include <string.h>
3464
3465_ACEOF
3466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 egrep "memchr" >/dev/null 2>&1; then
3468 :
3469else
3470 ac_cv_header_stdc=no
3471fi
3472rm -f conftest*
3473
3474fi
3475
3476if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat >conftest.$ac_ext <<_ACEOF
3479#line 3479 "configure"
3480#include "confdefs.h"
3481#include <stdlib.h>
3482
3483_ACEOF
3484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3485 egrep "free" >/dev/null 2>&1; then
3486 :
3487else
3488 ac_cv_header_stdc=no
3489fi
3490rm -f conftest*
3491
3492fi
3493
3494if test $ac_cv_header_stdc = yes; then
3495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3496 if test "$cross_compiling" = yes; then
3497 :
3498else
3499 cat >conftest.$ac_ext <<_ACEOF
3500#line 3500 "configure"
3501#include "confdefs.h"
3502#include <ctype.h>
3503#if ((' ' & 0x0FF) == 0x020)
3504# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3505# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3506#else
3507# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3508 || ('j' <= (c) && (c) <= 'r') \
3509 || ('s' <= (c) && (c) <= 'z'))
3510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3511#endif
3512
3513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3514int
3515main ()
3516{
3517 int i;
3518 for (i = 0; i < 256; i++)
3519 if (XOR (islower (i), ISLOWER (i))
3520 || toupper (i) != TOUPPER (i))
3521 exit(2);
3522 exit (0);
3523}
3524_ACEOF
3525rm -f conftest$ac_exeext
3526if { (eval echo "$as_me:3526: \"$ac_link\"") >&5
3527 (eval $ac_link) 2>&5
3528 ac_status=$?
3529 echo "$as_me:3529: \$? = $ac_status" >&5
3530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3531 { (eval echo "$as_me:3531: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 :
3537else
3538 echo "$as_me: program exited with status $ac_status" >&5
3539echo "$as_me: failed program was:" >&5
3540cat conftest.$ac_ext >&5
3541ac_cv_header_stdc=no
3542fi
3543rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3544fi
3545fi
3546fi
3547echo "$as_me:3547: result: $ac_cv_header_stdc" >&5
3548echo "${ECHO_T}$ac_cv_header_stdc" >&6
3549if test $ac_cv_header_stdc = yes; then
3550
3551cat >>confdefs.h <<\EOF
3552#define STDC_HEADERS 1
3553EOF
3554
3555fi
3556
3557for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
3558do
3559ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3560echo "$as_me:3560: checking for $ac_header" >&5
3561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3562if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3564else
3565 cat >conftest.$ac_ext <<_ACEOF
3566#line 3566 "configure"
3567#include "confdefs.h"
3568#include <$ac_header>
3569_ACEOF
3570if { (eval echo "$as_me:3570: \"$ac_cpp conftest.$ac_ext\"") >&5
3571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3572 ac_status=$?
3573 egrep -v '^ *\+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:3576: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 else
3581 ac_cpp_err=
3582 fi
3583else
3584 ac_cpp_err=yes
3585fi
3586if test -z "$ac_cpp_err"; then
3587 eval "$ac_ac_Header=yes"
3588else
3589 echo "$as_me: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3591 eval "$ac_ac_Header=no"
3592fi
3593rm -f conftest.err conftest.$ac_ext
3594fi
3595echo "$as_me:3595: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3596echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3597if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3598 cat >>confdefs.h <<EOF
3599#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3600EOF
3601
3602fi
3603done
3604
3605cat >conftest.$ac_ext <<_ACEOF
3606#line 3606 "configure"
3607#include "confdefs.h"
3608#include <stdio.h>
3609
3610_ACEOF
3611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3612 egrep "fread" >/dev/null 2>&1; then
3613 cat >>confdefs.h <<\EOF
3614#define HAVE_FREAD_DECL 1
3615EOF
3616
3617fi
3618rm -f conftest*
3619
3620cat >conftest.$ac_ext <<_ACEOF
3621#line 3621 "configure"
3622#include "confdefs.h"
3623#include <stdio.h>
3624
3625_ACEOF
3626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3627 egrep "fgetc" >/dev/null 2>&1; then
3628 cat >>confdefs.h <<\EOF
3629#define HAVE_FGETC_DECL 1
3630EOF
3631
3632fi
3633rm -f conftest*
3634
3635cat >conftest.$ac_ext <<_ACEOF
3636#line 3636 "configure"
3637#include "confdefs.h"
3638#include <sys/procfs.h>
3639
3640_ACEOF
3641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 egrep "pr_brksize" >/dev/null 2>&1; then
3643 cat >>confdefs.h <<\EOF
3644#define HAVE_PR_BRKSIZE 1
3645EOF
3646
3647fi
3648rm -f conftest*
3649
3650# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3651# for constant arguments. Useless!
3652echo "$as_me:3652: checking for working alloca.h" >&5
3653echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3654if test "${ac_cv_working_alloca_h+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 cat >conftest.$ac_ext <<_ACEOF
3658#line 3658 "configure"
3659#include "confdefs.h"
3660#include <alloca.h>
3661int
3662main ()
3663{
3664char *p = (char *) alloca (2 * sizeof (int));
3665 ;
3666 return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext conftest$ac_exeext
3670if { (eval echo "$as_me:3670: \"$ac_link\"") >&5
3671 (eval $ac_link) 2>&5
3672 ac_status=$?
3673 echo "$as_me:3673: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_working_alloca_h=yes
3682else
3683 echo "$as_me: failed program was:" >&5
3684cat conftest.$ac_ext >&5
3685ac_cv_working_alloca_h=no
3686fi
3687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688fi
3689echo "$as_me:3689: result: $ac_cv_working_alloca_h" >&5
3690echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3691if test $ac_cv_working_alloca_h = yes; then
3692
3693cat >>confdefs.h <<\EOF
3694#define HAVE_ALLOCA_H 1
3695EOF
3696
3697fi
3698
3699echo "$as_me:3699: checking for alloca" >&5
3700echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3701if test "${ac_cv_func_alloca_works+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 cat >conftest.$ac_ext <<_ACEOF
3705#line 3705 "configure"
3706#include "confdefs.h"
3707#ifdef __GNUC__
3708# define alloca __builtin_alloca
3709#else
3710# ifdef _MSC_VER
3711# include <malloc.h>
3712# define alloca _alloca
3713# else
3714# if HAVE_ALLOCA_H
3715# include <alloca.h>
3716# else
3717# ifdef _AIX
3718 #pragma alloca
3719# else
3720# ifndef alloca /* predefined by HP cc +Olibcalls */
3721char *alloca ();
3722# endif
3723# endif
3724# endif
3725# endif
3726#endif
3727
3728int
3729main ()
3730{
3731char *p = (char *) alloca (1);
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736rm -f conftest.$ac_objext conftest$ac_exeext
3737if { (eval echo "$as_me:3737: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3739 ac_status=$?
3740 echo "$as_me:3740: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:3743: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_func_alloca_works=yes
3749else
3750 echo "$as_me: failed program was:" >&5
3751cat conftest.$ac_ext >&5
3752ac_cv_func_alloca_works=no
3753fi
3754rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755fi
3756echo "$as_me:3756: result: $ac_cv_func_alloca_works" >&5
3757echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3758
3759if test $ac_cv_func_alloca_works = yes; then
3760
3761cat >>confdefs.h <<\EOF
3762#define HAVE_ALLOCA 1
3763EOF
3764
3765else
3766 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3767# that cause trouble. Some versions do not even contain alloca or
3768# contain a buggy version. If you still want to use their alloca,
3769# use ar to extract alloca.o from them instead of compiling alloca.c.
3770
3771ALLOCA=alloca.$ac_objext
3772
3773cat >>confdefs.h <<\EOF
3774#define C_ALLOCA 1
3775EOF
3776
3777echo "$as_me:3777: checking whether \`alloca.c' needs Cray hooks" >&5
3778echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3779if test "${ac_cv_os_cray+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 cat >conftest.$ac_ext <<_ACEOF
3783#line 3783 "configure"
3784#include "confdefs.h"
3785#if defined(CRAY) && ! defined(CRAY2)
3786webecray
3787#else
3788wenotbecray
3789#endif
3790
3791_ACEOF
3792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3793 egrep "webecray" >/dev/null 2>&1; then
3794 ac_cv_os_cray=yes
3795else
3796 ac_cv_os_cray=no
3797fi
3798rm -f conftest*
3799
3800fi
3801echo "$as_me:3801: result: $ac_cv_os_cray" >&5
3802echo "${ECHO_T}$ac_cv_os_cray" >&6
3803if test $ac_cv_os_cray = yes; then
3804 for ac_func in _getb67 GETB67 getb67; do
3805 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3806echo "$as_me:3806: checking for $ac_func" >&5
3807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3808if eval "test \"\${$ac_ac_var+set}\" = set"; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 cat >conftest.$ac_ext <<_ACEOF
3812#line 3812 "configure"
3813#include "confdefs.h"
3814/* System header to define __stub macros and hopefully few prototypes,
3815 which can conflict with char $ac_func (); below. */
3816#include <assert.h>
3817/* Override any gcc2 internal prototype to avoid an error. */
3818#ifdef __cplusplus
3819extern "C"
3820#endif
3821/* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3823char $ac_func ();
3824char (*f) ();
3825
3826int
3827main ()
3828{
3829/* The GNU C library defines this for functions which it implements
3830 to always fail with ENOSYS. Some functions are actually named
3831 something starting with __ and the normal name is an alias. */
3832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3833choke me
3834#else
3835f = $ac_func;
3836#endif
3837
3838 ;
3839 return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:3843: \"$ac_link\"") >&5
3844 (eval $ac_link) 2>&5
3845 ac_status=$?
3846 echo "$as_me:3846: \$? = $ac_status" >&5
3847 (exit $ac_status); } &&
3848 { ac_try='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:3849: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:3852: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 eval "$ac_ac_var=yes"
3855else
3856 echo "$as_me: failed program was:" >&5
3857cat conftest.$ac_ext >&5
3858eval "$ac_ac_var=no"
3859fi
3860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3861fi
3862echo "$as_me:3862: result: `eval echo '${'$ac_ac_var'}'`" >&5
3863echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
3864if test `eval echo '${'$ac_ac_var'}'` = yes; then
3865
3866cat >>confdefs.h <<EOF
3867#define CRAY_STACKSEG_END $ac_func
3868EOF
3869
3870 break
3871fi
3872
3873 done
3874fi
3875
3876echo "$as_me:3876: checking stack direction for C alloca" >&5
3877echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3878if test "${ac_cv_c_stack_direction+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 if test "$cross_compiling" = yes; then
3882 ac_cv_c_stack_direction=0
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885#line 3885 "configure"
3886#include "confdefs.h"
3887int
3888find_stack_direction ()
3889{
3890 static char *addr = 0;
3891 auto char dummy;
3892 if (addr == 0)
3893 {
3894 addr = &dummy;
3895 return find_stack_direction ();
3896 }
3897 else
3898 return (&dummy > addr) ? 1 : -1;
3899}
3900
3901int
3902main ()
3903{
3904 exit (find_stack_direction () < 0);
3905}
3906_ACEOF
3907rm -f conftest$ac_exeext
3908if { (eval echo "$as_me:3908: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3910 ac_status=$?
3911 echo "$as_me:3911: \$? = $ac_status" >&5
3912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3913 { (eval echo "$as_me:3913: \"$ac_try\"") >&5
3914 (eval $ac_try) 2>&5
3915 ac_status=$?
3916 echo "$as_me:3916: \$? = $ac_status" >&5
3917 (exit $ac_status); }; }; then
3918 ac_cv_c_stack_direction=1
3919else
3920 echo "$as_me: program exited with status $ac_status" >&5
3921echo "$as_me: failed program was:" >&5
3922cat conftest.$ac_ext >&5
3923ac_cv_c_stack_direction=-1
3924fi
3925rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3926fi
3927fi
3928echo "$as_me:3928: result: $ac_cv_c_stack_direction" >&5
3929echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3930
3931cat >>confdefs.h <<EOF
3932#define STACK_DIRECTION $ac_cv_c_stack_direction
3933EOF
3934
3935fi
3936
3937if test $ac_cv_c_compiler_gnu = yes; then
3938 echo "$as_me:3938: checking whether $CC needs -traditional" >&5
3939echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3940if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943 ac_pattern="Autoconf.*'x'"
3944 cat >conftest.$ac_ext <<_ACEOF
3945#line 3945 "configure"
3946#include "confdefs.h"
3947#include <sgtty.h>
3948Autoconf TIOCGETP
3949_ACEOF
3950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 egrep "$ac_pattern" >/dev/null 2>&1; then
3952 ac_cv_prog_gcc_traditional=yes
3953else
3954 ac_cv_prog_gcc_traditional=no
3955fi
3956rm -f conftest*
3957
3958 if test $ac_cv_prog_gcc_traditional = no; then
3959 cat >conftest.$ac_ext <<_ACEOF
3960#line 3960 "configure"
3961#include "confdefs.h"
3962#include <termio.h>
3963Autoconf TCGETA
3964_ACEOF
3965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 egrep "$ac_pattern" >/dev/null 2>&1; then
3967 ac_cv_prog_gcc_traditional=yes
3968fi
3969rm -f conftest*
3970
3971 fi
3972fi
3973echo "$as_me:3973: result: $ac_cv_prog_gcc_traditional" >&5
3974echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3975 if test $ac_cv_prog_gcc_traditional = yes; then
3976 CC="$CC -traditional"
3977 fi
3978fi
3979
3980echo "$as_me:3980: checking return type of signal handlers" >&5
3981echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3982if test "${ac_cv_type_signal+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984else
3985 cat >conftest.$ac_ext <<_ACEOF
3986#line 3986 "configure"
3987#include "confdefs.h"
3988#include <sys/types.h>
3989#include <signal.h>
3990#ifdef signal
3991# undef signal
3992#endif
3993#ifdef __cplusplus
3994extern "C" void (*signal (int, void (*)(int)))(int);
3995#else
3996void (*signal ()) ();
3997#endif
3998
3999int
4000main ()
4001{
4002int i;
4003 ;
4004 return 0;
4005}
4006_ACEOF
4007rm -f conftest.$ac_objext
4008if { (eval echo "$as_me:4008: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>&5
4010 ac_status=$?
4011 echo "$as_me:4011: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -s conftest.$ac_objext'
4014 { (eval echo "$as_me:4014: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:4017: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 ac_cv_type_signal=void
4020else
4021 echo "$as_me: failed program was:" >&5
4022cat conftest.$ac_ext >&5
4023ac_cv_type_signal=int
4024fi
4025rm -f conftest.$ac_objext conftest.$ac_ext
4026fi
4027echo "$as_me:4027: result: $ac_cv_type_signal" >&5
4028echo "${ECHO_T}$ac_cv_type_signal" >&6
4029
4030cat >>confdefs.h <<EOF
4031#define RETSIGTYPE $ac_cv_type_signal
4032EOF
4033
4034for ac_func in vprintf
4035do
4036ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4037echo "$as_me:4037: checking for $ac_func" >&5
4038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4039if eval "test \"\${$ac_ac_var+set}\" = set"; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 cat >conftest.$ac_ext <<_ACEOF
4043#line 4043 "configure"
4044#include "confdefs.h"
4045/* System header to define __stub macros and hopefully few prototypes,
4046 which can conflict with char $ac_func (); below. */
4047#include <assert.h>
4048/* Override any gcc2 internal prototype to avoid an error. */
4049#ifdef __cplusplus
4050extern "C"
4051#endif
4052/* We use char because int might match the return type of a gcc2
4053 builtin and then its argument prototype would still apply. */
4054char $ac_func ();
4055char (*f) ();
4056
4057int
4058main ()
4059{
4060/* The GNU C library defines this for functions which it implements
4061 to always fail with ENOSYS. Some functions are actually named
4062 something starting with __ and the normal name is an alias. */
4063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4064choke me
4065#else
4066f = $ac_func;
4067#endif
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073rm -f conftest.$ac_objext conftest$ac_exeext
4074if { (eval echo "$as_me:4074: \"$ac_link\"") >&5
4075 (eval $ac_link) 2>&5
4076 ac_status=$?
4077 echo "$as_me:4077: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -s conftest$ac_exeext'
4080 { (eval echo "$as_me:4080: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:4083: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 eval "$ac_ac_var=yes"
4086else
4087 echo "$as_me: failed program was:" >&5
4088cat conftest.$ac_ext >&5
4089eval "$ac_ac_var=no"
4090fi
4091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4092fi
4093echo "$as_me:4093: result: `eval echo '${'$ac_ac_var'}'`" >&5
4094echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4095if test `eval echo '${'$ac_ac_var'}'` = yes; then
4096 cat >>confdefs.h <<EOF
4097#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4098EOF
4099
4100echo "$as_me:4100: checking for _doprnt" >&5
4101echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4102if test "${ac_cv_func__doprnt+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105 cat >conftest.$ac_ext <<_ACEOF
4106#line 4106 "configure"
4107#include "confdefs.h"
4108/* System header to define __stub macros and hopefully few prototypes,
4109 which can conflict with char _doprnt (); below. */
4110#include <assert.h>
4111/* Override any gcc2 internal prototype to avoid an error. */
4112#ifdef __cplusplus
4113extern "C"
4114#endif
4115/* We use char because int might match the return type of a gcc2
4116 builtin and then its argument prototype would still apply. */
4117char _doprnt ();
4118char (*f) ();
4119
4120int
4121main ()
4122{
4123/* The GNU C library defines this for functions which it implements
4124 to always fail with ENOSYS. Some functions are actually named
4125 something starting with __ and the normal name is an alias. */
4126#if defined (__stub__doprnt) || defined (__stub____doprnt)
4127choke me
4128#else
4129f = _doprnt;
4130#endif
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext conftest$ac_exeext
4137if { (eval echo "$as_me:4137: \"$ac_link\"") >&5
4138 (eval $ac_link) 2>&5
4139 ac_status=$?
4140 echo "$as_me:4140: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try='test -s conftest$ac_exeext'
4143 { (eval echo "$as_me:4143: \"$ac_try\"") >&5
4144 (eval $ac_try) 2>&5
4145 ac_status=$?
4146 echo "$as_me:4146: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_cv_func__doprnt=yes
4149else
4150 echo "$as_me: failed program was:" >&5
4151cat conftest.$ac_ext >&5
4152ac_cv_func__doprnt=no
4153fi
4154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4155fi
4156echo "$as_me:4156: result: $ac_cv_func__doprnt" >&5
4157echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4158if test $ac_cv_func__doprnt = yes; then
4159
4160cat >>confdefs.h <<\EOF
4161#define HAVE_DOPRNT 1
4162EOF
4163
4164fi
4165
4166fi
4167done
4168
4169for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
4170do
4171ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4172echo "$as_me:4172: checking for $ac_func" >&5
4173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4174if eval "test \"\${$ac_ac_var+set}\" = set"; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176else
4177 cat >conftest.$ac_ext <<_ACEOF
4178#line 4178 "configure"
4179#include "confdefs.h"
4180/* System header to define __stub macros and hopefully few prototypes,
4181 which can conflict with char $ac_func (); below. */
4182#include <assert.h>
4183/* Override any gcc2 internal prototype to avoid an error. */
4184#ifdef __cplusplus
4185extern "C"
4186#endif
4187/* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4189char $ac_func ();
4190char (*f) ();
4191
4192int
4193main ()
4194{
4195/* The GNU C library defines this for functions which it implements
4196 to always fail with ENOSYS. Some functions are actually named
4197 something starting with __ and the normal name is an alias. */
4198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4199choke me
4200#else
4201f = $ac_func;
4202#endif
4203
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext conftest$ac_exeext
4209if { (eval echo "$as_me:4209: \"$ac_link\"") >&5
4210 (eval $ac_link) 2>&5
4211 ac_status=$?
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -s conftest$ac_exeext'
4215 { (eval echo "$as_me:4215: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 eval "$ac_ac_var=yes"
4221else
4222 echo "$as_me: failed program was:" >&5
4223cat conftest.$ac_ext >&5
4224eval "$ac_ac_var=no"
4225fi
4226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4227fi
4228echo "$as_me:4228: result: `eval echo '${'$ac_ac_var'}'`" >&5
4229echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4230if test `eval echo '${'$ac_ac_var'}'` = yes; then
4231 cat >>confdefs.h <<EOF
4232#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4233EOF
4234
4235fi
4236done
4237
4238for ac_func in ftruncate strstr strcasecmp
4239do
4240ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4241echo "$as_me:4241: checking for $ac_func" >&5
4242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4243if eval "test \"\${$ac_ac_var+set}\" = set"; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246 cat >conftest.$ac_ext <<_ACEOF
4247#line 4247 "configure"
4248#include "confdefs.h"
4249/* System header to define __stub macros and hopefully few prototypes,
4250 which can conflict with char $ac_func (); below. */
4251#include <assert.h>
4252/* Override any gcc2 internal prototype to avoid an error. */
4253#ifdef __cplusplus
4254extern "C"
4255#endif
4256/* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258char $ac_func ();
4259char (*f) ();
4260
4261int
4262main ()
4263{
4264/* The GNU C library defines this for functions which it implements
4265 to always fail with ENOSYS. Some functions are actually named
4266 something starting with __ and the normal name is an alias. */
4267#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4268choke me
4269#else
4270f = $ac_func;
4271#endif
4272
4273 ;
4274 return 0;
4275}
4276_ACEOF
4277rm -f conftest.$ac_objext conftest$ac_exeext
4278if { (eval echo "$as_me:4278: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>&5
4280 ac_status=$?
4281 echo "$as_me:4281: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -s conftest$ac_exeext'
4284 { (eval echo "$as_me:4284: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:4287: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 eval "$ac_ac_var=yes"
4290else
4291 echo "$as_me: failed program was:" >&5
4292cat conftest.$ac_ext >&5
4293eval "$ac_ac_var=no"
4294fi
4295rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4296fi
4297echo "$as_me:4297: result: `eval echo '${'$ac_ac_var'}'`" >&5
4298echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4299if test `eval echo '${'$ac_ac_var'}'` = yes; then
4300 cat >>confdefs.h <<EOF
4301#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4302EOF
4303
4304else
4305 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4306fi
4307done
4308
4309# *** Custom checking (based on GNU tar configure.in) ***
4310# ---------------------------------------------------------------------------
4311echo "$as_me:4311: checking for HP-UX needing gmalloc" >&5
4312echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
4313if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
4314 echo "$as_me:4314: result: yes" >&5
4315echo "${ECHO_T}yes" >&6
4316 LIBOBJS="$LIBOBJS gmalloc.o"
4317 cat >>confdefs.h <<\EOF
4318#define HAVE_VALLOC 1
4319EOF
4320
4321else
4322 echo "$as_me:4322: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324
4325for ac_func in valloc
4326do
4327ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4328echo "$as_me:4328: checking for $ac_func" >&5
4329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4330if eval "test \"\${$ac_ac_var+set}\" = set"; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333 cat >conftest.$ac_ext <<_ACEOF
4334#line 4334 "configure"
4335#include "confdefs.h"
4336/* System header to define __stub macros and hopefully few prototypes,
4337 which can conflict with char $ac_func (); below. */
4338#include <assert.h>
4339/* Override any gcc2 internal prototype to avoid an error. */
4340#ifdef __cplusplus
4341extern "C"
4342#endif
4343/* We use char because int might match the return type of a gcc2
4344 builtin and then its argument prototype would still apply. */
4345char $ac_func ();
4346char (*f) ();
4347
4348int
4349main ()
4350{
4351/* The GNU C library defines this for functions which it implements
4352 to always fail with ENOSYS. Some functions are actually named
4353 something starting with __ and the normal name is an alias. */
4354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4355choke me
4356#else
4357f = $ac_func;
4358#endif
4359
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext conftest$ac_exeext
4365if { (eval echo "$as_me:4365: \"$ac_link\"") >&5
4366 (eval $ac_link) 2>&5
4367 ac_status=$?
4368 echo "$as_me:4368: \$? = $ac_status" >&5
4369 (exit $ac_status); } &&
4370 { ac_try='test -s conftest$ac_exeext'
4371 { (eval echo "$as_me:4371: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:4374: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 eval "$ac_ac_var=yes"
4377else
4378 echo "$as_me: failed program was:" >&5
4379cat conftest.$ac_ext >&5
4380eval "$ac_ac_var=no"
4381fi
4382rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4383fi
4384echo "$as_me:4384: result: `eval echo '${'$ac_ac_var'}'`" >&5
4385echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4386if test `eval echo '${'$ac_ac_var'}'` = yes; then
4387 cat >>confdefs.h <<EOF
4388#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4389EOF
4390
4391fi
4392done
4393
4394fi
4395
4396echo "$as_me:4396: checking if malloc debugging is wanted" >&5
4397echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
4398
4399# Check whether --with-dmalloc or --without-dmalloc was given.
4400if test "${with_dmalloc+set}" = set; then
4401 withval="$with_dmalloc"
4402 if test "$withval" = yes; then
4403 echo "$as_me:4403: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 cat >>confdefs.h <<\EOF
4406#define WITH_DMALLOC 1
4407EOF
4408
4409 LIBS="$LIBS -ldmalloc"
4410 LDFLAGS="$LDFLAGS -g"
4411else
4412 echo "$as_me:4412: result: no" >&5
4413echo "${ECHO_T}no" >&6
4414fi
4415else
4416 echo "$as_me:4416: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418fi;
4419
4420echo "$as_me:4420: checking which of rx or regex is wanted" >&5
4421echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
4422
4423# Check whether --with-regex or --without-regex was given.
4424if test "${with_regex+set}" = set; then
4425 withval="$with_regex"
4426 if test "$withval" = yes; then
4427 ac_with_regex=1
4428 echo "$as_me:4428: result: regex" >&5
4429echo "${ECHO_T}regex" >&6
4430 cat >>confdefs.h <<\EOF
4431#define WITH_REGEX 1
4432EOF
4433
4434 LIBOBJS="$LIBOBJS regex.o"
4435fi
4436fi;
4437if test -z "$ac_with_regex"; then
4438 echo "$as_me:4438: result: rx" >&5
4439echo "${ECHO_T}rx" >&6
4440 echo "$as_me:4440: checking for re_rx_search" >&5
4441echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
4442if test "${ac_cv_func_re_rx_search+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444else
4445 cat >conftest.$ac_ext <<_ACEOF
4446#line 4446 "configure"
4447#include "confdefs.h"
4448/* System header to define __stub macros and hopefully few prototypes,
4449 which can conflict with char re_rx_search (); below. */
4450#include <assert.h>
4451/* Override any gcc2 internal prototype to avoid an error. */
4452#ifdef __cplusplus
4453extern "C"
4454#endif
4455/* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4457char re_rx_search ();
4458char (*f) ();
4459
4460int
4461main ()
4462{
4463/* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
4467choke me
4468#else
4469f = re_rx_search;
4470#endif
4471
4472 ;
4473 return 0;
4474}
4475_ACEOF
4476rm -f conftest.$ac_objext conftest$ac_exeext
4477if { (eval echo "$as_me:4477: \"$ac_link\"") >&5
4478 (eval $ac_link) 2>&5
4479 ac_status=$?
4480 echo "$as_me:4480: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try='test -s conftest$ac_exeext'
4483 { (eval echo "$as_me:4483: \"$ac_try\"") >&5
4484 (eval $ac_try) 2>&5
4485 ac_status=$?
4486 echo "$as_me:4486: \$? = $ac_status" >&5
4487 (exit $ac_status); }; }; then
4488 ac_cv_func_re_rx_search=yes
4489else
4490 echo "$as_me: failed program was:" >&5
4491cat conftest.$ac_ext >&5
4492ac_cv_func_re_rx_search=no
4493fi
4494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4495fi
4496echo "$as_me:4496: result: $ac_cv_func_re_rx_search" >&5
4497echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
4498if test $ac_cv_func_re_rx_search = yes; then
4499 :
4500else
4501 echo "$as_me:4501: checking for unsigned char *" >&5
4502echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
4503if test "${ac_cv_type_unsigned_char_p+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 cat >conftest.$ac_ext <<_ACEOF
4507#line 4507 "configure"
4508#include "confdefs.h"
4509$ac_includes_default
4510int
4511main ()
4512{
4513if ((unsigned char * *) 0)
4514 return 0;
4515if (sizeof (unsigned char *))
4516 return 0;
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521rm -f conftest.$ac_objext
4522if { (eval echo "$as_me:4522: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>&5
4524 ac_status=$?
4525 echo "$as_me:4525: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -s conftest.$ac_objext'
4528 { (eval echo "$as_me:4528: \"$ac_try\"") >&5
4529 (eval $ac_try) 2>&5
4530 ac_status=$?
4531 echo "$as_me:4531: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 ac_cv_type_unsigned_char_p=yes
4534else
4535 echo "$as_me: failed program was:" >&5
4536cat conftest.$ac_ext >&5
4537ac_cv_type_unsigned_char_p=no
4538fi
4539rm -f conftest.$ac_objext conftest.$ac_ext
4540fi
4541echo "$as_me:4541: result: $ac_cv_type_unsigned_char_p" >&5
4542echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
4543
4544echo "$as_me:4544: checking size of unsigned char *" >&5
4545echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
4546if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 if test "$ac_cv_type_unsigned_char_p" = yes; then
4550 if test "$cross_compiling" = yes; then
4551 # Depending upon the size, compute the lo and hi bounds.
4552cat >conftest.$ac_ext <<_ACEOF
4553#line 4553 "configure"
4554#include "confdefs.h"
4555$ac_includes_default
4556int
4557main ()
4558{
4559int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)]
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564rm -f conftest.$ac_objext
4565if { (eval echo "$as_me:4565: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
4567 ac_status=$?
4568 echo "$as_me:4568: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:4571: \"$ac_try\"") >&5
4572 (eval $ac_try) 2>&5
4573 ac_status=$?
4574 echo "$as_me:4574: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 ac_lo=0 ac_mid=0
4577 while :; do
4578 cat >conftest.$ac_ext <<_ACEOF
4579#line 4579 "configure"
4580#include "confdefs.h"
4581$ac_includes_default
4582int
4583main ()
4584{
4585int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
4586 ;
4587 return 0;
4588}
4589_ACEOF
4590rm -f conftest.$ac_objext
4591if { (eval echo "$as_me:4591: \"$ac_compile\"") >&5
4592 (eval $ac_compile) 2>&5
4593 ac_status=$?
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:4597: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:4600: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_hi=$ac_mid; break
4603else
4604 echo "$as_me: failed program was:" >&5
4605cat conftest.$ac_ext >&5
4606ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4607fi
4608rm -f conftest.$ac_objext conftest.$ac_ext
4609 done
4610else
4611 echo "$as_me: failed program was:" >&5
4612cat conftest.$ac_ext >&5
4613ac_hi=-1 ac_mid=-1
4614 while :; do
4615 cat >conftest.$ac_ext <<_ACEOF
4616#line 4616 "configure"
4617#include "confdefs.h"
4618$ac_includes_default
4619int
4620main ()
4621{
4622int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)]
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext
4628if { (eval echo "$as_me:4628: \"$ac_compile\"") >&5
4629 (eval $ac_compile) 2>&5
4630 ac_status=$?
4631 echo "$as_me:4631: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -s conftest.$ac_objext'
4634 { (eval echo "$as_me:4634: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:4637: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_lo=$ac_mid; break
4640else
4641 echo "$as_me: failed program was:" >&5
4642cat conftest.$ac_ext >&5
4643ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4644fi
4645rm -f conftest.$ac_objext conftest.$ac_ext
4646 done
4647fi
4648rm -f conftest.$ac_objext conftest.$ac_ext
4649# Binary search between lo and hi bounds.
4650while test "x$ac_lo" != "x$ac_hi"; do
4651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4652 cat >conftest.$ac_ext <<_ACEOF
4653#line 4653 "configure"
4654#include "confdefs.h"
4655$ac_includes_default
4656int
4657main ()
4658{
4659int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext
4665if { (eval echo "$as_me:4665: \"$ac_compile\"") >&5
4666 (eval $ac_compile) 2>&5
4667 ac_status=$?
4668 echo "$as_me:4668: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:4671: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:4674: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_hi=$ac_mid
4677else
4678 echo "$as_me: failed program was:" >&5
4679cat conftest.$ac_ext >&5
4680ac_lo=`expr $ac_mid + 1`
4681fi
4682rm -f conftest.$ac_objext conftest.$ac_ext
4683done
4684ac_cv_sizeof_unsigned_char_p=$ac_lo
4685else
4686 if test "$cross_compiling" = yes; then
4687 { { echo "$as_me:4687: error: cannot run test program while cross compiling" >&5
4688echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4689 { (exit 1); exit 1; }; }
4690else
4691 cat >conftest.$ac_ext <<_ACEOF
4692#line 4692 "configure"
4693#include "confdefs.h"
4694$ac_includes_default
4695int
4696main ()
4697{
4698FILE *f = fopen ("conftest.val", "w");
4699if (!f)
4700 exit (1);
4701fprintf (f, "%d", (sizeof (unsigned char *)));
4702fclose (f);
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707rm -f conftest$ac_exeext
4708if { (eval echo "$as_me:4708: \"$ac_link\"") >&5
4709 (eval $ac_link) 2>&5
4710 ac_status=$?
4711 echo "$as_me:4711: \$? = $ac_status" >&5
4712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4713 { (eval echo "$as_me:4713: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:4716: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
4719else
4720 echo "$as_me: program exited with status $ac_status" >&5
4721echo "$as_me: failed program was:" >&5
4722cat conftest.$ac_ext >&5
4723fi
4724rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4725fi
4726fi
4727rm -f conftest.val
4728else
4729 ac_cv_sizeof_unsigned_char_p=0
4730fi
4731fi
4732echo "$as_me:4732: result: $ac_cv_sizeof_unsigned_char_p" >&5
4733echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
4734cat >>confdefs.h <<EOF
4735#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
4736EOF
4737
4738 if test "$ac_cv_sizeof_unsigned_char_p" = 8
4739 then
4740 { echo "$as_me:4740: WARNING: I'm forcing you to use regex because I can't
4741 find a local rx library and the one included with this
4742 distribution doesn't work on 64-bit machines like yours" >&5
4743echo "$as_me: WARNING: I'm forcing you to use regex because I can't
4744 find a local rx library and the one included with this
4745 distribution doesn't work on 64-bit machines like yours" >&2;}
4746 LIBOBJS="$LIBOBJS regex.o"
4747 else
4748 LIBOBJS="$LIBOBJS rx.o"
4749 fi
4750
4751fi
4752
4753fi
4754
4755echo "$as_me:4755: checking whether GNU readline requested" >&5
4756echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
4757
4758# Check whether --with-gnu_readline or --without-gnu_readline was given.
4759if test "${with_gnu_readline+set}" = set; then
4760 withval="$with_gnu_readline"
4761 if test "$withval" = yes; then
4762 echo "$as_me:4762: result: yes" >&5
4763echo "${ECHO_T}yes" >&6
4764 ac_with_gnu_readline=1
4765 else
4766 echo "$as_me:4766: result: no" >&5
4767echo "${ECHO_T}no" >&6
4768 fi
4769else
4770 echo "$as_me:4770: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi;
4773
4774 if test -n "$ac_with_gnu_readline"; then
4775 echo "$as_me:4775: checking for readline/readline.h" >&5
4776echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
4777if test "${ac_cv_header_readline_readline_h+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780 cat >conftest.$ac_ext <<_ACEOF
4781#line 4781 "configure"
4782#include "confdefs.h"
4783#include <readline/readline.h>
4784_ACEOF
4785if { (eval echo "$as_me:4785: \"$ac_cpp conftest.$ac_ext\"") >&5
4786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4787 ac_status=$?
4788 egrep -v '^ *\+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:4791: \$? = $ac_status" >&5
4792 (exit $ac_status); } >/dev/null; then
4793 if test -s conftest.err; then
4794 ac_cpp_err=$ac_c_preproc_warn_flag
4795 else
4796 ac_cpp_err=
4797 fi
4798else
4799 ac_cpp_err=yes
4800fi
4801if test -z "$ac_cpp_err"; then
4802 ac_cv_header_readline_readline_h=yes
4803else
4804 echo "$as_me: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 ac_cv_header_readline_readline_h=no
4807fi
4808rm -f conftest.err conftest.$ac_ext
4809fi
4810echo "$as_me:4810: result: $ac_cv_header_readline_readline_h" >&5
4811echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
4812if test $ac_cv_header_readline_readline_h = yes; then
4813 ac_mg_readline_header_found=1
4814else
4815 { echo "$as_me:4815: WARNING: Can't find GNU readline headers; configuring without \
4816GNU readline support" >&5
4817echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
4818GNU readline support" >&2;}
4819fi
4820
4821 if test -n "$ac_mg_readline_header_found"; then
4822 # first check whether we can find the readline library itself
4823 echo "$as_me:4823: checking for main in -lreadline" >&5
4824echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4825if test "${ac_cv_lib_readline_main+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828 ac_check_lib_save_LIBS=$LIBS
4829LIBS="-lreadline $LIBS"
4830cat >conftest.$ac_ext <<_ACEOF
4831#line 4831 "configure"
4832#include "confdefs.h"
4833
4834int
4835main ()
4836{
4837main ();
4838 ;
4839 return 0;
4840}
4841_ACEOF
4842rm -f conftest.$ac_objext conftest$ac_exeext
4843if { (eval echo "$as_me:4843: \"$ac_link\"") >&5
4844 (eval $ac_link) 2>&5
4845 ac_status=$?
4846 echo "$as_me:4846: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
4848 { ac_try='test -s conftest$ac_exeext'
4849 { (eval echo "$as_me:4849: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_lib_readline_main=yes
4855else
4856 echo "$as_me: failed program was:" >&5
4857cat conftest.$ac_ext >&5
4858ac_cv_lib_readline_main=no
4859fi
4860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4861LIBS=$ac_check_lib_save_LIBS
4862fi
4863echo "$as_me:4863: result: $ac_cv_lib_readline_main" >&5
4864echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4865if test $ac_cv_lib_readline_main = yes; then
4866 ac_mg_readline_lib_found=1
4867 cat >>confdefs.h <<\EOF
4868#define WITH_GNU_READLINE 1
4869EOF
4870
4871 LIBS="$LIBS -lreadline"
4872else
4873 { echo "$as_me:4873: WARNING: Can't find GNU readline library; configuring without \
4874GNU readline support" >&5
4875echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
4876GNU readline support" >&2;}
4877fi
4878
4879 if test -n "$ac_mg_readline_lib_found"; then
4880 # on some systems, readline needs curses. It is difficult to
4881 # determine whether this is necessary on the current system,
4882 # since other undefined symbols can be turned up by an
4883 # AC_CHECK_LIB(readline, readline) test that are actually defined
4884 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
4885 # we just bung it on and hope for the best.
4886 echo "$as_me:4886: checking for main in -lcurses" >&5
4887echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
4888if test "${ac_cv_lib_curses_main+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 ac_check_lib_save_LIBS=$LIBS
4892LIBS="-lcurses $LIBS"
4893cat >conftest.$ac_ext <<_ACEOF
4894#line 4894 "configure"
4895#include "confdefs.h"
4896
4897int
4898main ()
4899{
4900main ();
4901 ;
4902 return 0;
4903}
4904_ACEOF
4905rm -f conftest.$ac_objext conftest$ac_exeext
4906if { (eval echo "$as_me:4906: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>&5
4908 ac_status=$?
4909 echo "$as_me:4909: \$? = $ac_status" >&5
4910 (exit $ac_status); } &&
4911 { ac_try='test -s conftest$ac_exeext'
4912 { (eval echo "$as_me:4912: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:4915: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_cv_lib_curses_main=yes
4918else
4919 echo "$as_me: failed program was:" >&5
4920cat conftest.$ac_ext >&5
4921ac_cv_lib_curses_main=no
4922fi
4923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4924LIBS=$ac_check_lib_save_LIBS
4925fi
4926echo "$as_me:4926: result: $ac_cv_lib_curses_main" >&5
4927echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
4928if test $ac_cv_lib_curses_main = yes; then
4929 LIBS="$LIBS -lcurses"
4930fi
4931
4932 fi
4933 fi
4934 fi
4935
4936# ---------------------------------------------------------------------------
4937if test "$ac_cv_func_alloca" = 'no'; then
4938 LIBOBJS="$LIBOBJS xmalloc.o error.o"
4939fi
4940
4941# ---------------------------------------------------------------------------
4942# see if the user wants to override use of long long
4943# Check whether --enable-override-longlong or --disable-override-longlong was given.
4944if test "${enable_override_longlong+set}" = set; then
4945 enableval="$enable_override_longlong"
4946 cat >>confdefs.h <<\EOF
4947#define DISABLE_LONG_LONG 1
4948EOF
4949
4950fi;
4951
4952# ---------------------------------------------------------------------------
4953
4954ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
4955ac_config_commands="$ac_config_commands default"
4956cat >confcache <<\_ACEOF
4957# This file is a shell script that caches the results of configure
4958# tests run on this system so they can be shared between configure
4959# scripts and configure runs, see configure's option --config-cache.
4960# It is not useful on other systems. If it contains results you don't
4961# want to keep, you may remove or edit it.
4962#
4963# config.status only pays attention to the cache file if you give it
4964# the --recheck option to rerun configure.
4965#
4966# `ac_cv_env_foo' variables (set or unset) will be overriden when
4967# loading this file, other *unset* `ac_cv_foo' will be assigned the
4968# following values.
4969
4970_ACEOF
4971
4972# The following way of writing the cache mishandles newlines in values,
4973# but we know of no workaround that is simple, portable, and efficient.
4974# So, don't put newlines in cache variables' values.
4975# Ultrix sh set writes to stderr and can't be redirected directly,
4976# and sets the high bit in the cache file unless we assign to the vars.
4977{
4978 (set) 2>&1 |
4979 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4980 *ac_space=\ *)
4981 # `set' does not quote correctly, so add quotes (double-quote
4982 # substitution turns \\\\ into \\, and sed turns \\ into \).
4983 sed -n \
4984 "s/'/'\\\\''/g;
4985 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4986 ;;
4987 *)
4988 # `set' quotes correctly as required by POSIX, so do not add quotes.
4989 sed -n \
4990 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4991 ;;
4992 esac;
4993} |
4994 sed '
4995 t clear
4996 : clear
4997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4998 t end
4999 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5000 : end' >>confcache
5001if cmp -s $cache_file confcache; then :; else
5002 if test -w $cache_file; then
5003 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5004 cat confcache >$cache_file
5005 else
5006 echo "not updating unwritable cache $cache_file"
5007 fi
5008fi
5009rm -f confcache
5010
5011test "x$prefix" = xNONE && prefix=$ac_default_prefix
5012# Let make expand exec_prefix.
5013test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5014
5015# VPATH may cause trouble with some makes, so we remove $(srcdir),
5016# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5017# trailing colons and then remove the whole line if VPATH becomes empty
5018# (actually we leave an empty line to preserve line numbers).
5019if test "x$srcdir" = x.; then
5020 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5021s/:*\$(srcdir):*/:/;
5022s/:*\${srcdir}:*/:/;
5023s/:*@srcdir@:*/:/;
5024s/^\([^=]*=[ ]*\):*/\1/;
5025s/:*$//;
5026s/^[^=]*=[ ]*$//;
5027}'
5028fi
5029
5030DEFS=-DHAVE_CONFIG_H
5031
5032: ${CONFIG_STATUS=./config.status}
5033ac_clean_files_save=$ac_clean_files
5034ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5035{ echo "$as_me:5035: creating $CONFIG_STATUS" >&5
5036echo "$as_me: creating $CONFIG_STATUS" >&6;}
5037cat >$CONFIG_STATUS <<_ACEOF
5038#! $SHELL
5039# Generated automatically by configure.
5040# Run this file to recreate the current configuration.
5041# Compiler output produced by configure, useful for debugging
5042# configure, is in config.log if it exists.
5043
5044debug=false
5045SHELL=\${CONFIG_SHELL-$SHELL}
5046ac_cs_invocation="\$0 \$@"
5047
5048_ACEOF
5049
5050cat >>$CONFIG_STATUS <<\_ACEOF
5051# Be Bourne compatible
5052if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5053 emulate sh
5054 NULLCMD=:
5055elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5056 set -o posix
5057fi
5058
5059# Name of the executable.
5060as_me=`echo "$0" |sed 's,.*[\\/],,'`
5061
5062if expr a : '\(a\)' >/dev/null 2>&1; then
5063 as_expr=expr
5064else
5065 as_expr=false
5066fi
5067
5068rm -f conf$$ conf$$.exe conf$$.file
5069echo >conf$$.file
5070if ln -s conf$$.file conf$$ 2>/dev/null; then
5071 # We could just check for DJGPP; but this test a) works b) is more generic
5072 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5073 if test -f conf$$.exe; then
5074 # Don't use ln at all; we don't have any links
5075 as_ln_s='cp -p'
5076 else
5077 as_ln_s='ln -s'
5078 fi
5079elif ln conf$$.file conf$$ 2>/dev/null; then
5080 as_ln_s=ln
5081else
5082 as_ln_s='cp -p'
5083fi
5084rm -f conf$$ conf$$.exe conf$$.file
5085
5086as_executable_p="test -f"
5087
5088# Support unset when possible.
5089if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5090 as_unset=unset
5091else
5092 as_unset=false
5093fi
5094
5095# NLS nuisances.
5096$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5097$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5098$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5099$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5100$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5101$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5102$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5103$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5104
5105# IFS
5106# We need space, tab and new line, in precisely that order.
5107as_nl='
5108'
5109IFS=" $as_nl"
5110
5111# CDPATH.
5112$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5113
5114exec 6>&1
5115
5116_ACEOF
5117
5118# Files that config.status was made for.
5119if test -n "$ac_config_files"; then
5120 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5121fi
5122
5123if test -n "$ac_config_headers"; then
5124 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5125fi
5126
5127if test -n "$ac_config_links"; then
5128 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5129fi
5130
5131if test -n "$ac_config_commands"; then
5132 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5133fi
5134
5135cat >>$CONFIG_STATUS <<\EOF
5136
5137ac_cs_usage="\
5138\`$as_me' instantiates files from templates according to the
5139current configuration.
5140
5141Usage: $0 [OPTIONS] [FILE]...
5142
5143 -h, --help print this help, then exit
5144 -V, --version print version number, then exit
5145 -d, --debug don't remove temporary files
5146 --recheck update $as_me by reconfiguring in the same conditions
5147 --file=FILE[:TEMPLATE]
5148 instantiate the configuration file FILE
5149 --header=FILE[:TEMPLATE]
5150 instantiate the configuration header FILE
5151
5152Configuration files:
5153$config_files
5154
5155Configuration headers:
5156$config_headers
5157
5158Configuration commands:
5159$config_commands
5160
5161Report bugs to <[email protected]>."
5162EOF
5163
5164cat >>$CONFIG_STATUS <<EOF
5165ac_cs_version="\\
5166config.status
5167configured by $0, generated by GNU Autoconf 2.50,
5168 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5169
5170Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5171Free Software Foundation, Inc.
5172This config.status script is free software; the Free Software Foundation
5173gives unlimited permission to copy, distribute and modify it."
5174srcdir=$srcdir
5175INSTALL="$INSTALL"
5176EOF
5177
5178cat >>$CONFIG_STATUS <<\EOF
5179# If no file are specified by the user, then we need to provide default
5180# value. By we need to know if files were specified by the user.
5181ac_need_defaults=:
5182while test $# != 0
5183do
5184 case $1 in
5185 --*=*)
5186 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5187 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5188 shift
5189 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5190 shift
5191 ;;
5192 -*);;
5193 *) # This is not an option, so the user has probably given explicit
5194 # arguments.
5195 ac_need_defaults=false;;
5196 esac
5197
5198 case $1 in
5199 # Handling of the options.
5200EOF
5201cat >>$CONFIG_STATUS <<EOF
5202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5203 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5204 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5205EOF
5206cat >>$CONFIG_STATUS <<\EOF
5207 --version | --vers* | -V )
5208 echo "$ac_cs_version"; exit 0 ;;
5209 --he | --h)
5210 # Conflict between --help and --header
5211 { { echo "$as_me:5211: error: ambiguous option: $1
5212Try \`$0 --help' for more information." >&5
5213echo "$as_me: error: ambiguous option: $1
5214Try \`$0 --help' for more information." >&2;}
5215 { (exit 1); exit 1; }; };;
5216 --help | --hel | -h )
5217 echo "$ac_cs_usage"; exit 0 ;;
5218 --debug | --d* | -d )
5219 debug=: ;;
5220 --file | --fil | --fi | --f )
5221 shift
5222 CONFIG_FILES="$CONFIG_FILES $1"
5223 ac_need_defaults=false;;
5224 --header | --heade | --head | --hea )
5225 shift
5226 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5227 ac_need_defaults=false;;
5228
5229 # Handling of arguments.
5230 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5231 'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
5232 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5233 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
5234 'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
5235 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5236 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5237
5238 # This is an error.
5239 -*) { { echo "$as_me:5239: error: unrecognized option: $1
5240Try \`$0 --help' for more information." >&5
5241echo "$as_me: error: unrecognized option: $1
5242Try \`$0 --help' for more information." >&2;}
5243 { (exit 1); exit 1; }; } ;;
5244 *) { { echo "$as_me:5244: error: invalid argument: $1" >&5
5245echo "$as_me: error: invalid argument: $1" >&2;}
5246 { (exit 1); exit 1; }; };;
5247 esac
5248 shift
5249done
5250
5251exec 5>>config.log
5252cat >&5 << _ACEOF
5253
5254## ----------------------- ##
5255## Running config.status. ##
5256## ----------------------- ##
5257
5258This file was extended by $as_me 2.50, executed with
5259 > $ac_cs_invocation
5260on `(hostname || uname -n) 2>/dev/null | sed 1q`
5261
5262_ACEOF
5263EOF
5264
5265cat >>$CONFIG_STATUS <<\EOF
5266# If the user did not use the arguments to specify the items to instantiate,
5267# then the envvar interface is used. Set only those that are not.
5268# We use the long form for the default assignment because of an extremely
5269# bizarre bug on SunOS 4.1.3.
5270if $ac_need_defaults; then
5271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5274fi
5275
5276# Create a temporary directory, and hook for its removal unless debugging.
5277$debug ||
5278{
5279 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5280 trap '{ (exit $?); exit $?; }' 1 2 13 15
5281}
5282
5283# Create a (secure) tmp directory for tmp files.
5284: ${TMPDIR=/tmp}
5285{
5286 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5287 test -n "$tmp" && test -d "$tmp"
5288} ||
5289{
5290 tmp=$TMPDIR/cs$$-$RANDOM
5291 (umask 077 && mkdir $tmp)
5292} ||
5293{
5294 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5295 { (exit 1); exit 1; }
5296}
5297
5298EOF
5299
5300cat >>$CONFIG_STATUS <<EOF
5301
5302#
5303# CONFIG_FILES section.
5304#
5305
5306# No need to generate the scripts if there are no CONFIG_FILES.
5307# This happens for instance when ./config.status config.h
5308if test -n "\$CONFIG_FILES"; then
5309 # Protect against being on the right side of a sed subst in config.status.
5310 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5311 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5312s,@SHELL@,$SHELL,;t t
5313s,@exec_prefix@,$exec_prefix,;t t
5314s,@prefix@,$prefix,;t t
5315s,@program_transform_name@,$program_transform_name,;t t
5316s,@bindir@,$bindir,;t t
5317s,@sbindir@,$sbindir,;t t
5318s,@libexecdir@,$libexecdir,;t t
5319s,@datadir@,$datadir,;t t
5320s,@sysconfdir@,$sysconfdir,;t t
5321s,@sharedstatedir@,$sharedstatedir,;t t
5322s,@localstatedir@,$localstatedir,;t t
5323s,@libdir@,$libdir,;t t
5324s,@includedir@,$includedir,;t t
5325s,@oldincludedir@,$oldincludedir,;t t
5326s,@infodir@,$infodir,;t t
5327s,@mandir@,$mandir,;t t
5328s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5329s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5330s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5331s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5332s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5333s,@ECHO_C@,$ECHO_C,;t t
5334s,@ECHO_N@,$ECHO_N,;t t
5335s,@ECHO_T@,$ECHO_T,;t t
5336s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5337s,@DEFS@,$DEFS,;t t
5338s,@LIBS@,$LIBS,;t t
5339s,@PACKAGE@,$PACKAGE,;t t
5340s,@VERSION@,$VERSION,;t t
5341s,@CXX@,$CXX,;t t
5342s,@CXXFLAGS@,$CXXFLAGS,;t t
5343s,@LDFLAGS@,$LDFLAGS,;t t
5344s,@CPPFLAGS@,$CPPFLAGS,;t t
5345s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5346s,@EXEEXT@,$EXEEXT,;t t
5347s,@OBJEXT@,$OBJEXT,;t t
5348s,@AWK@,$AWK,;t t
5349s,@YACC@,$YACC,;t t
5350s,@CC@,$CC,;t t
5351s,@CFLAGS@,$CFLAGS,;t t
5352s,@ac_ct_CC@,$ac_ct_CC,;t t
5353s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5354s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5355s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5356s,@LN_S@,$LN_S,;t t
5357s,@SET_MAKE@,$SET_MAKE,;t t
5358s,@RANLIB@,$RANLIB,;t t
5359s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5360s,@CPP@,$CPP,;t t
5361s,@U@,$U,;t t
5362s,@ANSI2KNR@,$ANSI2KNR,;t t
5363s,@ALLOCA@,$ALLOCA,;t t
5364s,@LIBOBJS@,$LIBOBJS,;t t
5365CEOF
5366
5367EOF
5368
5369 cat >>$CONFIG_STATUS <<\EOF
5370 # Split the substitutions into bite-sized pieces for seds with
5371 # small command number limits, like on Digital OSF/1 and HP-UX.
5372 ac_max_sed_lines=48
5373 ac_sed_frag=1 # Number of current file.
5374 ac_beg=1 # First line for current file.
5375 ac_end=$ac_max_sed_lines # Line after last line for current file.
5376 ac_more_lines=:
5377 ac_sed_cmds=
5378 while $ac_more_lines; do
5379 if test $ac_beg -gt 1; then
5380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5381 else
5382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5383 fi
5384 if test ! -s $tmp/subs.frag; then
5385 ac_more_lines=false
5386 else
5387 # The purpose of the label and of the branching condition is to
5388 # speed up the sed processing (if there are no `@' at all, there
5389 # is no need to browse any of the substitutions).
5390 # These are the two extra sed commands mentioned above.
5391 (echo ':t
5392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5393 if test -z "$ac_sed_cmds"; then
5394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5395 else
5396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5397 fi
5398 ac_sed_frag=`expr $ac_sed_frag + 1`
5399 ac_beg=$ac_end
5400 ac_end=`expr $ac_end + $ac_max_sed_lines`
5401 fi
5402 done
5403 if test -z "$ac_sed_cmds"; then
5404 ac_sed_cmds=cat
5405 fi
5406fi # test -n "$CONFIG_FILES"
5407
5408EOF
5409cat >>$CONFIG_STATUS <<\EOF
5410for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5412 case $ac_file in
5413 - | *:- | *:-:* ) # input from stdin
5414 cat >$tmp/stdin
5415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5419 * ) ac_file_in=$ac_file.in ;;
5420 esac
5421
5422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5423 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5424 X"$ac_file" : 'X\(//\)[^/]' \| \
5425 X"$ac_file" : 'X\(//\)$' \| \
5426 X"$ac_file" : 'X\(/\)' \| \
5427 . : '\(.\)' 2>/dev/null ||
5428echo X"$ac_file" |
5429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5431 /^X\(\/\/\)$/{ s//\1/; q; }
5432 /^X\(\/\).*/{ s//\1/; q; }
5433 s/.*/./; q'`
5434 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5435 { case "$ac_dir" in
5436 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5437 *) as_incr_dir=.;;
5438esac
5439as_dummy="$ac_dir"
5440for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5441 case $as_mkdir_dir in
5442 # Skip DOS drivespec
5443 ?:) as_incr_dir=$as_mkdir_dir ;;
5444 *)
5445 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5446 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5447 ;;
5448 esac
5449done; }
5450
5451 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5452 # A "../" for each directory in $ac_dir_suffix.
5453 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5454 else
5455 ac_dir_suffix= ac_dots=
5456 fi
5457
5458 case $srcdir in
5459 .) ac_srcdir=.
5460 if test -z "$ac_dots"; then
5461 ac_top_srcdir=.
5462 else
5463 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5464 fi ;;
5465 [\\/]* | ?:[\\/]* )
5466 ac_srcdir=$srcdir$ac_dir_suffix;
5467 ac_top_srcdir=$srcdir ;;
5468 *) # Relative path.
5469 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5470 ac_top_srcdir=$ac_dots$srcdir ;;
5471 esac
5472
5473 case $INSTALL in
5474 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5475 *) ac_INSTALL=$ac_dots$INSTALL ;;
5476 esac
5477
5478 if test x"$ac_file" != x-; then
5479 { echo "$as_me:5479: creating $ac_file" >&5
5480echo "$as_me: creating $ac_file" >&6;}
5481 rm -f "$ac_file"
5482 fi
5483 # Let's still pretend it is `configure' which instantiates (i.e., don't
5484 # use $as_me), people would be surprised to read:
5485 # /* config.h. Generated automatically by config.status. */
5486 configure_input="Generated automatically from `echo $ac_file_in |
5487 sed 's,.*/,,'` by configure."
5488
5489 # First look for the input files in the build tree, otherwise in the
5490 # src tree.
5491 ac_file_inputs=`IFS=:
5492 for f in $ac_file_in; do
5493 case $f in
5494 -) echo $tmp/stdin ;;
5495 [\\/$]*)
5496 # Absolute (can't be DOS-style, as IFS=:)
5497 test -f "$f" || { { echo "$as_me:5497: error: cannot find input file: $f" >&5
5498echo "$as_me: error: cannot find input file: $f" >&2;}
5499 { (exit 1); exit 1; }; }
5500 echo $f;;
5501 *) # Relative
5502 if test -f "$f"; then
5503 # Build tree
5504 echo $f
5505 elif test -f "$srcdir/$f"; then
5506 # Source tree
5507 echo $srcdir/$f
5508 else
5509 # /dev/null tree
5510 { { echo "$as_me:5510: error: cannot find input file: $f" >&5
5511echo "$as_me: error: cannot find input file: $f" >&2;}
5512 { (exit 1); exit 1; }; }
5513 fi;;
5514 esac
5515 done` || { (exit 1); exit 1; }
5516EOF
5517cat >>$CONFIG_STATUS <<EOF
5518 sed "$ac_vpsub
5519$extrasub
5520EOF
5521cat >>$CONFIG_STATUS <<\EOF
5522:t
5523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5524s,@configure_input@,$configure_input,;t t
5525s,@srcdir@,$ac_srcdir,;t t
5526s,@top_srcdir@,$ac_top_srcdir,;t t
5527s,@INSTALL@,$ac_INSTALL,;t t
5528" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5529 rm -f $tmp/stdin
5530 if test x"$ac_file" != x-; then
5531 mv $tmp/out $ac_file
5532 else
5533 cat $tmp/out
5534 rm -f $tmp/out
5535 fi
5536
5537done
5538EOF
5539cat >>$CONFIG_STATUS <<\EOF
5540
5541#
5542# CONFIG_HEADER section.
5543#
5544
5545# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5546# NAME is the cpp macro being defined and VALUE is the value it is being given.
5547#
5548# ac_d sets the value in "#define NAME VALUE" lines.
5549ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5550ac_dB='[ ].*$,\1#\2'
5551ac_dC=' '
5552ac_dD=',;t'
5553# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5554ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5555ac_uB='$,\1#\2define\3'
5556ac_uC=' '
5557ac_uD=',;t'
5558
5559for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5560 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5561 case $ac_file in
5562 - | *:- | *:-:* ) # input from stdin
5563 cat >$tmp/stdin
5564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5568 * ) ac_file_in=$ac_file.in ;;
5569 esac
5570
5571 test x"$ac_file" != x- && { echo "$as_me:5571: creating $ac_file" >&5
5572echo "$as_me: creating $ac_file" >&6;}
5573
5574 # First look for the input files in the build tree, otherwise in the
5575 # src tree.
5576 ac_file_inputs=`IFS=:
5577 for f in $ac_file_in; do
5578 case $f in
5579 -) echo $tmp/stdin ;;
5580 [\\/$]*)
5581 # Absolute (can't be DOS-style, as IFS=:)
5582 test -f "$f" || { { echo "$as_me:5582: error: cannot find input file: $f" >&5
5583echo "$as_me: error: cannot find input file: $f" >&2;}
5584 { (exit 1); exit 1; }; }
5585 echo $f;;
5586 *) # Relative
5587 if test -f "$f"; then
5588 # Build tree
5589 echo $f
5590 elif test -f "$srcdir/$f"; then
5591 # Source tree
5592 echo $srcdir/$f
5593 else
5594 # /dev/null tree
5595 { { echo "$as_me:5595: error: cannot find input file: $f" >&5
5596echo "$as_me: error: cannot find input file: $f" >&2;}
5597 { (exit 1); exit 1; }; }
5598 fi;;
5599 esac
5600 done` || { (exit 1); exit 1; }
5601 # Remove the trailing spaces.
5602 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5603
5604EOF
5605
5606# Transform confdefs.h into two sed scripts, `conftest.defines' and
5607# `conftest.undefs', that substitutes the proper values into
5608# config.h.in to produce config.h. The first handles `#define'
5609# templates, and the second `#undef' templates.
5610# And first: Protect against being on the right side of a sed subst in
5611# config.status. Protect against being in an unquoted here document
5612# in config.status.
5613rm -f conftest.defines conftest.undefs
5614# Using a here document instead of a string reduces the quoting nightmare.
5615# Putting comments in sed scripts is not portable.
5616#
5617# `end' is used to avoid that the second main sed command (meant for
5618# 0-ary CPP macros) applies to n-ary macro definitions.
5619# See the Autoconf documentation for `clear'.
5620cat >confdef2sed.sed <<\EOF
5621s/[\\&,]/\\&/g
5622s,[\\$`],\\&,g
5623t clear
5624: clear
5625s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5626t end
5627s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5628: end
5629EOF
5630# If some macros were called several times there might be several times
5631# the same #defines, which is useless. Nevertheless, we may not want to
5632# sort them, since we want the *last* AC-DEFINE to be honored.
5633uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5634sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5635rm -f confdef2sed.sed
5636
5637# This sed command replaces #undef with comments. This is necessary, for
5638# example, in the case of _POSIX_SOURCE, which is predefined and required
5639# on some systems where configure will not decide to define it.
5640cat >>conftest.undefs <<\EOF
5641s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5642EOF
5643
5644# Break up conftest.defines because some shells have a limit on the size
5645# of here documents, and old seds have small limits too (100 cmds).
5646echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5647echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5648echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5649echo ' :' >>$CONFIG_STATUS
5650rm -f conftest.tail
5651while grep . conftest.defines >/dev/null
5652do
5653 # Write a limited-size here document to $tmp/defines.sed.
5654 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5655 # Speed up: don't consider the non `#define' lines.
5656 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5657 # Work around the forget-to-reset-the-flag bug.
5658 echo 't clr' >>$CONFIG_STATUS
5659 echo ': clr' >>$CONFIG_STATUS
5660 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5661 echo 'CEOF
5662 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5663 rm -f $tmp/in
5664 mv $tmp/out $tmp/in
5665' >>$CONFIG_STATUS
5666 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5667 rm -f conftest.defines
5668 mv conftest.tail conftest.defines
5669done
5670rm -f conftest.defines
5671echo ' fi # egrep' >>$CONFIG_STATUS
5672echo >>$CONFIG_STATUS
5673
5674# Break up conftest.undefs because some shells have a limit on the size
5675# of here documents, and old seds have small limits too (100 cmds).
5676echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5677rm -f conftest.tail
5678while grep . conftest.undefs >/dev/null
5679do
5680 # Write a limited-size here document to $tmp/undefs.sed.
5681 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5682 # Speed up: don't consider the non `#undef'
5683 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5684 # Work around the forget-to-reset-the-flag bug.
5685 echo 't clr' >>$CONFIG_STATUS
5686 echo ': clr' >>$CONFIG_STATUS
5687 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5688 echo 'CEOF
5689 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5690 rm -f $tmp/in
5691 mv $tmp/out $tmp/in
5692' >>$CONFIG_STATUS
5693 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5694 rm -f conftest.undefs
5695 mv conftest.tail conftest.undefs
5696done
5697rm -f conftest.undefs
5698
5699cat >>$CONFIG_STATUS <<\EOF
5700 # Let's still pretend it is `configure' which instantiates (i.e., don't
5701 # use $as_me), people would be surprised to read:
5702 # /* config.h. Generated automatically by config.status. */
5703 if test x"$ac_file" = x-; then
5704 echo "/* Generated automatically by configure. */" >$tmp/config.h
5705 else
5706 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5707 fi
5708 cat $tmp/in >>$tmp/config.h
5709 rm -f $tmp/in
5710 if test x"$ac_file" != x-; then
5711 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5712 { echo "$as_me:5712: $ac_file is unchanged" >&5
5713echo "$as_me: $ac_file is unchanged" >&6;}
5714 else
5715 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5716 X"$ac_file" : 'X\(//\)[^/]' \| \
5717 X"$ac_file" : 'X\(//\)$' \| \
5718 X"$ac_file" : 'X\(/\)' \| \
5719 . : '\(.\)' 2>/dev/null ||
5720echo X"$ac_file" |
5721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5723 /^X\(\/\/\)$/{ s//\1/; q; }
5724 /^X\(\/\).*/{ s//\1/; q; }
5725 s/.*/./; q'`
5726 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5727 { case "$ac_dir" in
5728 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5729 *) as_incr_dir=.;;
5730esac
5731as_dummy="$ac_dir"
5732for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5733 case $as_mkdir_dir in
5734 # Skip DOS drivespec
5735 ?:) as_incr_dir=$as_mkdir_dir ;;
5736 *)
5737 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5738 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5739 ;;
5740 esac
5741done; }
5742
5743 fi
5744 rm -f $ac_file
5745 mv $tmp/config.h $ac_file
5746 fi
5747 else
5748 cat $tmp/config.h
5749 rm -f $tmp/config.h
5750 fi
5751done
5752EOF
5753cat >>$CONFIG_STATUS <<\EOF
5754
5755#
5756# CONFIG_COMMANDS section.
5757#
5758for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5759 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5760 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5761
5762 case $ac_dest in
5763 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5764 esac
5765done
5766EOF
5767
5768cat >>$CONFIG_STATUS <<\EOF
5769
5770{ (exit 0); exit 0; }
5771EOF
5772chmod +x $CONFIG_STATUS
5773ac_clean_files=$ac_clean_files_save
5774
5775# configure is writing to config.log, and then calls config.status.
5776# config.status does its own redirection, appending to config.log.
5777# Unfortunately, on DOS this fails, as config.log is still kept open
5778# by configure, so config.status won't be able to write to it; its
5779# output is simply discarded. So we exec the FD to /dev/null,
5780# effectively closing config.log, so it can be properly (re)opened and
5781# appended to by config.status. When coming back to configure, we
5782# need to make the FD available again.
5783if test "$no_create" != yes; then
5784 ac_cs_success=:
5785 exec 5>/dev/null
5786 $SHELL $CONFIG_STATUS || ac_cs_success=false
5787 exec 5>>config.log
5788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5789 # would make configure fail if this is the last instruction.
5790 $ac_cs_success || { (exit 1); exit 1; }
5791fi
5792
Note: See TracBrowser for help on using the repository browser.