root/main/trunk/greenstone2/build-src/configure @ 23800

Revision 23800, 254.0 KB (checked in by ak19, 9 years ago)

Added enable/disable-wvware flag to affected configure and Makefiles files in build-src, build-src/packages and top-level GS2, so we can turn off wvware compiling (such as for 64 bit Mac OS Snow Leopard Update 3 machines - MacOS 10.6.3 and over). By default wvware compilation is enabled.

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