source: main/trunk/gs2build/configure@ 21376

Last change on this file since 21376 was 21376, checked in by ak19, 14 years ago

Now the configure, configure.in, Makefile.in and config.h.in of gs2build and greenstone2 are the same, so that they can just be obtained from one source in future. Need to include configtest.pl into gs2build for now to get the changes to configure.in to still work

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