source: trunk/mgpp/configure@ 9778

Last change on this file since 9778 was 8063, checked in by kjdon, 20 years ago

added a fix to get ENABLE_NLS working

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 166.4 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
978LDFLAGS=
979
980cat >>confdefs.h <<EOF
981#define PACKAGE "$PACKAGE"
982EOF
983
984cat >>confdefs.h <<EOF
985#define VERSION "$VERSION"
986EOF
987
988ac_ext=cc
989ac_cpp='$CXXCPP $CPPFLAGS'
990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
993if test -n "$ac_tool_prefix"; then
994 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
995 do
996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
998echo "$as_me:998: checking for $ac_word" >&5
999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1000if test "${ac_cv_prog_CXX+set}" = set; then
1001 echo $ECHO_N "(cached) $ECHO_C" >&6
1002else
1003 if test -n "$CXX"; then
1004 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1005else
1006 ac_save_IFS=$IFS; IFS=$ac_path_separator
1007ac_dummy="$PATH"
1008for ac_dir in $ac_dummy; do
1009 IFS=$ac_save_IFS
1010 test -z "$ac_dir" && ac_dir=.
1011 $as_executable_p "$ac_dir/$ac_word" || continue
1012ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1013echo "$as_me:1013: found $ac_dir/$ac_word" >&5
1014break
1015done
1016
1017fi
1018fi
1019CXX=$ac_cv_prog_CXX
1020if test -n "$CXX"; then
1021 echo "$as_me:1021: result: $CXX" >&5
1022echo "${ECHO_T}$CXX" >&6
1023else
1024 echo "$as_me:1024: result: no" >&5
1025echo "${ECHO_T}no" >&6
1026fi
1027
1028 test -n "$CXX" && break
1029 done
1030fi
1031if test -z "$CXX"; then
1032 ac_ct_CXX=$CXX
1033 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC
1034do
1035 # Extract the first word of "$ac_prog", so it can be a program name with args.
1036set dummy $ac_prog; ac_word=$2
1037echo "$as_me:1037: checking for $ac_word" >&5
1038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1039if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1040 echo $ECHO_N "(cached) $ECHO_C" >&6
1041else
1042 if test -n "$ac_ct_CXX"; then
1043 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1044else
1045 ac_save_IFS=$IFS; IFS=$ac_path_separator
1046ac_dummy="$PATH"
1047for ac_dir in $ac_dummy; do
1048 IFS=$ac_save_IFS
1049 test -z "$ac_dir" && ac_dir=.
1050 $as_executable_p "$ac_dir/$ac_word" || continue
1051ac_cv_prog_ac_ct_CXX="$ac_prog"
1052echo "$as_me:1052: found $ac_dir/$ac_word" >&5
1053break
1054done
1055
1056fi
1057fi
1058ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1059if test -n "$ac_ct_CXX"; then
1060 echo "$as_me:1060: result: $ac_ct_CXX" >&5
1061echo "${ECHO_T}$ac_ct_CXX" >&6
1062else
1063 echo "$as_me:1063: result: no" >&5
1064echo "${ECHO_T}no" >&6
1065fi
1066
1067 test -n "$ac_ct_CXX" && break
1068done
1069test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1070
1071 CXX=$ac_ct_CXX
1072fi
1073
1074cat >conftest.$ac_ext <<_ACEOF
1075#line 1075 "configure"
1076#include "confdefs.h"
1077
1078int
1079main ()
1080{
1081
1082 ;
1083 return 0;
1084}
1085_ACEOF
1086ac_clean_files_save=$ac_clean_files
1087ac_clean_files="$ac_clean_files a.out a.exe"
1088# Try to create an executable without -o first, disregard a.out.
1089# It will help us diagnose broken compiler, and finding out an intuition
1090# of exeext.
1091echo "$as_me:1091: checking for C++ compiler default output" >&5
1092echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1093ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1094if { (eval echo "$as_me:1094: \"$ac_link_default\"") >&5
1095 (eval $ac_link_default) 2>&5
1096 ac_status=$?
1097 echo "$as_me:1097: \$? = $ac_status" >&5
1098 (exit $ac_status); }; then
1099 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1100 case $ac_file in
1101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1102 a.out ) # We found the default executable, but exeext='' is most
1103 # certainly right.
1104 break;;
1105 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1106 export ac_cv_exeext
1107 break;;
1108 * ) break;;
1109 esac
1110done
1111else
1112 echo "$as_me: failed program was:" >&5
1113cat conftest.$ac_ext >&5
1114{ { echo "$as_me:1114: error: C++ compiler cannot create executables" >&5
1115echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1116 { (exit 77); exit 77; }; }
1117fi
1118
1119ac_exeext=$ac_cv_exeext
1120echo "$as_me:1120: result: $ac_file" >&5
1121echo "${ECHO_T}$ac_file" >&6
1122
1123# Check the compiler produces executables we can run. If not, either
1124# the compiler is broken, or we cross compile.
1125echo "$as_me:1125: checking whether the C++ compiler works" >&5
1126echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1127# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1128# If not cross compiling, check that we can run a simple program.
1129if test "$cross_compiling" != yes; then
1130 if { ac_try='./$ac_file'
1131 { (eval echo "$as_me:1131: \"$ac_try\"") >&5
1132 (eval $ac_try) 2>&5
1133 ac_status=$?
1134 echo "$as_me:1134: \$? = $ac_status" >&5
1135 (exit $ac_status); }; }; then
1136 cross_compiling=no
1137 else
1138 if test "$cross_compiling" = maybe; then
1139 cross_compiling=yes
1140 else
1141 { { echo "$as_me:1141: error: cannot run C++ compiled programs.
1142If you meant to cross compile, use \`--host'." >&5
1143echo "$as_me: error: cannot run C++ compiled programs.
1144If you meant to cross compile, use \`--host'." >&2;}
1145 { (exit 1); exit 1; }; }
1146 fi
1147 fi
1148fi
1149echo "$as_me:1149: result: yes" >&5
1150echo "${ECHO_T}yes" >&6
1151
1152rm -f a.out a.exe conftest$ac_cv_exeext
1153ac_clean_files=$ac_clean_files_save
1154# Check the compiler produces executables we can run. If not, either
1155# the compiler is broken, or we cross compile.
1156echo "$as_me:1156: checking whether we are cross compiling" >&5
1157echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1158echo "$as_me:1158: result: $cross_compiling" >&5
1159echo "${ECHO_T}$cross_compiling" >&6
1160
1161echo "$as_me:1161: checking for executable suffix" >&5
1162echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1163if { (eval echo "$as_me:1163: \"$ac_link\"") >&5
1164 (eval $ac_link) 2>&5
1165 ac_status=$?
1166 echo "$as_me:1166: \$? = $ac_status" >&5
1167 (exit $ac_status); }; then
1168 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1169# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1170# work properly (i.e., refer to `conftest.exe'), while it won't with
1171# `rm'.
1172for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1173 case $ac_file in
1174 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1175 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1176 export ac_cv_exeext
1177 break;;
1178 * ) break;;
1179 esac
1180done
1181else
1182 { { echo "$as_me:1182: error: cannot compute EXEEXT: cannot compile and link" >&5
1183echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1184 { (exit 1); exit 1; }; }
1185fi
1186
1187rm -f conftest$ac_cv_exeext
1188echo "$as_me:1188: result: $ac_cv_exeext" >&5
1189echo "${ECHO_T}$ac_cv_exeext" >&6
1190
1191rm -f conftest.$ac_ext
1192EXEEXT=$ac_cv_exeext
1193ac_exeext=$EXEEXT
1194echo "$as_me:1194: checking for object suffix" >&5
1195echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1196if test "${ac_cv_objext+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1198else
1199 cat >conftest.$ac_ext <<_ACEOF
1200#line 1200 "configure"
1201#include "confdefs.h"
1202
1203int
1204main ()
1205{
1206
1207 ;
1208 return 0;
1209}
1210_ACEOF
1211rm -f conftest.o conftest.obj
1212if { (eval echo "$as_me:1212: \"$ac_compile\"") >&5
1213 (eval $ac_compile) 2>&5
1214 ac_status=$?
1215 echo "$as_me:1215: \$? = $ac_status" >&5
1216 (exit $ac_status); }; then
1217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1218 case $ac_file in
1219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1221 break;;
1222 esac
1223done
1224else
1225 echo "$as_me: failed program was:" >&5
1226cat conftest.$ac_ext >&5
1227{ { echo "$as_me:1227: error: cannot compute OBJEXT: cannot compile" >&5
1228echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1229 { (exit 1); exit 1; }; }
1230fi
1231
1232rm -f conftest.$ac_cv_objext conftest.$ac_ext
1233fi
1234echo "$as_me:1234: result: $ac_cv_objext" >&5
1235echo "${ECHO_T}$ac_cv_objext" >&6
1236OBJEXT=$ac_cv_objext
1237ac_objext=$OBJEXT
1238echo "$as_me:1238: checking whether we are using the GNU C++ compiler" >&5
1239echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1240if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1241 echo $ECHO_N "(cached) $ECHO_C" >&6
1242else
1243 cat >conftest.$ac_ext <<_ACEOF
1244#line 1244 "configure"
1245#include "confdefs.h"
1246
1247int
1248main ()
1249{
1250#ifndef __GNUC__
1251 choke me
1252#endif
1253
1254 ;
1255 return 0;
1256}
1257_ACEOF
1258rm -f conftest.$ac_objext
1259if { (eval echo "$as_me:1259: \"$ac_compile\"") >&5
1260 (eval $ac_compile) 2>&5
1261 ac_status=$?
1262 echo "$as_me:1262: \$? = $ac_status" >&5
1263 (exit $ac_status); } &&
1264 { ac_try='test -s conftest.$ac_objext'
1265 { (eval echo "$as_me:1265: \"$ac_try\"") >&5
1266 (eval $ac_try) 2>&5
1267 ac_status=$?
1268 echo "$as_me:1268: \$? = $ac_status" >&5
1269 (exit $ac_status); }; }; then
1270 ac_compiler_gnu=yes
1271else
1272 echo "$as_me: failed program was:" >&5
1273cat conftest.$ac_ext >&5
1274ac_compiler_gnu=no
1275fi
1276rm -f conftest.$ac_objext conftest.$ac_ext
1277ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1278
1279fi
1280echo "$as_me:1280: result: $ac_cv_cxx_compiler_gnu" >&5
1281echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1282GXX=`test $ac_compiler_gnu = yes && echo yes`
1283ac_test_CXXFLAGS=${CXXFLAGS+set}
1284ac_save_CXXFLAGS=$CXXFLAGS
1285CXXFLAGS="-g"
1286echo "$as_me:1286: checking whether $CXX accepts -g" >&5
1287echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1288if test "${ac_cv_prog_cxx_g+set}" = set; then
1289 echo $ECHO_N "(cached) $ECHO_C" >&6
1290else
1291 cat >conftest.$ac_ext <<_ACEOF
1292#line 1292 "configure"
1293#include "confdefs.h"
1294
1295int
1296main ()
1297{
1298
1299 ;
1300 return 0;
1301}
1302_ACEOF
1303rm -f conftest.$ac_objext
1304if { (eval echo "$as_me:1304: \"$ac_compile\"") >&5
1305 (eval $ac_compile) 2>&5
1306 ac_status=$?
1307 echo "$as_me:1307: \$? = $ac_status" >&5
1308 (exit $ac_status); } &&
1309 { ac_try='test -s conftest.$ac_objext'
1310 { (eval echo "$as_me:1310: \"$ac_try\"") >&5
1311 (eval $ac_try) 2>&5
1312 ac_status=$?
1313 echo "$as_me:1313: \$? = $ac_status" >&5
1314 (exit $ac_status); }; }; then
1315 ac_cv_prog_cxx_g=yes
1316else
1317 echo "$as_me: failed program was:" >&5
1318cat conftest.$ac_ext >&5
1319ac_cv_prog_cxx_g=no
1320fi
1321rm -f conftest.$ac_objext conftest.$ac_ext
1322fi
1323echo "$as_me:1323: result: $ac_cv_prog_cxx_g" >&5
1324echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1325if test "$ac_test_CXXFLAGS" = set; then
1326 CXXFLAGS=$ac_save_CXXFLAGS
1327elif test $ac_cv_prog_cxx_g = yes; then
1328 if test "$GXX" = yes; then
1329 CXXFLAGS="-g -O2"
1330 else
1331 CXXFLAGS="-g"
1332 fi
1333else
1334 if test "$GXX" = yes; then
1335 CXXFLAGS="-O2"
1336 else
1337 CXXFLAGS=
1338 fi
1339fi
1340for ac_declaration in \
1341 ''\
1342 '#include <stdlib.h>' \
1343 'extern "C" void std::exit (int) throw (); using std::exit;' \
1344 'extern "C" void std::exit (int); using std::exit;' \
1345 'extern "C" void exit (int) throw ();' \
1346 'extern "C" void exit (int);' \
1347 'void exit (int);'
1348do
1349 cat >conftest.$ac_ext <<_ACEOF
1350#line 1350 "configure"
1351#include "confdefs.h"
1352#include <stdlib.h>
1353$ac_declaration
1354int
1355main ()
1356{
1357exit (42);
1358 ;
1359 return 0;
1360}
1361_ACEOF
1362rm -f conftest.$ac_objext
1363if { (eval echo "$as_me:1363: \"$ac_compile\"") >&5
1364 (eval $ac_compile) 2>&5
1365 ac_status=$?
1366 echo "$as_me:1366: \$? = $ac_status" >&5
1367 (exit $ac_status); } &&
1368 { ac_try='test -s conftest.$ac_objext'
1369 { (eval echo "$as_me:1369: \"$ac_try\"") >&5
1370 (eval $ac_try) 2>&5
1371 ac_status=$?
1372 echo "$as_me:1372: \$? = $ac_status" >&5
1373 (exit $ac_status); }; }; then
1374 :
1375else
1376 echo "$as_me: failed program was:" >&5
1377cat conftest.$ac_ext >&5
1378continue
1379fi
1380rm -f conftest.$ac_objext conftest.$ac_ext
1381 cat >conftest.$ac_ext <<_ACEOF
1382#line 1382 "configure"
1383#include "confdefs.h"
1384$ac_declaration
1385int
1386main ()
1387{
1388exit (42);
1389 ;
1390 return 0;
1391}
1392_ACEOF
1393rm -f conftest.$ac_objext
1394if { (eval echo "$as_me:1394: \"$ac_compile\"") >&5
1395 (eval $ac_compile) 2>&5
1396 ac_status=$?
1397 echo "$as_me:1397: \$? = $ac_status" >&5
1398 (exit $ac_status); } &&
1399 { ac_try='test -s conftest.$ac_objext'
1400 { (eval echo "$as_me:1400: \"$ac_try\"") >&5
1401 (eval $ac_try) 2>&5
1402 ac_status=$?
1403 echo "$as_me:1403: \$? = $ac_status" >&5
1404 (exit $ac_status); }; }; then
1405 break
1406else
1407 echo "$as_me: failed program was:" >&5
1408cat conftest.$ac_ext >&5
1409fi
1410rm -f conftest.$ac_objext conftest.$ac_ext
1411done
1412echo '#ifdef __cplusplus' >>confdefs.h
1413echo $ac_declaration >>confdefs.h
1414echo '#endif' >>confdefs.h
1415
1416ac_ext=c
1417ac_cpp='$CPP $CPPFLAGS'
1418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1420ac_compiler_gnu=$ac_cv_c_compiler_gnu
1421
1422for ac_prog in mawk gawk nawk awk
1423do
1424 # Extract the first word of "$ac_prog", so it can be a program name with args.
1425set dummy $ac_prog; ac_word=$2
1426echo "$as_me:1426: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428if test "${ac_cv_prog_AWK+set}" = set; then
1429 echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431 if test -n "$AWK"; then
1432 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1433else
1434 ac_save_IFS=$IFS; IFS=$ac_path_separator
1435ac_dummy="$PATH"
1436for ac_dir in $ac_dummy; do
1437 IFS=$ac_save_IFS
1438 test -z "$ac_dir" && ac_dir=.
1439 $as_executable_p "$ac_dir/$ac_word" || continue
1440ac_cv_prog_AWK="$ac_prog"
1441echo "$as_me:1441: found $ac_dir/$ac_word" >&5
1442break
1443done
1444
1445fi
1446fi
1447AWK=$ac_cv_prog_AWK
1448if test -n "$AWK"; then
1449 echo "$as_me:1449: result: $AWK" >&5
1450echo "${ECHO_T}$AWK" >&6
1451else
1452 echo "$as_me:1452: result: no" >&5
1453echo "${ECHO_T}no" >&6
1454fi
1455
1456 test -n "$AWK" && break
1457done
1458
1459for ac_prog in 'bison -y' byacc
1460do
1461 # Extract the first word of "$ac_prog", so it can be a program name with args.
1462set dummy $ac_prog; ac_word=$2
1463echo "$as_me:1463: checking for $ac_word" >&5
1464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465if test "${ac_cv_prog_YACC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1467else
1468 if test -n "$YACC"; then
1469 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1470else
1471 ac_save_IFS=$IFS; IFS=$ac_path_separator
1472ac_dummy="$PATH"
1473for ac_dir in $ac_dummy; do
1474 IFS=$ac_save_IFS
1475 test -z "$ac_dir" && ac_dir=.
1476 $as_executable_p "$ac_dir/$ac_word" || continue
1477ac_cv_prog_YACC="$ac_prog"
1478echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1479break
1480done
1481
1482fi
1483fi
1484YACC=$ac_cv_prog_YACC
1485if test -n "$YACC"; then
1486 echo "$as_me:1486: result: $YACC" >&5
1487echo "${ECHO_T}$YACC" >&6
1488else
1489 echo "$as_me:1489: result: no" >&5
1490echo "${ECHO_T}no" >&6
1491fi
1492
1493 test -n "$YACC" && break
1494done
1495test -n "$YACC" || YACC="yacc"
1496
1497ac_ext=c
1498ac_cpp='$CPP $CPPFLAGS'
1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502if test -n "$ac_tool_prefix"; then
1503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1504set dummy ${ac_tool_prefix}gcc; ac_word=$2
1505echo "$as_me:1505: checking for $ac_word" >&5
1506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507if test "${ac_cv_prog_CC+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1512else
1513 ac_save_IFS=$IFS; IFS=$ac_path_separator
1514ac_dummy="$PATH"
1515for ac_dir in $ac_dummy; do
1516 IFS=$ac_save_IFS
1517 test -z "$ac_dir" && ac_dir=.
1518 $as_executable_p "$ac_dir/$ac_word" || continue
1519ac_cv_prog_CC="${ac_tool_prefix}gcc"
1520echo "$as_me:1520: found $ac_dir/$ac_word" >&5
1521break
1522done
1523
1524fi
1525fi
1526CC=$ac_cv_prog_CC
1527if test -n "$CC"; then
1528 echo "$as_me:1528: result: $CC" >&5
1529echo "${ECHO_T}$CC" >&6
1530else
1531 echo "$as_me:1531: result: no" >&5
1532echo "${ECHO_T}no" >&6
1533fi
1534
1535fi
1536if test -z "$ac_cv_prog_CC"; then
1537 ac_ct_CC=$CC
1538 # Extract the first word of "gcc", so it can be a program name with args.
1539set dummy gcc; ac_word=$2
1540echo "$as_me:1540: checking for $ac_word" >&5
1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544else
1545 if test -n "$ac_ct_CC"; then
1546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1547else
1548 ac_save_IFS=$IFS; IFS=$ac_path_separator
1549ac_dummy="$PATH"
1550for ac_dir in $ac_dummy; do
1551 IFS=$ac_save_IFS
1552 test -z "$ac_dir" && ac_dir=.
1553 $as_executable_p "$ac_dir/$ac_word" || continue
1554ac_cv_prog_ac_ct_CC="gcc"
1555echo "$as_me:1555: found $ac_dir/$ac_word" >&5
1556break
1557done
1558
1559fi
1560fi
1561ac_ct_CC=$ac_cv_prog_ac_ct_CC
1562if test -n "$ac_ct_CC"; then
1563 echo "$as_me:1563: result: $ac_ct_CC" >&5
1564echo "${ECHO_T}$ac_ct_CC" >&6
1565else
1566 echo "$as_me:1566: result: no" >&5
1567echo "${ECHO_T}no" >&6
1568fi
1569
1570 CC=$ac_ct_CC
1571else
1572 CC="$ac_cv_prog_CC"
1573fi
1574
1575if test -z "$CC"; then
1576 if test -n "$ac_tool_prefix"; then
1577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1578set dummy ${ac_tool_prefix}cc; ac_word=$2
1579echo "$as_me:1579: checking for $ac_word" >&5
1580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC="$CC" # Let the user override the test.
1586else
1587 ac_save_IFS=$IFS; IFS=$ac_path_separator
1588ac_dummy="$PATH"
1589for ac_dir in $ac_dummy; do
1590 IFS=$ac_save_IFS
1591 test -z "$ac_dir" && ac_dir=.
1592 $as_executable_p "$ac_dir/$ac_word" || continue
1593ac_cv_prog_CC="${ac_tool_prefix}cc"
1594echo "$as_me:1594: found $ac_dir/$ac_word" >&5
1595break
1596done
1597
1598fi
1599fi
1600CC=$ac_cv_prog_CC
1601if test -n "$CC"; then
1602 echo "$as_me:1602: result: $CC" >&5
1603echo "${ECHO_T}$CC" >&6
1604else
1605 echo "$as_me:1605: result: no" >&5
1606echo "${ECHO_T}no" >&6
1607fi
1608
1609fi
1610if test -z "$ac_cv_prog_CC"; then
1611 ac_ct_CC=$CC
1612 # Extract the first word of "cc", so it can be a program name with args.
1613set dummy cc; ac_word=$2
1614echo "$as_me:1614: checking for $ac_word" >&5
1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 if test -n "$ac_ct_CC"; then
1620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1621else
1622 ac_save_IFS=$IFS; IFS=$ac_path_separator
1623ac_dummy="$PATH"
1624for ac_dir in $ac_dummy; do
1625 IFS=$ac_save_IFS
1626 test -z "$ac_dir" && ac_dir=.
1627 $as_executable_p "$ac_dir/$ac_word" || continue
1628ac_cv_prog_ac_ct_CC="cc"
1629echo "$as_me:1629: found $ac_dir/$ac_word" >&5
1630break
1631done
1632
1633fi
1634fi
1635ac_ct_CC=$ac_cv_prog_ac_ct_CC
1636if test -n "$ac_ct_CC"; then
1637 echo "$as_me:1637: result: $ac_ct_CC" >&5
1638echo "${ECHO_T}$ac_ct_CC" >&6
1639else
1640 echo "$as_me:1640: result: no" >&5
1641echo "${ECHO_T}no" >&6
1642fi
1643
1644 CC=$ac_ct_CC
1645else
1646 CC="$ac_cv_prog_CC"
1647fi
1648
1649fi
1650if test -z "$CC"; then
1651 # Extract the first word of "cc", so it can be a program name with args.
1652set dummy cc; ac_word=$2
1653echo "$as_me:1653: checking for $ac_word" >&5
1654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1660else
1661 ac_prog_rejected=no
1662 ac_save_IFS=$IFS; IFS=$ac_path_separator
1663ac_dummy="$PATH"
1664for ac_dir in $ac_dummy; do
1665 IFS=$ac_save_IFS
1666 test -z "$ac_dir" && ac_dir=.
1667 $as_executable_p "$ac_dir/$ac_word" || continue
1668if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1669 ac_prog_rejected=yes
1670 continue
1671fi
1672ac_cv_prog_CC="cc"
1673echo "$as_me:1673: found $ac_dir/$ac_word" >&5
1674break
1675done
1676
1677if test $ac_prog_rejected = yes; then
1678 # We found a bogon in the path, so make sure we never use it.
1679 set dummy $ac_cv_prog_CC
1680 shift
1681 if test $# != 0; then
1682 # We chose a different compiler from the bogus one.
1683 # However, it has the same basename, so the bogon will be chosen
1684 # first if we set CC to just the basename; use the full file name.
1685 shift
1686 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1687 shift
1688 ac_cv_prog_CC="$@"
1689 fi
1690fi
1691fi
1692fi
1693CC=$ac_cv_prog_CC
1694if test -n "$CC"; then
1695 echo "$as_me:1695: result: $CC" >&5
1696echo "${ECHO_T}$CC" >&6
1697else
1698 echo "$as_me:1698: result: no" >&5
1699echo "${ECHO_T}no" >&6
1700fi
1701
1702fi
1703if test -z "$CC"; then
1704 if test -n "$ac_tool_prefix"; then
1705 for ac_prog in cl
1706 do
1707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1709echo "$as_me:1709: checking for $ac_word" >&5
1710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1713else
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC="$CC" # Let the user override the test.
1716else
1717 ac_save_IFS=$IFS; IFS=$ac_path_separator
1718ac_dummy="$PATH"
1719for ac_dir in $ac_dummy; do
1720 IFS=$ac_save_IFS
1721 test -z "$ac_dir" && ac_dir=.
1722 $as_executable_p "$ac_dir/$ac_word" || continue
1723ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1724echo "$as_me:1724: found $ac_dir/$ac_word" >&5
1725break
1726done
1727
1728fi
1729fi
1730CC=$ac_cv_prog_CC
1731if test -n "$CC"; then
1732 echo "$as_me:1732: result: $CC" >&5
1733echo "${ECHO_T}$CC" >&6
1734else
1735 echo "$as_me:1735: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739 test -n "$CC" && break
1740 done
1741fi
1742if test -z "$CC"; then
1743 ac_ct_CC=$CC
1744 for ac_prog in cl
1745do
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747set dummy $ac_prog; ac_word=$2
1748echo "$as_me:1748: checking for $ac_word" >&5
1749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755else
1756 ac_save_IFS=$IFS; IFS=$ac_path_separator
1757ac_dummy="$PATH"
1758for ac_dir in $ac_dummy; do
1759 IFS=$ac_save_IFS
1760 test -z "$ac_dir" && ac_dir=.
1761 $as_executable_p "$ac_dir/$ac_word" || continue
1762ac_cv_prog_ac_ct_CC="$ac_prog"
1763echo "$as_me:1763: found $ac_dir/$ac_word" >&5
1764break
1765done
1766
1767fi
1768fi
1769ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770if test -n "$ac_ct_CC"; then
1771 echo "$as_me:1771: result: $ac_ct_CC" >&5
1772echo "${ECHO_T}$ac_ct_CC" >&6
1773else
1774 echo "$as_me:1774: result: no" >&5
1775echo "${ECHO_T}no" >&6
1776fi
1777
1778 test -n "$ac_ct_CC" && break
1779done
1780
1781 CC=$ac_ct_CC
1782fi
1783
1784fi
1785
1786test -z "$CC" && { { echo "$as_me:1786: error: no acceptable cc found in \$PATH" >&5
1787echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1788 { (exit 1); exit 1; }; }
1789
1790echo "$as_me:1790: checking whether we are using the GNU C compiler" >&5
1791echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1792if test "${ac_cv_c_compiler_gnu+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1794else
1795 cat >conftest.$ac_ext <<_ACEOF
1796#line 1796 "configure"
1797#include "confdefs.h"
1798
1799int
1800main ()
1801{
1802#ifndef __GNUC__
1803 choke me
1804#endif
1805
1806 ;
1807 return 0;
1808}
1809_ACEOF
1810rm -f conftest.$ac_objext
1811if { (eval echo "$as_me:1811: \"$ac_compile\"") >&5
1812 (eval $ac_compile) 2>&5
1813 ac_status=$?
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); } &&
1816 { ac_try='test -s conftest.$ac_objext'
1817 { (eval echo "$as_me:1817: \"$ac_try\"") >&5
1818 (eval $ac_try) 2>&5
1819 ac_status=$?
1820 echo "$as_me:1820: \$? = $ac_status" >&5
1821 (exit $ac_status); }; }; then
1822 ac_compiler_gnu=yes
1823else
1824 echo "$as_me: failed program was:" >&5
1825cat conftest.$ac_ext >&5
1826ac_compiler_gnu=no
1827fi
1828rm -f conftest.$ac_objext conftest.$ac_ext
1829ac_cv_c_compiler_gnu=$ac_compiler_gnu
1830
1831fi
1832echo "$as_me:1832: result: $ac_cv_c_compiler_gnu" >&5
1833echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1834GCC=`test $ac_compiler_gnu = yes && echo yes`
1835ac_test_CFLAGS=${CFLAGS+set}
1836ac_save_CFLAGS=$CFLAGS
1837CFLAGS="-g"
1838echo "$as_me:1838: checking whether $CC accepts -g" >&5
1839echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1840if test "${ac_cv_prog_cc_g+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842else
1843 cat >conftest.$ac_ext <<_ACEOF
1844#line 1844 "configure"
1845#include "confdefs.h"
1846
1847int
1848main ()
1849{
1850
1851 ;
1852 return 0;
1853}
1854_ACEOF
1855rm -f conftest.$ac_objext
1856if { (eval echo "$as_me:1856: \"$ac_compile\"") >&5
1857 (eval $ac_compile) 2>&5
1858 ac_status=$?
1859 echo "$as_me:1859: \$? = $ac_status" >&5
1860 (exit $ac_status); } &&
1861 { ac_try='test -s conftest.$ac_objext'
1862 { (eval echo "$as_me:1862: \"$ac_try\"") >&5
1863 (eval $ac_try) 2>&5
1864 ac_status=$?
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit $ac_status); }; }; then
1867 ac_cv_prog_cc_g=yes
1868else
1869 echo "$as_me: failed program was:" >&5
1870cat conftest.$ac_ext >&5
1871ac_cv_prog_cc_g=no
1872fi
1873rm -f conftest.$ac_objext conftest.$ac_ext
1874fi
1875echo "$as_me:1875: result: $ac_cv_prog_cc_g" >&5
1876echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1877if test "$ac_test_CFLAGS" = set; then
1878 CFLAGS=$ac_save_CFLAGS
1879elif test $ac_cv_prog_cc_g = yes; then
1880 if test "$GCC" = yes; then
1881 CFLAGS="-g -O2"
1882 else
1883 CFLAGS="-g"
1884 fi
1885else
1886 if test "$GCC" = yes; then
1887 CFLAGS="-O2"
1888 else
1889 CFLAGS=
1890 fi
1891fi
1892# Some people use a C++ compiler to compile C. Since we use `exit',
1893# in C++ we need to declare it. In case someone uses the same compiler
1894# for both compiling C and C++ we need to have the C++ compiler decide
1895# the declaration of exit, since it's the most demanding environment.
1896cat >conftest.$ac_ext <<_ACEOF
1897#ifndef __cplusplus
1898 choke me
1899#endif
1900_ACEOF
1901rm -f conftest.$ac_objext
1902if { (eval echo "$as_me:1902: \"$ac_compile\"") >&5
1903 (eval $ac_compile) 2>&5
1904 ac_status=$?
1905 echo "$as_me:1905: \$? = $ac_status" >&5
1906 (exit $ac_status); } &&
1907 { ac_try='test -s conftest.$ac_objext'
1908 { (eval echo "$as_me:1908: \"$ac_try\"") >&5
1909 (eval $ac_try) 2>&5
1910 ac_status=$?
1911 echo "$as_me:1911: \$? = $ac_status" >&5
1912 (exit $ac_status); }; }; then
1913 for ac_declaration in \
1914 ''\
1915 '#include <stdlib.h>' \
1916 'extern "C" void std::exit (int) throw (); using std::exit;' \
1917 'extern "C" void std::exit (int); using std::exit;' \
1918 'extern "C" void exit (int) throw ();' \
1919 'extern "C" void exit (int);' \
1920 'void exit (int);'
1921do
1922 cat >conftest.$ac_ext <<_ACEOF
1923#line 1923 "configure"
1924#include "confdefs.h"
1925#include <stdlib.h>
1926$ac_declaration
1927int
1928main ()
1929{
1930exit (42);
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.$ac_objext
1936if { (eval echo "$as_me:1936: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); } &&
1941 { ac_try='test -s conftest.$ac_objext'
1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); }; }; then
1947 :
1948else
1949 echo "$as_me: failed program was:" >&5
1950cat conftest.$ac_ext >&5
1951continue
1952fi
1953rm -f conftest.$ac_objext conftest.$ac_ext
1954 cat >conftest.$ac_ext <<_ACEOF
1955#line 1955 "configure"
1956#include "confdefs.h"
1957$ac_declaration
1958int
1959main ()
1960{
1961exit (42);
1962 ;
1963 return 0;
1964}
1965_ACEOF
1966rm -f conftest.$ac_objext
1967if { (eval echo "$as_me:1967: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
1969 ac_status=$?
1970 echo "$as_me:1970: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -s conftest.$ac_objext'
1973 { (eval echo "$as_me:1973: \"$ac_try\"") >&5
1974 (eval $ac_try) 2>&5
1975 ac_status=$?
1976 echo "$as_me:1976: \$? = $ac_status" >&5
1977 (exit $ac_status); }; }; then
1978 break
1979else
1980 echo "$as_me: failed program was:" >&5
1981cat conftest.$ac_ext >&5
1982fi
1983rm -f conftest.$ac_objext conftest.$ac_ext
1984done
1985echo '#ifdef __cplusplus' >>confdefs.h
1986echo $ac_declaration >>confdefs.h
1987echo '#endif' >>confdefs.h
1988
1989else
1990 echo "$as_me: failed program was:" >&5
1991cat conftest.$ac_ext >&5
1992fi
1993rm -f conftest.$ac_objext conftest.$ac_ext
1994ac_ext=c
1995ac_cpp='$CPP $CPPFLAGS'
1996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1998ac_compiler_gnu=$ac_cv_c_compiler_gnu
1999
2000ac_aux_dir=
2001for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2002 if test -f $ac_dir/install-sh; then
2003 ac_aux_dir=$ac_dir
2004 ac_install_sh="$ac_aux_dir/install-sh -c"
2005 break
2006 elif test -f $ac_dir/install.sh; then
2007 ac_aux_dir=$ac_dir
2008 ac_install_sh="$ac_aux_dir/install.sh -c"
2009 break
2010 elif test -f $ac_dir/shtool; then
2011 ac_aux_dir=$ac_dir
2012 ac_install_sh="$ac_aux_dir/shtool install -c"
2013 break
2014 fi
2015done
2016if test -z "$ac_aux_dir"; then
2017 { { echo "$as_me:2017: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2018echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2019 { (exit 1); exit 1; }; }
2020fi
2021ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2022ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2023ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2024
2025# Find a good install program. We prefer a C program (faster),
2026# so one script is as good as another. But avoid the broken or
2027# incompatible versions:
2028# SysV /etc/install, /usr/sbin/install
2029# SunOS /usr/etc/install
2030# IRIX /sbin/install
2031# AIX /bin/install
2032# AmigaOS /C/install, which installs bootblocks on floppy discs
2033# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2034# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2035# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2036# ./install, which can be erroneously created by make from ./install.sh.
2037echo "$as_me:2037: checking for a BSD compatible install" >&5
2038echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2039if test -z "$INSTALL"; then
2040if test "${ac_cv_path_install+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043 ac_save_IFS=$IFS; IFS=$ac_path_separator
2044 for ac_dir in $PATH; do
2045 IFS=$ac_save_IFS
2046 # Account for people who put trailing slashes in PATH elements.
2047 case $ac_dir/ in
2048 / | ./ | .// | /cC/* \
2049 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2050 | /usr/ucb/* ) ;;
2051 *)
2052 # OSF1 and SCO ODT 3.0 have their own names for install.
2053 # Don't use installbsd from OSF since it installs stuff as root
2054 # by default.
2055 for ac_prog in ginstall scoinst install; do
2056 if $as_executable_p "$ac_dir/$ac_prog"; then
2057 if test $ac_prog = install &&
2058 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2059 # AIX install. It has an incompatible calling convention.
2060 :
2061 elif test $ac_prog = install &&
2062 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2063 # program-specific install script used by HP pwplus--don't use.
2064 :
2065 else
2066 ac_cv_path_install="$ac_dir/$ac_prog -c"
2067 break 2
2068 fi
2069 fi
2070 done
2071 ;;
2072 esac
2073 done
2074
2075fi
2076 if test "${ac_cv_path_install+set}" = set; then
2077 INSTALL=$ac_cv_path_install
2078 else
2079 # As a last resort, use the slow shell script. We don't cache a
2080 # path for INSTALL within a source directory, because that will
2081 # break other packages using the cache if that directory is
2082 # removed, or if the path is relative.
2083 INSTALL=$ac_install_sh
2084 fi
2085fi
2086echo "$as_me:2086: result: $INSTALL" >&5
2087echo "${ECHO_T}$INSTALL" >&6
2088
2089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2090# It thinks the first close brace ends the variable substitution.
2091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2092
2093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2094
2095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2096
2097echo "$as_me:2097: checking whether ln -s works" >&5
2098echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2099LN_S=$as_ln_s
2100if test "$LN_S" = "ln -s"; then
2101 echo "$as_me:2101: result: yes" >&5
2102echo "${ECHO_T}yes" >&6
2103else
2104 echo "$as_me:2104: result: no, using $LN_S" >&5
2105echo "${ECHO_T}no, using $LN_S" >&6
2106fi
2107
2108echo "$as_me:2108: checking whether ${MAKE-make} sets \${MAKE}" >&5
2109echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2110set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2111if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113else
2114 cat >conftest.make <<\EOF
2115all:
2116 @echo 'ac_maketemp="${MAKE}"'
2117EOF
2118# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2119eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2120if test -n "$ac_maketemp"; then
2121 eval ac_cv_prog_make_${ac_make}_set=yes
2122else
2123 eval ac_cv_prog_make_${ac_make}_set=no
2124fi
2125rm -f conftest.make
2126fi
2127if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2128 echo "$as_me:2128: result: yes" >&5
2129echo "${ECHO_T}yes" >&6
2130 SET_MAKE=
2131else
2132 echo "$as_me:2132: result: no" >&5
2133echo "${ECHO_T}no" >&6
2134 SET_MAKE="MAKE=${MAKE-make}"
2135fi
2136
2137if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2139set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2140echo "$as_me:2140: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142if test "${ac_cv_prog_RANLIB+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145 if test -n "$RANLIB"; then
2146 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2147else
2148 ac_save_IFS=$IFS; IFS=$ac_path_separator
2149ac_dummy="$PATH"
2150for ac_dir in $ac_dummy; do
2151 IFS=$ac_save_IFS
2152 test -z "$ac_dir" && ac_dir=.
2153 $as_executable_p "$ac_dir/$ac_word" || continue
2154ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2155echo "$as_me:2155: found $ac_dir/$ac_word" >&5
2156break
2157done
2158
2159fi
2160fi
2161RANLIB=$ac_cv_prog_RANLIB
2162if test -n "$RANLIB"; then
2163 echo "$as_me:2163: result: $RANLIB" >&5
2164echo "${ECHO_T}$RANLIB" >&6
2165else
2166 echo "$as_me:2166: result: no" >&5
2167echo "${ECHO_T}no" >&6
2168fi
2169
2170fi
2171if test -z "$ac_cv_prog_RANLIB"; then
2172 ac_ct_RANLIB=$RANLIB
2173 # Extract the first word of "ranlib", so it can be a program name with args.
2174set dummy ranlib; ac_word=$2
2175echo "$as_me:2175: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$ac_ct_RANLIB"; then
2181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2182else
2183 ac_save_IFS=$IFS; IFS=$ac_path_separator
2184ac_dummy="$PATH"
2185for ac_dir in $ac_dummy; do
2186 IFS=$ac_save_IFS
2187 test -z "$ac_dir" && ac_dir=.
2188 $as_executable_p "$ac_dir/$ac_word" || continue
2189ac_cv_prog_ac_ct_RANLIB="ranlib"
2190echo "$as_me:2190: found $ac_dir/$ac_word" >&5
2191break
2192done
2193
2194 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2195fi
2196fi
2197ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2198if test -n "$ac_ct_RANLIB"; then
2199 echo "$as_me:2199: result: $ac_ct_RANLIB" >&5
2200echo "${ECHO_T}$ac_ct_RANLIB" >&6
2201else
2202 echo "$as_me:2202: result: no" >&5
2203echo "${ECHO_T}no" >&6
2204fi
2205
2206 RANLIB=$ac_ct_RANLIB
2207else
2208 RANLIB="$ac_cv_prog_RANLIB"
2209fi
2210
2211ac_ext=c
2212ac_cpp='$CPP $CPPFLAGS'
2213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2215ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216echo "$as_me:2216: checking how to run the C preprocessor" >&5
2217echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2218# On Suns, sometimes $CPP names a directory.
2219if test -n "$CPP" && test -d "$CPP"; then
2220 CPP=
2221fi
2222if test -z "$CPP"; then
2223 if test "${ac_cv_prog_CPP+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226 # Double quotes because CPP needs to be expanded
2227 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2228 do
2229 # break 2 since there is a loop in there.
2230 ac_preproc_ok=false
2231for ac_c_preproc_warn_flag in '' yes
2232do
2233 # Use a header file that comes with gcc, so configuring glibc
2234 # with a fresh cross-compiler works.
2235 # On the NeXT, cc -E runs the code through the compiler's parser,
2236 # not just through cpp. "Syntax error" is here to catch this case.
2237 cat >conftest.$ac_ext <<_ACEOF
2238#line 2238 "configure"
2239#include "confdefs.h"
2240#include <assert.h>
2241 Syntax error
2242_ACEOF
2243if { (eval echo "$as_me:2243: \"$ac_cpp conftest.$ac_ext\"") >&5
2244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2245 ac_status=$?
2246 egrep -v '^ *\+' conftest.er1 >conftest.err
2247 rm -f conftest.er1
2248 cat conftest.err >&5
2249 echo "$as_me:2249: \$? = $ac_status" >&5
2250 (exit $ac_status); } >/dev/null; then
2251 if test -s conftest.err; then
2252 ac_cpp_err=$ac_c_preproc_warn_flag
2253 else
2254 ac_cpp_err=
2255 fi
2256else
2257 ac_cpp_err=yes
2258fi
2259if test -z "$ac_cpp_err"; then
2260 :
2261else
2262 echo "$as_me: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 # Broken: fails on valid input.
2265continue
2266fi
2267rm -f conftest.err conftest.$ac_ext
2268
2269 # OK, works on sane cases. Now check whether non-existent headers
2270 # can be detected and how.
2271 cat >conftest.$ac_ext <<_ACEOF
2272#line 2272 "configure"
2273#include "confdefs.h"
2274#include <ac_nonexistent.h>
2275_ACEOF
2276if { (eval echo "$as_me:2276: \"$ac_cpp conftest.$ac_ext\"") >&5
2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2278 ac_status=$?
2279 egrep -v '^ *\+' conftest.er1 >conftest.err
2280 rm -f conftest.er1
2281 cat conftest.err >&5
2282 echo "$as_me:2282: \$? = $ac_status" >&5
2283 (exit $ac_status); } >/dev/null; then
2284 if test -s conftest.err; then
2285 ac_cpp_err=$ac_c_preproc_warn_flag
2286 else
2287 ac_cpp_err=
2288 fi
2289else
2290 ac_cpp_err=yes
2291fi
2292if test -z "$ac_cpp_err"; then
2293 # Broken: success on invalid input.
2294continue
2295else
2296 echo "$as_me: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 # Passes both tests.
2299ac_preproc_ok=:
2300break
2301fi
2302rm -f conftest.err conftest.$ac_ext
2303
2304done
2305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2306rm -f conftest.err conftest.$ac_ext
2307if $ac_preproc_ok; then
2308 break 2
2309fi
2310
2311 done
2312 ac_cv_prog_CPP=$CPP
2313
2314fi
2315 CPP=$ac_cv_prog_CPP
2316else
2317 ac_cv_prog_CPP=$CPP
2318fi
2319echo "$as_me:2319: result: $CPP" >&5
2320echo "${ECHO_T}$CPP" >&6
2321ac_preproc_ok=false
2322for ac_c_preproc_warn_flag in '' yes
2323do
2324 # Use a header file that comes with gcc, so configuring glibc
2325 # with a fresh cross-compiler works.
2326 # On the NeXT, cc -E runs the code through the compiler's parser,
2327 # not just through cpp. "Syntax error" is here to catch this case.
2328 cat >conftest.$ac_ext <<_ACEOF
2329#line 2329 "configure"
2330#include "confdefs.h"
2331#include <assert.h>
2332 Syntax error
2333_ACEOF
2334if { (eval echo "$as_me:2334: \"$ac_cpp conftest.$ac_ext\"") >&5
2335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2336 ac_status=$?
2337 egrep -v '^ *\+' conftest.er1 >conftest.err
2338 rm -f conftest.er1
2339 cat conftest.err >&5
2340 echo "$as_me:2340: \$? = $ac_status" >&5
2341 (exit $ac_status); } >/dev/null; then
2342 if test -s conftest.err; then
2343 ac_cpp_err=$ac_c_preproc_warn_flag
2344 else
2345 ac_cpp_err=
2346 fi
2347else
2348 ac_cpp_err=yes
2349fi
2350if test -z "$ac_cpp_err"; then
2351 :
2352else
2353 echo "$as_me: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 # Broken: fails on valid input.
2356continue
2357fi
2358rm -f conftest.err conftest.$ac_ext
2359
2360 # OK, works on sane cases. Now check whether non-existent headers
2361 # can be detected and how.
2362 cat >conftest.$ac_ext <<_ACEOF
2363#line 2363 "configure"
2364#include "confdefs.h"
2365#include <ac_nonexistent.h>
2366_ACEOF
2367if { (eval echo "$as_me:2367: \"$ac_cpp conftest.$ac_ext\"") >&5
2368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2369 ac_status=$?
2370 egrep -v '^ *\+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); } >/dev/null; then
2375 if test -s conftest.err; then
2376 ac_cpp_err=$ac_c_preproc_warn_flag
2377 else
2378 ac_cpp_err=
2379 fi
2380else
2381 ac_cpp_err=yes
2382fi
2383if test -z "$ac_cpp_err"; then
2384 # Broken: success on invalid input.
2385continue
2386else
2387 echo "$as_me: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2389 # Passes both tests.
2390ac_preproc_ok=:
2391break
2392fi
2393rm -f conftest.err conftest.$ac_ext
2394
2395done
2396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2397rm -f conftest.err conftest.$ac_ext
2398if $ac_preproc_ok; then
2399 :
2400else
2401 { { echo "$as_me:2401: error: C preprocessor \"$CPP\" fails sanity check" >&5
2402echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2403 { (exit 1); exit 1; }; }
2404fi
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411
2412echo "$as_me:2412: checking for AIX" >&5
2413echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2414cat >conftest.$ac_ext <<_ACEOF
2415#line 2415 "configure"
2416#include "confdefs.h"
2417#ifdef _AIX
2418 yes
2419#endif
2420
2421_ACEOF
2422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2423 egrep "yes" >/dev/null 2>&1; then
2424 echo "$as_me:2424: result: yes" >&5
2425echo "${ECHO_T}yes" >&6
2426cat >>confdefs.h <<\EOF
2427#define _ALL_SOURCE 1
2428EOF
2429
2430else
2431 echo "$as_me:2431: result: no" >&5
2432echo "${ECHO_T}no" >&6
2433fi
2434rm -f conftest*
2435
2436echo "$as_me:2436: checking for POSIXized ISC" >&5
2437echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2438if test -d /etc/conf/kconfig.d &&
2439 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2440then
2441 echo "$as_me:2441: result: yes" >&5
2442echo "${ECHO_T}yes" >&6
2443 ISC=yes # If later tests want to check for ISC.
2444
2445cat >>confdefs.h <<\EOF
2446#define _POSIX_SOURCE 1
2447EOF
2448
2449 if test "$GCC" = yes; then
2450 CC="$CC -posix"
2451 else
2452 CC="$CC -Xp"
2453 fi
2454else
2455 echo "$as_me:2455: result: no" >&5
2456echo "${ECHO_T}no" >&6
2457 ISC=
2458fi
2459
2460echo "$as_me:2460: checking for minix/config.h" >&5
2461echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2462if test "${ac_cv_header_minix_config_h+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 cat >conftest.$ac_ext <<_ACEOF
2466#line 2466 "configure"
2467#include "confdefs.h"
2468#include <minix/config.h>
2469_ACEOF
2470if { (eval echo "$as_me:2470: \"$ac_cpp conftest.$ac_ext\"") >&5
2471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2472 ac_status=$?
2473 egrep -v '^ *\+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:2476: \$? = $ac_status" >&5
2477 (exit $ac_status); } >/dev/null; then
2478 if test -s conftest.err; then
2479 ac_cpp_err=$ac_c_preproc_warn_flag
2480 else
2481 ac_cpp_err=
2482 fi
2483else
2484 ac_cpp_err=yes
2485fi
2486if test -z "$ac_cpp_err"; then
2487 ac_cv_header_minix_config_h=yes
2488else
2489 echo "$as_me: failed program was:" >&5
2490 cat conftest.$ac_ext >&5
2491 ac_cv_header_minix_config_h=no
2492fi
2493rm -f conftest.err conftest.$ac_ext
2494fi
2495echo "$as_me:2495: result: $ac_cv_header_minix_config_h" >&5
2496echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2497if test $ac_cv_header_minix_config_h = yes; then
2498 MINIX=yes
2499else
2500 MINIX=
2501fi
2502
2503if test "$MINIX" = yes; then
2504
2505cat >>confdefs.h <<\EOF
2506#define _POSIX_SOURCE 1
2507EOF
2508
2509cat >>confdefs.h <<\EOF
2510#define _POSIX_1_SOURCE 2
2511EOF
2512
2513cat >>confdefs.h <<\EOF
2514#define _MINIX 1
2515EOF
2516
2517fi
2518
2519echo "$as_me:2519: checking for ${CC-cc} option to accept ANSI C" >&5
2520echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2521if test "${ac_cv_prog_cc_stdc+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 ac_cv_prog_cc_stdc=no
2525ac_save_CFLAGS="$CFLAGS"
2526# Don't try gcc -ansi; that turns off useful extensions and
2527# breaks some systems' header files.
2528# AIX -qlanglvl=ansi
2529# Ultrix and OSF/1 -std1
2530# HP-UX -Aa -D_HPUX_SOURCE
2531# SVR4 -Xc
2532for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
2533do
2534 CFLAGS="$ac_save_CFLAGS $ac_arg"
2535 cat >conftest.$ac_ext <<_ACEOF
2536#line 2536 "configure"
2537#include "confdefs.h"
2538#if !defined(__STDC__) || __STDC__ != 1
2539choke me
2540#endif
2541
2542int
2543main ()
2544{
2545int test (int i, double x);
2546struct s1 {int (*f) (int a);};
2547struct s2 {int (*f) (double a);};
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:2553: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2555 ac_status=$?
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:2559: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:2562: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_prog_cc_stdc="$ac_arg"; break
2565else
2566 echo "$as_me: failed program was:" >&5
2567cat conftest.$ac_ext >&5
2568fi
2569rm -f conftest.$ac_objext conftest.$ac_ext
2570done
2571CFLAGS="$ac_save_CFLAGS"
2572
2573fi
2574
2575echo "$as_me:2575: result: $ac_cv_prog_cc_stdc" >&5
2576echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2577case "x$ac_cv_prog_cc_stdc" in
2578 x|xno) ;;
2579 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
2580esac
2581
2582echo "$as_me:2582: checking for function prototypes" >&5
2583echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2584if test "$ac_cv_prog_cc_stdc" != no; then
2585 echo "$as_me:2585: result: yes" >&5
2586echo "${ECHO_T}yes" >&6
2587 cat >>confdefs.h <<\EOF
2588#define PROTOTYPES 1
2589EOF
2590
2591 U= ANSI2KNR=
2592else
2593 echo "$as_me:2593: result: no" >&5
2594echo "${ECHO_T}no" >&6
2595 U=_ ANSI2KNR=ansi2knr
2596fi
2597
2598echo "$as_me:2598: checking for $CC option to accept ANSI C" >&5
2599echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2600if test "${ac_cv_prog_cc_stdc+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2602else
2603 ac_cv_prog_cc_stdc=no
2604ac_save_CC=$CC
2605cat >conftest.$ac_ext <<_ACEOF
2606#line 2606 "configure"
2607#include "confdefs.h"
2608#include <stdarg.h>
2609#include <stdio.h>
2610#include <sys/types.h>
2611#include <sys/stat.h>
2612/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2613struct buf { int x; };
2614FILE * (*rcsopen) (struct buf *, struct stat *, int);
2615static char *e (p, i)
2616 char **p;
2617 int i;
2618{
2619 return p[i];
2620}
2621static char *f (char * (*g) (char **, int), char **p, ...)
2622{
2623 char *s;
2624 va_list v;
2625 va_start (v,p);
2626 s = g (p, va_arg (v,int));
2627 va_end (v);
2628 return s;
2629}
2630int test (int i, double x);
2631struct s1 {int (*f) (int a);};
2632struct s2 {int (*f) (double a);};
2633int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2634int argc;
2635char **argv;
2636int
2637main ()
2638{
2639return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644# Don't try gcc -ansi; that turns off useful extensions and
2645# breaks some systems' header files.
2646# AIX -qlanglvl=ansi
2647# Ultrix and OSF/1 -std1
2648# HP-UX 10.20 and later -Ae
2649# HP-UX older versions -Aa -D_HPUX_SOURCE
2650# SVR4 -Xc -D__EXTENSIONS__
2651for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2652do
2653 CC="$ac_save_CC $ac_arg"
2654 rm -f conftest.$ac_objext
2655if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>&5
2657 ac_status=$?
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:2661: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:2664: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 ac_cv_prog_cc_stdc=$ac_arg
2667break
2668else
2669 echo "$as_me: failed program was:" >&5
2670cat conftest.$ac_ext >&5
2671fi
2672rm -f conftest.$ac_objext
2673done
2674rm -f conftest.$ac_ext conftest.$ac_objext
2675CC=$ac_save_CC
2676
2677fi
2678
2679case "x$ac_cv_prog_cc_stdc" in
2680 x|xno)
2681 echo "$as_me:2681: result: none needed" >&5
2682echo "${ECHO_T}none needed" >&6 ;;
2683 *)
2684 echo "$as_me:2684: result: $ac_cv_prog_cc_stdc" >&5
2685echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2686 CC="$CC $ac_cv_prog_cc_stdc" ;;
2687esac
2688
2689echo "$as_me:2689: checking for an ANSI C-conforming const" >&5
2690echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2691if test "${ac_cv_c_const+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693else
2694 cat >conftest.$ac_ext <<_ACEOF
2695#line 2695 "configure"
2696#include "confdefs.h"
2697
2698int
2699main ()
2700{
2701/* FIXME: Include the comments suggested by Paul. */
2702#ifndef __cplusplus
2703 /* Ultrix mips cc rejects this. */
2704 typedef int charset[2];
2705 const charset x;
2706 /* SunOS 4.1.1 cc rejects this. */
2707 char const *const *ccp;
2708 char **p;
2709 /* NEC SVR4.0.2 mips cc rejects this. */
2710 struct point {int x, y;};
2711 static struct point const zero = {0,0};
2712 /* AIX XL C 1.02.0.0 rejects this.
2713 It does not let you subtract one const X* pointer from another in
2714 an arm of an if-expression whose if-part is not a constant
2715 expression */
2716 const char *g = "string";
2717 ccp = &g + (g ? g-g : 0);
2718 /* HPUX 7.0 cc rejects these. */
2719 ++ccp;
2720 p = (char**) ccp;
2721 ccp = (char const *const *) p;
2722 { /* SCO 3.2v4 cc rejects this. */
2723 char *t;
2724 char const *s = 0 ? (char *) 0 : (char const *) 0;
2725
2726 *t++ = 0;
2727 }
2728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2729 int x[] = {25, 17};
2730 const int *foo = &x[0];
2731 ++foo;
2732 }
2733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2734 typedef const int *iptr;
2735 iptr p = 0;
2736 ++p;
2737 }
2738 { /* AIX XL C 1.02.0.0 rejects this saying
2739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2740 struct s { int j; const int *ap[3]; };
2741 struct s *b; b->j = 5;
2742 }
2743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2744 const int foo = 10;
2745 }
2746#endif
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (eval echo "$as_me:2753: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>&5
2755 ac_status=$?
2756 echo "$as_me:2756: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:2759: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 ac_cv_c_const=yes
2765else
2766 echo "$as_me: failed program was:" >&5
2767cat conftest.$ac_ext >&5
2768ac_cv_c_const=no
2769fi
2770rm -f conftest.$ac_objext conftest.$ac_ext
2771fi
2772echo "$as_me:2772: result: $ac_cv_c_const" >&5
2773echo "${ECHO_T}$ac_cv_c_const" >&6
2774if test $ac_cv_c_const = no; then
2775
2776cat >>confdefs.h <<\EOF
2777#define const
2778EOF
2779
2780fi
2781
2782echo "$as_me:2782: checking for ANSI C header files" >&5
2783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2784if test "${ac_cv_header_stdc+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786else
2787 cat >conftest.$ac_ext <<_ACEOF
2788#line 2788 "configure"
2789#include "confdefs.h"
2790#include <stdlib.h>
2791#include <stdarg.h>
2792#include <string.h>
2793#include <float.h>
2794
2795_ACEOF
2796if { (eval echo "$as_me:2796: \"$ac_cpp conftest.$ac_ext\"") >&5
2797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2798 ac_status=$?
2799 egrep -v '^ *\+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 echo "$as_me:2802: \$? = $ac_status" >&5
2803 (exit $ac_status); } >/dev/null; then
2804 if test -s conftest.err; then
2805 ac_cpp_err=$ac_c_preproc_warn_flag
2806 else
2807 ac_cpp_err=
2808 fi
2809else
2810 ac_cpp_err=yes
2811fi
2812if test -z "$ac_cpp_err"; then
2813 ac_cv_header_stdc=yes
2814else
2815 echo "$as_me: failed program was:" >&5
2816 cat conftest.$ac_ext >&5
2817 ac_cv_header_stdc=no
2818fi
2819rm -f conftest.err conftest.$ac_ext
2820
2821if test $ac_cv_header_stdc = yes; then
2822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2823 cat >conftest.$ac_ext <<_ACEOF
2824#line 2824 "configure"
2825#include "confdefs.h"
2826#include <string.h>
2827
2828_ACEOF
2829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2830 egrep "memchr" >/dev/null 2>&1; then
2831 :
2832else
2833 ac_cv_header_stdc=no
2834fi
2835rm -f conftest*
2836
2837fi
2838
2839if test $ac_cv_header_stdc = yes; then
2840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2841 cat >conftest.$ac_ext <<_ACEOF
2842#line 2842 "configure"
2843#include "confdefs.h"
2844#include <stdlib.h>
2845
2846_ACEOF
2847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2848 egrep "free" >/dev/null 2>&1; then
2849 :
2850else
2851 ac_cv_header_stdc=no
2852fi
2853rm -f conftest*
2854
2855fi
2856
2857if test $ac_cv_header_stdc = yes; then
2858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2859 if test "$cross_compiling" = yes; then
2860 :
2861else
2862 cat >conftest.$ac_ext <<_ACEOF
2863#line 2863 "configure"
2864#include "confdefs.h"
2865#include <ctype.h>
2866#if ((' ' & 0x0FF) == 0x020)
2867# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2868# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2869#else
2870# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2871 || ('j' <= (c) && (c) <= 'r') \
2872 || ('s' <= (c) && (c) <= 'z'))
2873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2874#endif
2875
2876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2877int
2878main ()
2879{
2880 int i;
2881 for (i = 0; i < 256; i++)
2882 if (XOR (islower (i), ISLOWER (i))
2883 || toupper (i) != TOUPPER (i))
2884 exit(2);
2885 exit (0);
2886}
2887_ACEOF
2888rm -f conftest$ac_exeext
2889if { (eval echo "$as_me:2889: \"$ac_link\"") >&5
2890 (eval $ac_link) 2>&5
2891 ac_status=$?
2892 echo "$as_me:2892: \$? = $ac_status" >&5
2893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 :
2900else
2901 echo "$as_me: program exited with status $ac_status" >&5
2902echo "$as_me: failed program was:" >&5
2903cat conftest.$ac_ext >&5
2904ac_cv_header_stdc=no
2905fi
2906rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2907fi
2908fi
2909fi
2910echo "$as_me:2910: result: $ac_cv_header_stdc" >&5
2911echo "${ECHO_T}$ac_cv_header_stdc" >&6
2912if test $ac_cv_header_stdc = yes; then
2913
2914cat >>confdefs.h <<\EOF
2915#define STDC_HEADERS 1
2916EOF
2917
2918fi
2919
2920for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
2921do
2922ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2923echo "$as_me:2923: checking for $ac_header" >&5
2924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2925if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927else
2928 cat >conftest.$ac_ext <<_ACEOF
2929#line 2929 "configure"
2930#include "confdefs.h"
2931#include <$ac_header>
2932_ACEOF
2933if { (eval echo "$as_me:2933: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935 ac_status=$?
2936 egrep -v '^ *\+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:2939: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2943 else
2944 ac_cpp_err=
2945 fi
2946else
2947 ac_cpp_err=yes
2948fi
2949if test -z "$ac_cpp_err"; then
2950 eval "$ac_ac_Header=yes"
2951else
2952 echo "$as_me: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2954 eval "$ac_ac_Header=no"
2955fi
2956rm -f conftest.err conftest.$ac_ext
2957fi
2958echo "$as_me:2958: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2959echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2960if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2961 cat >>confdefs.h <<EOF
2962#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2963EOF
2964
2965fi
2966done
2967
2968echo "$as_me:2968: checking for off_t" >&5
2969echo $ECHO_N "checking for off_t... $ECHO_C" >&6
2970if test "${ac_cv_type_off_t+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2972else
2973 cat >conftest.$ac_ext <<_ACEOF
2974#line 2974 "configure"
2975#include "confdefs.h"
2976$ac_includes_default
2977int
2978main ()
2979{
2980if ((off_t *) 0)
2981 return 0;
2982if (sizeof (off_t))
2983 return 0;
2984 ;
2985 return 0;
2986}
2987_ACEOF
2988rm -f conftest.$ac_objext
2989if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:2995: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:2998: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 ac_cv_type_off_t=yes
3001else
3002 echo "$as_me: failed program was:" >&5
3003cat conftest.$ac_ext >&5
3004ac_cv_type_off_t=no
3005fi
3006rm -f conftest.$ac_objext conftest.$ac_ext
3007fi
3008echo "$as_me:3008: result: $ac_cv_type_off_t" >&5
3009echo "${ECHO_T}$ac_cv_type_off_t" >&6
3010if test $ac_cv_type_off_t = yes; then
3011 :
3012else
3013
3014cat >>confdefs.h <<EOF
3015#define off_t long
3016EOF
3017
3018fi
3019
3020echo "$as_me:3020: checking for size_t" >&5
3021echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3022if test "${ac_cv_type_size_t+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
3026#line 3026 "configure"
3027#include "confdefs.h"
3028$ac_includes_default
3029int
3030main ()
3031{
3032if ((size_t *) 0)
3033 return 0;
3034if (sizeof (size_t))
3035 return 0;
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
3041if { (eval echo "$as_me:3041: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>&5
3043 ac_status=$?
3044 echo "$as_me:3044: \$? = $ac_status" >&5
3045 (exit $ac_status); } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:3047: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:3050: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_cv_type_size_t=yes
3053else
3054 echo "$as_me: failed program was:" >&5
3055cat conftest.$ac_ext >&5
3056ac_cv_type_size_t=no
3057fi
3058rm -f conftest.$ac_objext conftest.$ac_ext
3059fi
3060echo "$as_me:3060: result: $ac_cv_type_size_t" >&5
3061echo "${ECHO_T}$ac_cv_type_size_t" >&6
3062if test $ac_cv_type_size_t = yes; then
3063 :
3064else
3065
3066cat >>confdefs.h <<EOF
3067#define size_t unsigned
3068EOF
3069
3070fi
3071
3072echo "$as_me:3072: checking whether time.h and sys/time.h may both be included" >&5
3073echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3074if test "${ac_cv_header_time+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077 cat >conftest.$ac_ext <<_ACEOF
3078#line 3078 "configure"
3079#include "confdefs.h"
3080#include <sys/types.h>
3081#include <sys/time.h>
3082#include <time.h>
3083
3084int
3085main ()
3086{
3087struct tm *tp;
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (eval echo "$as_me:3093: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3095 ac_status=$?
3096 echo "$as_me:3096: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:3102: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 ac_cv_header_time=yes
3105else
3106 echo "$as_me: failed program was:" >&5
3107cat conftest.$ac_ext >&5
3108ac_cv_header_time=no
3109fi
3110rm -f conftest.$ac_objext conftest.$ac_ext
3111fi
3112echo "$as_me:3112: result: $ac_cv_header_time" >&5
3113echo "${ECHO_T}$ac_cv_header_time" >&6
3114if test $ac_cv_header_time = yes; then
3115
3116cat >>confdefs.h <<\EOF
3117#define TIME_WITH_SYS_TIME 1
3118EOF
3119
3120fi
3121
3122echo "$as_me:3122: checking whether struct tm is in sys/time.h or time.h" >&5
3123echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3124if test "${ac_cv_struct_tm+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127 cat >conftest.$ac_ext <<_ACEOF
3128#line 3128 "configure"
3129#include "confdefs.h"
3130#include <sys/types.h>
3131#include <time.h>
3132
3133int
3134main ()
3135{
3136struct tm *tp; tp->tm_sec;
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
3143 (eval $ac_compile) 2>&5
3144 ac_status=$?
3145 echo "$as_me:3145: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (eval echo "$as_me:3148: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:3151: \$? = $ac_status" >&5
3152 (exit $ac_status); }; }; then
3153 ac_cv_struct_tm=time.h
3154else
3155 echo "$as_me: failed program was:" >&5
3156cat conftest.$ac_ext >&5
3157ac_cv_struct_tm=sys/time.h
3158fi
3159rm -f conftest.$ac_objext conftest.$ac_ext
3160fi
3161echo "$as_me:3161: result: $ac_cv_struct_tm" >&5
3162echo "${ECHO_T}$ac_cv_struct_tm" >&6
3163if test $ac_cv_struct_tm = sys/time.h; then
3164
3165cat >>confdefs.h <<\EOF
3166#define TM_IN_SYS_TIME 1
3167EOF
3168
3169fi
3170
3171if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
3172cat >conftest.$ac_ext <<_ACEOF
3173#line 3173 "configure"
3174#include "confdefs.h"
3175#include <stdio.h>
3176
3177int
3178main ()
3179{
3180 FILE *rubbish = popen("yes", "r");
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (eval echo "$as_me:3186: \"$ac_compile\"") >&5
3187 (eval $ac_compile) 2>&5
3188 ac_status=$?
3189 echo "$as_me:3189: \$? = $ac_status" >&5
3190 (exit $ac_status); } &&
3191 { ac_try='test -s conftest.$ac_objext'
3192 { (eval echo "$as_me:3192: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:3195: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 :
3198else
3199 echo "$as_me: failed program was:" >&5
3200cat conftest.$ac_ext >&5
3201CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
3202fi
3203rm -f conftest.$ac_objext conftest.$ac_ext
3204fi
3205
3206echo "$as_me:3206: checking for main in -lg" >&5
3207echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
3208if test "${ac_cv_lib_g_main+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 ac_check_lib_save_LIBS=$LIBS
3212LIBS="-lg $LIBS"
3213cat >conftest.$ac_ext <<_ACEOF
3214#line 3214 "configure"
3215#include "confdefs.h"
3216
3217int
3218main ()
3219{
3220main ();
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext conftest$ac_exeext
3226if { (eval echo "$as_me:3226: \"$ac_link\"") >&5
3227 (eval $ac_link) 2>&5
3228 ac_status=$?
3229 echo "$as_me:3229: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -s conftest$ac_exeext'
3232 { (eval echo "$as_me:3232: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:3235: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 ac_cv_lib_g_main=yes
3238else
3239 echo "$as_me: failed program was:" >&5
3240cat conftest.$ac_ext >&5
3241ac_cv_lib_g_main=no
3242fi
3243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3244LIBS=$ac_check_lib_save_LIBS
3245fi
3246echo "$as_me:3246: result: $ac_cv_lib_g_main" >&5
3247echo "${ECHO_T}$ac_cv_lib_g_main" >&6
3248if test $ac_cv_lib_g_main = yes; then
3249 cat >>confdefs.h <<EOF
3250#define HAVE_LIBG 1
3251EOF
3252
3253 LIBS="-lg $LIBS"
3254
3255fi
3256
3257echo "$as_me:3257: checking for main in -lm" >&5
3258echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3259if test "${ac_cv_lib_m_main+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261else
3262 ac_check_lib_save_LIBS=$LIBS
3263LIBS="-lm $LIBS"
3264cat >conftest.$ac_ext <<_ACEOF
3265#line 3265 "configure"
3266#include "confdefs.h"
3267
3268int
3269main ()
3270{
3271main ();
3272 ;
3273 return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext conftest$ac_exeext
3277if { (eval echo "$as_me:3277: \"$ac_link\"") >&5
3278 (eval $ac_link) 2>&5
3279 ac_status=$?
3280 echo "$as_me:3280: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -s conftest$ac_exeext'
3283 { (eval echo "$as_me:3283: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:3286: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3288 ac_cv_lib_m_main=yes
3289else
3290 echo "$as_me: failed program was:" >&5
3291cat conftest.$ac_ext >&5
3292ac_cv_lib_m_main=no
3293fi
3294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3295LIBS=$ac_check_lib_save_LIBS
3296fi
3297echo "$as_me:3297: result: $ac_cv_lib_m_main" >&5
3298echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3299if test $ac_cv_lib_m_main = yes; then
3300 cat >>confdefs.h <<EOF
3301#define HAVE_LIBM 1
3302EOF
3303
3304 LIBS="-lm $LIBS"
3305
3306fi
3307
3308echo "$as_me:3308: checking for main in -lstdc++" >&5
3309echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
3310if test "${ac_cv_lib_stdcpp_main+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313 ac_check_lib_save_LIBS=$LIBS
3314LIBS="-lstdc++ $LIBS"
3315cat >conftest.$ac_ext <<_ACEOF
3316#line 3316 "configure"
3317#include "confdefs.h"
3318
3319int
3320main ()
3321{
3322main ();
3323 ;
3324 return 0;
3325}
3326_ACEOF
3327rm -f conftest.$ac_objext conftest$ac_exeext
3328if { (eval echo "$as_me:3328: \"$ac_link\"") >&5
3329 (eval $ac_link) 2>&5
3330 ac_status=$?
3331 echo "$as_me:3331: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -s conftest$ac_exeext'
3334 { (eval echo "$as_me:3334: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:3337: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 ac_cv_lib_stdcpp_main=yes
3340else
3341 echo "$as_me: failed program was:" >&5
3342cat conftest.$ac_ext >&5
3343ac_cv_lib_stdcpp_main=no
3344fi
3345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3346LIBS=$ac_check_lib_save_LIBS
3347fi
3348echo "$as_me:3348: result: $ac_cv_lib_stdcpp_main" >&5
3349echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
3350if test $ac_cv_lib_stdcpp_main = yes; then
3351 cat >>confdefs.h <<EOF
3352#define HAVE_LIBSTDC__ 1
3353EOF
3354
3355 LIBS="-lstdc++ $LIBS"
3356
3357fi
3358
3359echo "$as_me:3359: checking for main in -lcrypt" >&5
3360echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
3361if test "${ac_cv_lib_crypt_main+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364 ac_check_lib_save_LIBS=$LIBS
3365LIBS="-lcrypt $LIBS"
3366cat >conftest.$ac_ext <<_ACEOF
3367#line 3367 "configure"
3368#include "confdefs.h"
3369
3370int
3371main ()
3372{
3373main ();
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext conftest$ac_exeext
3379if { (eval echo "$as_me:3379: \"$ac_link\"") >&5
3380 (eval $ac_link) 2>&5
3381 ac_status=$?
3382 echo "$as_me:3382: \$? = $ac_status" >&5
3383 (exit $ac_status); } &&
3384 { ac_try='test -s conftest$ac_exeext'
3385 { (eval echo "$as_me:3385: \"$ac_try\"") >&5
3386 (eval $ac_try) 2>&5
3387 ac_status=$?
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3390 ac_cv_lib_crypt_main=yes
3391else
3392 echo "$as_me: failed program was:" >&5
3393cat conftest.$ac_ext >&5
3394ac_cv_lib_crypt_main=no
3395fi
3396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3397LIBS=$ac_check_lib_save_LIBS
3398fi
3399echo "$as_me:3399: result: $ac_cv_lib_crypt_main" >&5
3400echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
3401if test $ac_cv_lib_crypt_main = yes; then
3402 cat >>confdefs.h <<EOF
3403#define HAVE_LIBCRYPT 1
3404EOF
3405
3406 LIBS="-lcrypt $LIBS"
3407
3408fi
3409
3410ac_header_dirent=no
3411for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3412 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
3413echo "$as_me:3413: checking for $ac_hdr that defines DIR" >&5
3414echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3415if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3417else
3418 cat >conftest.$ac_ext <<_ACEOF
3419#line 3419 "configure"
3420#include "confdefs.h"
3421#include <sys/types.h>
3422#include <$ac_hdr>
3423
3424int
3425main ()
3426{
3427DIR *dirp = 0;
3428 ;
3429 return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:3433: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>&5
3435 ac_status=$?
3436 echo "$as_me:3436: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:3439: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:3442: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 eval "$ac_ac_Header=yes"
3445else
3446 echo "$as_me: failed program was:" >&5
3447cat conftest.$ac_ext >&5
3448eval "$ac_ac_Header=no"
3449fi
3450rm -f conftest.$ac_objext conftest.$ac_ext
3451fi
3452echo "$as_me:3452: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3453echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3454if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3455 cat >>confdefs.h <<EOF
3456#define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
3457EOF
3458
3459ac_header_dirent=$ac_hdr; break
3460fi
3461
3462done
3463# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3464if test $ac_header_dirent = dirent.h; then
3465 echo "$as_me:3465: checking for opendir in -ldir" >&5
3466echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3467if test "${ac_cv_lib_dir_opendir+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 ac_check_lib_save_LIBS=$LIBS
3471LIBS="-ldir $LIBS"
3472cat >conftest.$ac_ext <<_ACEOF
3473#line 3473 "configure"
3474#include "confdefs.h"
3475
3476/* Override any gcc2 internal prototype to avoid an error. */
3477#ifdef __cplusplus
3478extern "C"
3479#endif
3480/* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3482char opendir ();
3483int
3484main ()
3485{
3486opendir ();
3487 ;
3488 return 0;
3489}
3490_ACEOF
3491rm -f conftest.$ac_objext conftest$ac_exeext
3492if { (eval echo "$as_me:3492: \"$ac_link\"") >&5
3493 (eval $ac_link) 2>&5
3494 ac_status=$?
3495 echo "$as_me:3495: \$? = $ac_status" >&5
3496 (exit $ac_status); } &&
3497 { ac_try='test -s conftest$ac_exeext'
3498 { (eval echo "$as_me:3498: \"$ac_try\"") >&5
3499 (eval $ac_try) 2>&5
3500 ac_status=$?
3501 echo "$as_me:3501: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3503 ac_cv_lib_dir_opendir=yes
3504else
3505 echo "$as_me: failed program was:" >&5
3506cat conftest.$ac_ext >&5
3507ac_cv_lib_dir_opendir=no
3508fi
3509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3510LIBS=$ac_check_lib_save_LIBS
3511fi
3512echo "$as_me:3512: result: $ac_cv_lib_dir_opendir" >&5
3513echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3514if test $ac_cv_lib_dir_opendir = yes; then
3515 LIBS="$LIBS -ldir"
3516fi
3517
3518else
3519 echo "$as_me:3519: checking for opendir in -lx" >&5
3520echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3521if test "${ac_cv_lib_x_opendir+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3523else
3524 ac_check_lib_save_LIBS=$LIBS
3525LIBS="-lx $LIBS"
3526cat >conftest.$ac_ext <<_ACEOF
3527#line 3527 "configure"
3528#include "confdefs.h"
3529
3530/* Override any gcc2 internal prototype to avoid an error. */
3531#ifdef __cplusplus
3532extern "C"
3533#endif
3534/* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536char opendir ();
3537int
3538main ()
3539{
3540opendir ();
3541 ;
3542 return 0;
3543}
3544_ACEOF
3545rm -f conftest.$ac_objext conftest$ac_exeext
3546if { (eval echo "$as_me:3546: \"$ac_link\"") >&5
3547 (eval $ac_link) 2>&5
3548 ac_status=$?
3549 echo "$as_me:3549: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -s conftest$ac_exeext'
3552 { (eval echo "$as_me:3552: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:3555: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_lib_x_opendir=yes
3558else
3559 echo "$as_me: failed program was:" >&5
3560cat conftest.$ac_ext >&5
3561ac_cv_lib_x_opendir=no
3562fi
3563rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3564LIBS=$ac_check_lib_save_LIBS
3565fi
3566echo "$as_me:3566: result: $ac_cv_lib_x_opendir" >&5
3567echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
3568if test $ac_cv_lib_x_opendir = yes; then
3569 LIBS="$LIBS -lx"
3570fi
3571
3572fi
3573
3574echo "$as_me:3574: checking for ANSI C header files" >&5
3575echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3576if test "${ac_cv_header_stdc+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 cat >conftest.$ac_ext <<_ACEOF
3580#line 3580 "configure"
3581#include "confdefs.h"
3582#include <stdlib.h>
3583#include <stdarg.h>
3584#include <string.h>
3585#include <float.h>
3586
3587_ACEOF
3588if { (eval echo "$as_me:3588: \"$ac_cpp conftest.$ac_ext\"") >&5
3589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3590 ac_status=$?
3591 egrep -v '^ *\+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:3594: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 else
3599 ac_cpp_err=
3600 fi
3601else
3602 ac_cpp_err=yes
3603fi
3604if test -z "$ac_cpp_err"; then
3605 ac_cv_header_stdc=yes
3606else
3607 echo "$as_me: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3609 ac_cv_header_stdc=no
3610fi
3611rm -f conftest.err conftest.$ac_ext
3612
3613if test $ac_cv_header_stdc = yes; then
3614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3615 cat >conftest.$ac_ext <<_ACEOF
3616#line 3616 "configure"
3617#include "confdefs.h"
3618#include <string.h>
3619
3620_ACEOF
3621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 egrep "memchr" >/dev/null 2>&1; then
3623 :
3624else
3625 ac_cv_header_stdc=no
3626fi
3627rm -f conftest*
3628
3629fi
3630
3631if test $ac_cv_header_stdc = yes; then
3632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3633 cat >conftest.$ac_ext <<_ACEOF
3634#line 3634 "configure"
3635#include "confdefs.h"
3636#include <stdlib.h>
3637
3638_ACEOF
3639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 egrep "free" >/dev/null 2>&1; then
3641 :
3642else
3643 ac_cv_header_stdc=no
3644fi
3645rm -f conftest*
3646
3647fi
3648
3649if test $ac_cv_header_stdc = yes; then
3650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3651 if test "$cross_compiling" = yes; then
3652 :
3653else
3654 cat >conftest.$ac_ext <<_ACEOF
3655#line 3655 "configure"
3656#include "confdefs.h"
3657#include <ctype.h>
3658#if ((' ' & 0x0FF) == 0x020)
3659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3661#else
3662# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3663 || ('j' <= (c) && (c) <= 'r') \
3664 || ('s' <= (c) && (c) <= 'z'))
3665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3666#endif
3667
3668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3669int
3670main ()
3671{
3672 int i;
3673 for (i = 0; i < 256; i++)
3674 if (XOR (islower (i), ISLOWER (i))
3675 || toupper (i) != TOUPPER (i))
3676 exit(2);
3677 exit (0);
3678}
3679_ACEOF
3680rm -f conftest$ac_exeext
3681if { (eval echo "$as_me:3681: \"$ac_link\"") >&5
3682 (eval $ac_link) 2>&5
3683 ac_status=$?
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3686 { (eval echo "$as_me:3686: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:3689: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 :
3692else
3693 echo "$as_me: program exited with status $ac_status" >&5
3694echo "$as_me: failed program was:" >&5
3695cat conftest.$ac_ext >&5
3696ac_cv_header_stdc=no
3697fi
3698rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3699fi
3700fi
3701fi
3702echo "$as_me:3702: result: $ac_cv_header_stdc" >&5
3703echo "${ECHO_T}$ac_cv_header_stdc" >&6
3704if test $ac_cv_header_stdc = yes; then
3705
3706cat >>confdefs.h <<\EOF
3707#define STDC_HEADERS 1
3708EOF
3709
3710fi
3711
3712for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
3713do
3714ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3715echo "$as_me:3715: checking for $ac_header" >&5
3716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3717if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719else
3720 cat >conftest.$ac_ext <<_ACEOF
3721#line 3721 "configure"
3722#include "confdefs.h"
3723#include <$ac_header>
3724_ACEOF
3725if { (eval echo "$as_me:3725: \"$ac_cpp conftest.$ac_ext\"") >&5
3726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3727 ac_status=$?
3728 egrep -v '^ *\+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 echo "$as_me:3731: \$? = $ac_status" >&5
3732 (exit $ac_status); } >/dev/null; then
3733 if test -s conftest.err; then
3734 ac_cpp_err=$ac_c_preproc_warn_flag
3735 else
3736 ac_cpp_err=
3737 fi
3738else
3739 ac_cpp_err=yes
3740fi
3741if test -z "$ac_cpp_err"; then
3742 eval "$ac_ac_Header=yes"
3743else
3744 echo "$as_me: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3746 eval "$ac_ac_Header=no"
3747fi
3748rm -f conftest.err conftest.$ac_ext
3749fi
3750echo "$as_me:3750: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3751echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3752if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3753 cat >>confdefs.h <<EOF
3754#define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3755EOF
3756
3757fi
3758done
3759
3760cat >conftest.$ac_ext <<_ACEOF
3761#line 3761 "configure"
3762#include "confdefs.h"
3763#include <stdio.h>
3764
3765_ACEOF
3766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 egrep "fread" >/dev/null 2>&1; then
3768 cat >>confdefs.h <<\EOF
3769#define HAVE_FREAD_DECL 1
3770EOF
3771
3772fi
3773rm -f conftest*
3774
3775cat >conftest.$ac_ext <<_ACEOF
3776#line 3776 "configure"
3777#include "confdefs.h"
3778#include <stdio.h>
3779
3780_ACEOF
3781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3782 egrep "fgetc" >/dev/null 2>&1; then
3783 cat >>confdefs.h <<\EOF
3784#define HAVE_FGETC_DECL 1
3785EOF
3786
3787fi
3788rm -f conftest*
3789
3790cat >conftest.$ac_ext <<_ACEOF
3791#line 3791 "configure"
3792#include "confdefs.h"
3793#include <sys/procfs.h>
3794
3795_ACEOF
3796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797 egrep "pr_brksize" >/dev/null 2>&1; then
3798 cat >>confdefs.h <<\EOF
3799#define HAVE_PR_BRKSIZE 1
3800EOF
3801
3802fi
3803rm -f conftest*
3804
3805# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3806# for constant arguments. Useless!
3807echo "$as_me:3807: checking for working alloca.h" >&5
3808echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3809if test "${ac_cv_working_alloca_h+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812 cat >conftest.$ac_ext <<_ACEOF
3813#line 3813 "configure"
3814#include "confdefs.h"
3815#include <alloca.h>
3816int
3817main ()
3818{
3819char *p = (char *) alloca (2 * sizeof (int));
3820 ;
3821 return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext conftest$ac_exeext
3825if { (eval echo "$as_me:3825: \"$ac_link\"") >&5
3826 (eval $ac_link) 2>&5
3827 ac_status=$?
3828 echo "$as_me:3828: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -s conftest$ac_exeext'
3831 { (eval echo "$as_me:3831: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_working_alloca_h=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839cat conftest.$ac_ext >&5
3840ac_cv_working_alloca_h=no
3841fi
3842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3843fi
3844echo "$as_me:3844: result: $ac_cv_working_alloca_h" >&5
3845echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3846if test $ac_cv_working_alloca_h = yes; then
3847
3848cat >>confdefs.h <<\EOF
3849#define HAVE_ALLOCA_H 1
3850EOF
3851
3852fi
3853
3854echo "$as_me:3854: checking for alloca" >&5
3855echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3856if test "${ac_cv_func_alloca_works+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859 cat >conftest.$ac_ext <<_ACEOF
3860#line 3860 "configure"
3861#include "confdefs.h"
3862#ifdef __GNUC__
3863# define alloca __builtin_alloca
3864#else
3865# ifdef _MSC_VER
3866# include <malloc.h>
3867# define alloca _alloca
3868# else
3869# if HAVE_ALLOCA_H
3870# include <alloca.h>
3871# else
3872# ifdef _AIX
3873 #pragma alloca
3874# else
3875# ifndef alloca /* predefined by HP cc +Olibcalls */
3876char *alloca ();
3877# endif
3878# endif
3879# endif
3880# endif
3881#endif
3882
3883int
3884main ()
3885{
3886char *p = (char *) alloca (1);
3887 ;
3888 return 0;
3889}
3890_ACEOF
3891rm -f conftest.$ac_objext conftest$ac_exeext
3892if { (eval echo "$as_me:3892: \"$ac_link\"") >&5
3893 (eval $ac_link) 2>&5
3894 ac_status=$?
3895 echo "$as_me:3895: \$? = $ac_status" >&5
3896 (exit $ac_status); } &&
3897 { ac_try='test -s conftest$ac_exeext'
3898 { (eval echo "$as_me:3898: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:3901: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_cv_func_alloca_works=yes
3904else
3905 echo "$as_me: failed program was:" >&5
3906cat conftest.$ac_ext >&5
3907ac_cv_func_alloca_works=no
3908fi
3909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3910fi
3911echo "$as_me:3911: result: $ac_cv_func_alloca_works" >&5
3912echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3913
3914if test $ac_cv_func_alloca_works = yes; then
3915
3916cat >>confdefs.h <<\EOF
3917#define HAVE_ALLOCA 1
3918EOF
3919
3920else
3921 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3922# that cause trouble. Some versions do not even contain alloca or
3923# contain a buggy version. If you still want to use their alloca,
3924# use ar to extract alloca.o from them instead of compiling alloca.c.
3925
3926ALLOCA=alloca.$ac_objext
3927
3928cat >>confdefs.h <<\EOF
3929#define C_ALLOCA 1
3930EOF
3931
3932echo "$as_me:3932: checking whether \`alloca.c' needs Cray hooks" >&5
3933echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3934if test "${ac_cv_os_cray+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937 cat >conftest.$ac_ext <<_ACEOF
3938#line 3938 "configure"
3939#include "confdefs.h"
3940#if defined(CRAY) && ! defined(CRAY2)
3941webecray
3942#else
3943wenotbecray
3944#endif
3945
3946_ACEOF
3947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948 egrep "webecray" >/dev/null 2>&1; then
3949 ac_cv_os_cray=yes
3950else
3951 ac_cv_os_cray=no
3952fi
3953rm -f conftest*
3954
3955fi
3956echo "$as_me:3956: result: $ac_cv_os_cray" >&5
3957echo "${ECHO_T}$ac_cv_os_cray" >&6
3958if test $ac_cv_os_cray = yes; then
3959 for ac_func in _getb67 GETB67 getb67; do
3960 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
3961echo "$as_me:3961: checking for $ac_func" >&5
3962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3963if eval "test \"\${$ac_ac_var+set}\" = set"; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
3967#line 3967 "configure"
3968#include "confdefs.h"
3969/* System header to define __stub macros and hopefully few prototypes,
3970 which can conflict with char $ac_func (); below. */
3971#include <assert.h>
3972/* Override any gcc2 internal prototype to avoid an error. */
3973#ifdef __cplusplus
3974extern "C"
3975#endif
3976/* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3978char $ac_func ();
3979char (*f) ();
3980
3981int
3982main ()
3983{
3984/* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3988choke me
3989#else
3990f = $ac_func;
3991#endif
3992
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
3998if { (eval echo "$as_me:3998: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>&5
4000 ac_status=$?
4001 echo "$as_me:4001: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -s conftest$ac_exeext'
4004 { (eval echo "$as_me:4004: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:4007: \$? = $ac_status" >&5
4008 (exit $ac_status); }; }; then
4009 eval "$ac_ac_var=yes"
4010else
4011 echo "$as_me: failed program was:" >&5
4012cat conftest.$ac_ext >&5
4013eval "$ac_ac_var=no"
4014fi
4015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4016fi
4017echo "$as_me:4017: result: `eval echo '${'$ac_ac_var'}'`" >&5
4018echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4019if test `eval echo '${'$ac_ac_var'}'` = yes; then
4020
4021cat >>confdefs.h <<EOF
4022#define CRAY_STACKSEG_END $ac_func
4023EOF
4024
4025 break
4026fi
4027
4028 done
4029fi
4030
4031echo "$as_me:4031: checking stack direction for C alloca" >&5
4032echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4033if test "${ac_cv_c_stack_direction+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036 if test "$cross_compiling" = yes; then
4037 ac_cv_c_stack_direction=0
4038else
4039 cat >conftest.$ac_ext <<_ACEOF
4040#line 4040 "configure"
4041#include "confdefs.h"
4042int
4043find_stack_direction ()
4044{
4045 static char *addr = 0;
4046 auto char dummy;
4047 if (addr == 0)
4048 {
4049 addr = &dummy;
4050 return find_stack_direction ();
4051 }
4052 else
4053 return (&dummy > addr) ? 1 : -1;
4054}
4055
4056int
4057main ()
4058{
4059 exit (find_stack_direction () < 0);
4060}
4061_ACEOF
4062rm -f conftest$ac_exeext
4063if { (eval echo "$as_me:4063: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>&5
4065 ac_status=$?
4066 echo "$as_me:4066: \$? = $ac_status" >&5
4067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4068 { (eval echo "$as_me:4068: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:4071: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4073 ac_cv_c_stack_direction=1
4074else
4075 echo "$as_me: program exited with status $ac_status" >&5
4076echo "$as_me: failed program was:" >&5
4077cat conftest.$ac_ext >&5
4078ac_cv_c_stack_direction=-1
4079fi
4080rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4081fi
4082fi
4083echo "$as_me:4083: result: $ac_cv_c_stack_direction" >&5
4084echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4085
4086cat >>confdefs.h <<EOF
4087#define STACK_DIRECTION $ac_cv_c_stack_direction
4088EOF
4089
4090fi
4091
4092if test $ac_cv_c_compiler_gnu = yes; then
4093 echo "$as_me:4093: checking whether $CC needs -traditional" >&5
4094echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4095if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 ac_pattern="Autoconf.*'x'"
4099 cat >conftest.$ac_ext <<_ACEOF
4100#line 4100 "configure"
4101#include "confdefs.h"
4102#include <sgtty.h>
4103Autoconf TIOCGETP
4104_ACEOF
4105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106 egrep "$ac_pattern" >/dev/null 2>&1; then
4107 ac_cv_prog_gcc_traditional=yes
4108else
4109 ac_cv_prog_gcc_traditional=no
4110fi
4111rm -f conftest*
4112
4113 if test $ac_cv_prog_gcc_traditional = no; then
4114 cat >conftest.$ac_ext <<_ACEOF
4115#line 4115 "configure"
4116#include "confdefs.h"
4117#include <termio.h>
4118Autoconf TCGETA
4119_ACEOF
4120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 egrep "$ac_pattern" >/dev/null 2>&1; then
4122 ac_cv_prog_gcc_traditional=yes
4123fi
4124rm -f conftest*
4125
4126 fi
4127fi
4128echo "$as_me:4128: result: $ac_cv_prog_gcc_traditional" >&5
4129echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4130 if test $ac_cv_prog_gcc_traditional = yes; then
4131 CC="$CC -traditional"
4132 fi
4133fi
4134
4135echo "$as_me:4135: checking return type of signal handlers" >&5
4136echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4137if test "${ac_cv_type_signal+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 cat >conftest.$ac_ext <<_ACEOF
4141#line 4141 "configure"
4142#include "confdefs.h"
4143#include <sys/types.h>
4144#include <signal.h>
4145#ifdef signal
4146# undef signal
4147#endif
4148#ifdef __cplusplus
4149extern "C" void (*signal (int, void (*)(int)))(int);
4150#else
4151void (*signal ()) ();
4152#endif
4153
4154int
4155main ()
4156{
4157int i;
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162rm -f conftest.$ac_objext
4163if { (eval echo "$as_me:4163: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>&5
4165 ac_status=$?
4166 echo "$as_me:4166: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:4169: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_type_signal=void
4175else
4176 echo "$as_me: failed program was:" >&5
4177cat conftest.$ac_ext >&5
4178ac_cv_type_signal=int
4179fi
4180rm -f conftest.$ac_objext conftest.$ac_ext
4181fi
4182echo "$as_me:4182: result: $ac_cv_type_signal" >&5
4183echo "${ECHO_T}$ac_cv_type_signal" >&6
4184
4185cat >>confdefs.h <<EOF
4186#define RETSIGTYPE $ac_cv_type_signal
4187EOF
4188
4189for ac_func in vprintf
4190do
4191ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4192echo "$as_me:4192: checking for $ac_func" >&5
4193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4194if eval "test \"\${$ac_ac_var+set}\" = set"; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197 cat >conftest.$ac_ext <<_ACEOF
4198#line 4198 "configure"
4199#include "confdefs.h"
4200/* System header to define __stub macros and hopefully few prototypes,
4201 which can conflict with char $ac_func (); below. */
4202#include <assert.h>
4203/* Override any gcc2 internal prototype to avoid an error. */
4204#ifdef __cplusplus
4205extern "C"
4206#endif
4207/* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209char $ac_func ();
4210char (*f) ();
4211
4212int
4213main ()
4214{
4215/* The GNU C library defines this for functions which it implements
4216 to always fail with ENOSYS. Some functions are actually named
4217 something starting with __ and the normal name is an alias. */
4218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4219choke me
4220#else
4221f = $ac_func;
4222#endif
4223
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228rm -f conftest.$ac_objext conftest$ac_exeext
4229if { (eval echo "$as_me:4229: \"$ac_link\"") >&5
4230 (eval $ac_link) 2>&5
4231 ac_status=$?
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:4235: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:4238: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 eval "$ac_ac_var=yes"
4241else
4242 echo "$as_me: failed program was:" >&5
4243cat conftest.$ac_ext >&5
4244eval "$ac_ac_var=no"
4245fi
4246rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4247fi
4248echo "$as_me:4248: result: `eval echo '${'$ac_ac_var'}'`" >&5
4249echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4250if test `eval echo '${'$ac_ac_var'}'` = yes; then
4251 cat >>confdefs.h <<EOF
4252#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4253EOF
4254
4255echo "$as_me:4255: checking for _doprnt" >&5
4256echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4257if test "${ac_cv_func__doprnt+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261#line 4261 "configure"
4262#include "confdefs.h"
4263/* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char _doprnt (); below. */
4265#include <assert.h>
4266/* Override any gcc2 internal prototype to avoid an error. */
4267#ifdef __cplusplus
4268extern "C"
4269#endif
4270/* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4272char _doprnt ();
4273char (*f) ();
4274
4275int
4276main ()
4277{
4278/* The GNU C library defines this for functions which it implements
4279 to always fail with ENOSYS. Some functions are actually named
4280 something starting with __ and the normal name is an alias. */
4281#if defined (__stub__doprnt) || defined (__stub____doprnt)
4282choke me
4283#else
4284f = _doprnt;
4285#endif
4286
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext conftest$ac_exeext
4292if { (eval echo "$as_me:4292: \"$ac_link\"") >&5
4293 (eval $ac_link) 2>&5
4294 ac_status=$?
4295 echo "$as_me:4295: \$? = $ac_status" >&5
4296 (exit $ac_status); } &&
4297 { ac_try='test -s conftest$ac_exeext'
4298 { (eval echo "$as_me:4298: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:4301: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_func__doprnt=yes
4304else
4305 echo "$as_me: failed program was:" >&5
4306cat conftest.$ac_ext >&5
4307ac_cv_func__doprnt=no
4308fi
4309rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4310fi
4311echo "$as_me:4311: result: $ac_cv_func__doprnt" >&5
4312echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4313if test $ac_cv_func__doprnt = yes; then
4314
4315cat >>confdefs.h <<\EOF
4316#define HAVE_DOPRNT 1
4317EOF
4318
4319fi
4320
4321fi
4322done
4323
4324for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
4325do
4326ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4327echo "$as_me:4327: checking for $ac_func" >&5
4328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4329if eval "test \"\${$ac_ac_var+set}\" = set"; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331else
4332 cat >conftest.$ac_ext <<_ACEOF
4333#line 4333 "configure"
4334#include "confdefs.h"
4335/* System header to define __stub macros and hopefully few prototypes,
4336 which can conflict with char $ac_func (); below. */
4337#include <assert.h>
4338/* Override any gcc2 internal prototype to avoid an error. */
4339#ifdef __cplusplus
4340extern "C"
4341#endif
4342/* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4344char $ac_func ();
4345char (*f) ();
4346
4347int
4348main ()
4349{
4350/* The GNU C library defines this for functions which it implements
4351 to always fail with ENOSYS. Some functions are actually named
4352 something starting with __ and the normal name is an alias. */
4353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4354choke me
4355#else
4356f = $ac_func;
4357#endif
4358
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363rm -f conftest.$ac_objext conftest$ac_exeext
4364if { (eval echo "$as_me:4364: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>&5
4366 ac_status=$?
4367 echo "$as_me:4367: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest$ac_exeext'
4370 { (eval echo "$as_me:4370: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:4373: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 eval "$ac_ac_var=yes"
4376else
4377 echo "$as_me: failed program was:" >&5
4378cat conftest.$ac_ext >&5
4379eval "$ac_ac_var=no"
4380fi
4381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4382fi
4383echo "$as_me:4383: result: `eval echo '${'$ac_ac_var'}'`" >&5
4384echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4385if test `eval echo '${'$ac_ac_var'}'` = yes; then
4386 cat >>confdefs.h <<EOF
4387#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4388EOF
4389
4390fi
4391done
4392
4393for ac_func in ftruncate strstr strcasecmp
4394do
4395ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4396echo "$as_me:4396: checking for $ac_func" >&5
4397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4398if eval "test \"\${$ac_ac_var+set}\" = set"; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400else
4401 cat >conftest.$ac_ext <<_ACEOF
4402#line 4402 "configure"
4403#include "confdefs.h"
4404/* System header to define __stub macros and hopefully few prototypes,
4405 which can conflict with char $ac_func (); below. */
4406#include <assert.h>
4407/* Override any gcc2 internal prototype to avoid an error. */
4408#ifdef __cplusplus
4409extern "C"
4410#endif
4411/* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413char $ac_func ();
4414char (*f) ();
4415
4416int
4417main ()
4418{
4419/* The GNU C library defines this for functions which it implements
4420 to always fail with ENOSYS. Some functions are actually named
4421 something starting with __ and the normal name is an alias. */
4422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4423choke me
4424#else
4425f = $ac_func;
4426#endif
4427
4428 ;
4429 return 0;
4430}
4431_ACEOF
4432rm -f conftest.$ac_objext conftest$ac_exeext
4433if { (eval echo "$as_me:4433: \"$ac_link\"") >&5
4434 (eval $ac_link) 2>&5
4435 ac_status=$?
4436 echo "$as_me:4436: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -s conftest$ac_exeext'
4439 { (eval echo "$as_me:4439: \"$ac_try\"") >&5
4440 (eval $ac_try) 2>&5
4441 ac_status=$?
4442 echo "$as_me:4442: \$? = $ac_status" >&5
4443 (exit $ac_status); }; }; then
4444 eval "$ac_ac_var=yes"
4445else
4446 echo "$as_me: failed program was:" >&5
4447cat conftest.$ac_ext >&5
4448eval "$ac_ac_var=no"
4449fi
4450rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4451fi
4452echo "$as_me:4452: result: `eval echo '${'$ac_ac_var'}'`" >&5
4453echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4454if test `eval echo '${'$ac_ac_var'}'` = yes; then
4455 cat >>confdefs.h <<EOF
4456#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4457EOF
4458
4459else
4460 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4461fi
4462done
4463
4464echo "$as_me:4464: checking for textdomain" >&5
4465echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
4466if test "${ac_cv_func_textdomain+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4468else
4469 cat >conftest.$ac_ext <<_ACEOF
4470#line 4470 "configure"
4471#include "confdefs.h"
4472/* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char textdomain (); below. */
4474#include <assert.h>
4475/* Override any gcc2 internal prototype to avoid an error. */
4476#ifdef __cplusplus
4477extern "C"
4478#endif
4479/* We use char because int might match the return type of a gcc2
4480 builtin and then its argument prototype would still apply. */
4481char textdomain ();
4482char (*f) ();
4483
4484int
4485main ()
4486{
4487/* The GNU C library defines this for functions which it implements
4488 to always fail with ENOSYS. Some functions are actually named
4489 something starting with __ and the normal name is an alias. */
4490#if defined (__stub_textdomain) || defined (__stub___textdomain)
4491choke me
4492#else
4493f = textdomain;
4494#endif
4495
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext conftest$ac_exeext
4501if { (eval echo "$as_me:4501: \"$ac_link\"") >&5
4502 (eval $ac_link) 2>&5
4503 ac_status=$?
4504 echo "$as_me:4504: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -s conftest$ac_exeext'
4507 { (eval echo "$as_me:4507: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:4510: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_func_textdomain=yes
4513else
4514 echo "$as_me: failed program was:" >&5
4515cat conftest.$ac_ext >&5
4516ac_cv_func_textdomain=no
4517fi
4518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4519fi
4520echo "$as_me:4520: result: $ac_cv_func_textdomain" >&5
4521echo "${ECHO_T}$ac_cv_func_textdomain" >&6
4522if test $ac_cv_func_textdomain = yes; then
4523 cat >>confdefs.h <<\EOF
4524#define ENABLE_NLS 1
4525EOF
4526
4527fi
4528
4529# *** Custom checking (based on GNU tar configure.in) ***
4530# ---------------------------------------------------------------------------
4531echo "$as_me:4531: checking for HP-UX needing gmalloc" >&5
4532echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
4533if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
4534 echo "$as_me:4534: result: yes" >&5
4535echo "${ECHO_T}yes" >&6
4536 LIBOBJS="$LIBOBJS gmalloc.o"
4537 cat >>confdefs.h <<\EOF
4538#define HAVE_VALLOC 1
4539EOF
4540
4541else
4542 echo "$as_me:4542: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544
4545for ac_func in valloc
4546do
4547ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4548echo "$as_me:4548: checking for $ac_func" >&5
4549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4550if eval "test \"\${$ac_ac_var+set}\" = set"; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552else
4553 cat >conftest.$ac_ext <<_ACEOF
4554#line 4554 "configure"
4555#include "confdefs.h"
4556/* System header to define __stub macros and hopefully few prototypes,
4557 which can conflict with char $ac_func (); below. */
4558#include <assert.h>
4559/* Override any gcc2 internal prototype to avoid an error. */
4560#ifdef __cplusplus
4561extern "C"
4562#endif
4563/* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4565char $ac_func ();
4566char (*f) ();
4567
4568int
4569main ()
4570{
4571/* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4575choke me
4576#else
4577f = $ac_func;
4578#endif
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584rm -f conftest.$ac_objext conftest$ac_exeext
4585if { (eval echo "$as_me:4585: \"$ac_link\"") >&5
4586 (eval $ac_link) 2>&5
4587 ac_status=$?
4588 echo "$as_me:4588: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -s conftest$ac_exeext'
4591 { (eval echo "$as_me:4591: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:4594: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 eval "$ac_ac_var=yes"
4597else
4598 echo "$as_me: failed program was:" >&5
4599cat conftest.$ac_ext >&5
4600eval "$ac_ac_var=no"
4601fi
4602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4603fi
4604echo "$as_me:4604: result: `eval echo '${'$ac_ac_var'}'`" >&5
4605echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4606if test `eval echo '${'$ac_ac_var'}'` = yes; then
4607 cat >>confdefs.h <<EOF
4608#define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4609EOF
4610
4611fi
4612done
4613
4614fi
4615
4616echo "$as_me:4616: checking if malloc debugging is wanted" >&5
4617echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
4618
4619# Check whether --with-dmalloc or --without-dmalloc was given.
4620if test "${with_dmalloc+set}" = set; then
4621 withval="$with_dmalloc"
4622 if test "$withval" = yes; then
4623 echo "$as_me:4623: result: yes" >&5
4624echo "${ECHO_T}yes" >&6
4625 cat >>confdefs.h <<\EOF
4626#define WITH_DMALLOC 1
4627EOF
4628
4629 LIBS="$LIBS -ldmalloc"
4630 LDFLAGS="$LDFLAGS -g"
4631else
4632 echo "$as_me:4632: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634fi
4635else
4636 echo "$as_me:4636: result: no" >&5
4637echo "${ECHO_T}no" >&6
4638fi;
4639
4640echo "$as_me:4640: checking which of rx or regex is wanted" >&5
4641echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
4642
4643# Check whether --with-regex or --without-regex was given.
4644if test "${with_regex+set}" = set; then
4645 withval="$with_regex"
4646 if test "$withval" = yes; then
4647 ac_with_regex=1
4648 echo "$as_me:4648: result: regex" >&5
4649echo "${ECHO_T}regex" >&6
4650 cat >>confdefs.h <<\EOF
4651#define WITH_REGEX 1
4652EOF
4653
4654 LIBOBJS="$LIBOBJS regex.o"
4655fi
4656fi;
4657if test -z "$ac_with_regex"; then
4658 echo "$as_me:4658: result: rx" >&5
4659echo "${ECHO_T}rx" >&6
4660 echo "$as_me:4660: checking for re_rx_search" >&5
4661echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
4662if test "${ac_cv_func_re_rx_search+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 cat >conftest.$ac_ext <<_ACEOF
4666#line 4666 "configure"
4667#include "confdefs.h"
4668/* System header to define __stub macros and hopefully few prototypes,
4669 which can conflict with char re_rx_search (); below. */
4670#include <assert.h>
4671/* Override any gcc2 internal prototype to avoid an error. */
4672#ifdef __cplusplus
4673extern "C"
4674#endif
4675/* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677char re_rx_search ();
4678char (*f) ();
4679
4680int
4681main ()
4682{
4683/* The GNU C library defines this for functions which it implements
4684 to always fail with ENOSYS. Some functions are actually named
4685 something starting with __ and the normal name is an alias. */
4686#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
4687choke me
4688#else
4689f = re_rx_search;
4690#endif
4691
4692 ;
4693 return 0;
4694}
4695_ACEOF
4696rm -f conftest.$ac_objext conftest$ac_exeext
4697if { (eval echo "$as_me:4697: \"$ac_link\"") >&5
4698 (eval $ac_link) 2>&5
4699 ac_status=$?
4700 echo "$as_me:4700: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -s conftest$ac_exeext'
4703 { (eval echo "$as_me:4703: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:4706: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_cv_func_re_rx_search=yes
4709else
4710 echo "$as_me: failed program was:" >&5
4711cat conftest.$ac_ext >&5
4712ac_cv_func_re_rx_search=no
4713fi
4714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4715fi
4716echo "$as_me:4716: result: $ac_cv_func_re_rx_search" >&5
4717echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
4718if test $ac_cv_func_re_rx_search = yes; then
4719 :
4720else
4721 echo "$as_me:4721: checking for unsigned char *" >&5
4722echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
4723if test "${ac_cv_type_unsigned_char_p+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726 cat >conftest.$ac_ext <<_ACEOF
4727#line 4727 "configure"
4728#include "confdefs.h"
4729$ac_includes_default
4730int
4731main ()
4732{
4733if ((unsigned char * *) 0)
4734 return 0;
4735if (sizeof (unsigned char *))
4736 return 0;
4737 ;
4738 return 0;
4739}
4740_ACEOF
4741rm -f conftest.$ac_objext
4742if { (eval echo "$as_me:4742: \"$ac_compile\"") >&5
4743 (eval $ac_compile) 2>&5
4744 ac_status=$?
4745 echo "$as_me:4745: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:4748: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:4751: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_type_unsigned_char_p=yes
4754else
4755 echo "$as_me: failed program was:" >&5
4756cat conftest.$ac_ext >&5
4757ac_cv_type_unsigned_char_p=no
4758fi
4759rm -f conftest.$ac_objext conftest.$ac_ext
4760fi
4761echo "$as_me:4761: result: $ac_cv_type_unsigned_char_p" >&5
4762echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
4763
4764echo "$as_me:4764: checking size of unsigned char *" >&5
4765echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
4766if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769 if test "$ac_cv_type_unsigned_char_p" = yes; then
4770 if test "$cross_compiling" = yes; then
4771 # Depending upon the size, compute the lo and hi bounds.
4772cat >conftest.$ac_ext <<_ACEOF
4773#line 4773 "configure"
4774#include "confdefs.h"
4775$ac_includes_default
4776int
4777main ()
4778{
4779int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)]
4780 ;
4781 return 0;
4782}
4783_ACEOF
4784rm -f conftest.$ac_objext
4785if { (eval echo "$as_me:4785: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>&5
4787 ac_status=$?
4788 echo "$as_me:4788: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:4791: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:4794: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_lo=0 ac_mid=0
4797 while :; do
4798 cat >conftest.$ac_ext <<_ACEOF
4799#line 4799 "configure"
4800#include "confdefs.h"
4801$ac_includes_default
4802int
4803main ()
4804{
4805int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
4806 ;
4807 return 0;
4808}
4809_ACEOF
4810rm -f conftest.$ac_objext
4811if { (eval echo "$as_me:4811: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>&5
4813 ac_status=$?
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest.$ac_objext'
4817 { (eval echo "$as_me:4817: \"$ac_try\"") >&5
4818 (eval $ac_try) 2>&5
4819 ac_status=$?
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_hi=$ac_mid; break
4823else
4824 echo "$as_me: failed program was:" >&5
4825cat conftest.$ac_ext >&5
4826ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
4827fi
4828rm -f conftest.$ac_objext conftest.$ac_ext
4829 done
4830else
4831 echo "$as_me: failed program was:" >&5
4832cat conftest.$ac_ext >&5
4833ac_hi=-1 ac_mid=-1
4834 while :; do
4835 cat >conftest.$ac_ext <<_ACEOF
4836#line 4836 "configure"
4837#include "confdefs.h"
4838$ac_includes_default
4839int
4840main ()
4841{
4842int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)]
4843 ;
4844 return 0;
4845}
4846_ACEOF
4847rm -f conftest.$ac_objext
4848if { (eval echo "$as_me:4848: \"$ac_compile\"") >&5
4849 (eval $ac_compile) 2>&5
4850 ac_status=$?
4851 echo "$as_me:4851: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -s conftest.$ac_objext'
4854 { (eval echo "$as_me:4854: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:4857: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_lo=$ac_mid; break
4860else
4861 echo "$as_me: failed program was:" >&5
4862cat conftest.$ac_ext >&5
4863ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
4864fi
4865rm -f conftest.$ac_objext conftest.$ac_ext
4866 done
4867fi
4868rm -f conftest.$ac_objext conftest.$ac_ext
4869# Binary search between lo and hi bounds.
4870while test "x$ac_lo" != "x$ac_hi"; do
4871 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4872 cat >conftest.$ac_ext <<_ACEOF
4873#line 4873 "configure"
4874#include "confdefs.h"
4875$ac_includes_default
4876int
4877main ()
4878{
4879int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)]
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
4885if { (eval echo "$as_me:4885: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:4888: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
4890 { ac_try='test -s conftest.$ac_objext'
4891 { (eval echo "$as_me:4891: \"$ac_try\"") >&5
4892 (eval $ac_try) 2>&5
4893 ac_status=$?
4894 echo "$as_me:4894: \$? = $ac_status" >&5
4895 (exit $ac_status); }; }; then
4896 ac_hi=$ac_mid
4897else
4898 echo "$as_me: failed program was:" >&5
4899cat conftest.$ac_ext >&5
4900ac_lo=`expr $ac_mid + 1`
4901fi
4902rm -f conftest.$ac_objext conftest.$ac_ext
4903done
4904ac_cv_sizeof_unsigned_char_p=$ac_lo
4905else
4906 if test "$cross_compiling" = yes; then
4907 { { echo "$as_me:4907: error: cannot run test program while cross compiling" >&5
4908echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4909 { (exit 1); exit 1; }; }
4910else
4911 cat >conftest.$ac_ext <<_ACEOF
4912#line 4912 "configure"
4913#include "confdefs.h"
4914$ac_includes_default
4915int
4916main ()
4917{
4918FILE *f = fopen ("conftest.val", "w");
4919if (!f)
4920 exit (1);
4921fprintf (f, "%d", (sizeof (unsigned char *)));
4922fclose (f);
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927rm -f conftest$ac_exeext
4928if { (eval echo "$as_me:4928: \"$ac_link\"") >&5
4929 (eval $ac_link) 2>&5
4930 ac_status=$?
4931 echo "$as_me:4931: \$? = $ac_status" >&5
4932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4933 { (eval echo "$as_me:4933: \"$ac_try\"") >&5
4934 (eval $ac_try) 2>&5
4935 ac_status=$?
4936 echo "$as_me:4936: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
4939else
4940 echo "$as_me: program exited with status $ac_status" >&5
4941echo "$as_me: failed program was:" >&5
4942cat conftest.$ac_ext >&5
4943fi
4944rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4945fi
4946fi
4947rm -f conftest.val
4948else
4949 ac_cv_sizeof_unsigned_char_p=0
4950fi
4951fi
4952echo "$as_me:4952: result: $ac_cv_sizeof_unsigned_char_p" >&5
4953echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
4954cat >>confdefs.h <<EOF
4955#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
4956EOF
4957
4958 if test "$ac_cv_sizeof_unsigned_char_p" = 8
4959 then
4960 { echo "$as_me:4960: WARNING: I'm forcing you to use regex because I can't
4961 find a local rx library and the one included with this
4962 distribution doesn't work on 64-bit machines like yours" >&5
4963echo "$as_me: WARNING: I'm forcing you to use regex because I can't
4964 find a local rx library and the one included with this
4965 distribution doesn't work on 64-bit machines like yours" >&2;}
4966 LIBOBJS="$LIBOBJS regex.o"
4967 else
4968 LIBOBJS="$LIBOBJS rx.o"
4969 fi
4970
4971fi
4972
4973fi
4974
4975echo "$as_me:4975: checking whether GNU readline requested" >&5
4976echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
4977
4978# Check whether --with-gnu_readline or --without-gnu_readline was given.
4979if test "${with_gnu_readline+set}" = set; then
4980 withval="$with_gnu_readline"
4981 if test "$withval" = yes; then
4982 echo "$as_me:4982: result: yes" >&5
4983echo "${ECHO_T}yes" >&6
4984 ac_with_gnu_readline=1
4985 else
4986 echo "$as_me:4986: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988 fi
4989else
4990 echo "$as_me:4990: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992fi;
4993
4994 if test -n "$ac_with_gnu_readline"; then
4995 echo "$as_me:4995: checking for readline/readline.h" >&5
4996echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
4997if test "${ac_cv_header_readline_readline_h+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 cat >conftest.$ac_ext <<_ACEOF
5001#line 5001 "configure"
5002#include "confdefs.h"
5003#include <readline/readline.h>
5004_ACEOF
5005if { (eval echo "$as_me:5005: \"$ac_cpp conftest.$ac_ext\"") >&5
5006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5007 ac_status=$?
5008 egrep -v '^ *\+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:5011: \$? = $ac_status" >&5
5012 (exit $ac_status); } >/dev/null; then
5013 if test -s conftest.err; then
5014 ac_cpp_err=$ac_c_preproc_warn_flag
5015 else
5016 ac_cpp_err=
5017 fi
5018else
5019 ac_cpp_err=yes
5020fi
5021if test -z "$ac_cpp_err"; then
5022 ac_cv_header_readline_readline_h=yes
5023else
5024 echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 ac_cv_header_readline_readline_h=no
5027fi
5028rm -f conftest.err conftest.$ac_ext
5029fi
5030echo "$as_me:5030: result: $ac_cv_header_readline_readline_h" >&5
5031echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
5032if test $ac_cv_header_readline_readline_h = yes; then
5033 ac_mg_readline_header_found=1
5034else
5035 { echo "$as_me:5035: WARNING: Can't find GNU readline headers; configuring without \
5036GNU readline support" >&5
5037echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
5038GNU readline support" >&2;}
5039fi
5040
5041 if test -n "$ac_mg_readline_header_found"; then
5042 # first check whether we can find the readline library itself
5043 echo "$as_me:5043: checking for main in -lreadline" >&5
5044echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
5045if test "${ac_cv_lib_readline_main+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 ac_check_lib_save_LIBS=$LIBS
5049LIBS="-lreadline $LIBS"
5050cat >conftest.$ac_ext <<_ACEOF
5051#line 5051 "configure"
5052#include "confdefs.h"
5053
5054int
5055main ()
5056{
5057main ();
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext conftest$ac_exeext
5063if { (eval echo "$as_me:5063: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>&5
5065 ac_status=$?
5066 echo "$as_me:5066: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest$ac_exeext'
5069 { (eval echo "$as_me:5069: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:5072: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_cv_lib_readline_main=yes
5075else
5076 echo "$as_me: failed program was:" >&5
5077cat conftest.$ac_ext >&5
5078ac_cv_lib_readline_main=no
5079fi
5080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5081LIBS=$ac_check_lib_save_LIBS
5082fi
5083echo "$as_me:5083: result: $ac_cv_lib_readline_main" >&5
5084echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
5085if test $ac_cv_lib_readline_main = yes; then
5086 ac_mg_readline_lib_found=1
5087 cat >>confdefs.h <<\EOF
5088#define WITH_GNU_READLINE 1
5089EOF
5090
5091 LIBS="$LIBS -lreadline"
5092else
5093 { echo "$as_me:5093: WARNING: Can't find GNU readline library; configuring without \
5094GNU readline support" >&5
5095echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
5096GNU readline support" >&2;}
5097fi
5098
5099 if test -n "$ac_mg_readline_lib_found"; then
5100 # on some systems, readline needs curses. It is difficult to
5101 # determine whether this is necessary on the current system,
5102 # since other undefined symbols can be turned up by an
5103 # AC_CHECK_LIB(readline, readline) test that are actually defined
5104 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
5105 # we just bung it on and hope for the best.
5106 echo "$as_me:5106: checking for main in -lcurses" >&5
5107echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
5108if test "${ac_cv_lib_curses_main+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 ac_check_lib_save_LIBS=$LIBS
5112LIBS="-lcurses $LIBS"
5113cat >conftest.$ac_ext <<_ACEOF
5114#line 5114 "configure"
5115#include "confdefs.h"
5116
5117int
5118main ()
5119{
5120main ();
5121 ;
5122 return 0;
5123}
5124_ACEOF
5125rm -f conftest.$ac_objext conftest$ac_exeext
5126if { (eval echo "$as_me:5126: \"$ac_link\"") >&5
5127 (eval $ac_link) 2>&5
5128 ac_status=$?
5129 echo "$as_me:5129: \$? = $ac_status" >&5
5130 (exit $ac_status); } &&
5131 { ac_try='test -s conftest$ac_exeext'
5132 { (eval echo "$as_me:5132: \"$ac_try\"") >&5
5133 (eval $ac_try) 2>&5
5134 ac_status=$?
5135 echo "$as_me:5135: \$? = $ac_status" >&5
5136 (exit $ac_status); }; }; then
5137 ac_cv_lib_curses_main=yes
5138else
5139 echo "$as_me: failed program was:" >&5
5140cat conftest.$ac_ext >&5
5141ac_cv_lib_curses_main=no
5142fi
5143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144LIBS=$ac_check_lib_save_LIBS
5145fi
5146echo "$as_me:5146: result: $ac_cv_lib_curses_main" >&5
5147echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
5148if test $ac_cv_lib_curses_main = yes; then
5149 LIBS="$LIBS -lcurses"
5150fi
5151
5152 fi
5153 fi
5154 fi
5155
5156# ---------------------------------------------------------------------------
5157if test "$ac_cv_func_alloca" = 'no'; then
5158 LIBOBJS="$LIBOBJS xmalloc.o error.o"
5159fi
5160
5161# ---------------------------------------------------------------------------
5162# see if the user wants to override use of long long
5163# Check whether --enable-override-longlong or --disable-override-longlong was given.
5164if test "${enable_override_longlong+set}" = set; then
5165 enableval="$enable_override_longlong"
5166 cat >>confdefs.h <<\EOF
5167#define DISABLE_LONG_LONG 1
5168EOF
5169
5170fi;
5171
5172# ---------------------------------------------------------------------------
5173
5174ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
5175ac_config_commands="$ac_config_commands default"
5176cat >confcache <<\_ACEOF
5177# This file is a shell script that caches the results of configure
5178# tests run on this system so they can be shared between configure
5179# scripts and configure runs, see configure's option --config-cache.
5180# It is not useful on other systems. If it contains results you don't
5181# want to keep, you may remove or edit it.
5182#
5183# config.status only pays attention to the cache file if you give it
5184# the --recheck option to rerun configure.
5185#
5186# `ac_cv_env_foo' variables (set or unset) will be overriden when
5187# loading this file, other *unset* `ac_cv_foo' will be assigned the
5188# following values.
5189
5190_ACEOF
5191
5192# The following way of writing the cache mishandles newlines in values,
5193# but we know of no workaround that is simple, portable, and efficient.
5194# So, don't put newlines in cache variables' values.
5195# Ultrix sh set writes to stderr and can't be redirected directly,
5196# and sets the high bit in the cache file unless we assign to the vars.
5197{
5198 (set) 2>&1 |
5199 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5200 *ac_space=\ *)
5201 # `set' does not quote correctly, so add quotes (double-quote
5202 # substitution turns \\\\ into \\, and sed turns \\ into \).
5203 sed -n \
5204 "s/'/'\\\\''/g;
5205 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5206 ;;
5207 *)
5208 # `set' quotes correctly as required by POSIX, so do not add quotes.
5209 sed -n \
5210 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5211 ;;
5212 esac;
5213} |
5214 sed '
5215 t clear
5216 : clear
5217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5218 t end
5219 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5220 : end' >>confcache
5221if cmp -s $cache_file confcache; then :; else
5222 if test -w $cache_file; then
5223 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5224 cat confcache >$cache_file
5225 else
5226 echo "not updating unwritable cache $cache_file"
5227 fi
5228fi
5229rm -f confcache
5230
5231test "x$prefix" = xNONE && prefix=$ac_default_prefix
5232# Let make expand exec_prefix.
5233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5234
5235# VPATH may cause trouble with some makes, so we remove $(srcdir),
5236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5237# trailing colons and then remove the whole line if VPATH becomes empty
5238# (actually we leave an empty line to preserve line numbers).
5239if test "x$srcdir" = x.; then
5240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5241s/:*\$(srcdir):*/:/;
5242s/:*\${srcdir}:*/:/;
5243s/:*@srcdir@:*/:/;
5244s/^\([^=]*=[ ]*\):*/\1/;
5245s/:*$//;
5246s/^[^=]*=[ ]*$//;
5247}'
5248fi
5249
5250DEFS=-DHAVE_CONFIG_H
5251
5252: ${CONFIG_STATUS=./config.status}
5253ac_clean_files_save=$ac_clean_files
5254ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5255{ echo "$as_me:5255: creating $CONFIG_STATUS" >&5
5256echo "$as_me: creating $CONFIG_STATUS" >&6;}
5257cat >$CONFIG_STATUS <<_ACEOF
5258#! $SHELL
5259# Generated automatically by configure.
5260# Run this file to recreate the current configuration.
5261# Compiler output produced by configure, useful for debugging
5262# configure, is in config.log if it exists.
5263
5264debug=false
5265SHELL=\${CONFIG_SHELL-$SHELL}
5266ac_cs_invocation="\$0 \$@"
5267
5268_ACEOF
5269
5270cat >>$CONFIG_STATUS <<\_ACEOF
5271# Be Bourne compatible
5272if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5273 emulate sh
5274 NULLCMD=:
5275elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5276 set -o posix
5277fi
5278
5279# Name of the executable.
5280as_me=`echo "$0" |sed 's,.*[\\/],,'`
5281
5282if expr a : '\(a\)' >/dev/null 2>&1; then
5283 as_expr=expr
5284else
5285 as_expr=false
5286fi
5287
5288rm -f conf$$ conf$$.exe conf$$.file
5289echo >conf$$.file
5290if ln -s conf$$.file conf$$ 2>/dev/null; then
5291 # We could just check for DJGPP; but this test a) works b) is more generic
5292 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5293 if test -f conf$$.exe; then
5294 # Don't use ln at all; we don't have any links
5295 as_ln_s='cp -p'
5296 else
5297 as_ln_s='ln -s'
5298 fi
5299elif ln conf$$.file conf$$ 2>/dev/null; then
5300 as_ln_s=ln
5301else
5302 as_ln_s='cp -p'
5303fi
5304rm -f conf$$ conf$$.exe conf$$.file
5305
5306as_executable_p="test -f"
5307
5308# Support unset when possible.
5309if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5310 as_unset=unset
5311else
5312 as_unset=false
5313fi
5314
5315# NLS nuisances.
5316$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
5317$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
5318$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
5319$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
5320$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
5321$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
5322$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
5323$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
5324
5325# IFS
5326# We need space, tab and new line, in precisely that order.
5327as_nl='
5328'
5329IFS=" $as_nl"
5330
5331# CDPATH.
5332$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
5333
5334exec 6>&1
5335
5336_ACEOF
5337
5338# Files that config.status was made for.
5339if test -n "$ac_config_files"; then
5340 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5341fi
5342
5343if test -n "$ac_config_headers"; then
5344 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5345fi
5346
5347if test -n "$ac_config_links"; then
5348 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5349fi
5350
5351if test -n "$ac_config_commands"; then
5352 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5353fi
5354
5355cat >>$CONFIG_STATUS <<\EOF
5356
5357ac_cs_usage="\
5358\`$as_me' instantiates files from templates according to the
5359current configuration.
5360
5361Usage: $0 [OPTIONS] [FILE]...
5362
5363 -h, --help print this help, then exit
5364 -V, --version print version number, then exit
5365 -d, --debug don't remove temporary files
5366 --recheck update $as_me by reconfiguring in the same conditions
5367 --file=FILE[:TEMPLATE]
5368 instantiate the configuration file FILE
5369 --header=FILE[:TEMPLATE]
5370 instantiate the configuration header FILE
5371
5372Configuration files:
5373$config_files
5374
5375Configuration headers:
5376$config_headers
5377
5378Configuration commands:
5379$config_commands
5380
5381Report bugs to <[email protected]>."
5382EOF
5383
5384cat >>$CONFIG_STATUS <<EOF
5385ac_cs_version="\\
5386config.status
5387configured by $0, generated by GNU Autoconf 2.50,
5388 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5389
5390Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5391Free Software Foundation, Inc.
5392This config.status script is free software; the Free Software Foundation
5393gives unlimited permission to copy, distribute and modify it."
5394srcdir=$srcdir
5395INSTALL="$INSTALL"
5396EOF
5397
5398cat >>$CONFIG_STATUS <<\EOF
5399# If no file are specified by the user, then we need to provide default
5400# value. By we need to know if files were specified by the user.
5401ac_need_defaults=:
5402while test $# != 0
5403do
5404 case $1 in
5405 --*=*)
5406 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5407 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5408 shift
5409 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5410 shift
5411 ;;
5412 -*);;
5413 *) # This is not an option, so the user has probably given explicit
5414 # arguments.
5415 ac_need_defaults=false;;
5416 esac
5417
5418 case $1 in
5419 # Handling of the options.
5420EOF
5421cat >>$CONFIG_STATUS <<EOF
5422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5423 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5424 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5425EOF
5426cat >>$CONFIG_STATUS <<\EOF
5427 --version | --vers* | -V )
5428 echo "$ac_cs_version"; exit 0 ;;
5429 --he | --h)
5430 # Conflict between --help and --header
5431 { { echo "$as_me:5431: error: ambiguous option: $1
5432Try \`$0 --help' for more information." >&5
5433echo "$as_me: error: ambiguous option: $1
5434Try \`$0 --help' for more information." >&2;}
5435 { (exit 1); exit 1; }; };;
5436 --help | --hel | -h )
5437 echo "$ac_cs_usage"; exit 0 ;;
5438 --debug | --d* | -d )
5439 debug=: ;;
5440 --file | --fil | --fi | --f )
5441 shift
5442 CONFIG_FILES="$CONFIG_FILES $1"
5443 ac_need_defaults=false;;
5444 --header | --heade | --head | --hea )
5445 shift
5446 CONFIG_HEADERS="$CONFIG_HEADERS $1"
5447 ac_need_defaults=false;;
5448
5449 # Handling of arguments.
5450 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5451 'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
5452 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5453 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
5454 'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
5455 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5456 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5457
5458 # This is an error.
5459 -*) { { echo "$as_me:5459: error: unrecognized option: $1
5460Try \`$0 --help' for more information." >&5
5461echo "$as_me: error: unrecognized option: $1
5462Try \`$0 --help' for more information." >&2;}
5463 { (exit 1); exit 1; }; } ;;
5464 *) { { echo "$as_me:5464: error: invalid argument: $1" >&5
5465echo "$as_me: error: invalid argument: $1" >&2;}
5466 { (exit 1); exit 1; }; };;
5467 esac
5468 shift
5469done
5470
5471exec 5>>config.log
5472cat >&5 << _ACEOF
5473
5474## ----------------------- ##
5475## Running config.status. ##
5476## ----------------------- ##
5477
5478This file was extended by $as_me 2.50, executed with
5479 > $ac_cs_invocation
5480on `(hostname || uname -n) 2>/dev/null | sed 1q`
5481
5482_ACEOF
5483EOF
5484
5485cat >>$CONFIG_STATUS <<\EOF
5486# If the user did not use the arguments to specify the items to instantiate,
5487# then the envvar interface is used. Set only those that are not.
5488# We use the long form for the default assignment because of an extremely
5489# bizarre bug on SunOS 4.1.3.
5490if $ac_need_defaults; then
5491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5493 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5494fi
5495
5496# Create a temporary directory, and hook for its removal unless debugging.
5497$debug ||
5498{
5499 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5500 trap '{ (exit $?); exit $?; }' 1 2 13 15
5501}
5502
5503# Create a (secure) tmp directory for tmp files.
5504: ${TMPDIR=/tmp}
5505{
5506 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
5507 test -n "$tmp" && test -d "$tmp"
5508} ||
5509{
5510 tmp=$TMPDIR/cs$$-$RANDOM
5511 (umask 077 && mkdir $tmp)
5512} ||
5513{
5514 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5515 { (exit 1); exit 1; }
5516}
5517
5518EOF
5519
5520cat >>$CONFIG_STATUS <<EOF
5521
5522#
5523# CONFIG_FILES section.
5524#
5525
5526# No need to generate the scripts if there are no CONFIG_FILES.
5527# This happens for instance when ./config.status config.h
5528if test -n "\$CONFIG_FILES"; then
5529 # Protect against being on the right side of a sed subst in config.status.
5530 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5531 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5532s,@SHELL@,$SHELL,;t t
5533s,@exec_prefix@,$exec_prefix,;t t
5534s,@prefix@,$prefix,;t t
5535s,@program_transform_name@,$program_transform_name,;t t
5536s,@bindir@,$bindir,;t t
5537s,@sbindir@,$sbindir,;t t
5538s,@libexecdir@,$libexecdir,;t t
5539s,@datadir@,$datadir,;t t
5540s,@sysconfdir@,$sysconfdir,;t t
5541s,@sharedstatedir@,$sharedstatedir,;t t
5542s,@localstatedir@,$localstatedir,;t t
5543s,@libdir@,$libdir,;t t
5544s,@includedir@,$includedir,;t t
5545s,@oldincludedir@,$oldincludedir,;t t
5546s,@infodir@,$infodir,;t t
5547s,@mandir@,$mandir,;t t
5548s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5549s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5550s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5551s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5552s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5553s,@ECHO_C@,$ECHO_C,;t t
5554s,@ECHO_N@,$ECHO_N,;t t
5555s,@ECHO_T@,$ECHO_T,;t t
5556s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5557s,@DEFS@,$DEFS,;t t
5558s,@LIBS@,$LIBS,;t t
5559s,@PACKAGE@,$PACKAGE,;t t
5560s,@VERSION@,$VERSION,;t t
5561s,@CXX@,$CXX,;t t
5562s,@CXXFLAGS@,$CXXFLAGS,;t t
5563s,@LDFLAGS@,$LDFLAGS,;t t
5564s,@CPPFLAGS@,$CPPFLAGS,;t t
5565s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5566s,@EXEEXT@,$EXEEXT,;t t
5567s,@OBJEXT@,$OBJEXT,;t t
5568s,@AWK@,$AWK,;t t
5569s,@YACC@,$YACC,;t t
5570s,@CC@,$CC,;t t
5571s,@CFLAGS@,$CFLAGS,;t t
5572s,@ac_ct_CC@,$ac_ct_CC,;t t
5573s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5574s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5575s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5576s,@LN_S@,$LN_S,;t t
5577s,@SET_MAKE@,$SET_MAKE,;t t
5578s,@RANLIB@,$RANLIB,;t t
5579s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5580s,@CPP@,$CPP,;t t
5581s,@U@,$U,;t t
5582s,@ANSI2KNR@,$ANSI2KNR,;t t
5583s,@ALLOCA@,$ALLOCA,;t t
5584s,@LIBOBJS@,$LIBOBJS,;t t
5585CEOF
5586
5587EOF
5588
5589 cat >>$CONFIG_STATUS <<\EOF
5590 # Split the substitutions into bite-sized pieces for seds with
5591 # small command number limits, like on Digital OSF/1 and HP-UX.
5592 ac_max_sed_lines=48
5593 ac_sed_frag=1 # Number of current file.
5594 ac_beg=1 # First line for current file.
5595 ac_end=$ac_max_sed_lines # Line after last line for current file.
5596 ac_more_lines=:
5597 ac_sed_cmds=
5598 while $ac_more_lines; do
5599 if test $ac_beg -gt 1; then
5600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5601 else
5602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5603 fi
5604 if test ! -s $tmp/subs.frag; then
5605 ac_more_lines=false
5606 else
5607 # The purpose of the label and of the branching condition is to
5608 # speed up the sed processing (if there are no `@' at all, there
5609 # is no need to browse any of the substitutions).
5610 # These are the two extra sed commands mentioned above.
5611 (echo ':t
5612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5613 if test -z "$ac_sed_cmds"; then
5614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5615 else
5616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5617 fi
5618 ac_sed_frag=`expr $ac_sed_frag + 1`
5619 ac_beg=$ac_end
5620 ac_end=`expr $ac_end + $ac_max_sed_lines`
5621 fi
5622 done
5623 if test -z "$ac_sed_cmds"; then
5624 ac_sed_cmds=cat
5625 fi
5626fi # test -n "$CONFIG_FILES"
5627
5628EOF
5629cat >>$CONFIG_STATUS <<\EOF
5630for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5632 case $ac_file in
5633 - | *:- | *:-:* ) # input from stdin
5634 cat >$tmp/stdin
5635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5639 * ) ac_file_in=$ac_file.in ;;
5640 esac
5641
5642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5643 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5644 X"$ac_file" : 'X\(//\)[^/]' \| \
5645 X"$ac_file" : 'X\(//\)$' \| \
5646 X"$ac_file" : 'X\(/\)' \| \
5647 . : '\(.\)' 2>/dev/null ||
5648echo X"$ac_file" |
5649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5651 /^X\(\/\/\)$/{ s//\1/; q; }
5652 /^X\(\/\).*/{ s//\1/; q; }
5653 s/.*/./; q'`
5654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5655 { case "$ac_dir" in
5656 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5657 *) as_incr_dir=.;;
5658esac
5659as_dummy="$ac_dir"
5660for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5661 case $as_mkdir_dir in
5662 # Skip DOS drivespec
5663 ?:) as_incr_dir=$as_mkdir_dir ;;
5664 *)
5665 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5666 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5667 ;;
5668 esac
5669done; }
5670
5671 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
5672 # A "../" for each directory in $ac_dir_suffix.
5673 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
5674 else
5675 ac_dir_suffix= ac_dots=
5676 fi
5677
5678 case $srcdir in
5679 .) ac_srcdir=.
5680 if test -z "$ac_dots"; then
5681 ac_top_srcdir=.
5682 else
5683 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
5684 fi ;;
5685 [\\/]* | ?:[\\/]* )
5686 ac_srcdir=$srcdir$ac_dir_suffix;
5687 ac_top_srcdir=$srcdir ;;
5688 *) # Relative path.
5689 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
5690 ac_top_srcdir=$ac_dots$srcdir ;;
5691 esac
5692
5693 case $INSTALL in
5694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5695 *) ac_INSTALL=$ac_dots$INSTALL ;;
5696 esac
5697
5698 if test x"$ac_file" != x-; then
5699 { echo "$as_me:5699: creating $ac_file" >&5
5700echo "$as_me: creating $ac_file" >&6;}
5701 rm -f "$ac_file"
5702 fi
5703 # Let's still pretend it is `configure' which instantiates (i.e., don't
5704 # use $as_me), people would be surprised to read:
5705 # /* config.h. Generated automatically by config.status. */
5706 configure_input="Generated automatically from `echo $ac_file_in |
5707 sed 's,.*/,,'` by configure."
5708
5709 # First look for the input files in the build tree, otherwise in the
5710 # src tree.
5711 ac_file_inputs=`IFS=:
5712 for f in $ac_file_in; do
5713 case $f in
5714 -) echo $tmp/stdin ;;
5715 [\\/$]*)
5716 # Absolute (can't be DOS-style, as IFS=:)
5717 test -f "$f" || { { echo "$as_me:5717: error: cannot find input file: $f" >&5
5718echo "$as_me: error: cannot find input file: $f" >&2;}
5719 { (exit 1); exit 1; }; }
5720 echo $f;;
5721 *) # Relative
5722 if test -f "$f"; then
5723 # Build tree
5724 echo $f
5725 elif test -f "$srcdir/$f"; then
5726 # Source tree
5727 echo $srcdir/$f
5728 else
5729 # /dev/null tree
5730 { { echo "$as_me:5730: error: cannot find input file: $f" >&5
5731echo "$as_me: error: cannot find input file: $f" >&2;}
5732 { (exit 1); exit 1; }; }
5733 fi;;
5734 esac
5735 done` || { (exit 1); exit 1; }
5736EOF
5737cat >>$CONFIG_STATUS <<EOF
5738 sed "$ac_vpsub
5739$extrasub
5740EOF
5741cat >>$CONFIG_STATUS <<\EOF
5742:t
5743/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5744s,@configure_input@,$configure_input,;t t
5745s,@srcdir@,$ac_srcdir,;t t
5746s,@top_srcdir@,$ac_top_srcdir,;t t
5747s,@INSTALL@,$ac_INSTALL,;t t
5748" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5749 rm -f $tmp/stdin
5750 if test x"$ac_file" != x-; then
5751 mv $tmp/out $ac_file
5752 else
5753 cat $tmp/out
5754 rm -f $tmp/out
5755 fi
5756
5757done
5758EOF
5759cat >>$CONFIG_STATUS <<\EOF
5760
5761#
5762# CONFIG_HEADER section.
5763#
5764
5765# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5766# NAME is the cpp macro being defined and VALUE is the value it is being given.
5767#
5768# ac_d sets the value in "#define NAME VALUE" lines.
5769ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5770ac_dB='[ ].*$,\1#\2'
5771ac_dC=' '
5772ac_dD=',;t'
5773# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5774ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5775ac_uB='$,\1#\2define\3'
5776ac_uC=' '
5777ac_uD=',;t'
5778
5779for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5781 case $ac_file in
5782 - | *:- | *:-:* ) # input from stdin
5783 cat >$tmp/stdin
5784 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5786 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5788 * ) ac_file_in=$ac_file.in ;;
5789 esac
5790
5791 test x"$ac_file" != x- && { echo "$as_me:5791: creating $ac_file" >&5
5792echo "$as_me: creating $ac_file" >&6;}
5793
5794 # First look for the input files in the build tree, otherwise in the
5795 # src tree.
5796 ac_file_inputs=`IFS=:
5797 for f in $ac_file_in; do
5798 case $f in
5799 -) echo $tmp/stdin ;;
5800 [\\/$]*)
5801 # Absolute (can't be DOS-style, as IFS=:)
5802 test -f "$f" || { { echo "$as_me:5802: error: cannot find input file: $f" >&5
5803echo "$as_me: error: cannot find input file: $f" >&2;}
5804 { (exit 1); exit 1; }; }
5805 echo $f;;
5806 *) # Relative
5807 if test -f "$f"; then
5808 # Build tree
5809 echo $f
5810 elif test -f "$srcdir/$f"; then
5811 # Source tree
5812 echo $srcdir/$f
5813 else
5814 # /dev/null tree
5815 { { echo "$as_me:5815: error: cannot find input file: $f" >&5
5816echo "$as_me: error: cannot find input file: $f" >&2;}
5817 { (exit 1); exit 1; }; }
5818 fi;;
5819 esac
5820 done` || { (exit 1); exit 1; }
5821 # Remove the trailing spaces.
5822 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5823
5824EOF
5825
5826# Transform confdefs.h into two sed scripts, `conftest.defines' and
5827# `conftest.undefs', that substitutes the proper values into
5828# config.h.in to produce config.h. The first handles `#define'
5829# templates, and the second `#undef' templates.
5830# And first: Protect against being on the right side of a sed subst in
5831# config.status. Protect against being in an unquoted here document
5832# in config.status.
5833rm -f conftest.defines conftest.undefs
5834# Using a here document instead of a string reduces the quoting nightmare.
5835# Putting comments in sed scripts is not portable.
5836#
5837# `end' is used to avoid that the second main sed command (meant for
5838# 0-ary CPP macros) applies to n-ary macro definitions.
5839# See the Autoconf documentation for `clear'.
5840cat >confdef2sed.sed <<\EOF
5841s/[\\&,]/\\&/g
5842s,[\\$`],\\&,g
5843t clear
5844: clear
5845s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
5846t end
5847s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5848: end
5849EOF
5850# If some macros were called several times there might be several times
5851# the same #defines, which is useless. Nevertheless, we may not want to
5852# sort them, since we want the *last* AC-DEFINE to be honored.
5853uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5854sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5855rm -f confdef2sed.sed
5856
5857# This sed command replaces #undef with comments. This is necessary, for
5858# example, in the case of _POSIX_SOURCE, which is predefined and required
5859# on some systems where configure will not decide to define it.
5860cat >>conftest.undefs <<\EOF
5861s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5862EOF
5863
5864# Break up conftest.defines because some shells have a limit on the size
5865# of here documents, and old seds have small limits too (100 cmds).
5866echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5867echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5868echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5869echo ' :' >>$CONFIG_STATUS
5870rm -f conftest.tail
5871while grep . conftest.defines >/dev/null
5872do
5873 # Write a limited-size here document to $tmp/defines.sed.
5874 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5875 # Speed up: don't consider the non `#define' lines.
5876 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5877 # Work around the forget-to-reset-the-flag bug.
5878 echo 't clr' >>$CONFIG_STATUS
5879 echo ': clr' >>$CONFIG_STATUS
5880 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5881 echo 'CEOF
5882 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5883 rm -f $tmp/in
5884 mv $tmp/out $tmp/in
5885' >>$CONFIG_STATUS
5886 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5887 rm -f conftest.defines
5888 mv conftest.tail conftest.defines
5889done
5890rm -f conftest.defines
5891echo ' fi # egrep' >>$CONFIG_STATUS
5892echo >>$CONFIG_STATUS
5893
5894# Break up conftest.undefs because some shells have a limit on the size
5895# of here documents, and old seds have small limits too (100 cmds).
5896echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5897rm -f conftest.tail
5898while grep . conftest.undefs >/dev/null
5899do
5900 # Write a limited-size here document to $tmp/undefs.sed.
5901 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5902 # Speed up: don't consider the non `#undef'
5903 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5904 # Work around the forget-to-reset-the-flag bug.
5905 echo 't clr' >>$CONFIG_STATUS
5906 echo ': clr' >>$CONFIG_STATUS
5907 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5908 echo 'CEOF
5909 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5910 rm -f $tmp/in
5911 mv $tmp/out $tmp/in
5912' >>$CONFIG_STATUS
5913 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5914 rm -f conftest.undefs
5915 mv conftest.tail conftest.undefs
5916done
5917rm -f conftest.undefs
5918
5919cat >>$CONFIG_STATUS <<\EOF
5920 # Let's still pretend it is `configure' which instantiates (i.e., don't
5921 # use $as_me), people would be surprised to read:
5922 # /* config.h. Generated automatically by config.status. */
5923 if test x"$ac_file" = x-; then
5924 echo "/* Generated automatically by configure. */" >$tmp/config.h
5925 else
5926 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
5927 fi
5928 cat $tmp/in >>$tmp/config.h
5929 rm -f $tmp/in
5930 if test x"$ac_file" != x-; then
5931 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
5932 { echo "$as_me:5932: $ac_file is unchanged" >&5
5933echo "$as_me: $ac_file is unchanged" >&6;}
5934 else
5935 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5936 X"$ac_file" : 'X\(//\)[^/]' \| \
5937 X"$ac_file" : 'X\(//\)$' \| \
5938 X"$ac_file" : 'X\(/\)' \| \
5939 . : '\(.\)' 2>/dev/null ||
5940echo X"$ac_file" |
5941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5943 /^X\(\/\/\)$/{ s//\1/; q; }
5944 /^X\(\/\).*/{ s//\1/; q; }
5945 s/.*/./; q'`
5946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5947 { case "$ac_dir" in
5948 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5949 *) as_incr_dir=.;;
5950esac
5951as_dummy="$ac_dir"
5952for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5953 case $as_mkdir_dir in
5954 # Skip DOS drivespec
5955 ?:) as_incr_dir=$as_mkdir_dir ;;
5956 *)
5957 as_incr_dir=$as_incr_dir/$as_mkdir_dir
5958 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
5959 ;;
5960 esac
5961done; }
5962
5963 fi
5964 rm -f $ac_file
5965 mv $tmp/config.h $ac_file
5966 fi
5967 else
5968 cat $tmp/config.h
5969 rm -f $tmp/config.h
5970 fi
5971done
5972EOF
5973cat >>$CONFIG_STATUS <<\EOF
5974
5975#
5976# CONFIG_COMMANDS section.
5977#
5978for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5979 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5980 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5981
5982 case $ac_dest in
5983 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
5984 esac
5985done
5986EOF
5987
5988cat >>$CONFIG_STATUS <<\EOF
5989
5990{ (exit 0); exit 0; }
5991EOF
5992chmod +x $CONFIG_STATUS
5993ac_clean_files=$ac_clean_files_save
5994
5995# configure is writing to config.log, and then calls config.status.
5996# config.status does its own redirection, appending to config.log.
5997# Unfortunately, on DOS this fails, as config.log is still kept open
5998# by configure, so config.status won't be able to write to it; its
5999# output is simply discarded. So we exec the FD to /dev/null,
6000# effectively closing config.log, so it can be properly (re)opened and
6001# appended to by config.status. When coming back to configure, we
6002# need to make the FD available again.
6003if test "$no_create" != yes; then
6004 ac_cs_success=:
6005 exec 5>/dev/null
6006 $SHELL $CONFIG_STATUS || ac_cs_success=false
6007 exec 5>>config.log
6008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6009 # would make configure fail if this is the last instruction.
6010 $ac_cs_success || { (exit 1); exit 1; }
6011fi
6012
Note: See TracBrowser for help on using the repository browser.