source: git/omalloc/configure @ d011a2

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