source: gsdl/trunk/configure@ 16288

Last change on this file since 16288 was 16288, checked in by mdewsnip, 13 years ago

Changed SQLite to be enabled by default -- SQL is the future of Greenstone, after all!

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