source: trunk/indexers/mg/configure@ 8920

Last change on this file since 8920 was 3745, checked in by mdewsnip, 21 years ago

Addition of MG package for search and retrieval

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