source: trunk/gsdl3/configure@ 6222

Last change on this file since 6222 was 5951, checked in by cs025, 20 years ago

Added autoconf first cut

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