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

Last change on this file since 16070 was 16070, checked in by oranfry, 16 years ago

a gs2build change for lib -> src/lib

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