root/trunk/indexers/mg/configure @ 10917

Revision 10917, 215.7 KB (checked in by kjdon, 14 years ago)

removed java_home/include/linux from include path in makefile, made the configure script include this in JNIINC for linux, and use JAVA_HOME/include/solaris for solaris machines

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
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
6059# is there a better way to do this??
6060echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
6061echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
6062# set defaults
6063JNIINC=""
6064JNISUFFIX="so"
6065JNIFLAGS="-shared"
6066
6067if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
6068  echo "$as_me:$LINENO: result: Darwin" >&5
6069echo "${ECHO_T}Darwin" >&6
6070  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
6071  JNISUFFIX="jnilib"
6072  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
6073fi
6074if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
6075  echo "$as_me:$LINENO: result: Solaris" >&5
6076echo "${ECHO_T}Solaris" >&6
6077  JNIINC="-I\$(JAVA_HOME)/include/solaris "
6078fi
6079if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
6080  echo "$as_me:$LINENO: result: Linux" >&5
6081echo "${ECHO_T}Linux" >&6
6082  JNIINC="-I\$(JAVA_HOME)/include/linux "
6083fi
6084
6085
6086
6087
6088
6089echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6090echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
6091
6092# Check whether --with-dmalloc or --without-dmalloc was given.
6093if test "${with_dmalloc+set}" = set; then
6094  withval="$with_dmalloc"
6095  if test "$withval" = yes; then
6096  echo "$as_me:$LINENO: result: yes" >&5
6097echo "${ECHO_T}yes" >&6
6098  cat >>confdefs.h <<\_ACEOF
6099#define WITH_DMALLOC 1
6100_ACEOF
6101
6102  LIBS="$LIBS -ldmalloc"
6103  LDFLAGS="$LDFLAGS -g"
6104else
6105  echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107fi
6108else
6109  echo "$as_me:$LINENO: result: no" >&5
6110echo "${ECHO_T}no" >&6
6111fi;
6112
6113echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
6114echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
6115
6116# Check whether --with-regex or --without-regex was given.
6117if test "${with_regex+set}" = set; then
6118  withval="$with_regex"
6119  if test "$withval" = yes; then
6120  ac_with_regex=1
6121  echo "$as_me:$LINENO: result: regex" >&5
6122echo "${ECHO_T}regex" >&6
6123  cat >>confdefs.h <<\_ACEOF
6124#define WITH_REGEX 1
6125_ACEOF
6126
6127  case $LIBOBJS in
6128    "regex.$ac_objext"   | \
6129  *" regex.$ac_objext"   | \
6130    "regex.$ac_objext "* | \
6131  *" regex.$ac_objext "* ) ;;
6132  *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
6133esac
6134
6135fi
6136fi;
6137if test -z "$ac_with_regex"; then
6138  echo "$as_me:$LINENO: result: rx" >&5
6139echo "${ECHO_T}rx" >&6
6140  echo "$as_me:$LINENO: checking for re_rx_search" >&5
6141echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
6142if test "${ac_cv_func_re_rx_search+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h.  */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h.  */
6151/* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
6152   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6153#define re_rx_search innocuous_re_rx_search
6154
6155/* System header to define __stub macros and hopefully few prototypes,
6156    which can conflict with char re_rx_search (); below.
6157    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6158    <limits.h> exists even on freestanding compilers.  */
6159
6160#ifdef __STDC__
6161# include <limits.h>
6162#else
6163# include <assert.h>
6164#endif
6165
6166#undef re_rx_search
6167
6168/* Override any gcc2 internal prototype to avoid an error.  */
6169#ifdef __cplusplus
6170extern "C"
6171{
6172#endif
6173/* We use char because int might match the return type of a gcc2
6174   builtin and then its argument prototype would still apply.  */
6175char re_rx_search ();
6176/* The GNU C library defines this for functions which it implements
6177    to always fail with ENOSYS.  Some functions are actually named
6178    something starting with __ and the normal name is an alias.  */
6179#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
6180choke me
6181#else
6182char (*f) () = re_rx_search;
6183#endif
6184#ifdef __cplusplus
6185}
6186#endif
6187
6188int
6189main ()
6190{
6191return f != re_rx_search;
6192  ;
6193  return 0;
6194}
6195_ACEOF
6196rm -f conftest.$ac_objext conftest$ac_exeext
6197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198  (eval $ac_link) 2>conftest.er1
6199  ac_status=$?
6200  grep -v '^ *+' conftest.er1 >conftest.err
6201  rm -f conftest.er1
6202  cat conftest.err >&5
6203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204  (exit $ac_status); } &&
6205     { ac_try='test -z "$ac_c_werror_flag"
6206             || test ! -s conftest.err'
6207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208  (eval $ac_try) 2>&5
6209  ac_status=$?
6210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211  (exit $ac_status); }; } &&
6212     { ac_try='test -s conftest$ac_exeext'
6213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214  (eval $ac_try) 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }; }; then
6218  ac_cv_func_re_rx_search=yes
6219else
6220  echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223ac_cv_func_re_rx_search=no
6224fi
6225rm -f conftest.err conftest.$ac_objext \
6226      conftest$ac_exeext conftest.$ac_ext
6227fi
6228echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
6229echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
6230if test $ac_cv_func_re_rx_search = yes; then
6231  :
6232else
6233  case $LIBOBJS in
6234    "rx.$ac_objext"   | \
6235  *" rx.$ac_objext"   | \
6236    "rx.$ac_objext "* | \
6237  *" rx.$ac_objext "* ) ;;
6238  *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
6239esac
6240
6241fi
6242
6243fi
6244
6245
6246# text for endianness
6247echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6248echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6249if test "${ac_cv_c_bigendian+set}" = set; then
6250  echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252  # See if sys/param.h defines the BYTE_ORDER macro.
6253cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h.  */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h.  */
6259#include <sys/types.h>
6260#include <sys/param.h>
6261
6262int
6263main ()
6264{
6265#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6266 bogus endian macros
6267#endif
6268
6269  ;
6270  return 0;
6271}
6272_ACEOF
6273rm -f conftest.$ac_objext
6274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275  (eval $ac_compile) 2>conftest.er1
6276  ac_status=$?
6277  grep -v '^ *+' conftest.er1 >conftest.err
6278  rm -f conftest.er1
6279  cat conftest.err >&5
6280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); } &&
6282     { ac_try='test -z "$ac_c_werror_flag"
6283             || test ! -s conftest.err'
6284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285  (eval $ac_try) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }; } &&
6289     { ac_try='test -s conftest.$ac_objext'
6290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291  (eval $ac_try) 2>&5
6292  ac_status=$?
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); }; }; then
6295  # It does; now see whether it defined to BIG_ENDIAN or not.
6296cat >conftest.$ac_ext <<_ACEOF
6297/* confdefs.h.  */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h.  */
6302#include <sys/types.h>
6303#include <sys/param.h>
6304
6305int
6306main ()
6307{
6308#if BYTE_ORDER != BIG_ENDIAN
6309 not big endian
6310#endif
6311
6312  ;
6313  return 0;
6314}
6315_ACEOF
6316rm -f conftest.$ac_objext
6317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6318  (eval $ac_compile) 2>conftest.er1
6319  ac_status=$?
6320  grep -v '^ *+' conftest.er1 >conftest.err
6321  rm -f conftest.er1
6322  cat conftest.err >&5
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); } &&
6325     { ac_try='test -z "$ac_c_werror_flag"
6326             || test ! -s conftest.err'
6327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328  (eval $ac_try) 2>&5
6329  ac_status=$?
6330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331  (exit $ac_status); }; } &&
6332     { ac_try='test -s conftest.$ac_objext'
6333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334  (eval $ac_try) 2>&5
6335  ac_status=$?
6336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337  (exit $ac_status); }; }; then
6338  ac_cv_c_bigendian=yes
6339else
6340  echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
6342
6343ac_cv_c_bigendian=no
6344fi
6345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6346else
6347  echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
6350# It does not; compile a test program.
6351if test "$cross_compiling" = yes; then
6352  # try to guess the endianness by grepping values into an object file
6353  ac_cv_c_bigendian=unknown
6354  cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h.  */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h.  */
6360short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6361short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6362void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6363short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6364short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6365void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6366int
6367main ()
6368{
6369 _ascii (); _ebcdic ();
6370  ;
6371  return 0;
6372}
6373_ACEOF
6374rm -f conftest.$ac_objext
6375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376  (eval $ac_compile) 2>conftest.er1
6377  ac_status=$?
6378  grep -v '^ *+' conftest.er1 >conftest.err
6379  rm -f conftest.er1
6380  cat conftest.err >&5
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); } &&
6383     { ac_try='test -z "$ac_c_werror_flag"
6384             || test ! -s conftest.err'
6385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386  (eval $ac_try) 2>&5
6387  ac_status=$?
6388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); }; } &&
6390     { ac_try='test -s conftest.$ac_objext'
6391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392  (eval $ac_try) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); }; }; then
6396  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6397  ac_cv_c_bigendian=yes
6398fi
6399if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6400  if test "$ac_cv_c_bigendian" = unknown; then
6401    ac_cv_c_bigendian=no
6402  else
6403    # finding both strings is unlikely to happen, but who knows?
6404    ac_cv_c_bigendian=unknown
6405  fi
6406fi
6407else
6408  echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411fi
6412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6413else
6414  cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h.  */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h.  */
6420int
6421main ()
6422{
6423  /* Are we little or big endian?  From Harbison&Steele.  */
6424  union
6425  {
6426    long l;
6427    char c[sizeof (long)];
6428  } u;
6429  u.l = 1;
6430  exit (u.c[sizeof (long) - 1] == 1);
6431}
6432_ACEOF
6433rm -f conftest$ac_exeext
6434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435  (eval $ac_link) 2>&5
6436  ac_status=$?
6437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440  (eval $ac_try) 2>&5
6441  ac_status=$?
6442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443  (exit $ac_status); }; }; then
6444  ac_cv_c_bigendian=no
6445else
6446  echo "$as_me: program exited with status $ac_status" >&5
6447echo "$as_me: failed program was:" >&5
6448sed 's/^/| /' conftest.$ac_ext >&5
6449
6450( exit $ac_status )
6451ac_cv_c_bigendian=yes
6452fi
6453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6454fi
6455fi
6456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457fi
6458echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6459echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6460case $ac_cv_c_bigendian in
6461  yes)
6462
6463cat >>confdefs.h <<\_ACEOF
6464#define WORDS_BIGENDIAN 1
6465_ACEOF
6466 ;;
6467  no)
6468     ;;
6469  *)
6470    { { echo "$as_me:$LINENO: error: unknown endianness
6471presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6472echo "$as_me: error: unknown endianness
6473presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6474   { (exit 1); exit 1; }; } ;;
6475esac
6476
6477
6478# ---------------------------------------------------------------------------
6479if test "$ac_cv_func_alloca" = 'no'; then
6480  case $LIBOBJS in
6481    "xmalloc.$ac_objext"   | \
6482  *" xmalloc.$ac_objext"   | \
6483    "xmalloc.$ac_objext "* | \
6484  *" xmalloc.$ac_objext "* ) ;;
6485  *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
6486esac
6487
6488  case $LIBOBJS in
6489    "error.$ac_objext"   | \
6490  *" error.$ac_objext"   | \
6491    "error.$ac_objext "* | \
6492  *" error.$ac_objext "* ) ;;
6493  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
6494esac
6495
6496fi
6497
6498
6499# ---------------------------------------------------------------------------
6500
6501                                                                      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"
6502          ac_config_commands="$ac_config_commands default"
6503cat >confcache <<\_ACEOF
6504# This file is a shell script that caches the results of configure
6505# tests run on this system so they can be shared between configure
6506# scripts and configure runs, see configure's option --config-cache.
6507# It is not useful on other systems.  If it contains results you don't
6508# want to keep, you may remove or edit it.
6509#
6510# config.status only pays attention to the cache file if you give it
6511# the --recheck option to rerun configure.
6512#
6513# `ac_cv_env_foo' variables (set or unset) will be overridden when
6514# loading this file, other *unset* `ac_cv_foo' will be assigned the
6515# following values.
6516
6517_ACEOF
6518
6519# The following way of writing the cache mishandles newlines in values,
6520# but we know of no workaround that is simple, portable, and efficient.
6521# So, don't put newlines in cache variables' values.
6522# Ultrix sh set writes to stderr and can't be redirected directly,
6523# and sets the high bit in the cache file unless we assign to the vars.
6524{
6525  (set) 2>&1 |
6526    case `(ac_space=' '; set | grep ac_space) 2>&1` in
6527    *ac_space=\ *)
6528      # `set' does not quote correctly, so add quotes (double-quote
6529      # substitution turns \\\\ into \\, and sed turns \\ into \).
6530      sed -n \
6531    "s/'/'\\\\''/g;
6532      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6533      ;;
6534    *)
6535      # `set' quotes correctly as required by POSIX, so do not add quotes.
6536      sed -n \
6537    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6538      ;;
6539    esac;
6540} |
6541  sed '
6542     t clear
6543     : clear
6544     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6545     t end
6546     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6547     : end' >>confcache
6548if diff $cache_file confcache >/dev/null 2>&1; then :; else
6549  if test -w $cache_file; then
6550    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6551    cat confcache >$cache_file
6552  else
6553    echo "not updating unwritable cache $cache_file"
6554  fi
6555fi
6556rm -f confcache
6557
6558test "x$prefix" = xNONE && prefix=$ac_default_prefix
6559# Let make expand exec_prefix.
6560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6561
6562# VPATH may cause trouble with some makes, so we remove $(srcdir),
6563# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6564# trailing colons and then remove the whole line if VPATH becomes empty
6565# (actually we leave an empty line to preserve line numbers).
6566if test "x$srcdir" = x.; then
6567  ac_vpsub='/^[  ]*VPATH[    ]*=/{
6568s/:*\$(srcdir):*/:/;
6569s/:*\${srcdir}:*/:/;
6570s/:*@srcdir@:*/:/;
6571s/^\([^=]*=[     ]*\):*/\1/;
6572s/:*$//;
6573s/^[^=]*=[   ]*$//;
6574}'
6575fi
6576
6577DEFS=-DHAVE_CONFIG_H
6578
6579ac_libobjs=
6580ac_ltlibobjs=
6581for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6582  # 1. Remove the extension, and $U if already installed.
6583  ac_i=`echo "$ac_i" |
6584     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6585  # 2. Add them.
6586  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6587  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6588done
6589LIBOBJS=$ac_libobjs
6590
6591LTLIBOBJS=$ac_ltlibobjs
6592
6593
6594
6595: ${CONFIG_STATUS=./config.status}
6596ac_clean_files_save=$ac_clean_files
6597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6598{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6599echo "$as_me: creating $CONFIG_STATUS" >&6;}
6600cat >$CONFIG_STATUS <<_ACEOF
6601#! $SHELL
6602# Generated by $as_me.
6603# Run this file to recreate the current configuration.
6604# Compiler output produced by configure, useful for debugging
6605# configure, is in config.log if it exists.
6606
6607debug=false
6608ac_cs_recheck=false
6609ac_cs_silent=false
6610SHELL=\${CONFIG_SHELL-$SHELL}
6611_ACEOF
6612
6613cat >>$CONFIG_STATUS <<\_ACEOF
6614## --------------------- ##
6615## M4sh Initialization.  ##
6616## --------------------- ##
6617
6618# Be Bourne compatible
6619if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6620  emulate sh
6621  NULLCMD=:
6622  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6623  # is contrary to our usage.  Disable this feature.
6624  alias -g '${1+"$@"}'='"$@"'
6625elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6626  set -o posix
6627fi
6628DUALCASE=1; export DUALCASE # for MKS sh
6629
6630# Support unset when possible.
6631if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6632  as_unset=unset
6633else
6634  as_unset=false
6635fi
6636
6637
6638# Work around bugs in pre-3.0 UWIN ksh.
6639$as_unset ENV MAIL MAILPATH
6640PS1='$ '
6641PS2='> '
6642PS4='+ '
6643
6644# NLS nuisances.
6645for as_var in \
6646  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6647  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6648  LC_TELEPHONE LC_TIME
6649do
6650  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6651    eval $as_var=C; export $as_var
6652  else
6653    $as_unset $as_var
6654  fi
6655done
6656
6657# Required to use basename.
6658if expr a : '\(a\)' >/dev/null 2>&1; then
6659  as_expr=expr
6660else
6661  as_expr=false
6662fi
6663
6664if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6665  as_basename=basename
6666else
6667  as_basename=false
6668fi
6669
6670
6671# Name of the executable.
6672as_me=`$as_basename "$0" ||
6673$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6674     X"$0" : 'X\(//\)$' \| \
6675     X"$0" : 'X\(/\)$' \| \
6676     .     : '\(.\)' 2>/dev/null ||
6677echo X/"$0" |
6678    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6679      /^X\/\(\/\/\)$/{ s//\1/; q; }
6680      /^X\/\(\/\).*/{ s//\1/; q; }
6681      s/.*/./; q'`
6682
6683
6684# PATH needs CR, and LINENO needs CR and PATH.
6685# Avoid depending upon Character Ranges.
6686as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6687as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6688as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6689as_cr_digits='0123456789'
6690as_cr_alnum=$as_cr_Letters$as_cr_digits
6691
6692# The user is always right.
6693if test "${PATH_SEPARATOR+set}" != set; then
6694  echo "#! /bin/sh" >conf$$.sh
6695  echo  "exit 0"   >>conf$$.sh
6696  chmod +x conf$$.sh
6697  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6698    PATH_SEPARATOR=';'
6699  else
6700    PATH_SEPARATOR=:
6701  fi
6702  rm -f conf$$.sh
6703fi
6704
6705
6706  as_lineno_1=$LINENO
6707  as_lineno_2=$LINENO
6708  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6709  test "x$as_lineno_1" != "x$as_lineno_2" &&
6710  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6711  # Find who we are.  Look in the path if we contain no path at all
6712  # relative or not.
6713  case $0 in
6714    *[\\/]* ) as_myself=$0 ;;
6715    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718  IFS=$as_save_IFS
6719  test -z "$as_dir" && as_dir=.
6720  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6721done
6722
6723       ;;
6724  esac
6725  # We did not find ourselves, most probably we were run as `sh COMMAND'
6726  # in which case we are not to be found in the path.
6727  if test "x$as_myself" = x; then
6728    as_myself=$0
6729  fi
6730  if test ! -f "$as_myself"; then
6731    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6732echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6733   { (exit 1); exit 1; }; }
6734  fi
6735  case $CONFIG_SHELL in
6736  '')
6737    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6739do
6740  IFS=$as_save_IFS
6741  test -z "$as_dir" && as_dir=.
6742  for as_base in sh bash ksh sh5; do
6743     case $as_dir in
6744     /*)
6745       if ("$as_dir/$as_base" -c '
6746  as_lineno_1=$LINENO
6747  as_lineno_2=$LINENO
6748  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6749  test "x$as_lineno_1" != "x$as_lineno_2" &&
6750  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6751         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6752         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6753         CONFIG_SHELL=$as_dir/$as_base
6754         export CONFIG_SHELL
6755         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6756       fi;;
6757     esac
6758       done
6759done
6760;;
6761  esac
6762
6763  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6764  # uniformly replaced by the line number.  The first 'sed' inserts a
6765  # line-number line before each line; the second 'sed' does the real
6766  # work.  The second script uses 'N' to pair each line-number line
6767  # with the numbered line, and appends trailing '-' during
6768  # substitution so that $LINENO is not a special case at line end.
6769  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6770  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6771  sed '=' <$as_myself |
6772    sed '
6773      N
6774      s,$,-,
6775      : loop
6776      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6777      t loop
6778      s,-$,,
6779      s,^['$as_cr_digits']*\n,,
6780    ' >$as_me.lineno &&
6781  chmod +x $as_me.lineno ||
6782    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6783echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6784   { (exit 1); exit 1; }; }
6785
6786  # Don't try to exec as it changes $[0], causing all sort of problems
6787  # (the dirname of $[0] is not the place where we might find the
6788  # original and so on.  Autoconf is especially sensible to this).
6789  . ./$as_me.lineno
6790  # Exit status is that of the last command.
6791  exit
6792}
6793
6794
6795case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6796  *c*,-n*) ECHO_N= ECHO_C='
6797' ECHO_T='  ' ;;
6798  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6799  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6800esac
6801
6802if expr a : '\(a\)' >/dev/null 2>&1; then
6803  as_expr=expr
6804else
6805  as_expr=false
6806fi
6807
6808rm -f conf$$ conf$$.exe conf$$.file
6809echo >conf$$.file
6810if ln -s conf$$.file conf$$ 2>/dev/null; then
6811  # We could just check for DJGPP; but this test a) works b) is more generic
6812  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6813  if test -f conf$$.exe; then
6814    # Don't use ln at all; we don't have any links
6815    as_ln_s='cp -p'
6816  else
6817    as_ln_s='ln -s'
6818  fi
6819elif ln conf$$.file conf$$ 2>/dev/null; then
6820  as_ln_s=ln
6821else
6822  as_ln_s='cp -p'
6823fi
6824rm -f conf$$ conf$$.exe conf$$.file
6825
6826if mkdir -p . 2>/dev/null; then
6827  as_mkdir_p=:
6828else
6829  test -d ./-p && rmdir ./-p
6830  as_mkdir_p=false
6831fi
6832
6833as_executable_p="test -f"
6834
6835# Sed expression to map a string onto a valid CPP name.
6836as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6837
6838# Sed expression to map a string onto a valid variable name.
6839as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6840
6841
6842# IFS
6843# We need space, tab and new line, in precisely that order.
6844as_nl='
6845'
6846IFS="   $as_nl"
6847
6848# CDPATH.
6849$as_unset CDPATH
6850
6851exec 6>&1
6852
6853# Open the log real soon, to keep \$[0] and so on meaningful, and to
6854# report actual input values of CONFIG_FILES etc. instead of their
6855# values after options handling.  Logging --version etc. is OK.
6856exec 5>>config.log
6857{
6858  echo
6859  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6860## Running $as_me. ##
6861_ASBOX
6862} >&5
6863cat >&5 <<_CSEOF
6864
6865This file was extended by $as_me, which was
6866generated by GNU Autoconf 2.59.  Invocation command line was
6867
6868  CONFIG_FILES    = $CONFIG_FILES
6869  CONFIG_HEADERS  = $CONFIG_HEADERS
6870  CONFIG_LINKS    = $CONFIG_LINKS
6871  CONFIG_COMMANDS = $CONFIG_COMMANDS
6872  $ $0 $@
6873
6874_CSEOF
6875echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6876echo >&5
6877_ACEOF
6878
6879# Files that config.status was made for.
6880if test -n "$ac_config_files"; then
6881  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6882fi
6883
6884if test -n "$ac_config_headers"; then
6885  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6886fi
6887
6888if test -n "$ac_config_links"; then
6889  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6890fi
6891
6892if test -n "$ac_config_commands"; then
6893  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6894fi
6895
6896cat >>$CONFIG_STATUS <<\_ACEOF
6897
6898ac_cs_usage="\
6899\`$as_me' instantiates files from templates according to the
6900current configuration.
6901
6902Usage: $0 [OPTIONS] [FILE]...
6903
6904  -h, --help       print this help, then exit
6905  -V, --version    print version number, then exit
6906  -q, --quiet      do not print progress messages
6907  -d, --debug      don't remove temporary files
6908      --recheck    update $as_me by reconfiguring in the same conditions
6909  --file=FILE[:TEMPLATE]
6910           instantiate the configuration file FILE
6911  --header=FILE[:TEMPLATE]
6912           instantiate the configuration header FILE
6913
6914Configuration files:
6915$config_files
6916
6917Configuration headers:
6918$config_headers
6919
6920Configuration commands:
6921$config_commands
6922
6923Report bugs to <bug-autoconf@gnu.org>."
6924_ACEOF
6925
6926cat >>$CONFIG_STATUS <<_ACEOF
6927ac_cs_version="\\
6928config.status
6929configured by $0, generated by GNU Autoconf 2.59,
6930  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6931
6932Copyright (C) 2003 Free Software Foundation, Inc.
6933This config.status script is free software; the Free Software Foundation
6934gives unlimited permission to copy, distribute and modify it."
6935srcdir=$srcdir
6936INSTALL="$INSTALL"
6937_ACEOF
6938
6939cat >>$CONFIG_STATUS <<\_ACEOF
6940# If no file are specified by the user, then we need to provide default
6941# value.  By we need to know if files were specified by the user.
6942ac_need_defaults=:
6943while test $# != 0
6944do
6945  case $1 in
6946  --*=*)
6947    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6948    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6949    ac_shift=:
6950    ;;
6951  -*)
6952    ac_option=$1
6953    ac_optarg=$2
6954    ac_shift=shift
6955    ;;
6956  *) # This is not an option, so the user has probably given explicit
6957     # arguments.
6958     ac_option=$1
6959     ac_need_defaults=false;;
6960  esac
6961
6962  case $ac_option in
6963  # Handling of the options.
6964_ACEOF
6965cat >>$CONFIG_STATUS <<\_ACEOF
6966  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6967    ac_cs_recheck=: ;;
6968  --version | --vers* | -V )
6969    echo "$ac_cs_version"; exit 0 ;;
6970  --he | --h)
6971    # Conflict between --help and --header
6972    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6973Try \`$0 --help' for more information." >&5
6974echo "$as_me: error: ambiguous option: $1
6975Try \`$0 --help' for more information." >&2;}
6976   { (exit 1); exit 1; }; };;
6977  --help | --hel | -h )
6978    echo "$ac_cs_usage"; exit 0 ;;
6979  --debug | --d* | -d )
6980    debug=: ;;
6981  --file | --fil | --fi | --f )
6982    $ac_shift
6983    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6984    ac_need_defaults=false;;
6985  --header | --heade | --head | --hea )
6986    $ac_shift
6987    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6988    ac_need_defaults=false;;
6989  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6990  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6991    ac_cs_silent=: ;;
6992
6993  # This is an error.
6994  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6995Try \`$0 --help' for more information." >&5
6996echo "$as_me: error: unrecognized option: $1
6997Try \`$0 --help' for more information." >&2;}
6998   { (exit 1); exit 1; }; } ;;
6999
7000  *) ac_config_targets="$ac_config_targets $1" ;;
7001
7002  esac
7003  shift
7004done
7005
7006ac_configure_extra_args=
7007
7008if $ac_cs_silent; then
7009  exec 6>/dev/null
7010  ac_configure_extra_args="$ac_configure_extra_args --silent"
7011fi
7012
7013_ACEOF
7014cat >>$CONFIG_STATUS <<_ACEOF
7015if \$ac_cs_recheck; then
7016  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7017  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7018fi
7019
7020_ACEOF
7021
7022
7023
7024
7025
7026cat >>$CONFIG_STATUS <<\_ACEOF
7027for ac_config_target in $ac_config_targets
7028do
7029  case "$ac_config_target" in
7030  # Handling of arguments.
7031  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7032  "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
7033  "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
7034  "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
7035  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7036  "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
7037  "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
7038  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7039  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7040  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7041echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7042   { (exit 1); exit 1; }; };;
7043  esac
7044done
7045
7046# If the user did not use the arguments to specify the items to instantiate,
7047# then the envvar interface is used.  Set only those that are not.
7048# We use the long form for the default assignment because of an extremely
7049# bizarre bug on SunOS 4.1.3.
7050if $ac_need_defaults; then
7051  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7052  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7053  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7054fi
7055
7056# Have a temporary directory for convenience.  Make it in the build tree
7057# simply because there is no reason to put it here, and in addition,
7058# creating and moving files from /tmp can sometimes cause problems.
7059# Create a temporary directory, and hook for its removal unless debugging.
7060$debug ||
7061{
7062  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7063  trap '{ (exit 1); exit 1; }' 1 2 13 15
7064}
7065
7066# Create a (secure) tmp directory for tmp files.
7067
7068{
7069  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7070  test -n "$tmp" && test -d "$tmp"
7071}  ||
7072{
7073  tmp=./confstat$$-$RANDOM
7074  (umask 077 && mkdir $tmp)
7075} ||
7076{
7077   echo "$me: cannot create a temporary directory in ." >&2
7078   { (exit 1); exit 1; }
7079}
7080
7081_ACEOF
7082
7083cat >>$CONFIG_STATUS <<_ACEOF
7084
7085#
7086# CONFIG_FILES section.
7087#
7088
7089# No need to generate the scripts if there are no CONFIG_FILES.
7090# This happens for instance when ./config.status config.h
7091if test -n "\$CONFIG_FILES"; then
7092  # Protect against being on the right side of a sed subst in config.status.
7093  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7094   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7095s,@SHELL@,$SHELL,;t t
7096s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7097s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7098s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7099s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7100s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7101s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7102s,@exec_prefix@,$exec_prefix,;t t
7103s,@prefix@,$prefix,;t t
7104s,@program_transform_name@,$program_transform_name,;t t
7105s,@bindir@,$bindir,;t t
7106s,@sbindir@,$sbindir,;t t
7107s,@libexecdir@,$libexecdir,;t t
7108s,@datadir@,$datadir,;t t
7109s,@sysconfdir@,$sysconfdir,;t t
7110s,@sharedstatedir@,$sharedstatedir,;t t
7111s,@localstatedir@,$localstatedir,;t t
7112s,@libdir@,$libdir,;t t
7113s,@includedir@,$includedir,;t t
7114s,@oldincludedir@,$oldincludedir,;t t
7115s,@infodir@,$infodir,;t t
7116s,@mandir@,$mandir,;t t
7117s,@build_alias@,$build_alias,;t t
7118s,@host_alias@,$host_alias,;t t
7119s,@target_alias@,$target_alias,;t t
7120s,@DEFS@,$DEFS,;t t
7121s,@ECHO_C@,$ECHO_C,;t t
7122s,@ECHO_N@,$ECHO_N,;t t
7123s,@ECHO_T@,$ECHO_T,;t t
7124s,@LIBS@,$LIBS,;t t
7125s,@PACKAGE@,$PACKAGE,;t t
7126s,@VERSION@,$VERSION,;t t
7127s,@CXX@,$CXX,;t t
7128s,@CXXFLAGS@,$CXXFLAGS,;t t
7129s,@LDFLAGS@,$LDFLAGS,;t t
7130s,@CPPFLAGS@,$CPPFLAGS,;t t
7131s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7132s,@EXEEXT@,$EXEEXT,;t t
7133s,@OBJEXT@,$OBJEXT,;t t
7134s,@AWK@,$AWK,;t t
7135s,@YACC@,$YACC,;t t
7136s,@CC@,$CC,;t t
7137s,@CFLAGS@,$CFLAGS,;t t
7138s,@ac_ct_CC@,$ac_ct_CC,;t t
7139s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7140s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7141s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7142s,@LN_S@,$LN_S,;t t
7143s,@SET_MAKE@,$SET_MAKE,;t t
7144s,@RANLIB@,$RANLIB,;t t
7145s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7146s,@CPP@,$CPP,;t t
7147s,@EGREP@,$EGREP,;t t
7148s,@U@,$U,;t t
7149s,@ANSI2KNR@,$ANSI2KNR,;t t
7150s,@ALLOCA@,$ALLOCA,;t t
7151s,@LIBOBJS@,$LIBOBJS,;t t
7152s,@JNIINC@,$JNIINC,;t t
7153s,@JNISUFFIX@,$JNISUFFIX,;t t
7154s,@JNIFLAGS@,$JNIFLAGS,;t t
7155s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7156CEOF
7157
7158_ACEOF
7159
7160  cat >>$CONFIG_STATUS <<\_ACEOF
7161  # Split the substitutions into bite-sized pieces for seds with
7162  # small command number limits, like on Digital OSF/1 and HP-UX.
7163  ac_max_sed_lines=48
7164  ac_sed_frag=1 # Number of current file.
7165  ac_beg=1 # First line for current file.
7166  ac_end=$ac_max_sed_lines # Line after last line for current file.
7167  ac_more_lines=:
7168  ac_sed_cmds=
7169  while $ac_more_lines; do
7170    if test $ac_beg -gt 1; then
7171      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7172    else
7173      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7174    fi
7175    if test ! -s $tmp/subs.frag; then
7176      ac_more_lines=false
7177    else
7178      # The purpose of the label and of the branching condition is to
7179      # speed up the sed processing (if there are no `@' at all, there
7180      # is no need to browse any of the substitutions).
7181      # These are the two extra sed commands mentioned above.
7182      (echo ':t
7183  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7184      if test -z "$ac_sed_cmds"; then
7185    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7186      else
7187    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7188      fi
7189      ac_sed_frag=`expr $ac_sed_frag + 1`
7190      ac_beg=$ac_end
7191      ac_end=`expr $ac_end + $ac_max_sed_lines`
7192    fi
7193  done
7194  if test -z "$ac_sed_cmds"; then
7195    ac_sed_cmds=cat
7196  fi
7197fi # test -n "$CONFIG_FILES"
7198
7199_ACEOF
7200cat >>$CONFIG_STATUS <<\_ACEOF
7201for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7202  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7203  case $ac_file in
7204  - | *:- | *:-:* ) # input from stdin
7205    cat >$tmp/stdin
7206    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7207    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7208  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7209    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7210  * )   ac_file_in=$ac_file.in ;;
7211  esac
7212
7213  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7214  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7216     X"$ac_file" : 'X\(//\)[^/]' \| \
7217     X"$ac_file" : 'X\(//\)$' \| \
7218     X"$ac_file" : 'X\(/\)' \| \
7219     .     : '\(.\)' 2>/dev/null ||
7220echo X"$ac_file" |
7221    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7222      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7223      /^X\(\/\/\)$/{ s//\1/; q; }
7224      /^X\(\/\).*/{ s//\1/; q; }
7225      s/.*/./; q'`
7226  { if $as_mkdir_p; then
7227    mkdir -p "$ac_dir"
7228  else
7229    as_dir="$ac_dir"
7230    as_dirs=
7231    while test ! -d "$as_dir"; do
7232      as_dirs="$as_dir $as_dirs"
7233      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7235     X"$as_dir" : 'X\(//\)[^/]' \| \
7236     X"$as_dir" : 'X\(//\)$' \| \
7237     X"$as_dir" : 'X\(/\)' \| \
7238     .     : '\(.\)' 2>/dev/null ||
7239echo X"$as_dir" |
7240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7241      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7242      /^X\(\/\/\)$/{ s//\1/; q; }
7243      /^X\(\/\).*/{ s//\1/; q; }
7244      s/.*/./; q'`
7245    done
7246    test ! -n "$as_dirs" || mkdir $as_dirs
7247  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7248echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7249   { (exit 1); exit 1; }; }; }
7250
7251  ac_builddir=.
7252
7253if test "$ac_dir" != .; then
7254  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7255  # A "../" for each directory in $ac_dir_suffix.
7256  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7257else
7258  ac_dir_suffix= ac_top_builddir=
7259fi
7260
7261case $srcdir in
7262  .)  # No --srcdir option.  We are building in place.
7263    ac_srcdir=.
7264    if test -z "$ac_top_builddir"; then
7265       ac_top_srcdir=.
7266    else
7267       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7268    fi ;;
7269  [\\/]* | ?:[\\/]* )  # Absolute path.
7270    ac_srcdir=$srcdir$ac_dir_suffix;
7271    ac_top_srcdir=$srcdir ;;
7272  *) # Relative path.
7273    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7274    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7275esac
7276
7277# Do not use `cd foo && pwd` to compute absolute paths, because
7278# the directories may not exist.
7279case `pwd` in
7280.) ac_abs_builddir="$ac_dir";;
7281*)
7282  case "$ac_dir" in
7283  .) ac_abs_builddir=`pwd`;;
7284  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7285  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7286  esac;;
7287esac
7288case $ac_abs_builddir in
7289.) ac_abs_top_builddir=${ac_top_builddir}.;;
7290*)
7291  case ${ac_top_builddir}. in
7292  .) ac_abs_top_builddir=$ac_abs_builddir;;
7293  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7294  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7295  esac;;
7296esac
7297case $ac_abs_builddir in
7298.) ac_abs_srcdir=$ac_srcdir;;
7299*)
7300  case $ac_srcdir in
7301  .) ac_abs_srcdir=$ac_abs_builddir;;
7302  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7303  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7304  esac;;
7305esac
7306case $ac_abs_builddir in
7307.) ac_abs_top_srcdir=$ac_top_srcdir;;
7308*)
7309  case $ac_top_srcdir in
7310  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7311  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7312  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7313  esac;;
7314esac
7315
7316
7317  case $INSTALL in
7318  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7319  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7320  esac
7321
7322  if test x"$ac_file" != x-; then
7323    { echo "$as_me:$LINENO: creating $ac_file" >&5
7324echo "$as_me: creating $ac_file" >&6;}
7325    rm -f "$ac_file"
7326  fi
7327  # Let's still pretend it is `configure' which instantiates (i.e., don't
7328  # use $as_me), people would be surprised to read:
7329  #    /* config.h.  Generated by config.status.  */
7330  if test x"$ac_file" = x-; then
7331    configure_input=
7332  else
7333    configure_input="$ac_file.  "
7334  fi
7335  configure_input=$configure_input"Generated from `echo $ac_file_in |
7336                     sed 's,.*/,,'` by configure."
7337
7338  # First look for the input files in the build tree, otherwise in the
7339  # src tree.
7340  ac_file_inputs=`IFS=:
7341    for f in $ac_file_in; do
7342      case $f in
7343      -) echo $tmp/stdin ;;
7344      [\\/$]*)
7345     # Absolute (can't be DOS-style, as IFS=:)
7346     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7347echo "$as_me: error: cannot find input file: $f" >&2;}
7348   { (exit 1); exit 1; }; }
7349     echo "$f";;
7350      *) # Relative
7351     if test -f "$f"; then
7352       # Build tree
7353       echo "$f"
7354     elif test -f "$srcdir/$f"; then
7355       # Source tree
7356       echo "$srcdir/$f"
7357     else
7358       # /dev/null tree
7359       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7360echo "$as_me: error: cannot find input file: $f" >&2;}
7361   { (exit 1); exit 1; }; }
7362     fi;;
7363      esac
7364    done` || { (exit 1); exit 1; }
7365_ACEOF
7366cat >>$CONFIG_STATUS <<_ACEOF
7367  sed "$ac_vpsub
7368$extrasub
7369_ACEOF
7370cat >>$CONFIG_STATUS <<\_ACEOF
7371:t
7372/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7373s,@configure_input@,$configure_input,;t t
7374s,@srcdir@,$ac_srcdir,;t t
7375s,@abs_srcdir@,$ac_abs_srcdir,;t t
7376s,@top_srcdir@,$ac_top_srcdir,;t t
7377s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7378s,@builddir@,$ac_builddir,;t t
7379s,@abs_builddir@,$ac_abs_builddir,;t t
7380s,@top_builddir@,$ac_top_builddir,;t t
7381s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7382s,@INSTALL@,$ac_INSTALL,;t t
7383" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7384  rm -f $tmp/stdin
7385  if test x"$ac_file" != x-; then
7386    mv $tmp/out $ac_file
7387  else
7388    cat $tmp/out
7389    rm -f $tmp/out
7390  fi
7391
7392done
7393_ACEOF
7394cat >>$CONFIG_STATUS <<\_ACEOF
7395
7396#
7397# CONFIG_HEADER section.
7398#
7399
7400# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7401# NAME is the cpp macro being defined and VALUE is the value it is being given.
7402#
7403# ac_d sets the value in "#define NAME VALUE" lines.
7404ac_dA='s,^\([    ]*\)#\([    ]*define[   ][  ]*\)'
7405ac_dB='[     ].*$,\1#\2'
7406ac_dC=' '
7407ac_dD=',;t'
7408# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7409ac_uA='s,^\([    ]*\)#\([    ]*\)undef\([    ][  ]*\)'
7410ac_uB='$,\1#\2define\3'
7411ac_uC=' '
7412ac_uD=',;t'
7413
7414for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7415  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7416  case $ac_file in
7417  - | *:- | *:-:* ) # input from stdin
7418    cat >$tmp/stdin
7419    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7420    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7421  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7422    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7423  * )   ac_file_in=$ac_file.in ;;
7424  esac
7425
7426  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7427echo "$as_me: creating $ac_file" >&6;}
7428
7429  # First look for the input files in the build tree, otherwise in the
7430  # src tree.
7431  ac_file_inputs=`IFS=:
7432    for f in $ac_file_in; do
7433      case $f in
7434      -) echo $tmp/stdin ;;
7435      [\\/$]*)
7436     # Absolute (can't be DOS-style, as IFS=:)
7437     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7438echo "$as_me: error: cannot find input file: $f" >&2;}
7439   { (exit 1); exit 1; }; }
7440     # Do quote $f, to prevent DOS paths from being IFS'd.
7441     echo "$f";;
7442      *) # Relative
7443     if test -f "$f"; then
7444       # Build tree
7445       echo "$f"
7446     elif test -f "$srcdir/$f"; then
7447       # Source tree
7448       echo "$srcdir/$f"
7449     else
7450       # /dev/null tree
7451       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7452echo "$as_me: error: cannot find input file: $f" >&2;}
7453   { (exit 1); exit 1; }; }
7454     fi;;
7455      esac
7456    done` || { (exit 1); exit 1; }
7457  # Remove the trailing spaces.
7458  sed 's/[   ]*$//' $ac_file_inputs >$tmp/in
7459
7460_ACEOF
7461
7462# Transform confdefs.h into two sed scripts, `conftest.defines' and
7463# `conftest.undefs', that substitutes the proper values into
7464# config.h.in to produce config.h.  The first handles `#define'
7465# templates, and the second `#undef' templates.
7466# And first: Protect against being on the right side of a sed subst in
7467# config.status.  Protect against being in an unquoted here document
7468# in config.status.
7469rm -f conftest.defines conftest.undefs
7470# Using a here document instead of a string reduces the quoting nightmare.
7471# Putting comments in sed scripts is not portable.
7472#
7473# `end' is used to avoid that the second main sed command (meant for
7474# 0-ary CPP macros) applies to n-ary macro definitions.
7475# See the Autoconf documentation for `clear'.
7476cat >confdef2sed.sed <<\_ACEOF
7477s/[\\&,]/\\&/g
7478s,[\\$`],\\&,g
7479t clear
7480: clear
7481s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*\)\(([^)]*)\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7482t end
7483s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7484: end
7485_ACEOF
7486# If some macros were called several times there might be several times
7487# the same #defines, which is useless.  Nevertheless, we may not want to
7488# sort them, since we want the *last* AC-DEFINE to be honored.
7489uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7490sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7491rm -f confdef2sed.sed
7492
7493# This sed command replaces #undef with comments.  This is necessary, for
7494# example, in the case of _POSIX_SOURCE, which is predefined and required
7495# on some systems where configure will not decide to define it.
7496cat >>conftest.undefs <<\_ACEOF
7497s,^[     ]*#[    ]*undef[    ][  ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7498_ACEOF
7499
7500# Break up conftest.defines because some shells have a limit on the size
7501# of here documents, and old seds have small limits too (100 cmds).
7502echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7503echo '  if grep "^[  ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7504echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7505echo '  :' >>$CONFIG_STATUS
7506rm -f conftest.tail
7507while grep . conftest.defines >/dev/null
7508do
7509  # Write a limited-size here document to $tmp/defines.sed.
7510  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7511  # Speed up: don't consider the non `#define' lines.
7512  echo '/^[  ]*#[    ]*define/!b' >>$CONFIG_STATUS
7513  # Work around the forget-to-reset-the-flag bug.
7514  echo 't clr' >>$CONFIG_STATUS
7515  echo ': clr' >>$CONFIG_STATUS
7516  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7517  echo 'CEOF
7518  sed -f $tmp/defines.sed $tmp/in >$tmp/out
7519  rm -f $tmp/in
7520  mv $tmp/out $tmp/in
7521' >>$CONFIG_STATUS
7522  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7523  rm -f conftest.defines
7524  mv conftest.tail conftest.defines
7525done
7526rm -f conftest.defines
7527echo '  fi # grep' >>$CONFIG_STATUS
7528echo >>$CONFIG_STATUS
7529
7530# Break up conftest.undefs because some shells have a limit on the size
7531# of here documents, and old seds have small limits too (100 cmds).
7532echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7533rm -f conftest.tail
7534while grep . conftest.undefs >/dev/null
7535do
7536  # Write a limited-size here document to $tmp/undefs.sed.
7537  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7538  # Speed up: don't consider the non `#undef'
7539  echo '/^[  ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7540  # Work around the forget-to-reset-the-flag bug.
7541  echo 't clr' >>$CONFIG_STATUS
7542  echo ': clr' >>$CONFIG_STATUS
7543  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7544  echo 'CEOF
7545  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7546  rm -f $tmp/in
7547  mv $tmp/out $tmp/in
7548' >>$CONFIG_STATUS
7549  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7550  rm -f conftest.undefs
7551  mv conftest.tail conftest.undefs
7552done
7553rm -f conftest.undefs
7554
7555cat >>$CONFIG_STATUS <<\_ACEOF
7556  # Let's still pretend it is `configure' which instantiates (i.e., don't
7557  # use $as_me), people would be surprised to read:
7558  #    /* config.h.  Generated by config.status.  */
7559  if test x"$ac_file" = x-; then
7560    echo "/* Generated by configure.  */" >$tmp/config.h
7561  else
7562    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7563  fi
7564  cat $tmp/in >>$tmp/config.h
7565  rm -f $tmp/in
7566  if test x"$ac_file" != x-; then
7567    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7568      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7569echo "$as_me: $ac_file is unchanged" >&6;}
7570    else
7571      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7572$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7573     X"$ac_file" : 'X\(//\)[^/]' \| \
7574     X"$ac_file" : 'X\(//\)$' \| \
7575     X"$ac_file" : 'X\(/\)' \| \
7576     .     : '\(.\)' 2>/dev/null ||
7577echo X"$ac_file" |
7578    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7579      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7580      /^X\(\/\/\)$/{ s//\1/; q; }
7581      /^X\(\/\).*/{ s//\1/; q; }
7582      s/.*/./; q'`
7583      { if $as_mkdir_p; then
7584    mkdir -p "$ac_dir"
7585  else
7586    as_dir="$ac_dir"
7587    as_dirs=
7588    while test ! -d "$as_dir"; do
7589      as_dirs="$as_dir $as_dirs"
7590      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7591$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7592     X"$as_dir" : 'X\(//\)[^/]' \| \
7593     X"$as_dir" : 'X\(//\)$' \| \
7594     X"$as_dir" : 'X\(/\)' \| \
7595     .     : '\(.\)' 2>/dev/null ||
7596echo X"$as_dir" |
7597    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7598      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7599      /^X\(\/\/\)$/{ s//\1/; q; }
7600      /^X\(\/\).*/{ s//\1/; q; }
7601      s/.*/./; q'`
7602    done
7603    test ! -n "$as_dirs" || mkdir $as_dirs
7604  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7605echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7606   { (exit 1); exit 1; }; }; }
7607
7608      rm -f $ac_file
7609      mv $tmp/config.h $ac_file
7610    fi
7611  else
7612    cat $tmp/config.h
7613    rm -f $tmp/config.h
7614  fi
7615done
7616_ACEOF
7617cat >>$CONFIG_STATUS <<\_ACEOF
7618
7619#
7620# CONFIG_COMMANDS section.
7621#
7622for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7623  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7624  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7625  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7626$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7627     X"$ac_dest" : 'X\(//\)[^/]' \| \
7628     X"$ac_dest" : 'X\(//\)$' \| \
7629     X"$ac_dest" : 'X\(/\)' \| \
7630     .     : '\(.\)' 2>/dev/null ||
7631echo X"$ac_dest" |
7632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7633      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7634      /^X\(\/\/\)$/{ s//\1/; q; }
7635      /^X\(\/\).*/{ s//\1/; q; }
7636      s/.*/./; q'`
7637  { if $as_mkdir_p; then
7638    mkdir -p "$ac_dir"
7639  else
7640    as_dir="$ac_dir"
7641    as_dirs=
7642    while test ! -d "$as_dir"; do
7643      as_dirs="$as_dir $as_dirs"
7644      as_dir=`(dirname "$as_dir") 2>/dev/null ||
7645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7646     X"$as_dir" : 'X\(//\)[^/]' \| \
7647     X"$as_dir" : 'X\(//\)$' \| \
7648     X"$as_dir" : 'X\(/\)' \| \
7649     .     : '\(.\)' 2>/dev/null ||
7650echo X"$as_dir" |
7651    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7652      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7653      /^X\(\/\/\)$/{ s//\1/; q; }
7654      /^X\(\/\).*/{ s//\1/; q; }
7655      s/.*/./; q'`
7656    done
7657    test ! -n "$as_dirs" || mkdir $as_dirs
7658  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7659echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7660   { (exit 1); exit 1; }; }; }
7661
7662  ac_builddir=.
7663
7664if test "$ac_dir" != .; then
7665  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7666  # A "../" for each directory in $ac_dir_suffix.
7667  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7668else
7669  ac_dir_suffix= ac_top_builddir=
7670fi
7671
7672case $srcdir in
7673  .)  # No --srcdir option.  We are building in place.
7674    ac_srcdir=.
7675    if test -z "$ac_top_builddir"; then
7676       ac_top_srcdir=.
7677    else
7678       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7679    fi ;;
7680  [\\/]* | ?:[\\/]* )  # Absolute path.
7681    ac_srcdir=$srcdir$ac_dir_suffix;
7682    ac_top_srcdir=$srcdir ;;
7683  *) # Relative path.
7684    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7685    ac_top_srcdir=$ac_top_builddir$srcdir ;;
7686esac
7687
7688# Do not use `cd foo && pwd` to compute absolute paths, because
7689# the directories may not exist.
7690case `pwd` in
7691.) ac_abs_builddir="$ac_dir";;
7692*)
7693  case "$ac_dir" in
7694  .) ac_abs_builddir=`pwd`;;
7695  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7696  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7697  esac;;
7698esac
7699case $ac_abs_builddir in
7700.) ac_abs_top_builddir=${ac_top_builddir}.;;
7701*)
7702  case ${ac_top_builddir}. in
7703  .) ac_abs_top_builddir=$ac_abs_builddir;;
7704  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7705  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7706  esac;;
7707esac
7708case $ac_abs_builddir in
7709.) ac_abs_srcdir=$ac_srcdir;;
7710*)
7711  case $ac_srcdir in
7712  .) ac_abs_srcdir=$ac_abs_builddir;;
7713  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7714  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7715  esac;;
7716esac
7717case $ac_abs_builddir in
7718.) ac_abs_top_srcdir=$ac_top_srcdir;;
7719*)
7720  case $ac_top_srcdir in
7721  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7722  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7723  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7724  esac;;
7725esac
7726
7727
7728  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7729echo "$as_me: executing $ac_dest commands" >&6;}
7730  case $ac_dest in
7731    default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
7732  esac
7733done
7734_ACEOF
7735
7736cat >>$CONFIG_STATUS <<\_ACEOF
7737
7738{ (exit 0); exit 0; }
7739_ACEOF
7740chmod +x $CONFIG_STATUS
7741ac_clean_files=$ac_clean_files_save
7742
7743
7744# configure is writing to config.log, and then calls config.status.
7745# config.status does its own redirection, appending to config.log.
7746# Unfortunately, on DOS this fails, as config.log is still kept open
7747# by configure, so config.status won't be able to write to it; its
7748# output is simply discarded.  So we exec the FD to /dev/null,
7749# effectively closing config.log, so it can be properly (re)opened and
7750# appended to by config.status.  When coming back to configure, we
7751# need to make the FD available again.
7752if test "$no_create" != yes; then
7753  ac_cs_success=:
7754  ac_config_status_args=
7755  test "$silent" = yes &&
7756    ac_config_status_args="$ac_config_status_args --quiet"
7757  exec 5>/dev/null
7758  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7759  exec 5>>config.log
7760  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7761  # would make configure fail if this is the last instruction.
7762  $ac_cs_success || { (exit 1); exit 1; }
7763fi
7764
Note: See TracBrowser for help on using the browser.