source: trunk/gsdl3/src/packages/mg/configure@ 10887

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

moved '-framework JavaVM' from LDFLAGS to JNIFLAGS - we don't want to link against the Java framework for all the c/c++ programs

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