source: main/trunk/greenstone2/configure@ 21418

Last change on this file since 21418 was 21418, checked in by davidb, 14 years ago

Correction to how --enable-jdbm flag is implemented

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