root/main/trunk/greenstone2/runtime-src/configure @ 21329

Revision 21329, 237.2 KB (checked in by ak19, 10 years ago)

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

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