root/greenstone3/trunk/src/packages/javagdbm/configure @ 18343

Revision 18343, 154.4 KB (checked in by davidb, 11 years ago)

Modifications to support 64-bit architecture

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /bin/sh
2# From configure.in Revision: 10917 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59.
5#
6# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69     X"$0" : 'X\(//\)$' \| \
70     X"$0" : 'X\(/\)$' \| \
71     .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74      /^X\/\(\/\/\)$/{ s//\1/; q; }
75      /^X\/\(\/\).*/{ s//\1/; q; }
76      s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137     case $as_dir in
138     /*)
139       if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147         CONFIG_SHELL=$as_dir/$as_base
148         export CONFIG_SHELL
149         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150       fi;;
151     esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='  ' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  test -d ./-p && rmdir ./-p
223  as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS="   $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete.  It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME=
270PACKAGE_TARNAME=
271PACKAGE_VERSION=
272PACKAGE_STRING=
273PACKAGE_BUGREPORT=
274
275ac_unique_file="jni/gdbmjava.c"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290#  include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295#  include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306#  include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S COMPAT32BITFLAGS CPP EGREP JAVA_HOME javagdbm_cv_path_javah javagdbm_cv_path_java GDBM_LIBPATH GDBM_INCLUDE PKG JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357  # If the previous option needs an argument, assign it.
358  if test -n "$ac_prev"; then
359    eval "$ac_prev=\$ac_option"
360    ac_prev=
361    continue
362  fi
363
364  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366  # Accept the important Cygnus configure options, so we can diagnose typos.
367
368  case $ac_option in
369
370  -bindir | --bindir | --bindi | --bind | --bin | --bi)
371    ac_prev=bindir ;;
372  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373    bindir=$ac_optarg ;;
374
375  -build | --build | --buil | --bui | --bu)
376    ac_prev=build_alias ;;
377  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378    build_alias=$ac_optarg ;;
379
380  -cache-file | --cache-file | --cache-fil | --cache-fi \
381  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382    ac_prev=cache_file ;;
383  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385    cache_file=$ac_optarg ;;
386
387  --config-cache | -C)
388    cache_file=config.cache ;;
389
390  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391    ac_prev=datadir ;;
392  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393  | --da=*)
394    datadir=$ac_optarg ;;
395
396  -disable-* | --disable-*)
397    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398    # Reject names that are not valid shell variable names.
399    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401   { (exit 1); exit 1; }; }
402    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403    eval "enable_$ac_feature=no" ;;
404
405  -enable-* | --enable-*)
406    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407    # Reject names that are not valid shell variable names.
408    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410   { (exit 1); exit 1; }; }
411    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412    case $ac_option in
413      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414      *) ac_optarg=yes ;;
415    esac
416    eval "enable_$ac_feature='$ac_optarg'" ;;
417
418  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420  | --exec | --exe | --ex)
421    ac_prev=exec_prefix ;;
422  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424  | --exec=* | --exe=* | --ex=*)
425    exec_prefix=$ac_optarg ;;
426
427  -gas | --gas | --ga | --g)
428    # Obsolete; use --with-gas.
429    with_gas=yes ;;
430
431  -help | --help | --hel | --he | -h)
432    ac_init_help=long ;;
433  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434    ac_init_help=recursive ;;
435  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436    ac_init_help=short ;;
437
438  -host | --host | --hos | --ho)
439    ac_prev=host_alias ;;
440  -host=* | --host=* | --hos=* | --ho=*)
441    host_alias=$ac_optarg ;;
442
443  -includedir | --includedir | --includedi | --included | --include \
444  | --includ | --inclu | --incl | --inc)
445    ac_prev=includedir ;;
446  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447  | --includ=* | --inclu=* | --incl=* | --inc=*)
448    includedir=$ac_optarg ;;
449
450  -infodir | --infodir | --infodi | --infod | --info | --inf)
451    ac_prev=infodir ;;
452  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453    infodir=$ac_optarg ;;
454
455  -libdir | --libdir | --libdi | --libd)
456    ac_prev=libdir ;;
457  -libdir=* | --libdir=* | --libdi=* | --libd=*)
458    libdir=$ac_optarg ;;
459
460  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461  | --libexe | --libex | --libe)
462    ac_prev=libexecdir ;;
463  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464  | --libexe=* | --libex=* | --libe=*)
465    libexecdir=$ac_optarg ;;
466
467  -localstatedir | --localstatedir | --localstatedi | --localstated \
468  | --localstate | --localstat | --localsta | --localst \
469  | --locals | --local | --loca | --loc | --lo)
470    ac_prev=localstatedir ;;
471  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474    localstatedir=$ac_optarg ;;
475
476  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477    ac_prev=mandir ;;
478  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479    mandir=$ac_optarg ;;
480
481  -nfp | --nfp | --nf)
482    # Obsolete; use --without-fp.
483    with_fp=no ;;
484
485  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486  | --no-cr | --no-c | -n)
487    no_create=yes ;;
488
489  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491    no_recursion=yes ;;
492
493  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495  | --oldin | --oldi | --old | --ol | --o)
496    ac_prev=oldincludedir ;;
497  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500    oldincludedir=$ac_optarg ;;
501
502  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503    ac_prev=prefix ;;
504  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505    prefix=$ac_optarg ;;
506
507  -program-prefix | --program-prefix | --program-prefi | --program-pref \
508  | --program-pre | --program-pr | --program-p)
509    ac_prev=program_prefix ;;
510  -program-prefix=* | --program-prefix=* | --program-prefi=* \
511  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512    program_prefix=$ac_optarg ;;
513
514  -program-suffix | --program-suffix | --program-suffi | --program-suff \
515  | --program-suf | --program-su | --program-s)
516    ac_prev=program_suffix ;;
517  -program-suffix=* | --program-suffix=* | --program-suffi=* \
518  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519    program_suffix=$ac_optarg ;;
520
521  -program-transform-name | --program-transform-name \
522  | --program-transform-nam | --program-transform-na \
523  | --program-transform-n | --program-transform- \
524  | --program-transform | --program-transfor \
525  | --program-transfo | --program-transf \
526  | --program-trans | --program-tran \
527  | --progr-tra | --program-tr | --program-t)
528    ac_prev=program_transform_name ;;
529  -program-transform-name=* | --program-transform-name=* \
530  | --program-transform-nam=* | --program-transform-na=* \
531  | --program-transform-n=* | --program-transform-=* \
532  | --program-transform=* | --program-transfor=* \
533  | --program-transfo=* | --program-transf=* \
534  | --program-trans=* | --program-tran=* \
535  | --progr-tra=* | --program-tr=* | --program-t=*)
536    program_transform_name=$ac_optarg ;;
537
538  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539  | -silent | --silent | --silen | --sile | --sil)
540    silent=yes ;;
541
542  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543    ac_prev=sbindir ;;
544  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545  | --sbi=* | --sb=*)
546    sbindir=$ac_optarg ;;
547
548  -sharedstatedir | --sharedstatedir | --sharedstatedi \
549  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550  | --sharedst | --shareds | --shared | --share | --shar \
551  | --sha | --sh)
552    ac_prev=sharedstatedir ;;
553  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556  | --sha=* | --sh=*)
557    sharedstatedir=$ac_optarg ;;
558
559  -site | --site | --sit)
560    ac_prev=site ;;
561  -site=* | --site=* | --sit=*)
562    site=$ac_optarg ;;
563
564  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565    ac_prev=srcdir ;;
566  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567    srcdir=$ac_optarg ;;
568
569  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570  | --syscon | --sysco | --sysc | --sys | --sy)
571    ac_prev=sysconfdir ;;
572  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574    sysconfdir=$ac_optarg ;;
575
576  -target | --target | --targe | --targ | --tar | --ta | --t)
577    ac_prev=target_alias ;;
578  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579    target_alias=$ac_optarg ;;
580
581  -v | -verbose | --verbose | --verbos | --verbo | --verb)
582    verbose=yes ;;
583
584  -version | --version | --versio | --versi | --vers | -V)
585    ac_init_version=: ;;
586
587  -with-* | --with-*)
588    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589    # Reject names that are not valid shell variable names.
590    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591      { echo "$as_me: error: invalid package name: $ac_package" >&2
592   { (exit 1); exit 1; }; }
593    ac_package=`echo $ac_package| sed 's/-/_/g'`
594    case $ac_option in
595      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596      *) ac_optarg=yes ;;
597    esac
598    eval "with_$ac_package='$ac_optarg'" ;;
599
600  -without-* | --without-*)
601    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602    # Reject names that are not valid shell variable names.
603    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604      { echo "$as_me: error: invalid package name: $ac_package" >&2
605   { (exit 1); exit 1; }; }
606    ac_package=`echo $ac_package | sed 's/-/_/g'`
607    eval "with_$ac_package=no" ;;
608
609  --x)
610    # Obsolete; use --with-x.
611    with_x=yes ;;
612
613  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614  | --x-incl | --x-inc | --x-in | --x-i)
615    ac_prev=x_includes ;;
616  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618    x_includes=$ac_optarg ;;
619
620  -x-libraries | --x-libraries | --x-librarie | --x-librari \
621  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622    ac_prev=x_libraries ;;
623  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625    x_libraries=$ac_optarg ;;
626
627  -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629   { (exit 1); exit 1; }; }
630    ;;
631
632  *=*)
633    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634    # Reject names that are not valid shell variable names.
635    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637   { (exit 1); exit 1; }; }
638    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639    eval "$ac_envvar='$ac_optarg'"
640    export $ac_envvar ;;
641
642  *)
643    # FIXME: should be removed in autoconf 3.0.
644    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648    ;;
649
650  esac
651done
652
653if test -n "$ac_prev"; then
654  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655  { echo "$as_me: error: missing argument to $ac_option" >&2
656   { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662  eval ac_val=$`echo $ac_var`
663  case $ac_val in
664    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666   { (exit 1); exit 1; }; };;
667  esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672          localstatedir libdir includedir oldincludedir infodir mandir
673do
674  eval ac_val=$`echo $ac_var`
675  case $ac_val in
676    [\\/$]* | ?:[\\/]* ) ;;
677    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678   { (exit 1); exit 1; }; };;
679  esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691  if test "x$build_alias" = x; then
692    cross_compiling=maybe
693    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694    If a cross compiler is detected then cross compile mode will be used." >&2
695  elif test "x$build_alias" != "x$host_alias"; then
696    cross_compiling=yes
697  fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708  ac_srcdir_defaulted=yes
709  # Try the directory containing this script, then its parent.
710  ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712     X"$0" : 'X\(//\)[^/]' \| \
713     X"$0" : 'X\(//\)$' \| \
714     X"$0" : 'X\(/\)' \| \
715     .     : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719      /^X\(\/\/\)$/{ s//\1/; q; }
720      /^X\(\/\).*/{ s//\1/; q; }
721      s/.*/./; q'`
722  srcdir=$ac_confdir
723  if test ! -r $srcdir/$ac_unique_file; then
724    srcdir=..
725  fi
726else
727  ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730  if test "$ac_srcdir_defaulted" = yes; then
731    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732   { (exit 1); exit 1; }; }
733  else
734    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735   { (exit 1); exit 1; }; }
736  fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740   { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779  # Omit some internal or obsolete options to make the list less imposing.
780  # This message is too long to be a string in the A/UX 3.1 sh.
781  cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792  -h, --help              display this help and exit
793      --help=short        display options specific to this package
794      --help=recursive    display the short help of all the included packages
795  -V, --version           display version information and exit
796  -q, --quiet, --silent   do not print \`checking...' messages
797      --cache-file=FILE   cache test results in FILE [disabled]
798  -C, --config-cache      alias for \`--cache-file=config.cache'
799  -n, --no-create         do not create output files
800      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804  cat <<_ACEOF
805Installation directories:
806  --prefix=PREFIX         install architecture-independent files in PREFIX
807              [$ac_default_prefix]
808  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809              [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819  --bindir=DIR           user executables [EPREFIX/bin]
820  --sbindir=DIR          system admin executables [EPREFIX/sbin]
821  --libexecdir=DIR       program executables [EPREFIX/libexec]
822  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826  --libdir=DIR           object code libraries [EPREFIX/lib]
827  --includedir=DIR       C header files [PREFIX/include]
828  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829  --infodir=DIR          info documentation [PREFIX/info]
830  --mandir=DIR           man documentation [PREFIX/man]
831_ACEOF
832
833  cat <<\_ACEOF
834
835System types:
836  --build=BUILD     configure for building on BUILD [guessed]
837  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
838  --target=TARGET   configure for building compilers for TARGET [HOST]
839_ACEOF
840fi
841
842if test -n "$ac_init_help"; then
843
844  cat <<\_ACEOF
845
846Optional Packages:
847  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
848  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
849  --with-gdbm=dir         Use local gdbm library and headers
850
851Some influential environment variables:
852  CC          C compiler command
853  CFLAGS      C compiler flags
854  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
855              nonstandard directory <lib dir>
856  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
857              headers in a nonstandard directory <include dir>
858  CPP         C preprocessor
859
860Use these variables to override the choices made by `configure' or to help
861it to find libraries and programs with nonstandard names/locations.
862
863_ACEOF
864fi
865
866if test "$ac_init_help" = "recursive"; then
867  # If there are subdirs, report their specific --help.
868  ac_popdir=`pwd`
869  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
870    test -d $ac_dir || continue
871    ac_builddir=.
872
873if test "$ac_dir" != .; then
874  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
875  # A "../" for each directory in $ac_dir_suffix.
876  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877else
878  ac_dir_suffix= ac_top_builddir=
879fi
880
881case $srcdir in
882  .)  # No --srcdir option.  We are building in place.
883    ac_srcdir=.
884    if test -z "$ac_top_builddir"; then
885       ac_top_srcdir=.
886    else
887       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888    fi ;;
889  [\\/]* | ?:[\\/]* )  # Absolute path.
890    ac_srcdir=$srcdir$ac_dir_suffix;
891    ac_top_srcdir=$srcdir ;;
892  *) # Relative path.
893    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
894    ac_top_srcdir=$ac_top_builddir$srcdir ;;
895esac
896
897# Do not use `cd foo && pwd` to compute absolute paths, because
898# the directories may not exist.
899case `pwd` in
900.) ac_abs_builddir="$ac_dir";;
901*)
902  case "$ac_dir" in
903  .) ac_abs_builddir=`pwd`;;
904  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
905  *) ac_abs_builddir=`pwd`/"$ac_dir";;
906  esac;;
907esac
908case $ac_abs_builddir in
909.) ac_abs_top_builddir=${ac_top_builddir}.;;
910*)
911  case ${ac_top_builddir}. in
912  .) ac_abs_top_builddir=$ac_abs_builddir;;
913  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
914  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
915  esac;;
916esac
917case $ac_abs_builddir in
918.) ac_abs_srcdir=$ac_srcdir;;
919*)
920  case $ac_srcdir in
921  .) ac_abs_srcdir=$ac_abs_builddir;;
922  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
923  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
924  esac;;
925esac
926case $ac_abs_builddir in
927.) ac_abs_top_srcdir=$ac_top_srcdir;;
928*)
929  case $ac_top_srcdir in
930  .) ac_abs_top_srcdir=$ac_abs_builddir;;
931  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
932  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933  esac;;
934esac
935
936    cd $ac_dir
937    # Check for guested configure; otherwise get Cygnus style configure.
938    if test -f $ac_srcdir/configure.gnu; then
939      echo
940      $SHELL $ac_srcdir/configure.gnu  --help=recursive
941    elif test -f $ac_srcdir/configure; then
942      echo
943      $SHELL $ac_srcdir/configure  --help=recursive
944    elif test -f $ac_srcdir/configure.ac ||
945       test -f $ac_srcdir/configure.in; then
946      echo
947      $ac_configure --help
948    else
949      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950    fi
951    cd $ac_popdir
952  done
953fi
954
955test -n "$ac_init_help" && exit 0
956if $ac_init_version; then
957  cat <<\_ACEOF
958
959Copyright (C) 2003 Free Software Foundation, Inc.
960This configure script is free software; the Free Software Foundation
961gives unlimited permission to copy, distribute and modify it.
962_ACEOF
963  exit 0
964fi
965exec 5>config.log
966cat >&5 <<_ACEOF
967This file contains any messages produced by compilers while
968running configure, to aid debugging if configure makes a mistake.
969
970It was created by $as_me, which was
971generated by GNU Autoconf 2.59.  Invocation command line was
972
973  $ $0 $@
974
975_ACEOF
976{
977cat <<_ASUNAME
978## --------- ##
979## Platform. ##
980## --------- ##
981
982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983uname -m = `(uname -m) 2>/dev/null || echo unknown`
984uname -r = `(uname -r) 2>/dev/null || echo unknown`
985uname -s = `(uname -s) 2>/dev/null || echo unknown`
986uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
990
991/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
992/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
995/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
996/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
997/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
998
999_ASUNAME
1000
1001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1002for as_dir in $PATH
1003do
1004  IFS=$as_save_IFS
1005  test -z "$as_dir" && as_dir=.
1006  echo "PATH: $as_dir"
1007done
1008
1009} >&5
1010
1011cat >&5 <<_ACEOF
1012
1013
1014## ----------- ##
1015## Core tests. ##
1016## ----------- ##
1017
1018_ACEOF
1019
1020
1021# Keep a trace of the command line.
1022# Strip out --no-create and --no-recursion so they do not pile up.
1023# Strip out --silent because we don't want to record it for future runs.
1024# Also quote any args containing shell meta-characters.
1025# Make two passes to allow for proper duplicate-argument suppression.
1026ac_configure_args=
1027ac_configure_args0=
1028ac_configure_args1=
1029ac_sep=
1030ac_must_keep_next=false
1031for ac_pass in 1 2
1032do
1033  for ac_arg
1034  do
1035    case $ac_arg in
1036    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1037    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038    | -silent | --silent | --silen | --sile | --sil)
1039      continue ;;
1040    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1041      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042    esac
1043    case $ac_pass in
1044    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045    2)
1046      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1047      if test $ac_must_keep_next = true; then
1048    ac_must_keep_next=false # Got value, back to normal.
1049      else
1050    case $ac_arg in
1051      *=* | --config-cache | -C | -disable-* | --disable-* \
1052      | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1053      | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1054      | -with-* | --with-* | -without-* | --without-* | --x)
1055        case "$ac_configure_args0 " in
1056          "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1057        esac
1058        ;;
1059      -* ) ac_must_keep_next=true ;;
1060    esac
1061      fi
1062      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1063      # Get rid of the leading space.
1064      ac_sep=" "
1065      ;;
1066    esac
1067  done
1068done
1069$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1070$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071
1072# When interrupted or exit'd, cleanup temporary files, and complete
1073# config.log.  We remove comments because anyway the quotes in there
1074# would cause problems or look ugly.
1075# WARNING: Be sure not to use single quotes in there, as some shells,
1076# such as our DU 5.0 friend, will then `close' the trap.
1077trap 'exit_status=$?
1078  # Save into config.log some information that might help in debugging.
1079  {
1080    echo
1081
1082    cat <<\_ASBOX
1083## ---------------- ##
1084## Cache variables. ##
1085## ---------------- ##
1086_ASBOX
1087    echo
1088    # The following way of writing the cache mishandles newlines in values,
1089{
1090  (set) 2>&1 |
1091    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092    *ac_space=\ *)
1093      sed -n \
1094    "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1095      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1096      ;;
1097    *)
1098      sed -n \
1099    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1100      ;;
1101    esac;
1102}
1103    echo
1104
1105    cat <<\_ASBOX
1106## ----------------- ##
1107## Output variables. ##
1108## ----------------- ##
1109_ASBOX
1110    echo
1111    for ac_var in $ac_subst_vars
1112    do
1113      eval ac_val=$`echo $ac_var`
1114      echo "$ac_var='"'"'$ac_val'"'"'"
1115    done | sort
1116    echo
1117
1118    if test -n "$ac_subst_files"; then
1119      cat <<\_ASBOX
1120## ------------- ##
1121## Output files. ##
1122## ------------- ##
1123_ASBOX
1124      echo
1125      for ac_var in $ac_subst_files
1126      do
1127    eval ac_val=$`echo $ac_var`
1128    echo "$ac_var='"'"'$ac_val'"'"'"
1129      done | sort
1130      echo
1131    fi
1132
1133    if test -s confdefs.h; then
1134      cat <<\_ASBOX
1135## ----------- ##
1136## confdefs.h. ##
1137## ----------- ##
1138_ASBOX
1139      echo
1140      sed "/^$/d" confdefs.h | sort
1141      echo
1142    fi
1143    test "$ac_signal" != 0 &&
1144      echo "$as_me: caught signal $ac_signal"
1145    echo "$as_me: exit $exit_status"
1146  } >&5
1147  rm -f core *.core &&
1148  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1149    exit $exit_status
1150     ' 0
1151for ac_signal in 1 2 13 15; do
1152  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1153done
1154ac_signal=0
1155
1156# confdefs.h avoids OS command line length limits that DEFS can exceed.
1157rm -rf conftest* confdefs.h
1158# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1159echo >confdefs.h
1160
1161# Predefined preprocessor variables.
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_NAME "$PACKAGE_NAME"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_VERSION "$PACKAGE_VERSION"
1175_ACEOF
1176
1177
1178cat >>confdefs.h <<_ACEOF
1179#define PACKAGE_STRING "$PACKAGE_STRING"
1180_ACEOF
1181
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1185_ACEOF
1186
1187
1188# Let the site file select an alternate cache file if it wants to.
1189# Prefer explicitly selected file to automatically selected ones.
1190if test -z "$CONFIG_SITE"; then
1191  if test "x$prefix" != xNONE; then
1192    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193  else
1194    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1195  fi
1196fi
1197for ac_site_file in $CONFIG_SITE; do
1198  if test -r "$ac_site_file"; then
1199    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1200echo "$as_me: loading site script $ac_site_file" >&6;}
1201    sed 's/^/| /' "$ac_site_file" >&5
1202    . "$ac_site_file"
1203  fi
1204done
1205
1206if test -r "$cache_file"; then
1207  # Some versions of bash will fail to source /dev/null (special
1208  # files actually), so we avoid doing that.
1209  if test -f "$cache_file"; then
1210    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1211echo "$as_me: loading cache $cache_file" >&6;}
1212    case $cache_file in
1213      [\\/]* | ?:[\\/]* ) . $cache_file;;
1214      *)                      . ./$cache_file;;
1215    esac
1216  fi
1217else
1218  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1219echo "$as_me: creating cache $cache_file" >&6;}
1220  >$cache_file
1221fi
1222
1223# Check that the precious variables saved in the cache have kept the same
1224# value.
1225ac_cache_corrupted=false
1226for ac_var in `(set) 2>&1 |
1227           sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1228  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1229  eval ac_new_set=\$ac_env_${ac_var}_set
1230  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1231  eval ac_new_val="\$ac_env_${ac_var}_value"
1232  case $ac_old_set,$ac_new_set in
1233    set,)
1234      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1235echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1236      ac_cache_corrupted=: ;;
1237    ,set)
1238      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1239echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1240      ac_cache_corrupted=: ;;
1241    ,);;
1242    *)
1243      if test "x$ac_old_val" != "x$ac_new_val"; then
1244    { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1245echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1246    { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1247echo "$as_me:   former value:  $ac_old_val" >&2;}
1248    { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1249echo "$as_me:   current value: $ac_new_val" >&2;}
1250    ac_cache_corrupted=:
1251      fi;;
1252  esac
1253  # Pass precious variables to config.status.
1254  if test "$ac_new_set" = set; then
1255    case $ac_new_val in
1256    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1258    *) ac_arg=$ac_var=$ac_new_val ;;
1259    esac
1260    case " $ac_configure_args " in
1261      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1262      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1263    esac
1264  fi
1265done
1266if $ac_cache_corrupted; then
1267  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1268echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1269  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1270echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1271   { (exit 1); exit 1; }; }
1272fi
1273
1274ac_ext=c
1275ac_cpp='$CPP $CPPFLAGS'
1276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1278ac_compiler_gnu=$ac_cv_c_compiler_gnu
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300# Check whether --with-gdbm or --without-gdbm was given.
1301if test "${with_gdbm+set}" = set; then
1302  withval="$with_gdbm"
1303  gdbmdir=$withval
1304fi;
1305
1306ac_aux_dir=
1307for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1308  if test -f $ac_dir/install-sh; then
1309    ac_aux_dir=$ac_dir
1310    ac_install_sh="$ac_aux_dir/install-sh -c"
1311    break
1312  elif test -f $ac_dir/install.sh; then
1313    ac_aux_dir=$ac_dir
1314    ac_install_sh="$ac_aux_dir/install.sh -c"
1315    break
1316  elif test -f $ac_dir/shtool; then
1317    ac_aux_dir=$ac_dir
1318    ac_install_sh="$ac_aux_dir/shtool install -c"
1319    break
1320  fi
1321done
1322if test -z "$ac_aux_dir"; then
1323  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1324echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1325   { (exit 1); exit 1; }; }
1326fi
1327ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1328ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1329ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1330
1331# Make sure we can run config.sub.
1332$ac_config_sub sun4 >/dev/null 2>&1 ||
1333  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1334echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1335   { (exit 1); exit 1; }; }
1336
1337echo "$as_me:$LINENO: checking build system type" >&5
1338echo $ECHO_N "checking build system type... $ECHO_C" >&6
1339if test "${ac_cv_build+set}" = set; then
1340  echo $ECHO_N "(cached) $ECHO_C" >&6
1341else
1342  ac_cv_build_alias=$build_alias
1343test -z "$ac_cv_build_alias" &&
1344  ac_cv_build_alias=`$ac_config_guess`
1345test -z "$ac_cv_build_alias" &&
1346  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1347echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1348   { (exit 1); exit 1; }; }
1349ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1350  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1351echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1352   { (exit 1); exit 1; }; }
1353
1354fi
1355echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1356echo "${ECHO_T}$ac_cv_build" >&6
1357build=$ac_cv_build
1358build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362
1363echo "$as_me:$LINENO: checking host system type" >&5
1364echo $ECHO_N "checking host system type... $ECHO_C" >&6
1365if test "${ac_cv_host+set}" = set; then
1366  echo $ECHO_N "(cached) $ECHO_C" >&6
1367else
1368  ac_cv_host_alias=$host_alias
1369test -z "$ac_cv_host_alias" &&
1370  ac_cv_host_alias=$ac_cv_build_alias
1371ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1372  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1373echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1374   { (exit 1); exit 1; }; }
1375
1376fi
1377echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1378echo "${ECHO_T}$ac_cv_host" >&6
1379host=$ac_cv_host
1380host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383
1384
1385echo "$as_me:$LINENO: checking target system type" >&5
1386echo $ECHO_N "checking target system type... $ECHO_C" >&6
1387if test "${ac_cv_target+set}" = set; then
1388  echo $ECHO_N "(cached) $ECHO_C" >&6
1389else
1390  ac_cv_target_alias=$target_alias
1391test "x$ac_cv_target_alias" = "x" &&
1392  ac_cv_target_alias=$ac_cv_host_alias
1393ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1394  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1395echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1396   { (exit 1); exit 1; }; }
1397
1398fi
1399echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1400echo "${ECHO_T}$ac_cv_target" >&6
1401target=$ac_cv_target
1402target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405
1406
1407# The aliases save the names the user supplied, while $host etc.
1408# will get canonicalized.
1409test -n "$target_alias" &&
1410  test "$program_prefix$program_suffix$program_transform_name" = \
1411    NONENONEs,x,x, &&
1412  program_prefix=${target_alias}-
1413
1414# TODO: allow the user to specify whether they want a debugging
1415# library or not?
1416
1417# check for compilers and other tools
1418ac_ext=c
1419ac_cpp='$CPP $CPPFLAGS'
1420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1422ac_compiler_gnu=$ac_cv_c_compiler_gnu
1423if test -n "$ac_tool_prefix"; then
1424  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1425set dummy ${ac_tool_prefix}gcc; ac_word=$2
1426echo "$as_me:$LINENO: checking for $ac_word" >&5
1427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1428if test "${ac_cv_prog_CC+set}" = set; then
1429  echo $ECHO_N "(cached) $ECHO_C" >&6
1430else
1431  if test -n "$CC"; then
1432  ac_cv_prog_CC="$CC" # Let the user override the test.
1433else
1434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435for as_dir in $PATH
1436do
1437  IFS=$as_save_IFS
1438  test -z "$as_dir" && as_dir=.
1439  for ac_exec_ext in '' $ac_executable_extensions; do
1440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443    break 2
1444  fi
1445done
1446done
1447
1448fi
1449fi
1450CC=$ac_cv_prog_CC
1451if test -n "$CC"; then
1452  echo "$as_me:$LINENO: result: $CC" >&5
1453echo "${ECHO_T}$CC" >&6
1454else
1455  echo "$as_me:$LINENO: result: no" >&5
1456echo "${ECHO_T}no" >&6
1457fi
1458
1459fi
1460if test -z "$ac_cv_prog_CC"; then
1461  ac_ct_CC=$CC
1462  # Extract the first word of "gcc", so it can be a program name with args.
1463set dummy gcc; ac_word=$2
1464echo "$as_me:$LINENO: checking for $ac_word" >&5
1465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1467  echo $ECHO_N "(cached) $ECHO_C" >&6
1468else
1469  if test -n "$ac_ct_CC"; then
1470  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1471else
1472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475  IFS=$as_save_IFS
1476  test -z "$as_dir" && as_dir=.
1477  for ac_exec_ext in '' $ac_executable_extensions; do
1478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479    ac_cv_prog_ac_ct_CC="gcc"
1480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481    break 2
1482  fi
1483done
1484done
1485
1486fi
1487fi
1488ac_ct_CC=$ac_cv_prog_ac_ct_CC
1489if test -n "$ac_ct_CC"; then
1490  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1491echo "${ECHO_T}$ac_ct_CC" >&6
1492else
1493  echo "$as_me:$LINENO: result: no" >&5
1494echo "${ECHO_T}no" >&6
1495fi
1496
1497  CC=$ac_ct_CC
1498else
1499  CC="$ac_cv_prog_CC"
1500fi
1501
1502if test -z "$CC"; then
1503  if test -n "$ac_tool_prefix"; then
1504  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1505set dummy ${ac_tool_prefix}cc; ac_word=$2
1506echo "$as_me:$LINENO: checking for $ac_word" >&5
1507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508if test "${ac_cv_prog_CC+set}" = set; then
1509  echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511  if test -n "$CC"; then
1512  ac_cv_prog_CC="$CC" # Let the user override the test.
1513else
1514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515for as_dir in $PATH
1516do
1517  IFS=$as_save_IFS
1518  test -z "$as_dir" && as_dir=.
1519  for ac_exec_ext in '' $ac_executable_extensions; do
1520  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521    ac_cv_prog_CC="${ac_tool_prefix}cc"
1522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523    break 2
1524  fi
1525done
1526done
1527
1528fi
1529fi
1530CC=$ac_cv_prog_CC
1531if test -n "$CC"; then
1532  echo "$as_me:$LINENO: result: $CC" >&5
1533echo "${ECHO_T}$CC" >&6
1534else
1535  echo "$as_me:$LINENO: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539fi
1540if test -z "$ac_cv_prog_CC"; then
1541  ac_ct_CC=$CC
1542  # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547  echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549  if test -n "$ac_ct_CC"; then
1550  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551else
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555  IFS=$as_save_IFS
1556  test -z "$as_dir" && as_dir=.
1557  for ac_exec_ext in '' $ac_executable_extensions; do
1558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559    ac_cv_prog_ac_ct_CC="cc"
1560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561    break 2
1562  fi
1563done
1564done
1565
1566fi
1567fi
1568ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569if test -n "$ac_ct_CC"; then
1570  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571echo "${ECHO_T}$ac_ct_CC" >&6
1572else
1573  echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
1575fi
1576
1577  CC=$ac_ct_CC
1578else
1579  CC="$ac_cv_prog_CC"
1580fi
1581
1582fi
1583if test -z "$CC"; then
1584  # Extract the first word of "cc", so it can be a program name with args.
1585set dummy cc; ac_word=$2
1586echo "$as_me:$LINENO: checking for $ac_word" >&5
1587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588if test "${ac_cv_prog_CC+set}" = set; then
1589  echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591  if test -n "$CC"; then
1592  ac_cv_prog_CC="$CC" # Let the user override the test.
1593else
1594  ac_prog_rejected=no
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598  IFS=$as_save_IFS
1599  test -z "$as_dir" && as_dir=.
1600  for ac_exec_ext in '' $ac_executable_extensions; do
1601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1603       ac_prog_rejected=yes
1604       continue
1605     fi
1606    ac_cv_prog_CC="cc"
1607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608    break 2
1609  fi
1610done
1611done
1612
1613if test $ac_prog_rejected = yes; then
1614  # We found a bogon in the path, so make sure we never use it.
1615  set dummy $ac_cv_prog_CC
1616  shift
1617  if test $# != 0; then
1618    # We chose a different compiler from the bogus one.
1619    # However, it has the same basename, so the bogon will be chosen
1620    # first if we set CC to just the basename; use the full file name.
1621    shift
1622    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1623  fi
1624fi
1625fi
1626fi
1627CC=$ac_cv_prog_CC
1628if test -n "$CC"; then
1629  echo "$as_me:$LINENO: result: $CC" >&5
1630echo "${ECHO_T}$CC" >&6
1631else
1632  echo "$as_me:$LINENO: result: no" >&5
1633echo "${ECHO_T}no" >&6
1634fi
1635
1636fi
1637if test -z "$CC"; then
1638  if test -n "$ac_tool_prefix"; then
1639  for ac_prog in cl
1640  do
1641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1643echo "$as_me:$LINENO: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_CC+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$CC"; then
1649  ac_cv_prog_CC="$CC" # Let the user override the test.
1650else
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654  IFS=$as_save_IFS
1655  test -z "$as_dir" && as_dir=.
1656  for ac_exec_ext in '' $ac_executable_extensions; do
1657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1658    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669  echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672  echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
1675
1676    test -n "$CC" && break
1677  done
1678fi
1679if test -z "$CC"; then
1680  ac_ct_CC=$CC
1681  for ac_prog in cl
1682do
1683  # Extract the first word of "$ac_prog", so it can be a program name with args.
1684set dummy $ac_prog; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1688  echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690  if test -n "$ac_ct_CC"; then
1691  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696  IFS=$as_save_IFS
1697  test -z "$as_dir" && as_dir=.
1698  for ac_exec_ext in '' $ac_executable_extensions; do
1699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700    ac_cv_prog_ac_ct_CC="$ac_prog"
1701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702    break 2
1703  fi
1704done
1705done
1706
1707fi
1708fi
1709ac_ct_CC=$ac_cv_prog_ac_ct_CC
1710if test -n "$ac_ct_CC"; then
1711  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1712echo "${ECHO_T}$ac_ct_CC" >&6
1713else
1714  echo "$as_me:$LINENO: result: no" >&5
1715echo "${ECHO_T}no" >&6
1716fi
1717
1718  test -n "$ac_ct_CC" && break
1719done
1720
1721  CC=$ac_ct_CC
1722fi
1723
1724fi
1725
1726
1727test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1728See \`config.log' for more details." >&5
1729echo "$as_me: error: no acceptable C compiler found in \$PATH
1730See \`config.log' for more details." >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733# Provide some information about the compiler.
1734echo "$as_me:$LINENO:" \
1735     "checking for C compiler version" >&5
1736ac_compiler=`set X $ac_compile; echo $2`
1737{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1738  (eval $ac_compiler --version </dev/null >&5) 2>&5
1739  ac_status=$?
1740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741  (exit $ac_status); }
1742{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1743  (eval $ac_compiler -v </dev/null >&5) 2>&5
1744  ac_status=$?
1745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746  (exit $ac_status); }
1747{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1748  (eval $ac_compiler -V </dev/null >&5) 2>&5
1749  ac_status=$?
1750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751  (exit $ac_status); }
1752
1753cat >conftest.$ac_ext <<_ACEOF
1754/* confdefs.h.  */
1755_ACEOF
1756cat confdefs.h >>conftest.$ac_ext
1757cat >>conftest.$ac_ext <<_ACEOF
1758/* end confdefs.h.  */
1759
1760int
1761main ()
1762{
1763
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768ac_clean_files_save=$ac_clean_files
1769ac_clean_files="$ac_clean_files a.out a.exe b.out"
1770# Try to create an executable without -o first, disregard a.out.
1771# It will help us diagnose broken compilers, and finding out an intuition
1772# of exeext.
1773echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1776if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1777  (eval $ac_link_default) 2>&5
1778  ac_status=$?
1779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1780  (exit $ac_status); }; then
1781  # Find the output, starting from the most likely.  This scheme is
1782# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1783# resort.
1784
1785# Be careful to initialize this variable, since it used to be cached.
1786# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1787ac_cv_exeext=
1788# b.out is created by i960 compilers.
1789for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1790do
1791  test -f "$ac_file" || continue
1792  case $ac_file in
1793    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1794    ;;
1795    conftest.$ac_ext )
1796    # This is the source file.
1797    ;;
1798    [ab].out )
1799    # We found the default executable, but exeext='' is most
1800    # certainly right.
1801    break;;
1802    *.* )
1803    ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1804    # FIXME: I believe we export ac_cv_exeext for Libtool,
1805    # but it would be cool to find out if it's true.  Does anybody
1806    # maintain Libtool? --akim.
1807    export ac_cv_exeext
1808    break;;
1809    * )
1810    break;;
1811  esac
1812done
1813else
1814  echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1818See \`config.log' for more details." >&5
1819echo "$as_me: error: C compiler cannot create executables
1820See \`config.log' for more details." >&2;}
1821   { (exit 77); exit 77; }; }
1822fi
1823
1824ac_exeext=$ac_cv_exeext
1825echo "$as_me:$LINENO: result: $ac_file" >&5
1826echo "${ECHO_T}$ac_file" >&6
1827
1828# Check the compiler produces executables we can run.  If not, either
1829# the compiler is broken, or we cross compile.
1830echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1831echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1832# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1833# If not cross compiling, check that we can run a simple program.
1834if test "$cross_compiling" != yes; then
1835  if { ac_try='./$ac_file'
1836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1837  (eval $ac_try) 2>&5
1838  ac_status=$?
1839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840  (exit $ac_status); }; }; then
1841    cross_compiling=no
1842  else
1843    if test "$cross_compiling" = maybe; then
1844    cross_compiling=yes
1845    else
1846    { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1847If you meant to cross compile, use \`--host'.
1848See \`config.log' for more details." >&5
1849echo "$as_me: error: cannot run C compiled programs.
1850If you meant to cross compile, use \`--host'.
1851See \`config.log' for more details." >&2;}
1852   { (exit 1); exit 1; }; }
1853    fi
1854  fi
1855fi
1856echo "$as_me:$LINENO: result: yes" >&5
1857echo "${ECHO_T}yes" >&6
1858
1859rm -f a.out a.exe conftest$ac_cv_exeext b.out
1860ac_clean_files=$ac_clean_files_save
1861# Check the compiler produces executables we can run.  If not, either
1862# the compiler is broken, or we cross compile.
1863echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1864echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1865echo "$as_me:$LINENO: result: $cross_compiling" >&5
1866echo "${ECHO_T}$cross_compiling" >&6
1867
1868echo "$as_me:$LINENO: checking for suffix of executables" >&5
1869echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1871  (eval $ac_link) 2>&5
1872  ac_status=$?
1873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874  (exit $ac_status); }; then
1875  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1876# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1877# work properly (i.e., refer to `conftest.exe'), while it won't with
1878# `rm'.
1879for ac_file in conftest.exe conftest conftest.*; do
1880  test -f "$ac_file" || continue
1881  case $ac_file in
1882    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1883    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1884      export ac_cv_exeext
1885      break;;
1886    * ) break;;
1887  esac
1888done
1889else
1890  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1891See \`config.log' for more details." >&5
1892echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1893See \`config.log' for more details." >&2;}
1894   { (exit 1); exit 1; }; }
1895fi
1896
1897rm -f conftest$ac_cv_exeext
1898echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1899echo "${ECHO_T}$ac_cv_exeext" >&6
1900
1901rm -f conftest.$ac_ext
1902EXEEXT=$ac_cv_exeext
1903ac_exeext=$EXEEXT
1904echo "$as_me:$LINENO: checking for suffix of object files" >&5
1905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1906if test "${ac_cv_objext+set}" = set; then
1907  echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909  cat >conftest.$ac_ext <<_ACEOF
1910/* confdefs.h.  */
1911_ACEOF
1912cat confdefs.h >>conftest.$ac_ext
1913cat >>conftest.$ac_ext <<_ACEOF
1914/* end confdefs.h.  */
1915
1916int
1917main ()
1918{
1919
1920  ;
1921  return 0;
1922}
1923_ACEOF
1924rm -f conftest.o conftest.obj
1925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926  (eval $ac_compile) 2>&5
1927  ac_status=$?
1928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929  (exit $ac_status); }; then
1930  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1931  case $ac_file in
1932    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1933    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1934       break;;
1935  esac
1936done
1937else
1938  echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: cannot compute suffix of object files: cannot compile
1944See \`config.log' for more details." >&2;}
1945   { (exit 1); exit 1; }; }
1946fi
1947
1948rm -f conftest.$ac_cv_objext conftest.$ac_ext
1949fi
1950echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1951echo "${ECHO_T}$ac_cv_objext" >&6
1952OBJEXT=$ac_cv_objext
1953ac_objext=$OBJEXT
1954echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1956if test "${ac_cv_c_compiler_gnu+set}" = set; then
1957  echo $ECHO_N "(cached) $ECHO_C" >&6
1958else
1959  cat >conftest.$ac_ext <<_ACEOF
1960/* confdefs.h.  */
1961_ACEOF
1962cat confdefs.h >>conftest.$ac_ext
1963cat >>conftest.$ac_ext <<_ACEOF
1964/* end confdefs.h.  */
1965
1966int
1967main ()
1968{
1969#ifndef __GNUC__
1970       choke me
1971#endif
1972
1973  ;
1974  return 0;
1975}
1976_ACEOF
1977rm -f conftest.$ac_objext
1978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979  (eval $ac_compile) 2>conftest.er1
1980  ac_status=$?
1981  grep -v '^ *+' conftest.er1 >conftest.err
1982  rm -f conftest.er1
1983  cat conftest.err >&5
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); } &&
1986     { ac_try='test -z "$ac_c_werror_flag"
1987             || test ! -s conftest.err'
1988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1989  (eval $ac_try) 2>&5
1990  ac_status=$?
1991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992  (exit $ac_status); }; } &&
1993     { ac_try='test -s conftest.$ac_objext'
1994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995  (eval $ac_try) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }; }; then
1999  ac_compiler_gnu=yes
2000else
2001  echo "$as_me: failed program was:" >&5
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
2004ac_compiler_gnu=no
2005fi
2006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2007ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009fi
2010echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012GCC=`test $ac_compiler_gnu = yes && echo yes`
2013ac_test_CFLAGS=${CFLAGS+set}
2014ac_save_CFLAGS=$CFLAGS
2015CFLAGS="-g"
2016echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018if test "${ac_cv_prog_cc_g+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  cat >conftest.$ac_ext <<_ACEOF
2022/* confdefs.h.  */
2023_ACEOF
2024cat confdefs.h >>conftest.$ac_ext
2025cat >>conftest.$ac_ext <<_ACEOF
2026/* end confdefs.h.  */
2027
2028int
2029main ()
2030{
2031
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036rm -f conftest.$ac_objext
2037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038  (eval $ac_compile) 2>conftest.er1
2039  ac_status=$?
2040  grep -v '^ *+' conftest.er1 >conftest.err
2041  rm -f conftest.er1
2042  cat conftest.err >&5
2043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044  (exit $ac_status); } &&
2045     { ac_try='test -z "$ac_c_werror_flag"
2046             || test ! -s conftest.err'
2047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048  (eval $ac_try) 2>&5
2049  ac_status=$?
2050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051  (exit $ac_status); }; } &&
2052     { ac_try='test -s conftest.$ac_objext'
2053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054  (eval $ac_try) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }; }; then
2058  ac_cv_prog_cc_g=yes
2059else
2060  echo "$as_me: failed program was:" >&5
2061sed 's/^/| /' conftest.$ac_ext >&5
2062
2063ac_cv_prog_cc_g=no
2064fi
2065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2066fi
2067echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2068echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2069if test "$ac_test_CFLAGS" = set; then
2070  CFLAGS=$ac_save_CFLAGS
2071elif test $ac_cv_prog_cc_g = yes; then
2072  if test "$GCC" = yes; then
2073    CFLAGS="-g -O2"
2074  else
2075    CFLAGS="-g"
2076  fi
2077else
2078  if test "$GCC" = yes; then
2079    CFLAGS="-O2"
2080  else
2081    CFLAGS=
2082  fi
2083fi
2084echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2085echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2086if test "${ac_cv_prog_cc_stdc+set}" = set; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  ac_cv_prog_cc_stdc=no
2090ac_save_CC=$CC
2091cat >conftest.$ac_ext <<_ACEOF
2092/* confdefs.h.  */
2093_ACEOF
2094cat confdefs.h >>conftest.$ac_ext
2095cat >>conftest.$ac_ext <<_ACEOF
2096/* end confdefs.h.  */
2097#include <stdarg.h>
2098#include <stdio.h>
2099#include <sys/types.h>
2100#include <sys/stat.h>
2101/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2102struct buf { int x; };
2103FILE * (*rcsopen) (struct buf *, struct stat *, int);
2104static char *e (p, i)
2105     char **p;
2106     int i;
2107{
2108  return p[i];
2109}
2110static char *f (char * (*g) (char **, int), char **p, ...)
2111{
2112  char *s;
2113  va_list v;
2114  va_start (v,p);
2115  s = g (p, va_arg (v,int));
2116  va_end (v);
2117  return s;
2118}
2119
2120/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2121   function prototypes and stuff, but not '\xHH' hex character constants.
2122   These don't provoke an error unfortunately, instead are silently treated
2123   as 'x'.  The following induces an error, until -std1 is added to get
2124   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2125   array size at least.  It's necessary to write '\x00'==0 to get something
2126   that's true only with -std1.  */
2127int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2128
2129int test (int i, double x);
2130struct s1 {int (*f) (int a);};
2131struct s2 {int (*f) (double a);};
2132int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2133int argc;
2134char **argv;
2135int
2136main ()
2137{
2138return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2139  ;
2140  return 0;
2141}
2142_ACEOF
2143# Don't try gcc -ansi; that turns off useful extensions and
2144# breaks some systems' header files.
2145# AIX           -qlanglvl=ansi
2146# Ultrix and OSF/1  -std1
2147# HP-UX 10.20 and later -Ae
2148# HP-UX older versions  -Aa -D_HPUX_SOURCE
2149# SVR4          -Xc -D__EXTENSIONS__
2150for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2151do
2152  CC="$ac_save_CC $ac_arg"
2153  rm -f conftest.$ac_objext
2154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2155  (eval $ac_compile) 2>conftest.er1
2156  ac_status=$?
2157  grep -v '^ *+' conftest.er1 >conftest.err
2158  rm -f conftest.er1
2159  cat conftest.err >&5
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); } &&
2162     { ac_try='test -z "$ac_c_werror_flag"
2163             || test ! -s conftest.err'
2164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165  (eval $ac_try) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; } &&
2169     { ac_try='test -s conftest.$ac_objext'
2170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171  (eval $ac_try) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }; }; then
2175  ac_cv_prog_cc_stdc=$ac_arg
2176break
2177else
2178  echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181fi
2182rm -f conftest.err conftest.$ac_objext
2183done
2184rm -f conftest.$ac_ext conftest.$ac_objext
2185CC=$ac_save_CC
2186
2187fi
2188
2189case "x$ac_cv_prog_cc_stdc" in
2190  x|xno)
2191    echo "$as_me:$LINENO: result: none needed" >&5
2192echo "${ECHO_T}none needed" >&6 ;;
2193  *)
2194    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2195echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2196    CC="$CC $ac_cv_prog_cc_stdc" ;;
2197esac
2198
2199# Some people use a C++ compiler to compile C.  Since we use `exit',
2200# in C++ we need to declare it.  In case someone uses the same compiler
2201# for both compiling C and C++ we need to have the C++ compiler decide
2202# the declaration of exit, since it's the most demanding environment.
2203cat >conftest.$ac_ext <<_ACEOF
2204#ifndef __cplusplus
2205  choke me
2206#endif
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210  (eval $ac_compile) 2>conftest.er1
2211  ac_status=$?
2212  grep -v '^ *+' conftest.er1 >conftest.err
2213  rm -f conftest.er1
2214  cat conftest.err >&5
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); } &&
2217     { ac_try='test -z "$ac_c_werror_flag"
2218             || test ! -s conftest.err'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; } &&
2224     { ac_try='test -s conftest.$ac_objext'
2225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226  (eval $ac_try) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; }; then
2230  for ac_declaration in \
2231   '' \
2232   'extern "C" void std::exit (int) throw (); using std::exit;' \
2233   'extern "C" void std::exit (int); using std::exit;' \
2234   'extern "C" void exit (int) throw ();' \
2235   'extern "C" void exit (int);' \
2236   'void exit (int);'
2237do
2238  cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h.  */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h.  */
2244$ac_declaration
2245#include <stdlib.h>
2246int
2247main ()
2248{
2249exit (42);
2250  ;
2251  return 0;
2252}
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256  (eval $ac_compile) 2>conftest.er1
2257  ac_status=$?
2258  grep -v '^ *+' conftest.er1 >conftest.err
2259  rm -f conftest.er1
2260  cat conftest.err >&5
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); } &&
2263     { ac_try='test -z "$ac_c_werror_flag"
2264             || test ! -s conftest.err'
2265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266  (eval $ac_try) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; } &&
2270     { ac_try='test -s conftest.$ac_objext'
2271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272  (eval $ac_try) 2>&5
2273  ac_status=$?
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); }; }; then
2276  :
2277else
2278  echo "$as_me: failed program was:" >&5
2279sed 's/^/| /' conftest.$ac_ext >&5
2280
2281continue
2282fi
2283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2284  cat >conftest.$ac_ext <<_ACEOF
2285/* confdefs.h.  */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h.  */
2290$ac_declaration
2291int
2292main ()
2293{
2294exit (42);
2295  ;
2296  return 0;
2297}
2298_ACEOF
2299rm -f conftest.$ac_objext
2300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301  (eval $ac_compile) 2>conftest.er1
2302  ac_status=$?
2303  grep -v '^ *+' conftest.er1 >conftest.err
2304  rm -f conftest.er1
2305  cat conftest.err >&5
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); } &&
2308     { ac_try='test -z "$ac_c_werror_flag"
2309             || test ! -s conftest.err'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; } &&
2315     { ac_try='test -s conftest.$ac_objext'
2316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317  (eval $ac_try) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; }; then
2321  break
2322else
2323  echo "$as_me: failed program was:" >&5
2324sed 's/^/| /' conftest.$ac_ext >&5
2325
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328done
2329rm -f conftest*
2330if test -n "$ac_declaration"; then
2331  echo '#ifdef __cplusplus' >>confdefs.h
2332  echo $ac_declaration      >>confdefs.h
2333  echo '#endif'             >>confdefs.h
2334fi
2335
2336else
2337  echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348# Find a good install program.  We prefer a C program (faster),
2349# so one script is as good as another.  But avoid the broken or
2350# incompatible versions:
2351# SysV /etc/install, /usr/sbin/install
2352# SunOS /usr/etc/install
2353# IRIX /sbin/install
2354# AIX /bin/install
2355# AmigaOS /C/install, which installs bootblocks on floppy discs
2356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359# OS/2's system install, which has a completely different semantic
2360# ./install, which can be erroneously created by make from ./install.sh.
2361echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2362echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2363if test -z "$INSTALL"; then
2364if test "${ac_cv_path_install+set}" = set; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH
2369do
2370  IFS=$as_save_IFS
2371  test -z "$as_dir" && as_dir=.
2372  # Account for people who put trailing slashes in PATH elements.
2373case $as_dir/ in
2374  ./ | .// | /cC/* | \
2375  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2376  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2377  /usr/ucb/* ) ;;
2378  *)
2379    # OSF1 and SCO ODT 3.0 have their own names for install.
2380    # Don't use installbsd from OSF since it installs stuff as root
2381    # by default.
2382    for ac_prog in ginstall scoinst install; do
2383      for ac_exec_ext in '' $ac_executable_extensions; do
2384    if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2385      if test $ac_prog = install &&
2386        grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2387        # AIX install.  It has an incompatible calling convention.
2388        :
2389      elif test $ac_prog = install &&
2390        grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391        # program-specific install script used by HP pwplus--don't use.
2392        :
2393      else
2394        ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2395        break 3
2396      fi
2397    fi
2398      done
2399    done
2400    ;;
2401esac
2402done
2403
2404
2405fi
2406  if test "${ac_cv_path_install+set}" = set; then
2407    INSTALL=$ac_cv_path_install
2408  else
2409    # As a last resort, use the slow shell script.  We don't cache a
2410    # path for INSTALL within a source directory, because that will
2411    # break other packages using the cache if that directory is
2412    # removed, or if the path is relative.
2413    INSTALL=$ac_install_sh
2414  fi
2415fi
2416echo "$as_me:$LINENO: result: $INSTALL" >&5
2417echo "${ECHO_T}$INSTALL" >&6
2418
2419# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2420# It thinks the first close brace ends the variable substitution.
2421test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2422
2423test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2424
2425test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2426
2427echo "$as_me:$LINENO: checking whether ln -s works" >&5
2428echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2429LN_S=$as_ln_s
2430if test "$LN_S" = "ln -s"; then
2431  echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433else
2434  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2435echo "${ECHO_T}no, using $LN_S" >&6
2436fi
2437
2438
2439echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
2440echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
2441arch_64bit=no
2442case "$host_cpu" in
2443x86_64) arch_64bit=yes ;;
2444esac
2445
2446if test "$arch_64bit" = yes; then
2447  echo "$as_me:$LINENO: result: yes" >&5
2448echo "${ECHO_T}yes" >&6
2449  if test -z "$COMPAT32BITFLAGS" ; then
2450    COMPAT32BITFLAGS="-m32"
2451  fi
2452else
2453  echo "$as_me:$LINENO: result: no" >&5
2454echo "${ECHO_T}no" >&6
2455  if test -z "$COMPAT32BITFLAGS" ; then
2456    COMPAT32BITFLAGS=
2457  fi
2458fi
2459export COMPAT32BITFLAGS
2460
2461
2462
2463
2464
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2471echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2472# On Suns, sometimes $CPP names a directory.
2473if test -n "$CPP" && test -d "$CPP"; then
2474  CPP=
2475fi
2476if test -z "$CPP"; then
2477  if test "${ac_cv_prog_CPP+set}" = set; then
2478  echo $ECHO_N "(cached) $ECHO_C" >&6
2479else
2480      # Double quotes because CPP needs to be expanded
2481    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2482    do
2483      ac_preproc_ok=false
2484for ac_c_preproc_warn_flag in '' yes
2485do
2486  # Use a header file that comes with gcc, so configuring glibc
2487  # with a fresh cross-compiler works.
2488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2489  # <limits.h> exists even on freestanding compilers.
2490  # On the NeXT, cc -E runs the code through the compiler's parser,
2491  # not just through cpp. "Syntax error" is here to catch this case.
2492  cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498#ifdef __STDC__
2499# include <limits.h>
2500#else
2501# include <assert.h>
2502#endif
2503             Syntax error
2504_ACEOF
2505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2507  ac_status=$?
2508  grep -v '^ *+' conftest.er1 >conftest.err
2509  rm -f conftest.er1
2510  cat conftest.err >&5
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); } >/dev/null; then
2513  if test -s conftest.err; then
2514    ac_cpp_err=$ac_c_preproc_warn_flag
2515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2516  else
2517    ac_cpp_err=
2518  fi
2519else
2520  ac_cpp_err=yes
2521fi
2522if test -z "$ac_cpp_err"; then
2523  :
2524else
2525  echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528  # Broken: fails on valid input.
2529continue
2530fi
2531rm -f conftest.err conftest.$ac_ext
2532
2533  # OK, works on sane cases.  Now check whether non-existent headers
2534  # can be detected and how.
2535  cat >conftest.$ac_ext <<_ACEOF
2536/* confdefs.h.  */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
2540/* end confdefs.h.  */
2541#include <ac_nonexistent.h>
2542_ACEOF
2543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } >/dev/null; then
2551  if test -s conftest.err; then
2552    ac_cpp_err=$ac_c_preproc_warn_flag
2553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2554  else
2555    ac_cpp_err=
2556  fi
2557else
2558  ac_cpp_err=yes
2559fi
2560if test -z "$ac_cpp_err"; then
2561  # Broken: success on invalid input.
2562continue
2563else
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567  # Passes both tests.
2568ac_preproc_ok=:
2569break
2570fi
2571rm -f conftest.err conftest.$ac_ext
2572
2573done
2574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2575rm -f conftest.err conftest.$ac_ext
2576if $ac_preproc_ok; then
2577  break
2578fi
2579
2580    done
2581    ac_cv_prog_CPP=$CPP
2582
2583fi
2584  CPP=$ac_cv_prog_CPP
2585else
2586  ac_cv_prog_CPP=$CPP
2587fi
2588echo "$as_me:$LINENO: result: $CPP" >&5
2589echo "${ECHO_T}$CPP" >&6
2590ac_preproc_ok=false
2591for ac_c_preproc_warn_flag in '' yes
2592do
2593  # Use a header file that comes with gcc, so configuring glibc
2594  # with a fresh cross-compiler works.
2595  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596  # <limits.h> exists even on freestanding compilers.
2597  # On the NeXT, cc -E runs the code through the compiler's parser,
2598  # not just through cpp. "Syntax error" is here to catch this case.
2599  cat >conftest.$ac_ext <<_ACEOF
2600/* confdefs.h.  */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h.  */
2605#ifdef __STDC__
2606# include <limits.h>
2607#else
2608# include <assert.h>
2609#endif
2610             Syntax error
2611_ACEOF
2612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } >/dev/null; then
2620  if test -s conftest.err; then
2621    ac_cpp_err=$ac_c_preproc_warn_flag
2622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2623  else
2624    ac_cpp_err=
2625  fi
2626else
2627  ac_cpp_err=yes
2628fi
2629if test -z "$ac_cpp_err"; then
2630  :
2631else
2632  echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635  # Broken: fails on valid input.
2636continue
2637fi
2638rm -f conftest.err conftest.$ac_ext
2639
2640  # OK, works on sane cases.  Now check whether non-existent headers
2641  # can be detected and how.
2642  cat >conftest.$ac_ext <<_ACEOF
2643/* confdefs.h.  */
2644_ACEOF
2645cat confdefs.h >>conftest.$ac_ext
2646cat >>conftest.$ac_ext <<_ACEOF
2647/* end confdefs.h.  */
2648#include <ac_nonexistent.h>
2649_ACEOF
2650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2651  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2652  ac_status=$?
2653  grep -v '^ *+' conftest.er1 >conftest.err
2654  rm -f conftest.er1
2655  cat conftest.err >&5
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); } >/dev/null; then
2658  if test -s conftest.err; then
2659    ac_cpp_err=$ac_c_preproc_warn_flag
2660    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2661  else
2662    ac_cpp_err=
2663  fi
2664else
2665  ac_cpp_err=yes
2666fi
2667if test -z "$ac_cpp_err"; then
2668  # Broken: success on invalid input.
2669continue
2670else
2671  echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5
2673
2674  # Passes both tests.
2675ac_preproc_ok=:
2676break
2677fi
2678rm -f conftest.err conftest.$ac_ext
2679
2680done
2681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2682rm -f conftest.err conftest.$ac_ext
2683if $ac_preproc_ok; then
2684  :
2685else
2686  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2687See \`config.log' for more details." >&5
2688echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2689See \`config.log' for more details." >&2;}
2690   { (exit 1); exit 1; }; }
2691fi
2692
2693ac_ext=c
2694ac_cpp='$CPP $CPPFLAGS'
2695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698
2699
2700echo "$as_me:$LINENO: checking for egrep" >&5
2701echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2702if test "${ac_cv_prog_egrep+set}" = set; then
2703  echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2706    then ac_cv_prog_egrep='grep -E'
2707    else ac_cv_prog_egrep='egrep'
2708    fi
2709fi
2710echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2711echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2712 EGREP=$ac_cv_prog_egrep
2713
2714
2715echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2716echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2717if test "${ac_cv_header_stdc+set}" = set; then
2718  echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720  cat >conftest.$ac_ext <<_ACEOF
2721/* confdefs.h.  */
2722_ACEOF
2723cat confdefs.h >>conftest.$ac_ext
2724cat >>conftest.$ac_ext <<_ACEOF
2725/* end confdefs.h.  */
2726#include <stdlib.h>
2727#include <stdarg.h>
2728#include <string.h>
2729#include <float.h>
2730
2731int
2732main ()
2733{
2734
2735  ;
2736  return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext
2740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741  (eval $ac_compile) 2>conftest.er1
2742  ac_status=$?
2743  grep -v '^ *+' conftest.er1 >conftest.err
2744  rm -f conftest.er1
2745  cat conftest.err >&5
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); } &&
2748     { ac_try='test -z "$ac_c_werror_flag"
2749             || test ! -s conftest.err'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; } &&
2755     { ac_try='test -s conftest.$ac_objext'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; }; then
2761  ac_cv_header_stdc=yes
2762else
2763  echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766ac_cv_header_stdc=no
2767fi
2768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2769
2770if test $ac_cv_header_stdc = yes; then
2771  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2772  cat >conftest.$ac_ext <<_ACEOF
2773/* confdefs.h.  */
2774_ACEOF
2775cat confdefs.h >>conftest.$ac_ext
2776cat >>conftest.$ac_ext <<_ACEOF
2777/* end confdefs.h.  */
2778#include <string.h>
2779
2780_ACEOF
2781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782  $EGREP "memchr" >/dev/null 2>&1; then
2783  :
2784else
2785  ac_cv_header_stdc=no
2786fi
2787rm -f conftest*
2788
2789fi
2790
2791if test $ac_cv_header_stdc = yes; then
2792  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2793  cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799#include <stdlib.h>
2800
2801_ACEOF
2802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2803  $EGREP "free" >/dev/null 2>&1; then
2804  :
2805else
2806  ac_cv_header_stdc=no
2807fi
2808rm -f conftest*
2809
2810fi
2811
2812if test $ac_cv_header_stdc = yes; then
2813  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2814  if test "$cross_compiling" = yes; then
2815  :
2816else
2817  cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823#include <ctype.h>
2824#if ((' ' & 0x0FF) == 0x020)
2825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2827#else
2828# define ISLOWER(c) \
2829           (('a' <= (c) && (c) <= 'i') \
2830             || ('j' <= (c) && (c) <= 'r') \
2831             || ('s' <= (c) && (c) <= 'z'))
2832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2833#endif
2834
2835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2836int
2837main ()
2838{
2839  int i;
2840  for (i = 0; i < 256; i++)
2841    if (XOR (islower (i), ISLOWER (i))
2842    || toupper (i) != TOUPPER (i))
2843      exit(2);
2844  exit (0);
2845}
2846_ACEOF
2847rm -f conftest$ac_exeext
2848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849  (eval $ac_link) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854  (eval $ac_try) 2>&5
2855  ac_status=$?
2856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857  (exit $ac_status); }; }; then
2858  :
2859else
2860  echo "$as_me: program exited with status $ac_status" >&5
2861echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864( exit $ac_status )
2865ac_cv_header_stdc=no
2866fi
2867rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2868fi
2869fi
2870fi
2871echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2872echo "${ECHO_T}$ac_cv_header_stdc" >&6
2873if test $ac_cv_header_stdc = yes; then
2874
2875cat >>confdefs.h <<\_ACEOF
2876#define STDC_HEADERS 1
2877_ACEOF
2878
2879fi
2880
2881# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2892          inttypes.h stdint.h unistd.h
2893do
2894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2895echo "$as_me:$LINENO: checking for $ac_header" >&5
2896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2897if eval "test \"\${$as_ac_Header+set}\" = set"; then
2898  echo $ECHO_N "(cached) $ECHO_C" >&6
2899else
2900  cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h.  */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h.  */
2906$ac_includes_default
2907
2908#include <$ac_header>
2909_ACEOF
2910rm -f conftest.$ac_objext
2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912  (eval $ac_compile) 2>conftest.er1
2913  ac_status=$?
2914  grep -v '^ *+' conftest.er1 >conftest.err
2915  rm -f conftest.er1
2916  cat conftest.err >&5
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); } &&
2919     { ac_try='test -z "$ac_c_werror_flag"
2920             || test ! -s conftest.err'
2921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922  (eval $ac_try) 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }; } &&
2926     { ac_try='test -s conftest.$ac_objext'
2927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; }; then
2932  eval "$as_ac_Header=yes"
2933else
2934  echo "$as_me: failed program was:" >&5
2935sed 's/^/| /' conftest.$ac_ext >&5
2936
2937eval "$as_ac_Header=no"
2938fi
2939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2943if test `eval echo '${'$as_ac_Header'}'` = yes; then
2944  cat >>confdefs.h <<_ACEOF
2945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2946_ACEOF
2947
2948fi
2949
2950done
2951
2952
2953echo "$as_me:$LINENO: checking for void *" >&5
2954echo $ECHO_N "checking for void *... $ECHO_C" >&6
2955if test "${ac_cv_type_void_p+set}" = set; then
2956  echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958  cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964$ac_includes_default
2965int
2966main ()
2967{
2968if ((void * *) 0)
2969  return 0;
2970if (sizeof (void *))
2971  return 0;
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext
2977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978  (eval $ac_compile) 2>conftest.er1
2979  ac_status=$?
2980  grep -v '^ *+' conftest.er1 >conftest.err
2981  rm -f conftest.er1
2982  cat conftest.err >&5
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); } &&
2985     { ac_try='test -z "$ac_c_werror_flag"
2986             || test ! -s conftest.err'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992     { ac_try='test -s conftest.$ac_objext'
2993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994  (eval $ac_try) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998  ac_cv_type_void_p=yes
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003ac_cv_type_void_p=no
3004fi
3005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006fi
3007echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3008echo "${ECHO_T}$ac_cv_type_void_p" >&6
3009
3010echo "$as_me:$LINENO: checking size of void *" >&5
3011echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3012if test "${ac_cv_sizeof_void_p+set}" = set; then
3013  echo $ECHO_N "(cached) $ECHO_C" >&6
3014else
3015  if test "$ac_cv_type_void_p" = yes; then
3016  # The cast to unsigned long works around a bug in the HP C Compiler
3017  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3018  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3019  # This bug is HP SR number 8606223364.
3020  if test "$cross_compiling" = yes; then
3021  # Depending upon the size, compute the lo and hi bounds.
3022cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h.  */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h.  */
3028$ac_includes_default
3029int
3030main ()
3031{
3032static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3033test_array [0] = 0
3034
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
3040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041  (eval $ac_compile) 2>conftest.er1
3042  ac_status=$?
3043  grep -v '^ *+' conftest.er1 >conftest.err
3044  rm -f conftest.er1
3045  cat conftest.err >&5
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048     { ac_try='test -z "$ac_c_werror_flag"
3049             || test ! -s conftest.err'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; } &&
3055     { ac_try='test -s conftest.$ac_objext'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; }; then
3061  ac_lo=0 ac_mid=0
3062  while :; do
3063    cat >conftest.$ac_ext <<_ACEOF
3064/* confdefs.h.  */
3065_ACEOF
3066cat confdefs.h >>conftest.$ac_ext
3067cat >>conftest.$ac_ext <<_ACEOF
3068/* end confdefs.h.  */
3069$ac_includes_default
3070int
3071main ()
3072{
3073static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3074test_array [0] = 0
3075
3076  ;
3077  return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3082  (eval $ac_compile) 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } &&
3089     { ac_try='test -z "$ac_c_werror_flag"
3090             || test ! -s conftest.err'
3091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092  (eval $ac_try) 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; } &&
3096     { ac_try='test -s conftest.$ac_objext'
3097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098  (eval $ac_try) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; }; then
3102  ac_hi=$ac_mid; break
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107ac_lo=`expr $ac_mid + 1`
3108            if test $ac_lo -le $ac_mid; then
3109              ac_lo= ac_hi=
3110              break
3111            fi
3112            ac_mid=`expr 2 '*' $ac_mid + 1`
3113fi
3114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115  done
3116else
3117  echo "$as_me: failed program was:" >&5
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h.  */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h.  */
3126$ac_includes_default
3127int
3128main ()
3129{
3130static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3131test_array [0] = 0
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3139  (eval $ac_compile) 2>conftest.er1
3140  ac_status=$?
3141  grep -v '^ *+' conftest.er1 >conftest.err
3142  rm -f conftest.er1
3143  cat conftest.err >&5
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); } &&
3146     { ac_try='test -z "$ac_c_werror_flag"
3147             || test ! -s conftest.err'
3148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149  (eval $ac_try) 2>&5
3150  ac_status=$?
3151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152  (exit $ac_status); }; } &&
3153     { ac_try='test -s conftest.$ac_objext'
3154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155  (eval $ac_try) 2>&5
3156  ac_status=$?
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); }; }; then
3159  ac_hi=-1 ac_mid=-1
3160  while :; do
3161    cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167$ac_includes_default
3168int
3169main ()
3170{
3171static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3172test_array [0] = 0
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180  (eval $ac_compile) 2>conftest.er1
3181  ac_status=$?
3182  grep -v '^ *+' conftest.er1 >conftest.err
3183  rm -f conftest.er1
3184  cat conftest.err >&5
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187     { ac_try='test -z "$ac_c_werror_flag"
3188             || test ! -s conftest.err'
3189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190  (eval $ac_try) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; } &&
3194     { ac_try='test -s conftest.$ac_objext'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  ac_lo=$ac_mid; break
3201else
3202  echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205ac_hi=`expr '(' $ac_mid ')' - 1`
3206               if test $ac_mid -le $ac_hi; then
3207             ac_lo= ac_hi=
3208             break
3209               fi
3210               ac_mid=`expr 2 '*' $ac_mid`
3211fi
3212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213  done
3214else
3215  echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218ac_lo= ac_hi=
3219fi
3220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3221fi
3222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3223# Binary search between lo and hi bounds.
3224while test "x$ac_lo" != "x$ac_hi"; do
3225  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3226  cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h.  */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h.  */
3232$ac_includes_default
3233int
3234main ()
3235{
3236static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3237test_array [0] = 0
3238
3239  ;
3240  return 0;
3241}
3242_ACEOF
3243rm -f conftest.$ac_objext
3244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245  (eval $ac_compile) 2>conftest.er1
3246  ac_status=$?
3247  grep -v '^ *+' conftest.er1 >conftest.err
3248  rm -f conftest.er1
3249  cat conftest.err >&5
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); } &&
3252     { ac_try='test -z "$ac_c_werror_flag"
3253             || test ! -s conftest.err'
3254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255  (eval $ac_try) 2>&5
3256  ac_status=$?
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); }; } &&
3259     { ac_try='test -s conftest.$ac_objext'
3260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261  (eval $ac_try) 2>&5
3262  ac_status=$?
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); }; }; then
3265  ac_hi=$ac_mid
3266else
3267  echo "$as_me: failed program was:" >&5
3268sed 's/^/| /' conftest.$ac_ext >&5
3269
3270ac_lo=`expr '(' $ac_mid ')' + 1`
3271fi
3272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3273done
3274case $ac_lo in
3275?*) ac_cv_sizeof_void_p=$ac_lo;;
3276'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3277See \`config.log' for more details." >&5
3278echo "$as_me: error: cannot compute sizeof (void *), 77
3279See \`config.log' for more details." >&2;}
3280   { (exit 1); exit 1; }; } ;;
3281esac
3282else
3283  if test "$cross_compiling" = yes; then
3284  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3285See \`config.log' for more details." >&5
3286echo "$as_me: error: cannot run test program while cross compiling
3287See \`config.log' for more details." >&2;}
3288   { (exit 1); exit 1; }; }
3289else
3290  cat >conftest.$ac_ext <<_ACEOF
3291/* confdefs.h.  */
3292_ACEOF
3293cat confdefs.h >>conftest.$ac_ext
3294cat >>conftest.$ac_ext <<_ACEOF
3295/* end confdefs.h.  */
3296$ac_includes_default
3297long longval () { return (long) (sizeof (void *)); }
3298unsigned long ulongval () { return (long) (sizeof (void *)); }
3299#include <stdio.h>
3300#include <stdlib.h>
3301int
3302main ()
3303{
3304
3305  FILE *f = fopen ("conftest.val", "w");
3306  if (! f)
3307    exit (1);
3308  if (((long) (sizeof (void *))) < 0)
3309    {
3310      long i = longval ();
3311      if (i != ((long) (sizeof (void *))))
3312    exit (1);
3313      fprintf (f, "%ld\n", i);
3314    }
3315  else
3316    {
3317      unsigned long i = ulongval ();
3318      if (i != ((long) (sizeof (void *))))
3319    exit (1);
3320      fprintf (f, "%lu\n", i);
3321    }
3322  exit (ferror (f) || fclose (f) != 0);
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328rm -f conftest$ac_exeext
3329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3330  (eval $ac_link) 2>&5
3331  ac_status=$?
3332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335  (eval $ac_try) 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; }; then
3339  ac_cv_sizeof_void_p=`cat conftest.val`
3340else
3341  echo "$as_me: program exited with status $ac_status" >&5
3342echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345( exit $ac_status )
3346{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3347See \`config.log' for more details." >&5
3348echo "$as_me: error: cannot compute sizeof (void *), 77
3349See \`config.log' for more details." >&2;}
3350   { (exit 1); exit 1; }; }
3351fi
3352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3353fi
3354fi
3355rm -f conftest.val
3356else
3357  ac_cv_sizeof_void_p=0
3358fi
3359fi
3360echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3361echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3362cat >>confdefs.h <<_ACEOF
3363#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3364_ACEOF
3365
3366
3367echo "$as_me:$LINENO: checking for int" >&5
3368echo $ECHO_N "checking for int... $ECHO_C" >&6
3369if test "${ac_cv_type_int+set}" = set; then
3370  echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372  cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h.  */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h.  */
3378$ac_includes_default
3379int
3380main ()
3381{
3382if ((int *) 0)
3383  return 0;
3384if (sizeof (int))
3385  return 0;
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext
3391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392  (eval $ac_compile) 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); } &&
3399     { ac_try='test -z "$ac_c_werror_flag"
3400             || test ! -s conftest.err'
3401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402  (eval $ac_try) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }; } &&
3406     { ac_try='test -s conftest.$ac_objext'
3407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408  (eval $ac_try) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; }; then
3412  ac_cv_type_int=yes
3413else
3414  echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417ac_cv_type_int=no
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420fi
3421echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3422echo "${ECHO_T}$ac_cv_type_int" >&6
3423
3424echo "$as_me:$LINENO: checking size of int" >&5
3425echo $ECHO_N "checking size of int... $ECHO_C" >&6
3426if test "${ac_cv_sizeof_int+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429  if test "$ac_cv_type_int" = yes; then
3430  # The cast to unsigned long works around a bug in the HP C Compiler
3431  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3432  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3433  # This bug is HP SR number 8606223364.
3434  if test "$cross_compiling" = yes; then
3435  # Depending upon the size, compute the lo and hi bounds.
3436cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442$ac_includes_default
3443int
3444main ()
3445{
3446static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3447test_array [0] = 0
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462     { ac_try='test -z "$ac_c_werror_flag"
3463             || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469     { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  ac_lo=0 ac_mid=0
3476  while :; do
3477    cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h.  */
3479_ACEOF
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h.  */
3483$ac_includes_default
3484int
3485main ()
3486{
3487static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3488test_array [0] = 0
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494rm -f conftest.$ac_objext
3495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3496  (eval $ac_compile) 2>conftest.er1
3497  ac_status=$?
3498  grep -v '^ *+' conftest.er1 >conftest.err
3499  rm -f conftest.er1
3500  cat conftest.err >&5
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); } &&
3503     { ac_try='test -z "$ac_c_werror_flag"
3504             || test ! -s conftest.err'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; } &&
3510     { ac_try='test -s conftest.$ac_objext'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; }; then
3516  ac_hi=$ac_mid; break
3517else
3518  echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521ac_lo=`expr $ac_mid + 1`
3522            if test $ac_lo -le $ac_mid; then
3523              ac_lo= ac_hi=
3524              break
3525            fi
3526            ac_mid=`expr 2 '*' $ac_mid + 1`
3527fi
3528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529  done
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534cat >conftest.$ac_ext <<_ACEOF
3535/* confdefs.h.  */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h.  */
3540$ac_includes_default
3541int
3542main ()
3543{
3544static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3545test_array [0] = 0
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext
3552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553  (eval $ac_compile) 2>conftest.er1
3554  ac_status=$?
3555  grep -v '^ *+' conftest.er1 >conftest.err
3556  rm -f conftest.er1
3557  cat conftest.err >&5
3558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559  (exit $ac_status); } &&
3560     { ac_try='test -z "$ac_c_werror_flag"
3561             || test ! -s conftest.err'
3562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563  (eval $ac_try) 2>&5
3564  ac_status=$?
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); }; } &&
3567     { ac_try='test -s conftest.$ac_objext'
3568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569  (eval $ac_try) 2>&5
3570  ac_status=$?
3571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); }; }; then
3573  ac_hi=-1 ac_mid=-1
3574  while :; do
3575    cat >conftest.$ac_ext <<_ACEOF
3576/* confdefs.h.  */
3577_ACEOF
3578cat confdefs.h >>conftest.$ac_ext
3579cat >>conftest.$ac_ext <<_ACEOF
3580/* end confdefs.h.  */
3581$ac_includes_default
3582int
3583main ()
3584{
3585static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3586test_array [0] = 0
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext
3593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594  (eval $ac_compile) 2>conftest.er1
3595  ac_status=$?
3596  grep -v '^ *+' conftest.er1 >conftest.err
3597  rm -f conftest.er1
3598  cat conftest.err >&5
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); } &&
3601     { ac_try='test -z "$ac_c_werror_flag"
3602             || test ! -s conftest.err'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; } &&
3608     { ac_try='test -s conftest.$ac_objext'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; }; then
3614  ac_lo=$ac_mid; break
3615else
3616  echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619ac_hi=`expr '(' $ac_mid ')' - 1`
3620               if test $ac_mid -le $ac_hi; then
3621             ac_lo= ac_hi=
3622             break
3623               fi
3624               ac_mid=`expr 2 '*' $ac_mid`
3625fi
3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627  done
3628else
3629  echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632ac_lo= ac_hi=
3633fi
3634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635fi
3636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637# Binary search between lo and hi bounds.
3638while test "x$ac_lo" != "x$ac_hi"; do
3639  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3640  cat >conftest.$ac_ext <<_ACEOF
3641/* confdefs.h.  */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h.  */
3646$ac_includes_default
3647int
3648main ()
3649{
3650static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3651test_array [0] = 0
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659  (eval $ac_compile) 2>conftest.er1
3660  ac_status=$?
3661  grep -v '^ *+' conftest.er1 >conftest.err
3662  rm -f conftest.er1
3663  cat conftest.err >&5
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); } &&
3666     { ac_try='test -z "$ac_c_werror_flag"
3667             || test ! -s conftest.err'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; } &&
3673     { ac_try='test -s conftest.$ac_objext'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; }; then
3679  ac_hi=$ac_mid
3680else
3681  echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684ac_lo=`expr '(' $ac_mid ')' + 1`
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687done
3688case $ac_lo in
3689?*) ac_cv_sizeof_int=$ac_lo;;
3690'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3691See \`config.log' for more details." >&5
3692echo "$as_me: error: cannot compute sizeof (int), 77
3693See \`config.log' for more details." >&2;}
3694   { (exit 1); exit 1; }; } ;;
3695esac
3696else
3697  if test "$cross_compiling" = yes; then
3698  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3699See \`config.log' for more details." >&5
3700echo "$as_me: error: cannot run test program while cross compiling
3701See \`config.log' for more details." >&2;}
3702   { (exit 1); exit 1; }; }
3703else
3704  cat >conftest.$ac_ext <<_ACEOF
3705/* confdefs.h.  */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h.  */
3710$ac_includes_default
3711long longval () { return (long) (sizeof (int)); }
3712unsigned long ulongval () { return (long) (sizeof (int)); }
3713#include <stdio.h>
3714#include <stdlib.h>
3715int
3716main ()
3717{
3718
3719  FILE *f = fopen ("conftest.val", "w");
3720  if (! f)
3721    exit (1);
3722  if (((long) (sizeof (int))) < 0)
3723    {
3724      long i = longval ();
3725      if (i != ((long) (sizeof (int))))
3726    exit (1);
3727      fprintf (f, "%ld\n", i);
3728    }
3729  else
3730    {
3731      unsigned long i = ulongval ();
3732      if (i != ((long) (sizeof (int))))
3733    exit (1);
3734      fprintf (f, "%lu\n", i);
3735    }
3736  exit (ferror (f) || fclose (f) != 0);
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742rm -f conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744  (eval $ac_link) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749  (eval $ac_try) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; }; then
3753  ac_cv_sizeof_int=`cat conftest.val`
3754else
3755  echo "$as_me: program exited with status $ac_status" >&5
3756echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759( exit $ac_status )
3760{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3761See \`config.log' for more details." >&5
3762echo "$as_me: error: cannot compute sizeof (int), 77
3763See \`config.log' for more details." >&2;}
3764   { (exit 1); exit 1; }; }
3765fi
3766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3767fi
3768fi
3769rm -f conftest.val
3770else
3771  ac_cv_sizeof_int=0
3772fi
3773fi
3774echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3775echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3776cat >>confdefs.h <<_ACEOF
3777#define SIZEOF_INT $ac_cv_sizeof_int
3778_ACEOF
3779
3780
3781echo "$as_me:$LINENO: checking for long" >&5
3782echo $ECHO_N "checking for long... $ECHO_C" >&6
3783if test "${ac_cv_type_long+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h.  */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h.  */
3792$ac_includes_default
3793int
3794main ()
3795{
3796if ((long *) 0)
3797  return 0;
3798if (sizeof (long))
3799  return 0;
3800  ;
3801  return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext
3805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3806  (eval $ac_compile) 2>conftest.er1
3807  ac_status=$?
3808  grep -v '^ *+' conftest.er1 >conftest.err
3809  rm -f conftest.er1
3810  cat conftest.err >&5
3811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812  (exit $ac_status); } &&
3813     { ac_try='test -z "$ac_c_werror_flag"
3814             || test ! -s conftest.err'
3815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816  (eval $ac_try) 2>&5
3817  ac_status=$?
3818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819  (exit $ac_status); }; } &&
3820     { ac_try='test -s conftest.$ac_objext'
3821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822  (eval $ac_try) 2>&5
3823  ac_status=$?
3824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825  (exit $ac_status); }; }; then
3826  ac_cv_type_long=yes
3827else
3828  echo "$as_me: failed program was:" >&5
3829sed 's/^/| /' conftest.$ac_ext >&5
3830
3831ac_cv_type_long=no
3832fi
3833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834fi
3835echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3836echo "${ECHO_T}$ac_cv_type_long" >&6
3837
3838echo "$as_me:$LINENO: checking size of long" >&5
3839echo $ECHO_N "checking size of long... $ECHO_C" >&6
3840if test "${ac_cv_sizeof_long+set}" = set; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843  if test "$ac_cv_type_long" = yes; then
3844  # The cast to unsigned long works around a bug in the HP C Compiler
3845  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3846  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3847  # This bug is HP SR number 8606223364.
3848  if test "$cross_compiling" = yes; then
3849  # Depending upon the size, compute the lo and hi bounds.
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h.  */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h.  */
3856$ac_includes_default
3857int
3858main ()
3859{
3860static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3861test_array [0] = 0
3862
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867rm -f conftest.$ac_objext
3868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3869  (eval $ac_compile) 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } &&
3876     { ac_try='test -z "$ac_c_werror_flag"
3877             || test ! -s conftest.err'
3878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879  (eval $ac_try) 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; } &&
3883     { ac_try='test -s conftest.$ac_objext'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; }; then
3889  ac_lo=0 ac_mid=0
3890  while :; do
3891    cat >conftest.$ac_ext <<_ACEOF
3892/* confdefs.h.  */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h.  */
3897$ac_includes_default
3898int
3899main ()
3900{
3901static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3902test_array [0] = 0
3903
3904  ;
3905  return 0;
3906}
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_hi=$ac_mid; break
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935ac_lo=`expr $ac_mid + 1`
3936            if test $ac_lo -le $ac_mid; then
3937              ac_lo= ac_hi=
3938              break
3939            fi
3940            ac_mid=`expr 2 '*' $ac_mid + 1`
3941fi
3942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3943  done
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h.  */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h.  */
3954$ac_includes_default
3955int
3956main ()
3957{
3958static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3959test_array [0] = 0
3960
3961  ;
3962  return 0;
3963}
3964_ACEOF
3965rm -f conftest.$ac_objext
3966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967  (eval $ac_compile) 2>conftest.er1
3968  ac_status=$?
3969  grep -v '^ *+' conftest.er1 >conftest.err
3970  rm -f conftest.er1
3971  cat conftest.err >&5
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); } &&
3974     { ac_try='test -z "$ac_c_werror_flag"
3975             || test ! -s conftest.err'
3976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977  (eval $ac_try) 2>&5
3978  ac_status=$?
3979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980  (exit $ac_status); }; } &&
3981     { ac_try='test -s conftest.$ac_objext'
3982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983  (eval $ac_try) 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }; }; then
3987  ac_hi=-1 ac_mid=-1
3988  while :; do
3989    cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995$ac_includes_default
3996int
3997main ()
3998{
3999static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4000test_array [0] = 0
4001
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext
4007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008  (eval $ac_compile) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015     { ac_try='test -z "$ac_c_werror_flag"
4016             || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022     { ac_try='test -s conftest.$ac_objext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  ac_lo=$ac_mid; break
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033ac_hi=`expr '(' $ac_mid ')' - 1`
4034               if test $ac_mid -le $ac_hi; then
4035             ac_lo= ac_hi=
4036             break
4037               fi
4038               ac_mid=`expr 2 '*' $ac_mid`
4039fi
4040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4041  done
4042else
4043  echo "$as_me: failed program was:" >&5
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046ac_lo= ac_hi=
4047fi
4048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4049fi
4050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051# Binary search between lo and hi bounds.
4052while test "x$ac_lo" != "x$ac_hi"; do
4053  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4054  cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060$ac_includes_default
4061int
4062main ()
4063{
4064static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4065test_array [0] = 0
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071rm -f conftest.$ac_objext
4072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073  (eval $ac_compile) 2>conftest.er1
4074  ac_status=$?
4075  grep -v '^ *+' conftest.er1 >conftest.err
4076  rm -f conftest.er1
4077  cat conftest.err >&5
4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079  (exit $ac_status); } &&
4080     { ac_try='test -z "$ac_c_werror_flag"
4081             || test ! -s conftest.err'
4082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083  (eval $ac_try) 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); }; } &&
4087     { ac_try='test -s conftest.$ac_objext'
4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089  (eval $ac_try) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }; }; then
4093  ac_hi=$ac_mid
4094else
4095  echo "$as_me: failed program was:" >&5
4096sed 's/^/| /' conftest.$ac_ext >&5
4097
4098ac_lo=`expr '(' $ac_mid ')' + 1`
4099fi
4100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101done
4102case $ac_lo in
4103?*) ac_cv_sizeof_long=$ac_lo;;
4104'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4105See \`config.log' for more details." >&5
4106echo "$as_me: error: cannot compute sizeof (long), 77
4107See \`config.log' for more details." >&2;}
4108   { (exit 1); exit 1; }; } ;;
4109esac
4110else
4111  if test "$cross_compiling" = yes; then
4112  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4113See \`config.log' for more details." >&5
4114echo "$as_me: error: cannot run test program while cross compiling
4115See \`config.log' for more details." >&2;}
4116   { (exit 1); exit 1; }; }
4117else
4118  cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h.  */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h.  */
4124$ac_includes_default
4125long longval () { return (long) (sizeof (long)); }
4126unsigned long ulongval () { return (long) (sizeof (long)); }
4127#include <stdio.h>
4128#include <stdlib.h>
4129int
4130main ()
4131{
4132
4133  FILE *f = fopen ("conftest.val", "w");
4134  if (! f)
4135    exit (1);
4136  if (((long) (sizeof (long))) < 0)
4137    {
4138      long i = longval ();
4139      if (i != ((long) (sizeof (long))))
4140    exit (1);
4141      fprintf (f, "%ld\n", i);
4142    }
4143  else
4144    {
4145      unsigned long i = ulongval ();
4146      if (i != ((long) (sizeof (long))))
4147    exit (1);
4148      fprintf (f, "%lu\n", i);
4149    }
4150  exit (ferror (f) || fclose (f) != 0);
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156rm -f conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158  (eval $ac_link) 2>&5
4159  ac_status=$?
4160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163  (eval $ac_try) 2>&5
4164  ac_status=$?
4165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166  (exit $ac_status); }; }; then
4167  ac_cv_sizeof_long=`cat conftest.val`
4168else
4169  echo "$as_me: program exited with status $ac_status" >&5
4170echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173( exit $ac_status )
4174{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4175See \`config.log' for more details." >&5
4176echo "$as_me: error: cannot compute sizeof (long), 77
4177See \`config.log' for more details." >&2;}
4178   { (exit 1); exit 1; }; }
4179fi
4180rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4181fi
4182fi
4183rm -f conftest.val
4184else
4185  ac_cv_sizeof_long=0
4186fi
4187fi
4188echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4189echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4190cat >>confdefs.h <<_ACEOF
4191#define SIZEOF_LONG $ac_cv_sizeof_long
4192_ACEOF
4193
4194
4195
4196######## check for the JDK and tools within the JDK
4197######## look in the JAVA_HOME environment variable at configure-time
4198echo "$as_me:$LINENO: checking for the JDK" >&5
4199echo $ECHO_N "checking for the JDK... $ECHO_C" >&6
4200if test "z$JAVA_HOME" != z &&
4201   test -d $JAVA_HOME &&
4202   test -d $JAVA_HOME/include
4203then
4204
4205    echo "$as_me:$LINENO: result: found in $JAVA_HOME" >&5
4206echo "${ECHO_T}found in $JAVA_HOME" >&6
4207else
4208    { { echo "$as_me:$LINENO: error: not found in \$JAVA_HOME" >&5
4209echo "$as_me: error: not found in \$JAVA_HOME" >&2;}
4210   { (exit 1); exit 1; }; }
4211fi
4212
4213# TODO: Check for specific header files in the JDK, or
4214# functions/definitions within those headers?
4215
4216# TODO: guess which include directory to use under the JDK
4217
4218# Extract the first word of "javah", so it can be a program name with args.
4219set dummy javah; ac_word=$2
4220echo "$as_me:$LINENO: checking for $ac_word" >&5
4221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then
4223  echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225  case $javagdbm_cv_path_javah in
4226  [\\/]* | ?:[\\/]*)
4227  ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path.
4228  ;;
4229  *)
4230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235  for ac_exec_ext in '' $ac_executable_extensions; do
4236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237    ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"
4238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239    break 2
4240  fi
4241done
4242done
4243
4244  test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah"
4245  ;;
4246esac
4247fi
4248javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah
4249
4250if test -n "$javagdbm_cv_path_javah"; then
4251  echo "$as_me:$LINENO: result: $javagdbm_cv_path_javah" >&5
4252echo "${ECHO_T}$javagdbm_cv_path_javah" >&6
4253else
4254  echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
4256fi
4257
4258if test "$javagdbm_cv_path_javah" = missing_javah; then
4259    { { echo "$as_me:$LINENO: error: javah not found." >&5
4260echo "$as_me: error: javah not found." >&2;}
4261   { (exit 1); exit 1; }; }
4262fi
4263
4264# Extract the first word of "java", so it can be a program name with args.
4265set dummy java; ac_word=$2
4266echo "$as_me:$LINENO: checking for $ac_word" >&5
4267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then
4269  echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271  case $javagdbm_cv_path_java in
4272  [\\/]* | ?:[\\/]*)
4273  ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path.
4274  ;;
4275  *)
4276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279  IFS=$as_save_IFS
4280  test -z "$as_dir" && as_dir=.
4281  for ac_exec_ext in '' $ac_executable_extensions; do
4282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283    ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"
4284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285    break 2
4286  fi
4287done
4288done
4289
4290  test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing"
4291  ;;
4292esac
4293fi
4294javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java
4295
4296if test -n "$javagdbm_cv_path_java"; then
4297  echo "$as_me:$LINENO: result: $javagdbm_cv_path_java" >&5
4298echo "${ECHO_T}$javagdbm_cv_path_java" >&6
4299else
4300  echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302fi
4303
4304if test "$javagdbm_cv_path_java" = missing; then
4305    { { echo "$as_me:$LINENO: error: java not found." >&5
4306echo "$as_me: error: java not found." >&2;}
4307   { (exit 1); exit 1; }; }
4308fi
4309
4310# check for gdbm library
4311#AC_CHECK_LIB(gdbm, gdbm_open, [javagdbm_cv_lib_gdbm="-lgdbm"],
4312#   [javagdbm_cv_lib_gdbm=no])
4313#if test "$javagdbm_cv_lib_gdbm" = "no"; then
4314#   AC_MSG_ERROR([no native gdbm library found.])
4315#fi
4316#LIBS="$javagdbm_cv_lib_gdbm"
4317
4318# gdbm stuff copied from gsdl [kjdon]
4319
4320
4321echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
4322echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
4323if test ! -z "$gdbmdir" ; then
4324  # look in given directory for header file
4325  if test -r $gdbmdir/include/gdbm.h ; then
4326    GDBM_INCLUDE="-I$gdbmdir/include" ;
4327  elif test -r $gdbmdir/gdbm.h ; then
4328    GDBM_INCLUDE="-I$gdbmdir" ;
4329  fi
4330
4331  # look in given directory for library
4332  if test -r $gdbmdir/libgdbm.a ; then
4333    GDBM_LIBPATH="-L$gdbmdir" ;
4334  elif test -r $gdbmdir/lib/libgdbm.a ; then
4335    GDBM_LIBPATH="-L$gdbmdir/lib" ;
4336  elif test -r $gdbmdir/.libs/libgdbm.a ; then
4337    GDBM_LIBPATH="-L$gdbmdir/.libs" ;
4338  fi
4339
4340  if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
4341    echo "$as_me:$LINENO: result: $gdbmdir" >&5
4342echo "${ECHO_T}$gdbmdir" >&6 ;
4343  else
4344    echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
4345echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
4346    echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
4347echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
4348  fi
4349fi
4350
4351# look in default path and in /usr/local
4352if test -z "$GDBM_INCLUDE" ; then
4353  # try in system directory
4354  cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h.  */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h.  */
4360#include <gdbm.h>
4361
4362int
4363main ()
4364{
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370rm -f conftest.$ac_objext
4371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4372  (eval $ac_compile) 2>conftest.er1
4373  ac_status=$?
4374  grep -v '^ *+' conftest.er1 >conftest.err
4375  rm -f conftest.er1
4376  cat conftest.err >&5
4377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378  (exit $ac_status); } &&
4379     { ac_try='test -z "$ac_c_werror_flag"
4380             || test ! -s conftest.err'
4381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382  (eval $ac_try) 2>&5
4383  ac_status=$?
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); }; } &&
4386     { ac_try='test -s conftest.$ac_objext'
4387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388  (eval $ac_try) 2>&5
4389  ac_status=$?
4390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391  (exit $ac_status); }; }; then
4392  success=yes
4393else
4394  echo "$as_me: failed program was:" >&5
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
4397success=no
4398
4399fi
4400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401
4402  if test $success = "no"; then
4403# last chance - look in /usr/local (eg FreeBSD)
4404    GDBM_LIBPATH=-L/usr/local/lib
4405    GDBM_INCLUDE=-I/usr/local/include
4406    ac_save_CXXFLAGS="$CXXFLAGS"
4407    ac_save_LIBS="$LIBS"
4408      CXXFLAGS="$CXXFLAGS -I/usr/local/include"
4409      LIBS="$LIBS -L/usr/local/lib -lgdbm"
4410      cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h.  */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h.  */
4416#include <gdbm.h>
4417#include <stdio.h>
4418
4419int
4420main ()
4421{
4422printf("%s",gdbm_version);
4423  ;
4424  return 0;
4425}
4426_ACEOF
4427rm -f conftest.$ac_objext conftest$ac_exeext
4428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4429  (eval $ac_link) 2>conftest.er1
4430  ac_status=$?
4431  grep -v '^ *+' conftest.er1 >conftest.err
4432  rm -f conftest.er1
4433  cat conftest.err >&5
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); } &&
4436     { ac_try='test -z "$ac_c_werror_flag"
4437             || test ! -s conftest.err'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; } &&
4443     { ac_try='test -s conftest$ac_exeext'
4444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445  (eval $ac_try) 2>&5
4446  ac_status=$?
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); }; }; then
4449  success=/usr/local
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454success=no
4455
4456fi
4457rm -f conftest.err conftest.$ac_objext \
4458      conftest$ac_exeext conftest.$ac_ext
4459      CXXFLAGS=$ac_save_CXXFLAGS
4460      LIBS=$ac_save_LIBS
4461  fi
4462
4463  echo "$as_me:$LINENO: result: $success" >&5
4464echo "${ECHO_T}$success" >&6
4465  if test $success = "no"; then
4466  { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
4467echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
4468   { (exit 1); exit 1; }; }
4469  fi
4470fi
4471cat >>confdefs.h <<\_ACEOF
4472#define HAVE_LIBGDBM  1
4473_ACEOF
4474
4475
4476
4477
4478
4479########## set compiler options
4480# TODO: is there a more appropriate way to guess which switches to use
4481# with which systems/compilers?
4482CFLAGS="-Wall -O2 -fpic"
4483PKG="au.com.pharos.gdbm"
4484
4485
4486
4487
4488# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
4489# a non-standard Path
4490# is there a better way to do this??
4491echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
4492echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
4493# set defaults
4494JNIINC=""
4495JNISUFFIX="so"
4496JNIFLAGS="-shared"
4497
4498if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
4499  echo "$as_me:$LINENO: result: Darwin" >&5
4500echo "${ECHO_T}Darwin" >&6
4501  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
4502  JNISUFFIX="jnilib"
4503  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
4504fi
4505if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
4506  echo "$as_me:$LINENO: result: Solaris" >&5
4507echo "${ECHO_T}Solaris" >&6
4508  JNIINC="-I\$(JAVA_HOME)/include/solaris "
4509fi
4510if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
4511  echo "$as_me:$LINENO: result: Linux" >&5
4512echo "${ECHO_T}Linux" >&6
4513  JNIINC="-I\$(JAVA_HOME)/include/linux "
4514fi
4515
4516
4517
4518
4519
4520# write the output
4521                              ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
4522cat >confcache <<\_ACEOF
4523# This file is a shell script that caches the results of configure
4524# tests run on this system so they can be shared between configure
4525# scripts and configure runs, see configure's option --config-cache.
4526# It is not useful on other systems.  If it contains results you don't
4527# want to keep, you may remove or edit it.
4528#
4529# config.status only pays attention to the cache file if you give it
4530# the --recheck option to rerun configure.
4531#
4532# `ac_cv_env_foo' variables (set or unset) will be overridden when
4533# loading this file, other *unset* `ac_cv_foo' will be assigned the
4534# following values.
4535
4536_ACEOF
4537
4538# The following way of writing the cache mishandles newlines in values,
4539# but we know of no workaround that is simple, portable, and efficient.
4540# So, don't put newlines in cache variables' values.
4541# Ultrix sh set writes to stderr and can't be redirected directly,
4542# and sets the high bit in the cache file unless we assign to the vars.
4543{
4544  (set) 2>&1 |
4545    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4546    *ac_space=\ *)
4547      # `set' does not quote correctly, so add quotes (double-quote
4548      # substitution turns \\\\ into \\, and sed turns \\ into \).
4549      sed -n \
4550    "s/'/'\\\\''/g;
4551      s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4552      ;;
4553    *)
4554      # `set' quotes correctly as required by POSIX, so do not add quotes.
4555      sed -n \
4556    "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4557      ;;
4558    esac;
4559} |
4560  sed '
4561     t clear
4562     : clear
4563     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4564     t end
4565     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4566     : end' >>confcache
4567if diff $cache_file confcache >/dev/null 2>&1; then :; else
4568  if test -w $cache_file; then
4569    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4570    cat confcache >$cache_file
4571  else
4572    echo "not updating unwritable cache $cache_file"
4573  fi
4574fi
4575rm -f confcache
4576
4577test "x$prefix" = xNONE && prefix=$ac_default_prefix
4578# Let make expand exec_prefix.
4579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4580
4581# VPATH may cause trouble with some makes, so we remove $(srcdir),
4582# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4583# trailing colons and then remove the whole line if VPATH becomes empty
4584# (actually we leave an empty line to preserve line numbers).
4585if test "x$srcdir" = x.; then
4586  ac_vpsub='/^[  ]*VPATH[    ]*=/{
4587s/:*\$(srcdir):*/:/;
4588s/:*\${srcdir}:*/:/;
4589s/:*@srcdir@:*/:/;
4590s/^\([^=]*=[     ]*\):*/\1/;
4591s/:*$//;
4592s/^[^=]*=[   ]*$//;
4593}'
4594fi
4595
4596# Transform confdefs.h into DEFS.
4597# Protect against shell expansion while executing Makefile rules.
4598# Protect against Makefile macro expansion.
4599#
4600# If the first sed substitution is executed (which looks for macros that
4601# take arguments), then we branch to the quote section.  Otherwise,
4602# look for a macro that doesn't take arguments.
4603cat >confdef2opt.sed <<\_ACEOF
4604t clear
4605: clear
4606s,^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
4607t quote
4608s,^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
4609t quote
4610d
4611: quote
4612s,[  `~#$^&*(){}\\|;'"<>?],\\&,g
4613s,\[,\\&,g
4614s,\],\\&,g
4615s,\$,$$,g
4616p
4617_ACEOF
4618# We use echo to avoid assuming a particular line-breaking character.
4619# The extra dot is to prevent the shell from consuming trailing
4620# line-breaks from the sub-command output.  A line-break within
4621# single-quotes doesn't work because, if this script is created in a
4622# platform that uses two characters for line-breaks (e.g., DOS), tr
4623# would break.
4624ac_LF_and_DOT=`echo; echo .`
4625DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4626rm -f confdef2opt.sed
4627
4628
4629ac_libobjs=
4630ac_ltlibobjs=
4631for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4632  # 1. Remove the extension, and $U if already installed.
4633  ac_i=`echo "$ac_i" |
4634     sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4635  # 2. Add them.
4636  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4637  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4638done
4639LIBOBJS=$ac_libobjs
4640
4641LTLIBOBJS=$ac_ltlibobjs
4642
4643
4644
4645: ${CONFIG_STATUS=./config.status}
4646ac_clean_files_save=$ac_clean_files
4647ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4648{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4649echo "$as_me: creating $CONFIG_STATUS" >&6;}
4650cat >$CONFIG_STATUS <<_ACEOF
4651#! $SHELL
4652# Generated by $as_me.
4653# Run this file to recreate the current configuration.
4654# Compiler output produced by configure, useful for debugging
4655# configure, is in config.log if it exists.
4656
4657debug=false
4658ac_cs_recheck=false
4659ac_cs_silent=false
4660SHELL=\${CONFIG_SHELL-$SHELL}
4661_ACEOF
4662
4663cat >>$CONFIG_STATUS <<\_ACEOF
4664## --------------------- ##
4665## M4sh Initialization.  ##
4666## --------------------- ##
4667
4668# Be Bourne compatible
4669if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4670  emulate sh
4671  NULLCMD=:
4672  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4673  # is contrary to our usage.  Disable this feature.
4674  alias -g '${1+"$@"}'='"$@"'
4675elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4676  set -o posix
4677fi
4678DUALCASE=1; export DUALCASE # for MKS sh
4679
4680# Support unset when possible.
4681if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4682  as_unset=unset
4683else
4684  as_unset=false
4685fi
4686
4687
4688# Work around bugs in pre-3.0 UWIN ksh.
4689$as_unset ENV MAIL MAILPATH
4690PS1='$ '
4691PS2='> '
4692PS4='+ '
4693
4694# NLS nuisances.
4695for as_var in \
4696  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4697  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4698  LC_TELEPHONE LC_TIME
4699do
4700  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4701    eval $as_var=C; export $as_var
4702  else
4703    $as_unset $as_var
4704  fi
4705done
4706
4707# Required to use basename.
4708if expr a : '\(a\)' >/dev/null 2>&1; then
4709  as_expr=expr
4710else
4711  as_expr=false
4712fi
4713
4714if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4715  as_basename=basename
4716else
4717  as_basename=false
4718fi
4719
4720
4721# Name of the executable.
4722as_me=`$as_basename "$0" ||
4723$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4724     X"$0" : 'X\(//\)$' \| \
4725     X"$0" : 'X\(/\)$' \| \
4726     .     : '\(.\)' 2>/dev/null ||
4727echo X/"$0" |
4728    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4729      /^X\/\(\/\/\)$/{ s//\1/; q; }
4730      /^X\/\(\/\).*/{ s//\1/; q; }
4731      s/.*/./; q'`
4732
4733
4734# PATH needs CR, and LINENO needs CR and PATH.
4735# Avoid depending upon Character Ranges.
4736as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4737as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4738as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4739as_cr_digits='0123456789'
4740as_cr_alnum=$as_cr_Letters$as_cr_digits
4741
4742# The user is always right.
4743if test "${PATH_SEPARATOR+set}" != set; then
4744  echo "#! /bin/sh" >conf$$.sh
4745  echo  "exit 0"   >>conf$$.sh
4746  chmod +x conf$$.sh
4747  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4748    PATH_SEPARATOR=';'
4749  else
4750    PATH_SEPARATOR=:
4751  fi
4752  rm -f conf$$.sh
4753fi
4754
4755
4756  as_lineno_1=$LINENO
4757  as_lineno_2=$LINENO
4758  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4759  test "x$as_lineno_1" != "x$as_lineno_2" &&
4760  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4761  # Find who we are.  Look in the path if we contain no path at all
4762  # relative or not.
4763  case $0 in
4764    *[\\/]* ) as_myself=$0 ;;
4765    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768  IFS=$as_save_IFS
4769  test -z "$as_dir" && as_dir=.
4770  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4771done
4772
4773       ;;
4774  esac
4775  # We did not find ourselves, most probably we were run as `sh COMMAND'
4776  # in which case we are not to be found in the path.
4777  if test "x$as_myself" = x; then
4778    as_myself=$0
4779  fi
4780  if test ! -f "$as_myself"; then
4781    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4782echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4783   { (exit 1); exit 1; }; }
4784  fi
4785  case $CONFIG_SHELL in
4786  '')
4787    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792  for as_base in sh bash ksh sh5; do
4793     case $as_dir in
4794     /*)
4795       if ("$as_dir/$as_base" -c '
4796  as_lineno_1=$LINENO
4797  as_lineno_2=$LINENO
4798  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4799  test "x$as_lineno_1" != "x$as_lineno_2" &&
4800  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4801         $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4802         $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4803         CONFIG_SHELL=$as_dir/$as_base
4804         export CONFIG_SHELL
4805         exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4806       fi;;
4807     esac
4808       done
4809done
4810;;
4811  esac
4812
4813  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4814  # uniformly replaced by the line number.  The first 'sed' inserts a
4815  # line-number line before each line; the second 'sed' does the real
4816  # work.  The second script uses 'N' to pair each line-number line
4817  # with the numbered line, and appends trailing '-' during
4818  # substitution so that $LINENO is not a special case at line end.
4819  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4820  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4821  sed '=' <$as_myself |
4822    sed '
4823      N
4824      s,$,-,
4825      : loop
4826      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4827      t loop
4828      s,-$,,
4829      s,^['$as_cr_digits']*\n,,
4830    ' >$as_me.lineno &&
4831  chmod +x $as_me.lineno ||
4832    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4833echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4834   { (exit 1); exit 1; }; }
4835
4836  # Don't try to exec as it changes $[0], causing all sort of problems
4837  # (the dirname of $[0] is not the place where we might find the
4838  # original and so on.  Autoconf is especially sensible to this).
4839  . ./$as_me.lineno
4840  # Exit status is that of the last command.
4841  exit
4842}
4843
4844
4845case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4846  *c*,-n*) ECHO_N= ECHO_C='
4847' ECHO_T='  ' ;;
4848  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4849  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4850esac
4851
4852if expr a : '\(a\)' >/dev/null 2>&1; then
4853  as_expr=expr
4854else
4855  as_expr=false
4856fi
4857
4858rm -f conf$$ conf$$.exe conf$$.file
4859echo >conf$$.file
4860if ln -s conf$$.file conf$$ 2>/dev/null; then
4861  # We could just check for DJGPP; but this test a) works b) is more generic
4862  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4863  if test -f conf$$.exe; then
4864    # Don't use ln at all; we don't have any links
4865    as_ln_s='cp -p'
4866  else
4867    as_ln_s='ln -s'
4868  fi
4869elif ln conf$$.file conf$$ 2>/dev/null; then
4870  as_ln_s=ln
4871else
4872  as_ln_s='cp -p'
4873fi
4874rm -f conf$$ conf$$.exe conf$$.file
4875
4876if mkdir -p . 2>/dev/null; then
4877  as_mkdir_p=:
4878else
4879  test -d ./-p && rmdir ./-p
4880  as_mkdir_p=false
4881fi
4882
4883as_executable_p="test -f"
4884
4885# Sed expression to map a string onto a valid CPP name.
4886as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4887
4888# Sed expression to map a string onto a valid variable name.
4889as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4890
4891
4892# IFS
4893# We need space, tab and new line, in precisely that order.
4894as_nl='
4895'
4896IFS="   $as_nl"
4897
4898# CDPATH.
4899$as_unset CDPATH
4900
4901exec 6>&1
4902
4903# Open the log real soon, to keep \$[0] and so on meaningful, and to
4904# report actual input values of CONFIG_FILES etc. instead of their
4905# values after options handling.  Logging --version etc. is OK.
4906exec 5>>config.log
4907{
4908  echo
4909  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4910## Running $as_me. ##
4911_ASBOX
4912} >&5
4913cat >&5 <<_CSEOF
4914
4915This file was extended by $as_me, which was
4916generated by GNU Autoconf 2.59.  Invocation command line was
4917
4918  CONFIG_FILES    = $CONFIG_FILES
4919  CONFIG_HEADERS  = $CONFIG_HEADERS
4920  CONFIG_LINKS    = $CONFIG_LINKS
4921  CONFIG_COMMANDS = $CONFIG_COMMANDS
4922  $ $0 $@
4923
4924_CSEOF
4925echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4926echo >&5
4927_ACEOF
4928
4929# Files that config.status was made for.
4930if test -n "$ac_config_files"; then
4931  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4932fi
4933
4934if test -n "$ac_config_headers"; then
4935  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4936fi
4937
4938if test -n "$ac_config_links"; then
4939  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4940fi
4941
4942if test -n "$ac_config_commands"; then
4943  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4944fi
4945
4946cat >>$CONFIG_STATUS <<\_ACEOF
4947
4948ac_cs_usage="\
4949\`$as_me' instantiates files from templates according to the
4950current configuration.
4951
4952Usage: $0 [OPTIONS] [FILE]...
4953
4954  -h, --help       print this help, then exit
4955  -V, --version    print version number, then exit
4956  -q, --quiet      do not print progress messages
4957  -d, --debug      don't remove temporary files
4958      --recheck    update $as_me by reconfiguring in the same conditions
4959  --file=FILE[:TEMPLATE]
4960           instantiate the configuration file FILE
4961
4962Configuration files:
4963$config_files
4964
4965Report bugs to <bug-autoconf@gnu.org>."
4966_ACEOF
4967
4968cat >>$CONFIG_STATUS <<_ACEOF
4969ac_cs_version="\\
4970config.status
4971configured by $0, generated by GNU Autoconf 2.59,
4972  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4973
4974Copyright (C) 2003 Free Software Foundation, Inc.
4975This config.status script is free software; the Free Software Foundation
4976gives unlimited permission to copy, distribute and modify it."
4977srcdir=$srcdir
4978INSTALL="$INSTALL"
4979_ACEOF
4980
4981cat >>$CONFIG_STATUS <<\_ACEOF
4982# If no file are specified by the user, then we need to provide default
4983# value.  By we need to know if files were specified by the user.
4984ac_need_defaults=:
4985while test $# != 0
4986do
4987  case $1 in
4988  --*=*)
4989    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4990    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4991    ac_shift=:
4992    ;;
4993  -*)
4994    ac_option=$1
4995    ac_optarg=$2
4996    ac_shift=shift
4997    ;;
4998  *) # This is not an option, so the user has probably given explicit
4999     # arguments.
5000     ac_option=$1
5001     ac_need_defaults=false;;
5002  esac
5003
5004  case $ac_option in
5005  # Handling of the options.
5006_ACEOF
5007cat >>$CONFIG_STATUS <<\_ACEOF
5008  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5009    ac_cs_recheck=: ;;
5010  --version | --vers* | -V )
5011    echo "$ac_cs_version"; exit 0 ;;
5012  --he | --h)
5013    # Conflict between --help and --header
5014    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5015Try \`$0 --help' for more information." >&5
5016echo "$as_me: error: ambiguous option: $1
5017Try \`$0 --help' for more information." >&2;}
5018   { (exit 1); exit 1; }; };;
5019  --help | --hel | -h )
5020    echo "$ac_cs_usage"; exit 0 ;;
5021  --debug | --d* | -d )
5022    debug=: ;;
5023  --file | --fil | --fi | --f )
5024    $ac_shift
5025    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5026    ac_need_defaults=false;;
5027  --header | --heade | --head | --hea )
5028    $ac_shift
5029    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5030    ac_need_defaults=false;;
5031  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5032  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5033    ac_cs_silent=: ;;
5034
5035  # This is an error.
5036  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5037Try \`$0 --help' for more information." >&5
5038echo "$as_me: error: unrecognized option: $1
5039Try \`$0 --help' for more information." >&2;}
5040   { (exit 1); exit 1; }; } ;;
5041
5042  *) ac_config_targets="$ac_config_targets $1" ;;
5043
5044  esac
5045  shift
5046done
5047
5048ac_configure_extra_args=
5049
5050if $ac_cs_silent; then
5051  exec 6>/dev/null
5052  ac_configure_extra_args="$ac_configure_extra_args --silent"
5053fi
5054
5055_ACEOF
5056cat >>$CONFIG_STATUS <<_ACEOF
5057if \$ac_cs_recheck; then
5058  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5059  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5060fi
5061
5062_ACEOF
5063
5064
5065
5066
5067
5068cat >>$CONFIG_STATUS <<\_ACEOF
5069for ac_config_target in $ac_config_targets
5070do
5071  case "$ac_config_target" in
5072  # Handling of arguments.
5073  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5074  "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
5075  "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
5076  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5077echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5078   { (exit 1); exit 1; }; };;
5079  esac
5080done
5081
5082# If the user did not use the arguments to specify the items to instantiate,
5083# then the envvar interface is used.  Set only those that are not.
5084# We use the long form for the default assignment because of an extremely
5085# bizarre bug on SunOS 4.1.3.
5086if $ac_need_defaults; then
5087  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5088fi
5089
5090# Have a temporary directory for convenience.  Make it in the build tree
5091# simply because there is no reason to put it here, and in addition,
5092# creating and moving files from /tmp can sometimes cause problems.
5093# Create a temporary directory, and hook for its removal unless debugging.
5094$debug ||
5095{
5096  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5097  trap '{ (exit 1); exit 1; }' 1 2 13 15
5098}
5099
5100# Create a (secure) tmp directory for tmp files.
5101
5102{
5103  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5104  test -n "$tmp" && test -d "$tmp"
5105}  ||
5106{
5107  tmp=./confstat$$-$RANDOM
5108  (umask 077 && mkdir $tmp)
5109} ||
5110{
5111   echo "$me: cannot create a temporary directory in ." >&2
5112   { (exit 1); exit 1; }
5113}
5114
5115_ACEOF
5116
5117cat >>$CONFIG_STATUS <<_ACEOF
5118
5119#
5120# CONFIG_FILES section.
5121#
5122
5123# No need to generate the scripts if there are no CONFIG_FILES.
5124# This happens for instance when ./config.status config.h
5125if test -n "\$CONFIG_FILES"; then
5126  # Protect against being on the right side of a sed subst in config.status.
5127  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5128   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5129s,@SHELL@,$SHELL,;t t
5130s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5131s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5132s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5133s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5134s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5135s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5136s,@exec_prefix@,$exec_prefix,;t t
5137s,@prefix@,$prefix,;t t
5138s,@program_transform_name@,$program_transform_name,;t t
5139s,@bindir@,$bindir,;t t
5140s,@sbindir@,$sbindir,;t t
5141s,@libexecdir@,$libexecdir,;t t
5142s,@datadir@,$datadir,;t t
5143s,@sysconfdir@,$sysconfdir,;t t
5144s,@sharedstatedir@,$sharedstatedir,;t t
5145s,@localstatedir@,$localstatedir,;t t
5146s,@libdir@,$libdir,;t t
5147s,@includedir@,$includedir,;t t
5148s,@oldincludedir@,$oldincludedir,;t t
5149s,@infodir@,$infodir,;t t
5150s,@mandir@,$mandir,;t t
5151s,@build_alias@,$build_alias,;t t
5152s,@host_alias@,$host_alias,;t t
5153s,@target_alias@,$target_alias,;t t
5154s,@DEFS@,$DEFS,;t t
5155s,@ECHO_C@,$ECHO_C,;t t
5156s,@ECHO_N@,$ECHO_N,;t t
5157s,@ECHO_T@,$ECHO_T,;t t
5158s,@LIBS@,$LIBS,;t t
5159s,@build@,$build,;t t
5160s,@build_cpu@,$build_cpu,;t t
5161s,@build_vendor@,$build_vendor,;t t
5162s,@build_os@,$build_os,;t t
5163s,@host@,$host,;t t
5164s,@host_cpu@,$host_cpu,;t t
5165s,@host_vendor@,$host_vendor,;t t
5166s,@host_os@,$host_os,;t t
5167s,@target@,$target,;t t
5168s,@target_cpu@,$target_cpu,;t t
5169s,@target_vendor@,$target_vendor,;t t
5170s,@target_os@,$target_os,;t t
5171s,@CC@,$CC,;t t
5172s,@CFLAGS@,$CFLAGS,;t t
5173s,@LDFLAGS@,$LDFLAGS,;t t
5174s,@CPPFLAGS@,$CPPFLAGS,;t t
5175s,@ac_ct_CC@,$ac_ct_CC,;t t
5176s,@EXEEXT@,$EXEEXT,;t t
5177s,@OBJEXT@,$OBJEXT,;t t
5178s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5179s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5180s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5181s,@LN_S@,$LN_S,;t t
5182s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
5183s,@CPP@,$CPP,;t t
5184s,@EGREP@,$EGREP,;t t
5185s,@JAVA_HOME@,$JAVA_HOME,;t t
5186s,@javagdbm_cv_path_javah@,$javagdbm_cv_path_javah,;t t
5187s,@javagdbm_cv_path_java@,$javagdbm_cv_path_java,;t t
5188s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
5189s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
5190s,@PKG@,$PKG,;t t
5191s,@JNIINC@,$JNIINC,;t t
5192s,@JNISUFFIX@,$JNISUFFIX,;t t
5193s,@JNIFLAGS@,$JNIFLAGS,;t t
5194s,@LIBOBJS@,$LIBOBJS,;t t
5195s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5196CEOF
5197
5198_ACEOF
5199
5200  cat >>$CONFIG_STATUS <<\_ACEOF
5201  # Split the substitutions into bite-sized pieces for seds with
5202  # small command number limits, like on Digital OSF/1 and HP-UX.
5203  ac_max_sed_lines=48
5204  ac_sed_frag=1 # Number of current file.
5205  ac_beg=1 # First line for current file.
5206  ac_end=$ac_max_sed_lines # Line after last line for current file.
5207  ac_more_lines=:
5208  ac_sed_cmds=
5209  while $ac_more_lines; do
5210    if test $ac_beg -gt 1; then
5211      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5212    else
5213      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5214    fi
5215    if test ! -s $tmp/subs.frag; then
5216      ac_more_lines=false
5217    else
5218      # The purpose of the label and of the branching condition is to
5219      # speed up the sed processing (if there are no `@' at all, there
5220      # is no need to browse any of the substitutions).
5221      # These are the two extra sed commands mentioned above.
5222      (echo ':t
5223  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5224      if test -z "$ac_sed_cmds"; then
5225    ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5226      else
5227    ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5228      fi
5229      ac_sed_frag=`expr $ac_sed_frag + 1`
5230      ac_beg=$ac_end
5231      ac_end=`expr $ac_end + $ac_max_sed_lines`
5232    fi
5233  done
5234  if test -z "$ac_sed_cmds"; then
5235    ac_sed_cmds=cat
5236  fi
5237fi # test -n "$CONFIG_FILES"
5238
5239_ACEOF
5240cat >>$CONFIG_STATUS <<\_ACEOF
5241for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5242  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5243  case $ac_file in
5244  - | *:- | *:-:* ) # input from stdin
5245    cat >$tmp/stdin
5246    ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5247    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5248  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5249    ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5250  * )   ac_file_in=$ac_file.in ;;
5251  esac
5252
5253  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5254  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5255$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5256     X"$ac_file" : 'X\(//\)[^/]' \| \
5257     X"$ac_file" : 'X\(//\)$' \| \
5258     X"$ac_file" : 'X\(/\)' \| \
5259     .     : '\(.\)' 2>/dev/null ||
5260echo X"$ac_file" |
5261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5262      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5263      /^X\(\/\/\)$/{ s//\1/; q; }
5264      /^X\(\/\).*/{ s//\1/; q; }
5265      s/.*/./; q'`
5266  { if $as_mkdir_p; then
5267    mkdir -p "$ac_dir"
5268  else
5269    as_dir="$ac_dir"
5270    as_dirs=
5271    while test ! -d "$as_dir"; do
5272      as_dirs="$as_dir $as_dirs"
5273      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5274$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5275     X"$as_dir" : 'X\(//\)[^/]' \| \
5276     X"$as_dir" : 'X\(//\)$' \| \
5277     X"$as_dir" : 'X\(/\)' \| \
5278     .     : '\(.\)' 2>/dev/null ||
5279echo X"$as_dir" |
5280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5281      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5282      /^X\(\/\/\)$/{ s//\1/; q; }
5283      /^X\(\/\).*/{ s//\1/; q; }
5284      s/.*/./; q'`
5285    done
5286    test ! -n "$as_dirs" || mkdir $as_dirs
5287  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5288echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5289   { (exit 1); exit 1; }; }; }
5290
5291  ac_builddir=.
5292
5293if test "$ac_dir" != .; then
5294  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5295  # A "../" for each directory in $ac_dir_suffix.
5296  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5297else
5298  ac_dir_suffix= ac_top_builddir=
5299fi
5300
5301case $srcdir in
5302  .)  # No --srcdir option.  We are building in place.
5303    ac_srcdir=.
5304    if test -z "$ac_top_builddir"; then
5305       ac_top_srcdir=.
5306    else
5307       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5308    fi ;;
5309  [\\/]* | ?:[\\/]* )  # Absolute path.
5310    ac_srcdir=$srcdir$ac_dir_suffix;
5311    ac_top_srcdir=$srcdir ;;
5312  *) # Relative path.
5313    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5314    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5315esac
5316
5317# Do not use `cd foo && pwd` to compute absolute paths, because
5318# the directories may not exist.
5319case `pwd` in
5320.) ac_abs_builddir="$ac_dir";;
5321*)
5322  case "$ac_dir" in
5323  .) ac_abs_builddir=`pwd`;;
5324  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5325  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5326  esac;;
5327esac
5328case $ac_abs_builddir in
5329.) ac_abs_top_builddir=${ac_top_builddir}.;;
5330*)
5331  case ${ac_top_builddir}. in
5332  .) ac_abs_top_builddir=$ac_abs_builddir;;
5333  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5334  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5335  esac;;
5336esac
5337case $ac_abs_builddir in
5338.) ac_abs_srcdir=$ac_srcdir;;
5339*)
5340  case $ac_srcdir in
5341  .) ac_abs_srcdir=$ac_abs_builddir;;
5342  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5343  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5344  esac;;
5345esac
5346case $ac_abs_builddir in
5347.) ac_abs_top_srcdir=$ac_top_srcdir;;
5348*)
5349  case $ac_top_srcdir in
5350  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5351  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5352  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5353  esac;;
5354esac
5355
5356
5357  case $INSTALL in
5358  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5359  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5360  esac
5361
5362  if test x"$ac_file" != x-; then
5363    { echo "$as_me:$LINENO: creating $ac_file" >&5
5364echo "$as_me: creating $ac_file" >&6;}
5365    rm -f "$ac_file"
5366  fi
5367  # Let's still pretend it is `configure' which instantiates (i.e., don't
5368  # use $as_me), people would be surprised to read:
5369  #    /* config.h.  Generated by config.status.  */
5370  if test x"$ac_file" = x-; then
5371    configure_input=
5372  else
5373    configure_input="$ac_file.  "
5374  fi
5375  configure_input=$configure_input"Generated from `echo $ac_file_in |
5376                     sed 's,.*/,,'` by configure."
5377
5378  # First look for the input files in the build tree, otherwise in the
5379  # src tree.
5380  ac_file_inputs=`IFS=:
5381    for f in $ac_file_in; do
5382      case $f in
5383      -) echo $tmp/stdin ;;
5384      [\\/$]*)
5385     # Absolute (can't be DOS-style, as IFS=:)
5386     test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5387echo "$as_me: error: cannot find input file: $f" >&2;}
5388   { (exit 1); exit 1; }; }
5389     echo "$f";;
5390      *) # Relative
5391     if test -f "$f"; then
5392       # Build tree
5393       echo "$f"
5394     elif test -f "$srcdir/$f"; then
5395       # Source tree
5396       echo "$srcdir/$f"
5397     else
5398       # /dev/null tree
5399       { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5400echo "$as_me: error: cannot find input file: $f" >&2;}
5401   { (exit 1); exit 1; }; }
5402     fi;;
5403      esac
5404    done` || { (exit 1); exit 1; }
5405_ACEOF
5406cat >>$CONFIG_STATUS <<_ACEOF
5407  sed "$ac_vpsub
5408$extrasub
5409_ACEOF
5410cat >>$CONFIG_STATUS <<\_ACEOF
5411:t
5412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5413s,@configure_input@,$configure_input,;t t
5414s,@srcdir@,$ac_srcdir,;t t
5415s,@abs_srcdir@,$ac_abs_srcdir,;t t
5416s,@top_srcdir@,$ac_top_srcdir,;t t
5417s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5418s,@builddir@,$ac_builddir,;t t
5419s,@abs_builddir@,$ac_abs_builddir,;t t
5420s,@top_builddir@,$ac_top_builddir,;t t
5421s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5422s,@INSTALL@,$ac_INSTALL,;t t
5423" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5424  rm -f $tmp/stdin
5425  if test x"$ac_file" != x-; then
5426    mv $tmp/out $ac_file
5427  else
5428    cat $tmp/out
5429    rm -f $tmp/out
5430  fi
5431
5432done
5433_ACEOF
5434
5435cat >>$CONFIG_STATUS <<\_ACEOF
5436
5437{ (exit 0); exit 0; }
5438_ACEOF
5439chmod +x $CONFIG_STATUS
5440ac_clean_files=$ac_clean_files_save
5441
5442
5443# configure is writing to config.log, and then calls config.status.
5444# config.status does its own redirection, appending to config.log.
5445# Unfortunately, on DOS this fails, as config.log is still kept open
5446# by configure, so config.status won't be able to write to it; its
5447# output is simply discarded.  So we exec the FD to /dev/null,
5448# effectively closing config.log, so it can be properly (re)opened and
5449# appended to by config.status.  When coming back to configure, we
5450# need to make the FD available again.
5451if test "$no_create" != yes; then
5452  ac_cs_success=:
5453  ac_config_status_args=
5454  test "$silent" = yes &&
5455    ac_config_status_args="$ac_config_status_args --quiet"
5456  exec 5>/dev/null
5457  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5458  exec 5>>config.log
5459  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5460  # would make configure fail if this is the last instruction.
5461  $ac_cs_success || { (exit 1); exit 1; }
5462fi
5463
Note: See TracBrowser for help on using the browser.