source: main/trunk/greenstone2/configure@ 21366

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

New configuration and compilation flag ENABLE_JNI added which will be disabled by default for GS2 since in general GS doesn't need mg and mgpp compiled up with jni. GS3's build.xml will need to explicitly set ENABLE_JNI to compile mg and mgpp with jni.

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