source: other-projects/trunk/gs2build-extra/configure@ 16299

Last change on this file since 16299 was 16261, checked in by ak19, 16 years ago

Dr Bainbridge: Minor tweaks to bring GS3's gs2build compilation files up to date with changes in file structure. Also ran 'autoupdate' on configure.in in an attempt to update a couple of macros that now no longer seem valid (e.g. fp_WITH_DMALLOC). This had the effect of updating some parts on configure.in to newer syntax, but not the offending two macros. These still cause warning messages to be generated with ./configure is run.

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