source: trunk/gs2build-extra/configure@ 10854

Last change on this file since 10854 was 10854, checked in by kjdon, 18 years ago

removed soem commented out pieces, and added a check for endianness

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