source: main/trunk/greenstone2/runtime-src/configure@ 22924

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