1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10if expr a : '\(a\)' >/dev/null 2>&1; then
11  as_expr=expr
12else
13  as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26  set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32  as_unset=unset
33else
34  as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38    { $as_unset LANG || test "${LANG+set}" != set; } ||
39      { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42      { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45      { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48      { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51      { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54      { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57      { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60      { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66	 X"$0" : 'X\(//\)$' \| \
67	 X"$0" : 'X\(/\)$' \| \
68	 .     : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
72  	  /^X\/\(\/\).*/{ s//\1/; q; }
73  	  s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85  echo "#! /bin/sh" >conftest.sh
86  echo  "exit 0"   >>conftest.sh
87  chmod +x conftest.sh
88  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89    PATH_SEPARATOR=';'
90  else
91    PATH_SEPARATOR=:
92  fi
93  rm -f conftest.sh
94fi
95
96
97  as_lineno_1=$LINENO
98  as_lineno_2=$LINENO
99  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100  test "x$as_lineno_1" != "x$as_lineno_2" &&
101  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
102  # Find who we are.  Look in the path if we contain no path at all
103  # relative or not.
104  case $0 in
105    *[\\/]* ) as_myself=$0 ;;
106    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109  IFS=$as_save_IFS
110  test -z "$as_dir" && as_dir=.
111  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114       ;;
115  esac
116  # We did not find ourselves, most probably we were run as `sh COMMAND'
117  # in which case we are not to be found in the path.
118  if test "x$as_myself" = x; then
119    as_myself=$0
120  fi
121  if test ! -f "$as_myself"; then
122    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123   { (exit 1); exit 1; }; }
124  fi
125  case $CONFIG_SHELL in
126  '')
127    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130  IFS=$as_save_IFS
131  test -z "$as_dir" && as_dir=.
132  for as_base in sh bash ksh sh5; do
133	 case $as_dir in
134	 /*)
135	   if ("$as_dir/$as_base" -c '
136  as_lineno_1=$LINENO
137  as_lineno_2=$LINENO
138  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139  test "x$as_lineno_1" != "x$as_lineno_2" &&
140  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
141	     CONFIG_SHELL=$as_dir/$as_base
142	     export CONFIG_SHELL
143	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144	   fi;;
145	 esac
146       done
147done
148;;
149  esac
150
151  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152  # uniformly replaced by the line number.  The first 'sed' inserts a
153  # line-number line before each line; the second 'sed' does the real
154  # work.  The second script uses 'N' to pair each line-number line
155  # with the numbered line, and appends trailing '-' during
156  # substitution so that $LINENO is not a special case at line end.
157  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
159  sed '=' <$as_myself |
160    sed '
161      N
162      s,$,-,
163      : loop
164      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165      t loop
166      s,-$,,
167      s,^['$as_cr_digits']*\n,,
168    ' >$as_me.lineno &&
169  chmod +x $as_me.lineno ||
170    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171   { (exit 1); exit 1; }; }
172
173  # Don't try to exec as it changes $[0], causing all sort of problems
174  # (the dirname of $[0] is not the place where we might find the
175  # original and so on.  Autoconf is especially sensible to this).
176  . ./$as_me.lineno
177  # Exit status is that of the last command.
178  exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183  *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T='	' ;;
185  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190  as_expr=expr
191else
192  as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198  # We could just check for DJGPP; but this test a) works b) is more generic
199  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200  if test -f conf$$.exe; then
201    # Don't use ln at all; we don't have any links
202    as_ln_s='cp -p'
203  else
204    as_ln_s='ln -s'
205  fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207  as_ln_s=ln
208else
209  as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" 	$as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete.  It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="calc.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276#  include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281#  include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292#  include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341  # If the previous option needs an argument, assign it.
342  if test -n "$ac_prev"; then
343    eval "$ac_prev=\$ac_option"
344    ac_prev=
345    continue
346  fi
347
348  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350  # Accept the important Cygnus configure options, so we can diagnose typos.
351
352  case $ac_option in
353
354  -bindir | --bindir | --bindi | --bind | --bin | --bi)
355    ac_prev=bindir ;;
356  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357    bindir=$ac_optarg ;;
358
359  -build | --build | --buil | --bui | --bu)
360    ac_prev=build_alias ;;
361  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362    build_alias=$ac_optarg ;;
363
364  -cache-file | --cache-file | --cache-fil | --cache-fi \
365  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366    ac_prev=cache_file ;;
367  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369    cache_file=$ac_optarg ;;
370
371  --config-cache | -C)
372    cache_file=config.cache ;;
373
374  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375    ac_prev=datadir ;;
376  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377  | --da=*)
378    datadir=$ac_optarg ;;
379
380  -disable-* | --disable-*)
381    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382    # Reject names that are not valid shell variable names.
383    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385   { (exit 1); exit 1; }; }
386    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387    eval "enable_$ac_feature=no" ;;
388
389  -enable-* | --enable-*)
390    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391    # Reject names that are not valid shell variable names.
392    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394   { (exit 1); exit 1; }; }
395    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396    case $ac_option in
397      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398      *) ac_optarg=yes ;;
399    esac
400    eval "enable_$ac_feature='$ac_optarg'" ;;
401
402  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404  | --exec | --exe | --ex)
405    ac_prev=exec_prefix ;;
406  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408  | --exec=* | --exe=* | --ex=*)
409    exec_prefix=$ac_optarg ;;
410
411  -gas | --gas | --ga | --g)
412    # Obsolete; use --with-gas.
413    with_gas=yes ;;
414
415  -help | --help | --hel | --he | -h)
416    ac_init_help=long ;;
417  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418    ac_init_help=recursive ;;
419  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420    ac_init_help=short ;;
421
422  -host | --host | --hos | --ho)
423    ac_prev=host_alias ;;
424  -host=* | --host=* | --hos=* | --ho=*)
425    host_alias=$ac_optarg ;;
426
427  -includedir | --includedir | --includedi | --included | --include \
428  | --includ | --inclu | --incl | --inc)
429    ac_prev=includedir ;;
430  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431  | --includ=* | --inclu=* | --incl=* | --inc=*)
432    includedir=$ac_optarg ;;
433
434  -infodir | --infodir | --infodi | --infod | --info | --inf)
435    ac_prev=infodir ;;
436  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437    infodir=$ac_optarg ;;
438
439  -libdir | --libdir | --libdi | --libd)
440    ac_prev=libdir ;;
441  -libdir=* | --libdir=* | --libdi=* | --libd=*)
442    libdir=$ac_optarg ;;
443
444  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445  | --libexe | --libex | --libe)
446    ac_prev=libexecdir ;;
447  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448  | --libexe=* | --libex=* | --libe=*)
449    libexecdir=$ac_optarg ;;
450
451  -localstatedir | --localstatedir | --localstatedi | --localstated \
452  | --localstate | --localstat | --localsta | --localst \
453  | --locals | --local | --loca | --loc | --lo)
454    ac_prev=localstatedir ;;
455  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458    localstatedir=$ac_optarg ;;
459
460  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461    ac_prev=mandir ;;
462  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463    mandir=$ac_optarg ;;
464
465  -nfp | --nfp | --nf)
466    # Obsolete; use --without-fp.
467    with_fp=no ;;
468
469  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470  | --no-cr | --no-c | -n)
471    no_create=yes ;;
472
473  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475    no_recursion=yes ;;
476
477  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479  | --oldin | --oldi | --old | --ol | --o)
480    ac_prev=oldincludedir ;;
481  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484    oldincludedir=$ac_optarg ;;
485
486  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487    ac_prev=prefix ;;
488  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489    prefix=$ac_optarg ;;
490
491  -program-prefix | --program-prefix | --program-prefi | --program-pref \
492  | --program-pre | --program-pr | --program-p)
493    ac_prev=program_prefix ;;
494  -program-prefix=* | --program-prefix=* | --program-prefi=* \
495  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496    program_prefix=$ac_optarg ;;
497
498  -program-suffix | --program-suffix | --program-suffi | --program-suff \
499  | --program-suf | --program-su | --program-s)
500    ac_prev=program_suffix ;;
501  -program-suffix=* | --program-suffix=* | --program-suffi=* \
502  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503    program_suffix=$ac_optarg ;;
504
505  -program-transform-name | --program-transform-name \
506  | --program-transform-nam | --program-transform-na \
507  | --program-transform-n | --program-transform- \
508  | --program-transform | --program-transfor \
509  | --program-transfo | --program-transf \
510  | --program-trans | --program-tran \
511  | --progr-tra | --program-tr | --program-t)
512    ac_prev=program_transform_name ;;
513  -program-transform-name=* | --program-transform-name=* \
514  | --program-transform-nam=* | --program-transform-na=* \
515  | --program-transform-n=* | --program-transform-=* \
516  | --program-transform=* | --program-transfor=* \
517  | --program-transfo=* | --program-transf=* \
518  | --program-trans=* | --program-tran=* \
519  | --progr-tra=* | --program-tr=* | --program-t=*)
520    program_transform_name=$ac_optarg ;;
521
522  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523  | -silent | --silent | --silen | --sile | --sil)
524    silent=yes ;;
525
526  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527    ac_prev=sbindir ;;
528  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529  | --sbi=* | --sb=*)
530    sbindir=$ac_optarg ;;
531
532  -sharedstatedir | --sharedstatedir | --sharedstatedi \
533  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534  | --sharedst | --shareds | --shared | --share | --shar \
535  | --sha | --sh)
536    ac_prev=sharedstatedir ;;
537  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540  | --sha=* | --sh=*)
541    sharedstatedir=$ac_optarg ;;
542
543  -site | --site | --sit)
544    ac_prev=site ;;
545  -site=* | --site=* | --sit=*)
546    site=$ac_optarg ;;
547
548  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549    ac_prev=srcdir ;;
550  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551    srcdir=$ac_optarg ;;
552
553  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554  | --syscon | --sysco | --sysc | --sys | --sy)
555    ac_prev=sysconfdir ;;
556  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558    sysconfdir=$ac_optarg ;;
559
560  -target | --target | --targe | --targ | --tar | --ta | --t)
561    ac_prev=target_alias ;;
562  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563    target_alias=$ac_optarg ;;
564
565  -v | -verbose | --verbose | --verbos | --verbo | --verb)
566    verbose=yes ;;
567
568  -version | --version | --versio | --versi | --vers | -V)
569    ac_init_version=: ;;
570
571  -with-* | --with-*)
572    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573    # Reject names that are not valid shell variable names.
574    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575      { echo "$as_me: error: invalid package name: $ac_package" >&2
576   { (exit 1); exit 1; }; }
577    ac_package=`echo $ac_package| sed 's/-/_/g'`
578    case $ac_option in
579      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580      *) ac_optarg=yes ;;
581    esac
582    eval "with_$ac_package='$ac_optarg'" ;;
583
584  -without-* | --without-*)
585    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586    # Reject names that are not valid shell variable names.
587    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588      { echo "$as_me: error: invalid package name: $ac_package" >&2
589   { (exit 1); exit 1; }; }
590    ac_package=`echo $ac_package | sed 's/-/_/g'`
591    eval "with_$ac_package=no" ;;
592
593  --x)
594    # Obsolete; use --with-x.
595    with_x=yes ;;
596
597  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598  | --x-incl | --x-inc | --x-in | --x-i)
599    ac_prev=x_includes ;;
600  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602    x_includes=$ac_optarg ;;
603
604  -x-libraries | --x-libraries | --x-librarie | --x-librari \
605  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606    ac_prev=x_libraries ;;
607  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609    x_libraries=$ac_optarg ;;
610
611  -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613   { (exit 1); exit 1; }; }
614    ;;
615
616  *=*)
617    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618    # Reject names that are not valid shell variable names.
619    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621   { (exit 1); exit 1; }; }
622    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623    eval "$ac_envvar='$ac_optarg'"
624    export $ac_envvar ;;
625
626  *)
627    # FIXME: should be removed in autoconf 3.0.
628    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632    ;;
633
634  esac
635done
636
637if test -n "$ac_prev"; then
638  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639  { echo "$as_me: error: missing argument to $ac_option" >&2
640   { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646  eval ac_val=$`echo $ac_var`
647  case $ac_val in
648    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650   { (exit 1); exit 1; }; };;
651  esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656              localstatedir libdir includedir oldincludedir infodir mandir
657do
658  eval ac_val=$`echo $ac_var`
659  case $ac_val in
660    [\\/$]* | ?:[\\/]* ) ;;
661    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662   { (exit 1); exit 1; }; };;
663  esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675  if test "x$build_alias" = x; then
676    cross_compiling=maybe
677    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678    If a cross compiler is detected then cross compile mode will be used." >&2
679  elif test "x$build_alias" != "x$host_alias"; then
680    cross_compiling=yes
681  fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692  ac_srcdir_defaulted=yes
693  # Try the directory containing this script, then its parent.
694  ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696         X"$0" : 'X\(//\)[^/]' \| \
697         X"$0" : 'X\(//\)$' \| \
698         X"$0" : 'X\(/\)' \| \
699         .     : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703  	  /^X\(\/\/\)$/{ s//\1/; q; }
704  	  /^X\(\/\).*/{ s//\1/; q; }
705  	  s/.*/./; q'`
706  srcdir=$ac_confdir
707  if test ! -r $srcdir/$ac_unique_file; then
708    srcdir=..
709  fi
710else
711  ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714  if test "$ac_srcdir_defaulted" = yes; then
715    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716   { (exit 1); exit 1; }; }
717  else
718    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719   { (exit 1); exit 1; }; }
720  fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760  # Omit some internal or obsolete options to make the list less imposing.
761  # This message is too long to be a string in the A/UX 3.1 sh.
762  cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE.  See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773  -h, --help              display this help and exit
774      --help=short        display options specific to this package
775      --help=recursive    display the short help of all the included packages
776  -V, --version           display version information and exit
777  -q, --quiet, --silent   do not print \`checking...' messages
778      --cache-file=FILE   cache test results in FILE [disabled]
779  -C, --config-cache      alias for \`--cache-file=config.cache'
780  -n, --no-create         do not create output files
781      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785  cat <<_ACEOF
786Installation directories:
787  --prefix=PREFIX         install architecture-independent files in PREFIX
788                          [$ac_default_prefix]
789  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790                          [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800  --bindir=DIR           user executables [EPREFIX/bin]
801  --sbindir=DIR          system admin executables [EPREFIX/sbin]
802  --libexecdir=DIR       program executables [EPREFIX/libexec]
803  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
804  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
805  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
806  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
807  --libdir=DIR           object code libraries [EPREFIX/lib]
808  --includedir=DIR       C header files [PREFIX/include]
809  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810  --infodir=DIR          info documentation [PREFIX/info]
811  --mandir=DIR           man documentation [PREFIX/man]
812_ACEOF
813
814  cat <<\_ACEOF
815
816Program names:
817  --program-prefix=PREFIX            prepend PREFIX to installed program names
818  --program-suffix=SUFFIX            append SUFFIX to installed program names
819  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
820_ACEOF
821fi
822
823if test -n "$ac_init_help"; then
824
825  cat <<\_ACEOF
826
827Optional Features:
828  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
829  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
830  --disable-dependency-tracking Speeds up one-time builds
831  --enable-dependency-tracking  Do not reject slow dependency extractors
832  --enable-maintainer-mode enable make rules and dependencies not useful
833                          (and sometimes confusing) to the casual installer
834
835Some influential environment variables:
836  CC          C compiler command
837  CFLAGS      C compiler flags
838  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
839              nonstandard directory <lib dir>
840  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
841              headers in a nonstandard directory <include dir>
842  CPP         C preprocessor
843
844Use these variables to override the choices made by `configure' or to help
845it to find libraries and programs with nonstandard names/locations.
846
847_ACEOF
848fi
849
850if test "$ac_init_help" = "recursive"; then
851  # If there are subdirs, report their specific --help.
852  ac_popdir=`pwd`
853  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
854    test -d $ac_dir || continue
855    ac_builddir=.
856
857if test "$ac_dir" != .; then
858  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
859  # A "../" for each directory in $ac_dir_suffix.
860  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
861else
862  ac_dir_suffix= ac_top_builddir=
863fi
864
865case $srcdir in
866  .)  # No --srcdir option.  We are building in place.
867    ac_srcdir=.
868    if test -z "$ac_top_builddir"; then
869       ac_top_srcdir=.
870    else
871       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
872    fi ;;
873  [\\/]* | ?:[\\/]* )  # Absolute path.
874    ac_srcdir=$srcdir$ac_dir_suffix;
875    ac_top_srcdir=$srcdir ;;
876  *) # Relative path.
877    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
878    ac_top_srcdir=$ac_top_builddir$srcdir ;;
879esac
880# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
881# absolute.
882ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
883ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
884ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
885ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
886
887    cd $ac_dir
888    # Check for guested configure; otherwise get Cygnus style configure.
889    if test -f $ac_srcdir/configure.gnu; then
890      echo
891      $SHELL $ac_srcdir/configure.gnu  --help=recursive
892    elif test -f $ac_srcdir/configure; then
893      echo
894      $SHELL $ac_srcdir/configure  --help=recursive
895    elif test -f $ac_srcdir/configure.ac ||
896           test -f $ac_srcdir/configure.in; then
897      echo
898      $ac_configure --help
899    else
900      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
901    fi
902    cd $ac_popdir
903  done
904fi
905
906test -n "$ac_init_help" && exit 0
907if $ac_init_version; then
908  cat <<\_ACEOF
909
910Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
911Free Software Foundation, Inc.
912This configure script is free software; the Free Software Foundation
913gives unlimited permission to copy, distribute and modify it.
914_ACEOF
915  exit 0
916fi
917exec 5>config.log
918cat >&5 <<_ACEOF
919This file contains any messages produced by compilers while
920running configure, to aid debugging if configure makes a mistake.
921
922It was created by $as_me, which was
923generated by GNU Autoconf 2.53.  Invocation command line was
924
925  $ $0 $@
926
927_ACEOF
928{
929cat <<_ASUNAME
930## --------- ##
931## Platform. ##
932## --------- ##
933
934hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
935uname -m = `(uname -m) 2>/dev/null || echo unknown`
936uname -r = `(uname -r) 2>/dev/null || echo unknown`
937uname -s = `(uname -s) 2>/dev/null || echo unknown`
938uname -v = `(uname -v) 2>/dev/null || echo unknown`
939
940/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
941/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
942
943/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
944/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
945/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
946hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
947/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
948/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
949/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
950
951_ASUNAME
952
953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
954for as_dir in $PATH
955do
956  IFS=$as_save_IFS
957  test -z "$as_dir" && as_dir=.
958  echo "PATH: $as_dir"
959done
960
961} >&5
962
963cat >&5 <<_ACEOF
964
965
966## ----------- ##
967## Core tests. ##
968## ----------- ##
969
970_ACEOF
971
972
973# Keep a trace of the command line.
974# Strip out --no-create and --no-recursion so they do not pile up.
975# Also quote any args containing shell meta-characters.
976ac_configure_args=
977ac_sep=
978for ac_arg
979do
980  case $ac_arg in
981  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982  | --no-cr | --no-c | -n ) continue ;;
983  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985    continue ;;
986  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
987    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
988  esac
989  case " $ac_configure_args " in
990    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
991    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
992       ac_sep=" " ;;
993  esac
994  # Get rid of the leading space.
995done
996
997# When interrupted or exit'd, cleanup temporary files, and complete
998# config.log.  We remove comments because anyway the quotes in there
999# would cause problems or look ugly.
1000# WARNING: Be sure not to use single quotes in there, as some shells,
1001# such as our DU 5.0 friend, will then `close' the trap.
1002trap 'exit_status=$?
1003  # Save into config.log some information that might help in debugging.
1004  {
1005    echo
1006    cat <<\_ASBOX
1007## ---------------- ##
1008## Cache variables. ##
1009## ---------------- ##
1010_ASBOX
1011    echo
1012    # The following way of writing the cache mishandles newlines in values,
1013{
1014  (set) 2>&1 |
1015    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1016    *ac_space=\ *)
1017      sed -n \
1018        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1019    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1020      ;;
1021    *)
1022      sed -n \
1023        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1024      ;;
1025    esac;
1026}
1027    echo
1028    if test -s confdefs.h; then
1029      cat <<\_ASBOX
1030## ----------- ##
1031## confdefs.h. ##
1032## ----------- ##
1033_ASBOX
1034      echo
1035      sed "/^$/d" confdefs.h
1036      echo
1037    fi
1038    test "$ac_signal" != 0 &&
1039      echo "$as_me: caught signal $ac_signal"
1040    echo "$as_me: exit $exit_status"
1041  } >&5
1042  rm -f core core.* *.core &&
1043  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1044    exit $exit_status
1045     ' 0
1046for ac_signal in 1 2 13 15; do
1047  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1048done
1049ac_signal=0
1050
1051# confdefs.h avoids OS command line length limits that DEFS can exceed.
1052rm -rf conftest* confdefs.h
1053# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1054echo >confdefs.h
1055
1056# Predefined preprocessor variables.
1057
1058cat >>confdefs.h <<_ACEOF
1059#define PACKAGE_NAME "$PACKAGE_NAME"
1060_ACEOF
1061
1062
1063cat >>confdefs.h <<_ACEOF
1064#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1065_ACEOF
1066
1067
1068cat >>confdefs.h <<_ACEOF
1069#define PACKAGE_VERSION "$PACKAGE_VERSION"
1070_ACEOF
1071
1072
1073cat >>confdefs.h <<_ACEOF
1074#define PACKAGE_STRING "$PACKAGE_STRING"
1075_ACEOF
1076
1077
1078cat >>confdefs.h <<_ACEOF
1079#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1080_ACEOF
1081
1082
1083# Let the site file select an alternate cache file if it wants to.
1084# Prefer explicitly selected file to automatically selected ones.
1085if test -z "$CONFIG_SITE"; then
1086  if test "x$prefix" != xNONE; then
1087    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1088  else
1089    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1090  fi
1091fi
1092for ac_site_file in $CONFIG_SITE; do
1093  if test -r "$ac_site_file"; then
1094    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1095echo "$as_me: loading site script $ac_site_file" >&6;}
1096    sed 's/^/| /' "$ac_site_file" >&5
1097    . "$ac_site_file"
1098  fi
1099done
1100
1101if test -r "$cache_file"; then
1102  # Some versions of bash will fail to source /dev/null (special
1103  # files actually), so we avoid doing that.
1104  if test -f "$cache_file"; then
1105    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1106echo "$as_me: loading cache $cache_file" >&6;}
1107    case $cache_file in
1108      [\\/]* | ?:[\\/]* ) . $cache_file;;
1109      *)                      . ./$cache_file;;
1110    esac
1111  fi
1112else
1113  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1114echo "$as_me: creating cache $cache_file" >&6;}
1115  >$cache_file
1116fi
1117
1118# Check that the precious variables saved in the cache have kept the same
1119# value.
1120ac_cache_corrupted=false
1121for ac_var in `(set) 2>&1 |
1122               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1123  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1124  eval ac_new_set=\$ac_env_${ac_var}_set
1125  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1126  eval ac_new_val="\$ac_env_${ac_var}_value"
1127  case $ac_old_set,$ac_new_set in
1128    set,)
1129      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1130echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1131      ac_cache_corrupted=: ;;
1132    ,set)
1133      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1134echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1135      ac_cache_corrupted=: ;;
1136    ,);;
1137    *)
1138      if test "x$ac_old_val" != "x$ac_new_val"; then
1139        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1140echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1141        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1142echo "$as_me:   former value:  $ac_old_val" >&2;}
1143        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1144echo "$as_me:   current value: $ac_new_val" >&2;}
1145        ac_cache_corrupted=:
1146      fi;;
1147  esac
1148  # Pass precious variables to config.status.
1149  if test "$ac_new_set" = set; then
1150    case $ac_new_val in
1151    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1152      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1153    *) ac_arg=$ac_var=$ac_new_val ;;
1154    esac
1155    case " $ac_configure_args " in
1156      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1157      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1158    esac
1159  fi
1160done
1161if $ac_cache_corrupted; then
1162  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1163echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1164  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1165echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1166   { (exit 1); exit 1; }; }
1167fi
1168
1169ac_ext=c
1170ac_cpp='$CPP $CPPFLAGS'
1171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1173ac_compiler_gnu=$ac_cv_c_compiler_gnu
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192# Add the stamp file to the list of files AC keeps track of,
1193# along with our hook.
1194ac_config_headers="$ac_config_headers calc.h"
1195
1196
1197
1198am__api_version="1.6"
1199ac_aux_dir=
1200for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1201  if test -f $ac_dir/install-sh; then
1202    ac_aux_dir=$ac_dir
1203    ac_install_sh="$ac_aux_dir/install-sh -c"
1204    break
1205  elif test -f $ac_dir/install.sh; then
1206    ac_aux_dir=$ac_dir
1207    ac_install_sh="$ac_aux_dir/install.sh -c"
1208    break
1209  elif test -f $ac_dir/shtool; then
1210    ac_aux_dir=$ac_dir
1211    ac_install_sh="$ac_aux_dir/shtool install -c"
1212    break
1213  fi
1214done
1215if test -z "$ac_aux_dir"; then
1216  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1217echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1218   { (exit 1); exit 1; }; }
1219fi
1220ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1221ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1222ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1223
1224# Find a good install program.  We prefer a C program (faster),
1225# so one script is as good as another.  But avoid the broken or
1226# incompatible versions:
1227# SysV /etc/install, /usr/sbin/install
1228# SunOS /usr/etc/install
1229# IRIX /sbin/install
1230# AIX /bin/install
1231# AmigaOS /C/install, which installs bootblocks on floppy discs
1232# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1233# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1234# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1235# ./install, which can be erroneously created by make from ./install.sh.
1236echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1237echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1238if test -z "$INSTALL"; then
1239if test "${ac_cv_path_install+set}" = set; then
1240  echo $ECHO_N "(cached) $ECHO_C" >&6
1241else
1242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243for as_dir in $PATH
1244do
1245  IFS=$as_save_IFS
1246  test -z "$as_dir" && as_dir=.
1247  # Account for people who put trailing slashes in PATH elements.
1248case $as_dir/ in
1249  ./ | .// | /cC/* | \
1250  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1251  /usr/ucb/* ) ;;
1252  *)
1253    # OSF1 and SCO ODT 3.0 have their own names for install.
1254    # Don't use installbsd from OSF since it installs stuff as root
1255    # by default.
1256    for ac_prog in ginstall scoinst install; do
1257      for ac_exec_ext in '' $ac_executable_extensions; do
1258        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1259          if test $ac_prog = install &&
1260            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1261            # AIX install.  It has an incompatible calling convention.
1262            :
1263          elif test $ac_prog = install &&
1264            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1265            # program-specific install script used by HP pwplus--don't use.
1266            :
1267          else
1268            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1269            break 3
1270          fi
1271        fi
1272      done
1273    done
1274    ;;
1275esac
1276done
1277
1278
1279fi
1280  if test "${ac_cv_path_install+set}" = set; then
1281    INSTALL=$ac_cv_path_install
1282  else
1283    # As a last resort, use the slow shell script.  We don't cache a
1284    # path for INSTALL within a source directory, because that will
1285    # break other packages using the cache if that directory is
1286    # removed, or if the path is relative.
1287    INSTALL=$ac_install_sh
1288  fi
1289fi
1290echo "$as_me:$LINENO: result: $INSTALL" >&5
1291echo "${ECHO_T}$INSTALL" >&6
1292
1293# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1294# It thinks the first close brace ends the variable substitution.
1295test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1296
1297test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1298
1299test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1300
1301echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1302echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1303# Just in case
1304sleep 1
1305echo timestamp > conftest.file
1306# Do `set' in a subshell so we don't clobber the current shell's
1307# arguments.  Must try -L first in case configure is actually a
1308# symlink; some systems play weird games with the mod time of symlinks
1309# (eg FreeBSD returns the mod time of the symlink's containing
1310# directory).
1311if (
1312   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1313   if test "$*" = "X"; then
1314      # -L didn't work.
1315      set X `ls -t $srcdir/configure conftest.file`
1316   fi
1317   rm -f conftest.file
1318   if test "$*" != "X $srcdir/configure conftest.file" \
1319      && test "$*" != "X conftest.file $srcdir/configure"; then
1320
1321      # If neither matched, then we have a broken ls.  This can happen
1322      # if, for instance, CONFIG_SHELL is bash and it inherits a
1323      # broken ls alias from the environment.  This has actually
1324      # happened.  Such a system could not be considered "sane".
1325      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1326alias in your environment" >&5
1327echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1328alias in your environment" >&2;}
1329   { (exit 1); exit 1; }; }
1330   fi
1331
1332   test "$2" = conftest.file
1333   )
1334then
1335   # Ok.
1336   :
1337else
1338   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1339Check your system clock" >&5
1340echo "$as_me: error: newly created file is older than distributed files!
1341Check your system clock" >&2;}
1342   { (exit 1); exit 1; }; }
1343fi
1344echo "$as_me:$LINENO: result: yes" >&5
1345echo "${ECHO_T}yes" >&6
1346test "$program_prefix" != NONE &&
1347  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1348# Use a double $ so make ignores it.
1349test "$program_suffix" != NONE &&
1350  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1351# Double any \ or $.  echo might interpret backslashes.
1352# By default was `s,x,x', remove it if useless.
1353cat <<\_ACEOF >conftest.sed
1354s/[\\$]/&&/g;s/;s,x,x,$//
1355_ACEOF
1356program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1357rm conftest.sed
1358
1359
1360# expand $ac_aux_dir to an absolute path
1361am_aux_dir=`cd $ac_aux_dir && pwd`
1362
1363test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1364# Use eval to expand $SHELL
1365if eval "$MISSING --run true"; then
1366  am_missing_run="$MISSING --run "
1367else
1368  am_missing_run=
1369  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1370echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1371fi
1372
1373for ac_prog in gawk mawk nawk awk
1374do
1375  # Extract the first word of "$ac_prog", so it can be a program name with args.
1376set dummy $ac_prog; ac_word=$2
1377echo "$as_me:$LINENO: checking for $ac_word" >&5
1378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379if test "${ac_cv_prog_AWK+set}" = set; then
1380  echo $ECHO_N "(cached) $ECHO_C" >&6
1381else
1382  if test -n "$AWK"; then
1383  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1384else
1385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386for as_dir in $PATH
1387do
1388  IFS=$as_save_IFS
1389  test -z "$as_dir" && as_dir=.
1390  for ac_exec_ext in '' $ac_executable_extensions; do
1391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392    ac_cv_prog_AWK="$ac_prog"
1393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394    break 2
1395  fi
1396done
1397done
1398
1399fi
1400fi
1401AWK=$ac_cv_prog_AWK
1402if test -n "$AWK"; then
1403  echo "$as_me:$LINENO: result: $AWK" >&5
1404echo "${ECHO_T}$AWK" >&6
1405else
1406  echo "$as_me:$LINENO: result: no" >&5
1407echo "${ECHO_T}no" >&6
1408fi
1409
1410  test -n "$AWK" && break
1411done
1412
1413echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1414echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1415set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1416if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1417  echo $ECHO_N "(cached) $ECHO_C" >&6
1418else
1419  cat >conftest.make <<\_ACEOF
1420all:
1421	@echo 'ac_maketemp="${MAKE}"'
1422_ACEOF
1423# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1424eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1425if test -n "$ac_maketemp"; then
1426  eval ac_cv_prog_make_${ac_make}_set=yes
1427else
1428  eval ac_cv_prog_make_${ac_make}_set=no
1429fi
1430rm -f conftest.make
1431fi
1432if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1433  echo "$as_me:$LINENO: result: yes" >&5
1434echo "${ECHO_T}yes" >&6
1435  SET_MAKE=
1436else
1437  echo "$as_me:$LINENO: result: no" >&5
1438echo "${ECHO_T}no" >&6
1439  SET_MAKE="MAKE=${MAKE-make}"
1440fi
1441
1442 # test to see if srcdir already configured
1443if test "`cd $srcdir && pwd`" != "`pwd`" &&
1444   test -f $srcdir/config.status; then
1445  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1446echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1447   { (exit 1); exit 1; }; }
1448fi
1449
1450# Define the identity of the package.
1451 PACKAGE=calc
1452 VERSION=1.1
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE "$PACKAGE"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define VERSION "$VERSION"
1462_ACEOF
1463
1464# Some tools Automake needs.
1465
1466ACLOCAL=${ACLOCAL-"${am_missing_run}"aclocal-${am__api_version}""}
1467
1468
1469AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1470
1471
1472AUTOMAKE=${AUTOMAKE-"${am_missing_run}"automake-${am__api_version}""}
1473
1474
1475AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1476
1477
1478MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1479
1480
1481AMTAR=${AMTAR-"${am_missing_run}tar"}
1482
1483install_sh=${install_sh-"$am_aux_dir/install-sh"}
1484
1485# Installed binaries are usually stripped using `strip' when the user
1486# run `make install-strip'.  However `strip' might not be the right
1487# tool to use in cross-compilation environments, therefore Automake
1488# will honor the `STRIP' environment variable to overrule this program.
1489if test "$cross_compiling" != no; then
1490  if test -n "$ac_tool_prefix"; then
1491  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1492set dummy ${ac_tool_prefix}strip; ac_word=$2
1493echo "$as_me:$LINENO: checking for $ac_word" >&5
1494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495if test "${ac_cv_prog_STRIP+set}" = set; then
1496  echo $ECHO_N "(cached) $ECHO_C" >&6
1497else
1498  if test -n "$STRIP"; then
1499  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1500else
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504  IFS=$as_save_IFS
1505  test -z "$as_dir" && as_dir=.
1506  for ac_exec_ext in '' $ac_executable_extensions; do
1507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510    break 2
1511  fi
1512done
1513done
1514
1515fi
1516fi
1517STRIP=$ac_cv_prog_STRIP
1518if test -n "$STRIP"; then
1519  echo "$as_me:$LINENO: result: $STRIP" >&5
1520echo "${ECHO_T}$STRIP" >&6
1521else
1522  echo "$as_me:$LINENO: result: no" >&5
1523echo "${ECHO_T}no" >&6
1524fi
1525
1526fi
1527if test -z "$ac_cv_prog_STRIP"; then
1528  ac_ct_STRIP=$STRIP
1529  # Extract the first word of "strip", so it can be a program name with args.
1530set dummy strip; ac_word=$2
1531echo "$as_me:$LINENO: checking for $ac_word" >&5
1532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1534  echo $ECHO_N "(cached) $ECHO_C" >&6
1535else
1536  if test -n "$ac_ct_STRIP"; then
1537  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1538else
1539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540for as_dir in $PATH
1541do
1542  IFS=$as_save_IFS
1543  test -z "$as_dir" && as_dir=.
1544  for ac_exec_ext in '' $ac_executable_extensions; do
1545  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546    ac_cv_prog_ac_ct_STRIP="strip"
1547    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548    break 2
1549  fi
1550done
1551done
1552
1553  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1554fi
1555fi
1556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1557if test -n "$ac_ct_STRIP"; then
1558  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1559echo "${ECHO_T}$ac_ct_STRIP" >&6
1560else
1561  echo "$as_me:$LINENO: result: no" >&5
1562echo "${ECHO_T}no" >&6
1563fi
1564
1565  STRIP=$ac_ct_STRIP
1566else
1567  STRIP="$ac_cv_prog_STRIP"
1568fi
1569
1570fi
1571INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1572
1573# We need awk for the "check" target.  The system "awk" is bad on
1574# some platforms.
1575
1576
1577
1578
1579ac_ext=c
1580ac_cpp='$CPP $CPPFLAGS'
1581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1583ac_compiler_gnu=$ac_cv_c_compiler_gnu
1584if test -n "$ac_tool_prefix"; then
1585  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1586set dummy ${ac_tool_prefix}gcc; ac_word=$2
1587echo "$as_me:$LINENO: checking for $ac_word" >&5
1588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589if test "${ac_cv_prog_CC+set}" = set; then
1590  echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592  if test -n "$CC"; then
1593  ac_cv_prog_CC="$CC" # Let the user override the test.
1594else
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598  IFS=$as_save_IFS
1599  test -z "$as_dir" && as_dir=.
1600  for ac_exec_ext in '' $ac_executable_extensions; do
1601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604    break 2
1605  fi
1606done
1607done
1608
1609fi
1610fi
1611CC=$ac_cv_prog_CC
1612if test -n "$CC"; then
1613  echo "$as_me:$LINENO: result: $CC" >&5
1614echo "${ECHO_T}$CC" >&6
1615else
1616  echo "$as_me:$LINENO: result: no" >&5
1617echo "${ECHO_T}no" >&6
1618fi
1619
1620fi
1621if test -z "$ac_cv_prog_CC"; then
1622  ac_ct_CC=$CC
1623  # Extract the first word of "gcc", so it can be a program name with args.
1624set dummy gcc; ac_word=$2
1625echo "$as_me:$LINENO: checking for $ac_word" >&5
1626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1627if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1628  echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630  if test -n "$ac_ct_CC"; then
1631  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1632else
1633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634for as_dir in $PATH
1635do
1636  IFS=$as_save_IFS
1637  test -z "$as_dir" && as_dir=.
1638  for ac_exec_ext in '' $ac_executable_extensions; do
1639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1640    ac_cv_prog_ac_ct_CC="gcc"
1641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1642    break 2
1643  fi
1644done
1645done
1646
1647fi
1648fi
1649ac_ct_CC=$ac_cv_prog_ac_ct_CC
1650if test -n "$ac_ct_CC"; then
1651  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1652echo "${ECHO_T}$ac_ct_CC" >&6
1653else
1654  echo "$as_me:$LINENO: result: no" >&5
1655echo "${ECHO_T}no" >&6
1656fi
1657
1658  CC=$ac_ct_CC
1659else
1660  CC="$ac_cv_prog_CC"
1661fi
1662
1663if test -z "$CC"; then
1664  if test -n "$ac_tool_prefix"; then
1665  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1666set dummy ${ac_tool_prefix}cc; ac_word=$2
1667echo "$as_me:$LINENO: checking for $ac_word" >&5
1668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669if test "${ac_cv_prog_CC+set}" = set; then
1670  echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
1672  if test -n "$CC"; then
1673  ac_cv_prog_CC="$CC" # Let the user override the test.
1674else
1675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676for as_dir in $PATH
1677do
1678  IFS=$as_save_IFS
1679  test -z "$as_dir" && as_dir=.
1680  for ac_exec_ext in '' $ac_executable_extensions; do
1681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682    ac_cv_prog_CC="${ac_tool_prefix}cc"
1683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684    break 2
1685  fi
1686done
1687done
1688
1689fi
1690fi
1691CC=$ac_cv_prog_CC
1692if test -n "$CC"; then
1693  echo "$as_me:$LINENO: result: $CC" >&5
1694echo "${ECHO_T}$CC" >&6
1695else
1696  echo "$as_me:$LINENO: result: no" >&5
1697echo "${ECHO_T}no" >&6
1698fi
1699
1700fi
1701if test -z "$ac_cv_prog_CC"; then
1702  ac_ct_CC=$CC
1703  # Extract the first word of "cc", so it can be a program name with args.
1704set dummy cc; ac_word=$2
1705echo "$as_me:$LINENO: checking for $ac_word" >&5
1706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708  echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710  if test -n "$ac_ct_CC"; then
1711  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712else
1713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714for as_dir in $PATH
1715do
1716  IFS=$as_save_IFS
1717  test -z "$as_dir" && as_dir=.
1718  for ac_exec_ext in '' $ac_executable_extensions; do
1719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720    ac_cv_prog_ac_ct_CC="cc"
1721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722    break 2
1723  fi
1724done
1725done
1726
1727fi
1728fi
1729ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730if test -n "$ac_ct_CC"; then
1731  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1732echo "${ECHO_T}$ac_ct_CC" >&6
1733else
1734  echo "$as_me:$LINENO: result: no" >&5
1735echo "${ECHO_T}no" >&6
1736fi
1737
1738  CC=$ac_ct_CC
1739else
1740  CC="$ac_cv_prog_CC"
1741fi
1742
1743fi
1744if test -z "$CC"; then
1745  # Extract the first word of "cc", so it can be a program name with args.
1746set dummy cc; ac_word=$2
1747echo "$as_me:$LINENO: checking for $ac_word" >&5
1748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749if test "${ac_cv_prog_CC+set}" = set; then
1750  echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752  if test -n "$CC"; then
1753  ac_cv_prog_CC="$CC" # Let the user override the test.
1754else
1755  ac_prog_rejected=no
1756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757for as_dir in $PATH
1758do
1759  IFS=$as_save_IFS
1760  test -z "$as_dir" && as_dir=.
1761  for ac_exec_ext in '' $ac_executable_extensions; do
1762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1764       ac_prog_rejected=yes
1765       continue
1766     fi
1767    ac_cv_prog_CC="cc"
1768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769    break 2
1770  fi
1771done
1772done
1773
1774if test $ac_prog_rejected = yes; then
1775  # We found a bogon in the path, so make sure we never use it.
1776  set dummy $ac_cv_prog_CC
1777  shift
1778  if test $# != 0; then
1779    # We chose a different compiler from the bogus one.
1780    # However, it has the same basename, so the bogon will be chosen
1781    # first if we set CC to just the basename; use the full file name.
1782    shift
1783    set dummy "$as_dir/$ac_word" ${1+"$@"}
1784    shift
1785    ac_cv_prog_CC="$@"
1786  fi
1787fi
1788fi
1789fi
1790CC=$ac_cv_prog_CC
1791if test -n "$CC"; then
1792  echo "$as_me:$LINENO: result: $CC" >&5
1793echo "${ECHO_T}$CC" >&6
1794else
1795  echo "$as_me:$LINENO: result: no" >&5
1796echo "${ECHO_T}no" >&6
1797fi
1798
1799fi
1800if test -z "$CC"; then
1801  if test -n "$ac_tool_prefix"; then
1802  for ac_prog in cl
1803  do
1804    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1805set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_CC+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811  if test -n "$CC"; then
1812  ac_cv_prog_CC="$CC" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819  for ac_exec_ext in '' $ac_executable_extensions; do
1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823    break 2
1824  fi
1825done
1826done
1827
1828fi
1829fi
1830CC=$ac_cv_prog_CC
1831if test -n "$CC"; then
1832  echo "$as_me:$LINENO: result: $CC" >&5
1833echo "${ECHO_T}$CC" >&6
1834else
1835  echo "$as_me:$LINENO: result: no" >&5
1836echo "${ECHO_T}no" >&6
1837fi
1838
1839    test -n "$CC" && break
1840  done
1841fi
1842if test -z "$CC"; then
1843  ac_ct_CC=$CC
1844  for ac_prog in cl
1845do
1846  # Extract the first word of "$ac_prog", so it can be a program name with args.
1847set dummy $ac_prog; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1851  echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853  if test -n "$ac_ct_CC"; then
1854  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1855else
1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in $PATH
1858do
1859  IFS=$as_save_IFS
1860  test -z "$as_dir" && as_dir=.
1861  for ac_exec_ext in '' $ac_executable_extensions; do
1862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863    ac_cv_prog_ac_ct_CC="$ac_prog"
1864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865    break 2
1866  fi
1867done
1868done
1869
1870fi
1871fi
1872ac_ct_CC=$ac_cv_prog_ac_ct_CC
1873if test -n "$ac_ct_CC"; then
1874  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1875echo "${ECHO_T}$ac_ct_CC" >&6
1876else
1877  echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881  test -n "$ac_ct_CC" && break
1882done
1883
1884  CC=$ac_ct_CC
1885fi
1886
1887fi
1888
1889
1890test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1891echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1892   { (exit 1); exit 1; }; }
1893
1894# Provide some information about the compiler.
1895echo "$as_me:$LINENO:" \
1896     "checking for C compiler version" >&5
1897ac_compiler=`set X $ac_compile; echo $2`
1898{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1899  (eval $ac_compiler --version </dev/null >&5) 2>&5
1900  ac_status=$?
1901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902  (exit $ac_status); }
1903{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1904  (eval $ac_compiler -v </dev/null >&5) 2>&5
1905  ac_status=$?
1906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907  (exit $ac_status); }
1908{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1909  (eval $ac_compiler -V </dev/null >&5) 2>&5
1910  ac_status=$?
1911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912  (exit $ac_status); }
1913
1914cat >conftest.$ac_ext <<_ACEOF
1915#line $LINENO "configure"
1916#include "confdefs.h"
1917
1918#ifdef F77_DUMMY_MAIN
1919#  ifdef __cplusplus
1920     extern "C"
1921#  endif
1922   int F77_DUMMY_MAIN() { return 1; }
1923#endif
1924int
1925main ()
1926{
1927
1928  ;
1929  return 0;
1930}
1931_ACEOF
1932ac_clean_files_save=$ac_clean_files
1933ac_clean_files="$ac_clean_files a.out a.exe"
1934# Try to create an executable without -o first, disregard a.out.
1935# It will help us diagnose broken compilers, and finding out an intuition
1936# of exeext.
1937echo "$as_me:$LINENO: checking for C compiler default output" >&5
1938echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1939ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1940if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1941  (eval $ac_link_default) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }; then
1945  # Find the output, starting from the most likely.  This scheme is
1946# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1947# resort.
1948
1949# Be careful to initialize this variable, since it used to be cached.
1950# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1951ac_cv_exeext=
1952for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1953                ls a.out conftest 2>/dev/null;
1954                ls a.* conftest.* 2>/dev/null`; do
1955  case $ac_file in
1956    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1957    a.out ) # We found the default executable, but exeext='' is most
1958            # certainly right.
1959            break;;
1960    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1961          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1962          export ac_cv_exeext
1963          break;;
1964    * ) break;;
1965  esac
1966done
1967else
1968  echo "$as_me: failed program was:" >&5
1969cat conftest.$ac_ext >&5
1970{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1971echo "$as_me: error: C compiler cannot create executables" >&2;}
1972   { (exit 77); exit 77; }; }
1973fi
1974
1975ac_exeext=$ac_cv_exeext
1976echo "$as_me:$LINENO: result: $ac_file" >&5
1977echo "${ECHO_T}$ac_file" >&6
1978
1979# Check the compiler produces executables we can run.  If not, either
1980# the compiler is broken, or we cross compile.
1981echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1982echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1983# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1984# If not cross compiling, check that we can run a simple program.
1985if test "$cross_compiling" != yes; then
1986  if { ac_try='./$ac_file'
1987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988  (eval $ac_try) 2>&5
1989  ac_status=$?
1990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991  (exit $ac_status); }; }; then
1992    cross_compiling=no
1993  else
1994    if test "$cross_compiling" = maybe; then
1995	cross_compiling=yes
1996    else
1997	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1998If you meant to cross compile, use \`--host'." >&5
1999echo "$as_me: error: cannot run C compiled programs.
2000If you meant to cross compile, use \`--host'." >&2;}
2001   { (exit 1); exit 1; }; }
2002    fi
2003  fi
2004fi
2005echo "$as_me:$LINENO: result: yes" >&5
2006echo "${ECHO_T}yes" >&6
2007
2008rm -f a.out a.exe conftest$ac_cv_exeext
2009ac_clean_files=$ac_clean_files_save
2010# Check the compiler produces executables we can run.  If not, either
2011# the compiler is broken, or we cross compile.
2012echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2013echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2014echo "$as_me:$LINENO: result: $cross_compiling" >&5
2015echo "${ECHO_T}$cross_compiling" >&6
2016
2017echo "$as_me:$LINENO: checking for suffix of executables" >&5
2018echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2020  (eval $ac_link) 2>&5
2021  ac_status=$?
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); }; then
2024  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2025# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2026# work properly (i.e., refer to `conftest.exe'), while it won't with
2027# `rm'.
2028for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2029  case $ac_file in
2030    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2031    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032          export ac_cv_exeext
2033          break;;
2034    * ) break;;
2035  esac
2036done
2037else
2038  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2039echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2040   { (exit 1); exit 1; }; }
2041fi
2042
2043rm -f conftest$ac_cv_exeext
2044echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2045echo "${ECHO_T}$ac_cv_exeext" >&6
2046
2047rm -f conftest.$ac_ext
2048EXEEXT=$ac_cv_exeext
2049ac_exeext=$EXEEXT
2050echo "$as_me:$LINENO: checking for suffix of object files" >&5
2051echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2052if test "${ac_cv_objext+set}" = set; then
2053  echo $ECHO_N "(cached) $ECHO_C" >&6
2054else
2055  cat >conftest.$ac_ext <<_ACEOF
2056#line $LINENO "configure"
2057#include "confdefs.h"
2058
2059#ifdef F77_DUMMY_MAIN
2060#  ifdef __cplusplus
2061     extern "C"
2062#  endif
2063   int F77_DUMMY_MAIN() { return 1; }
2064#endif
2065int
2066main ()
2067{
2068
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073rm -f conftest.o conftest.obj
2074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2075  (eval $ac_compile) 2>&5
2076  ac_status=$?
2077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078  (exit $ac_status); }; then
2079  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2080  case $ac_file in
2081    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2082    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2083       break;;
2084  esac
2085done
2086else
2087  echo "$as_me: failed program was:" >&5
2088cat conftest.$ac_ext >&5
2089{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2090echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2091   { (exit 1); exit 1; }; }
2092fi
2093
2094rm -f conftest.$ac_cv_objext conftest.$ac_ext
2095fi
2096echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2097echo "${ECHO_T}$ac_cv_objext" >&6
2098OBJEXT=$ac_cv_objext
2099ac_objext=$OBJEXT
2100echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2101echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2102if test "${ac_cv_c_compiler_gnu+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  cat >conftest.$ac_ext <<_ACEOF
2106#line $LINENO "configure"
2107#include "confdefs.h"
2108
2109#ifdef F77_DUMMY_MAIN
2110#  ifdef __cplusplus
2111     extern "C"
2112#  endif
2113   int F77_DUMMY_MAIN() { return 1; }
2114#endif
2115int
2116main ()
2117{
2118#ifndef __GNUC__
2119       choke me
2120#endif
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126rm -f conftest.$ac_objext
2127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128  (eval $ac_compile) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); } &&
2132         { ac_try='test -s conftest.$ac_objext'
2133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134  (eval $ac_try) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }; }; then
2138  ac_compiler_gnu=yes
2139else
2140  echo "$as_me: failed program was:" >&5
2141cat conftest.$ac_ext >&5
2142ac_compiler_gnu=no
2143fi
2144rm -f conftest.$ac_objext conftest.$ac_ext
2145ac_cv_c_compiler_gnu=$ac_compiler_gnu
2146
2147fi
2148echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2149echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2150GCC=`test $ac_compiler_gnu = yes && echo yes`
2151ac_test_CFLAGS=${CFLAGS+set}
2152ac_save_CFLAGS=$CFLAGS
2153CFLAGS="-g"
2154echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2155echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2156if test "${ac_cv_prog_cc_g+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160#line $LINENO "configure"
2161#include "confdefs.h"
2162
2163#ifdef F77_DUMMY_MAIN
2164#  ifdef __cplusplus
2165     extern "C"
2166#  endif
2167   int F77_DUMMY_MAIN() { return 1; }
2168#endif
2169int
2170main ()
2171{
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>&5
2180  ac_status=$?
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); } &&
2183         { ac_try='test -s conftest.$ac_objext'
2184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185  (eval $ac_try) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; }; then
2189  ac_cv_prog_cc_g=yes
2190else
2191  echo "$as_me: failed program was:" >&5
2192cat conftest.$ac_ext >&5
2193ac_cv_prog_cc_g=no
2194fi
2195rm -f conftest.$ac_objext conftest.$ac_ext
2196fi
2197echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2199if test "$ac_test_CFLAGS" = set; then
2200  CFLAGS=$ac_save_CFLAGS
2201elif test $ac_cv_prog_cc_g = yes; then
2202  if test "$GCC" = yes; then
2203    CFLAGS="-g -O2"
2204  else
2205    CFLAGS="-g"
2206  fi
2207else
2208  if test "$GCC" = yes; then
2209    CFLAGS="-O2"
2210  else
2211    CFLAGS=
2212  fi
2213fi
2214# Some people use a C++ compiler to compile C.  Since we use `exit',
2215# in C++ we need to declare it.  In case someone uses the same compiler
2216# for both compiling C and C++ we need to have the C++ compiler decide
2217# the declaration of exit, since it's the most demanding environment.
2218cat >conftest.$ac_ext <<_ACEOF
2219#ifndef __cplusplus
2220  choke me
2221#endif
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225  (eval $ac_compile) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  for ac_declaration in \
2236   ''\
2237   '#include <stdlib.h>' \
2238   'extern "C" void std::exit (int) throw (); using std::exit;' \
2239   'extern "C" void std::exit (int); using std::exit;' \
2240   'extern "C" void exit (int) throw ();' \
2241   'extern "C" void exit (int);' \
2242   'void exit (int);'
2243do
2244  cat >conftest.$ac_ext <<_ACEOF
2245#line $LINENO "configure"
2246#include "confdefs.h"
2247#include <stdlib.h>
2248$ac_declaration
2249#ifdef F77_DUMMY_MAIN
2250#  ifdef __cplusplus
2251     extern "C"
2252#  endif
2253   int F77_DUMMY_MAIN() { return 1; }
2254#endif
2255int
2256main ()
2257{
2258exit (42);
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263rm -f conftest.$ac_objext
2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265  (eval $ac_compile) 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  :
2276else
2277  echo "$as_me: failed program was:" >&5
2278cat conftest.$ac_ext >&5
2279continue
2280fi
2281rm -f conftest.$ac_objext conftest.$ac_ext
2282  cat >conftest.$ac_ext <<_ACEOF
2283#line $LINENO "configure"
2284#include "confdefs.h"
2285$ac_declaration
2286#ifdef F77_DUMMY_MAIN
2287#  ifdef __cplusplus
2288     extern "C"
2289#  endif
2290   int F77_DUMMY_MAIN() { return 1; }
2291#endif
2292int
2293main ()
2294{
2295exit (42);
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300rm -f conftest.$ac_objext
2301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302  (eval $ac_compile) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); } &&
2306         { ac_try='test -s conftest.$ac_objext'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; }; then
2312  break
2313else
2314  echo "$as_me: failed program was:" >&5
2315cat conftest.$ac_ext >&5
2316fi
2317rm -f conftest.$ac_objext conftest.$ac_ext
2318done
2319rm -f conftest*
2320if test -n "$ac_declaration"; then
2321  echo '#ifdef __cplusplus' >>confdefs.h
2322  echo $ac_declaration      >>confdefs.h
2323  echo '#endif'             >>confdefs.h
2324fi
2325
2326else
2327  echo "$as_me: failed program was:" >&5
2328cat conftest.$ac_ext >&5
2329fi
2330rm -f conftest.$ac_objext conftest.$ac_ext
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336rm -f .deps 2>/dev/null
2337mkdir .deps 2>/dev/null
2338if test -d .deps; then
2339  DEPDIR=.deps
2340else
2341  # MS-DOS does not allow filenames that begin with a dot.
2342  DEPDIR=_deps
2343fi
2344rmdir .deps 2>/dev/null
2345
2346
2347ac_config_commands="$ac_config_commands depfiles"
2348
2349
2350am_make=${MAKE-make}
2351cat > confinc << 'END'
2352doit:
2353	@echo done
2354END
2355# If we don't find an include directive, just comment out the code.
2356echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2357echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2358am__include="#"
2359am__quote=
2360_am_result=none
2361# First try GNU make style include.
2362echo "include confinc" > confmf
2363# We grep out `Entering directory' and `Leaving directory'
2364# messages which can occur if `w' ends up in MAKEFLAGS.
2365# In particular we don't look at `^make:' because GNU make might
2366# be invoked under some other name (usually "gmake"), in which
2367# case it prints its new name instead of `make'.
2368if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2369   am__include=include
2370   am__quote=
2371   _am_result=GNU
2372fi
2373# Now try BSD make style include.
2374if test "$am__include" = "#"; then
2375   echo '.include "confinc"' > confmf
2376   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2377      am__include=.include
2378      am__quote="\""
2379      _am_result=BSD
2380   fi
2381fi
2382
2383
2384echo "$as_me:$LINENO: result: $_am_result" >&5
2385echo "${ECHO_T}$_am_result" >&6
2386rm -f confinc confmf
2387
2388# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2389if test "${enable_dependency_tracking+set}" = set; then
2390  enableval="$enable_dependency_tracking"
2391
2392fi;
2393if test "x$enable_dependency_tracking" != xno; then
2394  am_depcomp="$ac_aux_dir/depcomp"
2395  AMDEPBACKSLASH='\'
2396fi
2397
2398
2399if test "x$enable_dependency_tracking" != xno; then
2400  AMDEP_TRUE=
2401  AMDEP_FALSE='#'
2402else
2403  AMDEP_TRUE='#'
2404  AMDEP_FALSE=
2405fi
2406
2407
2408
2409
2410depcc="$CC"   am_compiler_list=
2411
2412echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2413echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2414if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2418  # We make a subdir and do the tests there.  Otherwise we can end up
2419  # making bogus files that we don't know about and never remove.  For
2420  # instance it was reported that on HP-UX the gcc test will end up
2421  # making a dummy file named `D' -- because `-MD' means `put the output
2422  # in D'.
2423  mkdir conftest.dir
2424  # Copy depcomp to subdir because otherwise we won't find it if we're
2425  # using a relative directory.
2426  cp "$am_depcomp" conftest.dir
2427  cd conftest.dir
2428
2429  am_cv_CC_dependencies_compiler_type=none
2430  if test "$am_compiler_list" = ""; then
2431     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2432  fi
2433  for depmode in $am_compiler_list; do
2434    # We need to recreate these files for each test, as the compiler may
2435    # overwrite some of them when testing with obscure command lines.
2436    # This happens at least with the AIX C compiler.
2437    echo '#include "conftest.h"' > conftest.c
2438    echo 'int i;' > conftest.h
2439    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2440
2441    case $depmode in
2442    nosideeffect)
2443      # after this tag, mechanisms are not by side-effect, so they'll
2444      # only be used when explicitly requested
2445      if test "x$enable_dependency_tracking" = xyes; then
2446	continue
2447      else
2448	break
2449      fi
2450      ;;
2451    none) break ;;
2452    esac
2453    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2454    # mode.  It turns out that the SunPro C++ compiler does not properly
2455    # handle `-M -o', and we need to detect this.
2456    if depmode=$depmode \
2457       source=conftest.c object=conftest.o \
2458       depfile=conftest.Po tmpdepfile=conftest.TPo \
2459       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2460       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2461       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2462      am_cv_CC_dependencies_compiler_type=$depmode
2463      break
2464    fi
2465  done
2466
2467  cd ..
2468  rm -rf conftest.dir
2469else
2470  am_cv_CC_dependencies_compiler_type=none
2471fi
2472
2473fi
2474echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2475echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2476CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2477
2478
2479# Find a good install program.  We prefer a C program (faster),
2480# so one script is as good as another.  But avoid the broken or
2481# incompatible versions:
2482# SysV /etc/install, /usr/sbin/install
2483# SunOS /usr/etc/install
2484# IRIX /sbin/install
2485# AIX /bin/install
2486# AmigaOS /C/install, which installs bootblocks on floppy discs
2487# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2488# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2489# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2490# ./install, which can be erroneously created by make from ./install.sh.
2491echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2492echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2493if test -z "$INSTALL"; then
2494if test "${ac_cv_path_install+set}" = set; then
2495  echo $ECHO_N "(cached) $ECHO_C" >&6
2496else
2497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500  IFS=$as_save_IFS
2501  test -z "$as_dir" && as_dir=.
2502  # Account for people who put trailing slashes in PATH elements.
2503case $as_dir/ in
2504  ./ | .// | /cC/* | \
2505  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506  /usr/ucb/* ) ;;
2507  *)
2508    # OSF1 and SCO ODT 3.0 have their own names for install.
2509    # Don't use installbsd from OSF since it installs stuff as root
2510    # by default.
2511    for ac_prog in ginstall scoinst install; do
2512      for ac_exec_ext in '' $ac_executable_extensions; do
2513        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2514          if test $ac_prog = install &&
2515            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516            # AIX install.  It has an incompatible calling convention.
2517            :
2518          elif test $ac_prog = install &&
2519            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520            # program-specific install script used by HP pwplus--don't use.
2521            :
2522          else
2523            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524            break 3
2525          fi
2526        fi
2527      done
2528    done
2529    ;;
2530esac
2531done
2532
2533
2534fi
2535  if test "${ac_cv_path_install+set}" = set; then
2536    INSTALL=$ac_cv_path_install
2537  else
2538    # As a last resort, use the slow shell script.  We don't cache a
2539    # path for INSTALL within a source directory, because that will
2540    # break other packages using the cache if that directory is
2541    # removed, or if the path is relative.
2542    INSTALL=$ac_install_sh
2543  fi
2544fi
2545echo "$as_me:$LINENO: result: $INSTALL" >&5
2546echo "${ECHO_T}$INSTALL" >&6
2547
2548# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2549# It thinks the first close brace ends the variable substitution.
2550test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2551
2552test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2553
2554test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2555
2556#
2557# Look for various header files
2558#
2559
2560ac_ext=c
2561ac_cpp='$CPP $CPPFLAGS'
2562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2564ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2566echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2567# On Suns, sometimes $CPP names a directory.
2568if test -n "$CPP" && test -d "$CPP"; then
2569  CPP=
2570fi
2571if test -z "$CPP"; then
2572  if test "${ac_cv_prog_CPP+set}" = set; then
2573  echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575      # Double quotes because CPP needs to be expanded
2576    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2577    do
2578      ac_preproc_ok=false
2579for ac_c_preproc_warn_flag in '' yes
2580do
2581  # Use a header file that comes with gcc, so configuring glibc
2582  # with a fresh cross-compiler works.
2583  # On the NeXT, cc -E runs the code through the compiler's parser,
2584  # not just through cpp. "Syntax error" is here to catch this case.
2585  cat >conftest.$ac_ext <<_ACEOF
2586#line $LINENO "configure"
2587#include "confdefs.h"
2588#include <assert.h>
2589                     Syntax error
2590_ACEOF
2591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2592  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593  ac_status=$?
2594  egrep -v '^ *\+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } >/dev/null; then
2599  if test -s conftest.err; then
2600    ac_cpp_err=$ac_c_preproc_warn_flag
2601  else
2602    ac_cpp_err=
2603  fi
2604else
2605  ac_cpp_err=yes
2606fi
2607if test -z "$ac_cpp_err"; then
2608  :
2609else
2610  echo "$as_me: failed program was:" >&5
2611  cat conftest.$ac_ext >&5
2612  # Broken: fails on valid input.
2613continue
2614fi
2615rm -f conftest.err conftest.$ac_ext
2616
2617  # OK, works on sane cases.  Now check whether non-existent headers
2618  # can be detected and how.
2619  cat >conftest.$ac_ext <<_ACEOF
2620#line $LINENO "configure"
2621#include "confdefs.h"
2622#include <ac_nonexistent.h>
2623_ACEOF
2624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626  ac_status=$?
2627  egrep -v '^ *\+' conftest.er1 >conftest.err
2628  rm -f conftest.er1
2629  cat conftest.err >&5
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); } >/dev/null; then
2632  if test -s conftest.err; then
2633    ac_cpp_err=$ac_c_preproc_warn_flag
2634  else
2635    ac_cpp_err=
2636  fi
2637else
2638  ac_cpp_err=yes
2639fi
2640if test -z "$ac_cpp_err"; then
2641  # Broken: success on invalid input.
2642continue
2643else
2644  echo "$as_me: failed program was:" >&5
2645  cat conftest.$ac_ext >&5
2646  # Passes both tests.
2647ac_preproc_ok=:
2648break
2649fi
2650rm -f conftest.err conftest.$ac_ext
2651
2652done
2653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2654rm -f conftest.err conftest.$ac_ext
2655if $ac_preproc_ok; then
2656  break
2657fi
2658
2659    done
2660    ac_cv_prog_CPP=$CPP
2661
2662fi
2663  CPP=$ac_cv_prog_CPP
2664else
2665  ac_cv_prog_CPP=$CPP
2666fi
2667echo "$as_me:$LINENO: result: $CPP" >&5
2668echo "${ECHO_T}$CPP" >&6
2669ac_preproc_ok=false
2670for ac_c_preproc_warn_flag in '' yes
2671do
2672  # Use a header file that comes with gcc, so configuring glibc
2673  # with a fresh cross-compiler works.
2674  # On the NeXT, cc -E runs the code through the compiler's parser,
2675  # not just through cpp. "Syntax error" is here to catch this case.
2676  cat >conftest.$ac_ext <<_ACEOF
2677#line $LINENO "configure"
2678#include "confdefs.h"
2679#include <assert.h>
2680                     Syntax error
2681_ACEOF
2682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2683  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2684  ac_status=$?
2685  egrep -v '^ *\+' conftest.er1 >conftest.err
2686  rm -f conftest.er1
2687  cat conftest.err >&5
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); } >/dev/null; then
2690  if test -s conftest.err; then
2691    ac_cpp_err=$ac_c_preproc_warn_flag
2692  else
2693    ac_cpp_err=
2694  fi
2695else
2696  ac_cpp_err=yes
2697fi
2698if test -z "$ac_cpp_err"; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702  cat conftest.$ac_ext >&5
2703  # Broken: fails on valid input.
2704continue
2705fi
2706rm -f conftest.err conftest.$ac_ext
2707
2708  # OK, works on sane cases.  Now check whether non-existent headers
2709  # can be detected and how.
2710  cat >conftest.$ac_ext <<_ACEOF
2711#line $LINENO "configure"
2712#include "confdefs.h"
2713#include <ac_nonexistent.h>
2714_ACEOF
2715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2717  ac_status=$?
2718  egrep -v '^ *\+' conftest.er1 >conftest.err
2719  rm -f conftest.er1
2720  cat conftest.err >&5
2721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722  (exit $ac_status); } >/dev/null; then
2723  if test -s conftest.err; then
2724    ac_cpp_err=$ac_c_preproc_warn_flag
2725  else
2726    ac_cpp_err=
2727  fi
2728else
2729  ac_cpp_err=yes
2730fi
2731if test -z "$ac_cpp_err"; then
2732  # Broken: success on invalid input.
2733continue
2734else
2735  echo "$as_me: failed program was:" >&5
2736  cat conftest.$ac_ext >&5
2737  # Passes both tests.
2738ac_preproc_ok=:
2739break
2740fi
2741rm -f conftest.err conftest.$ac_ext
2742
2743done
2744# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2745rm -f conftest.err conftest.$ac_ext
2746if $ac_preproc_ok; then
2747  :
2748else
2749  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2750echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2751   { (exit 1); exit 1; }; }
2752fi
2753
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760
2761echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2762echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2763if test "${ac_cv_header_stdc+set}" = set; then
2764  echo $ECHO_N "(cached) $ECHO_C" >&6
2765else
2766  cat >conftest.$ac_ext <<_ACEOF
2767#line $LINENO "configure"
2768#include "confdefs.h"
2769#include <stdlib.h>
2770#include <stdarg.h>
2771#include <string.h>
2772#include <float.h>
2773
2774_ACEOF
2775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2776  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2777  ac_status=$?
2778  egrep -v '^ *\+' conftest.er1 >conftest.err
2779  rm -f conftest.er1
2780  cat conftest.err >&5
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); } >/dev/null; then
2783  if test -s conftest.err; then
2784    ac_cpp_err=$ac_c_preproc_warn_flag
2785  else
2786    ac_cpp_err=
2787  fi
2788else
2789  ac_cpp_err=yes
2790fi
2791if test -z "$ac_cpp_err"; then
2792  ac_cv_header_stdc=yes
2793else
2794  echo "$as_me: failed program was:" >&5
2795  cat conftest.$ac_ext >&5
2796  ac_cv_header_stdc=no
2797fi
2798rm -f conftest.err conftest.$ac_ext
2799
2800if test $ac_cv_header_stdc = yes; then
2801  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2802  cat >conftest.$ac_ext <<_ACEOF
2803#line $LINENO "configure"
2804#include "confdefs.h"
2805#include <string.h>
2806
2807_ACEOF
2808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2809  egrep "memchr" >/dev/null 2>&1; then
2810  :
2811else
2812  ac_cv_header_stdc=no
2813fi
2814rm -f conftest*
2815
2816fi
2817
2818if test $ac_cv_header_stdc = yes; then
2819  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2820  cat >conftest.$ac_ext <<_ACEOF
2821#line $LINENO "configure"
2822#include "confdefs.h"
2823#include <stdlib.h>
2824
2825_ACEOF
2826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2827  egrep "free" >/dev/null 2>&1; then
2828  :
2829else
2830  ac_cv_header_stdc=no
2831fi
2832rm -f conftest*
2833
2834fi
2835
2836if test $ac_cv_header_stdc = yes; then
2837  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2838  if test "$cross_compiling" = yes; then
2839  :
2840else
2841  cat >conftest.$ac_ext <<_ACEOF
2842#line $LINENO "configure"
2843#include "confdefs.h"
2844#include <ctype.h>
2845#if ((' ' & 0x0FF) == 0x020)
2846# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2847# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2848#else
2849# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2850                     || ('j' <= (c) && (c) <= 'r') \
2851                     || ('s' <= (c) && (c) <= 'z'))
2852# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2853#endif
2854
2855#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2856int
2857main ()
2858{
2859  int i;
2860  for (i = 0; i < 256; i++)
2861    if (XOR (islower (i), ISLOWER (i))
2862        || toupper (i) != TOUPPER (i))
2863      exit(2);
2864  exit (0);
2865}
2866_ACEOF
2867rm -f conftest$ac_exeext
2868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869  (eval $ac_link) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874  (eval $ac_try) 2>&5
2875  ac_status=$?
2876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877  (exit $ac_status); }; }; then
2878  :
2879else
2880  echo "$as_me: program exited with status $ac_status" >&5
2881echo "$as_me: failed program was:" >&5
2882cat conftest.$ac_ext >&5
2883( exit $ac_status )
2884ac_cv_header_stdc=no
2885fi
2886rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2887fi
2888fi
2889fi
2890echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2891echo "${ECHO_T}$ac_cv_header_stdc" >&6
2892if test $ac_cv_header_stdc = yes; then
2893
2894cat >>confdefs.h <<\_ACEOF
2895#define STDC_HEADERS 1
2896_ACEOF
2897
2898fi
2899
2900# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2911                  inttypes.h stdint.h unistd.h
2912do
2913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2914echo "$as_me:$LINENO: checking for $ac_header" >&5
2915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2916if eval "test \"\${$as_ac_Header+set}\" = set"; then
2917  echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919  cat >conftest.$ac_ext <<_ACEOF
2920#line $LINENO "configure"
2921#include "confdefs.h"
2922$ac_includes_default
2923
2924#include <$ac_header>
2925_ACEOF
2926rm -f conftest.$ac_objext
2927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928  (eval $ac_compile) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); } &&
2932         { ac_try='test -s conftest.$ac_objext'
2933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934  (eval $ac_try) 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; }; then
2938  eval "$as_ac_Header=yes"
2939else
2940  echo "$as_me: failed program was:" >&5
2941cat conftest.$ac_ext >&5
2942eval "$as_ac_Header=no"
2943fi
2944rm -f conftest.$ac_objext conftest.$ac_ext
2945fi
2946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2948if test `eval echo '${'$as_ac_Header'}'` = yes; then
2949  cat >>confdefs.h <<_ACEOF
2950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2951_ACEOF
2952
2953fi
2954
2955done
2956
2957
2958
2959for ac_header in stdlib.h
2960do
2961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2962if eval "test \"\${$as_ac_Header+set}\" = set"; then
2963  echo "$as_me:$LINENO: checking for $ac_header" >&5
2964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2965if eval "test \"\${$as_ac_Header+set}\" = set"; then
2966  echo $ECHO_N "(cached) $ECHO_C" >&6
2967fi
2968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2970else
2971  # Is the header compilable?
2972echo "$as_me:$LINENO: checking $ac_header usability" >&5
2973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2974cat >conftest.$ac_ext <<_ACEOF
2975#line $LINENO "configure"
2976#include "confdefs.h"
2977$ac_includes_default
2978#include <$ac_header>
2979_ACEOF
2980rm -f conftest.$ac_objext
2981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982  (eval $ac_compile) 2>&5
2983  ac_status=$?
2984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985  (exit $ac_status); } &&
2986         { ac_try='test -s conftest.$ac_objext'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; }; then
2992  ac_header_compiler=yes
2993else
2994  echo "$as_me: failed program was:" >&5
2995cat conftest.$ac_ext >&5
2996ac_header_compiler=no
2997fi
2998rm -f conftest.$ac_objext conftest.$ac_ext
2999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3000echo "${ECHO_T}$ac_header_compiler" >&6
3001
3002# Is the header present?
3003echo "$as_me:$LINENO: checking $ac_header presence" >&5
3004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3005cat >conftest.$ac_ext <<_ACEOF
3006#line $LINENO "configure"
3007#include "confdefs.h"
3008#include <$ac_header>
3009_ACEOF
3010if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012  ac_status=$?
3013  egrep -v '^ *\+' conftest.er1 >conftest.err
3014  rm -f conftest.er1
3015  cat conftest.err >&5
3016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017  (exit $ac_status); } >/dev/null; then
3018  if test -s conftest.err; then
3019    ac_cpp_err=$ac_c_preproc_warn_flag
3020  else
3021    ac_cpp_err=
3022  fi
3023else
3024  ac_cpp_err=yes
3025fi
3026if test -z "$ac_cpp_err"; then
3027  ac_header_preproc=yes
3028else
3029  echo "$as_me: failed program was:" >&5
3030  cat conftest.$ac_ext >&5
3031  ac_header_preproc=no
3032fi
3033rm -f conftest.err conftest.$ac_ext
3034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3035echo "${ECHO_T}$ac_header_preproc" >&6
3036
3037# So?  What about this header?
3038case $ac_header_compiler:$ac_header_preproc in
3039  yes:no )
3040    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3044  no:yes )
3045    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3047    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3051esac
3052echo "$as_me:$LINENO: checking for $ac_header" >&5
3053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3054if eval "test \"\${$as_ac_Header+set}\" = set"; then
3055  echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057  eval "$as_ac_Header=$ac_header_preproc"
3058fi
3059echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3060echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3061
3062fi
3063if test `eval echo '${'$as_ac_Header'}'` = yes; then
3064  cat >>confdefs.h <<_ACEOF
3065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3066_ACEOF
3067
3068fi
3069
3070done
3071
3072
3073#
3074# Look for various functions
3075#
3076echo "$as_me:$LINENO: checking for strcmp" >&5
3077echo $ECHO_N "checking for strcmp... $ECHO_C" >&6
3078if test "${ac_cv_func_strcmp+set}" = set; then
3079  echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081  cat >conftest.$ac_ext <<_ACEOF
3082#line $LINENO "configure"
3083#include "confdefs.h"
3084/* System header to define __stub macros and hopefully few prototypes,
3085    which can conflict with char strcmp (); below.  */
3086#include <assert.h>
3087/* Override any gcc2 internal prototype to avoid an error.  */
3088#ifdef __cplusplus
3089extern "C"
3090#endif
3091/* We use char because int might match the return type of a gcc2
3092   builtin and then its argument prototype would still apply.  */
3093char strcmp ();
3094char (*f) ();
3095
3096#ifdef F77_DUMMY_MAIN
3097#  ifdef __cplusplus
3098     extern "C"
3099#  endif
3100   int F77_DUMMY_MAIN() { return 1; }
3101#endif
3102int
3103main ()
3104{
3105/* The GNU C library defines this for functions which it implements
3106    to always fail with ENOSYS.  Some functions are actually named
3107    something starting with __ and the normal name is an alias.  */
3108#if defined (__stub_strcmp) || defined (__stub___strcmp)
3109choke me
3110#else
3111f = strcmp;
3112#endif
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext conftest$ac_exeext
3119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3120  (eval $ac_link) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); } &&
3124         { ac_try='test -s conftest$ac_exeext'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  ac_cv_func_strcmp=yes
3131else
3132  echo "$as_me: failed program was:" >&5
3133cat conftest.$ac_ext >&5
3134ac_cv_func_strcmp=no
3135fi
3136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3137fi
3138echo "$as_me:$LINENO: result: $ac_cv_func_strcmp" >&5
3139echo "${ECHO_T}$ac_cv_func_strcmp" >&6
3140
3141
3142echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3143echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3144    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3145if test "${enable_maintainer_mode+set}" = set; then
3146  enableval="$enable_maintainer_mode"
3147  USE_MAINTAINER_MODE=$enableval
3148else
3149  USE_MAINTAINER_MODE=no
3150fi;
3151  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3152echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3153
3154
3155if test $USE_MAINTAINER_MODE = yes; then
3156  MAINTAINER_MODE_TRUE=
3157  MAINTAINER_MODE_FALSE='#'
3158else
3159  MAINTAINER_MODE_TRUE='#'
3160  MAINTAINER_MODE_FALSE=
3161fi
3162
3163  MAINT=$MAINTAINER_MODE_TRUE
3164
3165
3166
3167#
3168# Output Makefile with substitutions
3169
3170ac_config_files="$ac_config_files Makefile"
3171cat >confcache <<\_ACEOF
3172# This file is a shell script that caches the results of configure
3173# tests run on this system so they can be shared between configure
3174# scripts and configure runs, see configure's option --config-cache.
3175# It is not useful on other systems.  If it contains results you don't
3176# want to keep, you may remove or edit it.
3177#
3178# config.status only pays attention to the cache file if you give it
3179# the --recheck option to rerun configure.
3180#
3181# `ac_cv_env_foo' variables (set or unset) will be overriden when
3182# loading this file, other *unset* `ac_cv_foo' will be assigned the
3183# following values.
3184
3185_ACEOF
3186
3187# The following way of writing the cache mishandles newlines in values,
3188# but we know of no workaround that is simple, portable, and efficient.
3189# So, don't put newlines in cache variables' values.
3190# Ultrix sh set writes to stderr and can't be redirected directly,
3191# and sets the high bit in the cache file unless we assign to the vars.
3192{
3193  (set) 2>&1 |
3194    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3195    *ac_space=\ *)
3196      # `set' does not quote correctly, so add quotes (double-quote
3197      # substitution turns \\\\ into \\, and sed turns \\ into \).
3198      sed -n \
3199        "s/'/'\\\\''/g;
3200    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3201      ;;
3202    *)
3203      # `set' quotes correctly as required by POSIX, so do not add quotes.
3204      sed -n \
3205        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3206      ;;
3207    esac;
3208} |
3209  sed '
3210     t clear
3211     : clear
3212     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3213     t end
3214     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3215     : end' >>confcache
3216if cmp -s $cache_file confcache; then :; else
3217  if test -w $cache_file; then
3218    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3219    cat confcache >$cache_file
3220  else
3221    echo "not updating unwritable cache $cache_file"
3222  fi
3223fi
3224rm -f confcache
3225
3226test "x$prefix" = xNONE && prefix=$ac_default_prefix
3227# Let make expand exec_prefix.
3228test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3229
3230# VPATH may cause trouble with some makes, so we remove $(srcdir),
3231# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3232# trailing colons and then remove the whole line if VPATH becomes empty
3233# (actually we leave an empty line to preserve line numbers).
3234if test "x$srcdir" = x.; then
3235  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
3236s/:*\$(srcdir):*/:/;
3237s/:*\${srcdir}:*/:/;
3238s/:*@srcdir@:*/:/;
3239s/^\([^=]*=[ 	]*\):*/\1/;
3240s/:*$//;
3241s/^[^=]*=[ 	]*$//;
3242}'
3243fi
3244
3245DEFS=-DHAVE_CONFIG_H
3246
3247if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3248  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3249Usually this means the macro was only invoked conditionally." >&5
3250echo "$as_me: error: conditional \"AMDEP\" was never defined.
3251Usually this means the macro was only invoked conditionally." >&2;}
3252   { (exit 1); exit 1; }; }
3253fi
3254if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
3255  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
3256Usually this means the macro was only invoked conditionally." >&5
3257echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
3258Usually this means the macro was only invoked conditionally." >&2;}
3259   { (exit 1); exit 1; }; }
3260fi
3261
3262: ${CONFIG_STATUS=./config.status}
3263ac_clean_files_save=$ac_clean_files
3264ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3265{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3266echo "$as_me: creating $CONFIG_STATUS" >&6;}
3267cat >$CONFIG_STATUS <<_ACEOF
3268#! $SHELL
3269# Generated by $as_me.
3270# Run this file to recreate the current configuration.
3271# Compiler output produced by configure, useful for debugging
3272# configure, is in config.log if it exists.
3273
3274debug=false
3275SHELL=\${CONFIG_SHELL-$SHELL}
3276_ACEOF
3277
3278cat >>$CONFIG_STATUS <<\_ACEOF
3279
3280## --------------------- ##
3281## M4sh Initialization.  ##
3282## --------------------- ##
3283
3284# Be Bourne compatible
3285if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3286  emulate sh
3287  NULLCMD=:
3288elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3289  set -o posix
3290fi
3291
3292# NLS nuisances.
3293# Support unset when possible.
3294if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3295  as_unset=unset
3296else
3297  as_unset=false
3298fi
3299
3300(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3301    { $as_unset LANG || test "${LANG+set}" != set; } ||
3302      { LANG=C; export LANG; }
3303(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3304    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3305      { LC_ALL=C; export LC_ALL; }
3306(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3307    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3308      { LC_TIME=C; export LC_TIME; }
3309(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3310    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3311      { LC_CTYPE=C; export LC_CTYPE; }
3312(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3313    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3314      { LANGUAGE=C; export LANGUAGE; }
3315(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3316    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3317      { LC_COLLATE=C; export LC_COLLATE; }
3318(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3319    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3320      { LC_NUMERIC=C; export LC_NUMERIC; }
3321(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3322    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3323      { LC_MESSAGES=C; export LC_MESSAGES; }
3324
3325
3326# Name of the executable.
3327as_me=`(basename "$0") 2>/dev/null ||
3328$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3329	 X"$0" : 'X\(//\)$' \| \
3330	 X"$0" : 'X\(/\)$' \| \
3331	 .     : '\(.\)' 2>/dev/null ||
3332echo X/"$0" |
3333    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3334  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
3335  	  /^X\/\(\/\).*/{ s//\1/; q; }
3336  	  s/.*/./; q'`
3337
3338# PATH needs CR, and LINENO needs CR and PATH.
3339# Avoid depending upon Character Ranges.
3340as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3341as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3342as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3343as_cr_digits='0123456789'
3344as_cr_alnum=$as_cr_Letters$as_cr_digits
3345
3346# The user is always right.
3347if test "${PATH_SEPARATOR+set}" != set; then
3348  echo "#! /bin/sh" >conftest.sh
3349  echo  "exit 0"   >>conftest.sh
3350  chmod +x conftest.sh
3351  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3352    PATH_SEPARATOR=';'
3353  else
3354    PATH_SEPARATOR=:
3355  fi
3356  rm -f conftest.sh
3357fi
3358
3359
3360  as_lineno_1=$LINENO
3361  as_lineno_2=$LINENO
3362  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3363  test "x$as_lineno_1" != "x$as_lineno_2" &&
3364  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3365  # Find who we are.  Look in the path if we contain no path at all
3366  # relative or not.
3367  case $0 in
3368    *[\\/]* ) as_myself=$0 ;;
3369    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370for as_dir in $PATH
3371do
3372  IFS=$as_save_IFS
3373  test -z "$as_dir" && as_dir=.
3374  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3375done
3376
3377       ;;
3378  esac
3379  # We did not find ourselves, most probably we were run as `sh COMMAND'
3380  # in which case we are not to be found in the path.
3381  if test "x$as_myself" = x; then
3382    as_myself=$0
3383  fi
3384  if test ! -f "$as_myself"; then
3385    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3386echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3387   { (exit 1); exit 1; }; }
3388  fi
3389  case $CONFIG_SHELL in
3390  '')
3391    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396  for as_base in sh bash ksh sh5; do
3397	 case $as_dir in
3398	 /*)
3399	   if ("$as_dir/$as_base" -c '
3400  as_lineno_1=$LINENO
3401  as_lineno_2=$LINENO
3402  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3403  test "x$as_lineno_1" != "x$as_lineno_2" &&
3404  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3405	     CONFIG_SHELL=$as_dir/$as_base
3406	     export CONFIG_SHELL
3407	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3408	   fi;;
3409	 esac
3410       done
3411done
3412;;
3413  esac
3414
3415  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3416  # uniformly replaced by the line number.  The first 'sed' inserts a
3417  # line-number line before each line; the second 'sed' does the real
3418  # work.  The second script uses 'N' to pair each line-number line
3419  # with the numbered line, and appends trailing '-' during
3420  # substitution so that $LINENO is not a special case at line end.
3421  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3422  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3423  sed '=' <$as_myself |
3424    sed '
3425      N
3426      s,$,-,
3427      : loop
3428      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3429      t loop
3430      s,-$,,
3431      s,^['$as_cr_digits']*\n,,
3432    ' >$as_me.lineno &&
3433  chmod +x $as_me.lineno ||
3434    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3435echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3436   { (exit 1); exit 1; }; }
3437
3438  # Don't try to exec as it changes $[0], causing all sort of problems
3439  # (the dirname of $[0] is not the place where we might find the
3440  # original and so on.  Autoconf is especially sensible to this).
3441  . ./$as_me.lineno
3442  # Exit status is that of the last command.
3443  exit
3444}
3445
3446
3447case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3448  *c*,-n*) ECHO_N= ECHO_C='
3449' ECHO_T='	' ;;
3450  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3451  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3452esac
3453
3454if expr a : '\(a\)' >/dev/null 2>&1; then
3455  as_expr=expr
3456else
3457  as_expr=false
3458fi
3459
3460rm -f conf$$ conf$$.exe conf$$.file
3461echo >conf$$.file
3462if ln -s conf$$.file conf$$ 2>/dev/null; then
3463  # We could just check for DJGPP; but this test a) works b) is more generic
3464  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3465  if test -f conf$$.exe; then
3466    # Don't use ln at all; we don't have any links
3467    as_ln_s='cp -p'
3468  else
3469    as_ln_s='ln -s'
3470  fi
3471elif ln conf$$.file conf$$ 2>/dev/null; then
3472  as_ln_s=ln
3473else
3474  as_ln_s='cp -p'
3475fi
3476rm -f conf$$ conf$$.exe conf$$.file
3477
3478as_executable_p="test -f"
3479
3480# Sed expression to map a string onto a valid CPP name.
3481as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3482
3483# Sed expression to map a string onto a valid variable name.
3484as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3485
3486
3487# IFS
3488# We need space, tab and new line, in precisely that order.
3489as_nl='
3490'
3491IFS=" 	$as_nl"
3492
3493# CDPATH.
3494$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3495
3496exec 6>&1
3497
3498# Open the log real soon, to keep \$[0] and so on meaningful, and to
3499# report actual input values of CONFIG_FILES etc. instead of their
3500# values after options handling.  Logging --version etc. is OK.
3501exec 5>>config.log
3502{
3503  echo
3504  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3505## Running $as_me. ##
3506_ASBOX
3507} >&5
3508cat >&5 <<_CSEOF
3509
3510This file was extended by $as_me, which was
3511generated by GNU Autoconf 2.53.  Invocation command line was
3512
3513  CONFIG_FILES    = $CONFIG_FILES
3514  CONFIG_HEADERS  = $CONFIG_HEADERS
3515  CONFIG_LINKS    = $CONFIG_LINKS
3516  CONFIG_COMMANDS = $CONFIG_COMMANDS
3517  $ $0 $@
3518
3519_CSEOF
3520echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3521echo >&5
3522_ACEOF
3523
3524# Files that config.status was made for.
3525if test -n "$ac_config_files"; then
3526  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3527fi
3528
3529if test -n "$ac_config_headers"; then
3530  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3531fi
3532
3533if test -n "$ac_config_links"; then
3534  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3535fi
3536
3537if test -n "$ac_config_commands"; then
3538  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3539fi
3540
3541cat >>$CONFIG_STATUS <<\_ACEOF
3542
3543ac_cs_usage="\
3544\`$as_me' instantiates files from templates according to the
3545current configuration.
3546
3547Usage: $0 [OPTIONS] [FILE]...
3548
3549  -h, --help       print this help, then exit
3550  -V, --version    print version number, then exit
3551  -d, --debug      don't remove temporary files
3552      --recheck    update $as_me by reconfiguring in the same conditions
3553  --file=FILE[:TEMPLATE]
3554                   instantiate the configuration file FILE
3555  --header=FILE[:TEMPLATE]
3556                   instantiate the configuration header FILE
3557
3558Configuration files:
3559$config_files
3560
3561Configuration headers:
3562$config_headers
3563
3564Configuration commands:
3565$config_commands
3566
3567Report bugs to <bug-autoconf@gnu.org>."
3568_ACEOF
3569
3570cat >>$CONFIG_STATUS <<_ACEOF
3571ac_cs_version="\\
3572config.status
3573configured by $0, generated by GNU Autoconf 2.53,
3574  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3575
3576Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3577Free Software Foundation, Inc.
3578This config.status script is free software; the Free Software Foundation
3579gives unlimited permission to copy, distribute and modify it."
3580srcdir=$srcdir
3581INSTALL="$INSTALL"
3582_ACEOF
3583
3584cat >>$CONFIG_STATUS <<\_ACEOF
3585# If no file are specified by the user, then we need to provide default
3586# value.  By we need to know if files were specified by the user.
3587ac_need_defaults=:
3588while test $# != 0
3589do
3590  case $1 in
3591  --*=*)
3592    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3593    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3594    shift
3595    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3596    shift
3597    ;;
3598  -*);;
3599  *) # This is not an option, so the user has probably given explicit
3600     # arguments.
3601     ac_need_defaults=false;;
3602  esac
3603
3604  case $1 in
3605  # Handling of the options.
3606_ACEOF
3607cat >>$CONFIG_STATUS <<_ACEOF
3608  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3609    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3610    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3611_ACEOF
3612cat >>$CONFIG_STATUS <<\_ACEOF
3613  --version | --vers* | -V )
3614    echo "$ac_cs_version"; exit 0 ;;
3615  --he | --h)
3616    # Conflict between --help and --header
3617    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3618Try \`$0 --help' for more information." >&5
3619echo "$as_me: error: ambiguous option: $1
3620Try \`$0 --help' for more information." >&2;}
3621   { (exit 1); exit 1; }; };;
3622  --help | --hel | -h )
3623    echo "$ac_cs_usage"; exit 0 ;;
3624  --debug | --d* | -d )
3625    debug=: ;;
3626  --file | --fil | --fi | --f )
3627    shift
3628    CONFIG_FILES="$CONFIG_FILES $1"
3629    ac_need_defaults=false;;
3630  --header | --heade | --head | --hea )
3631    shift
3632    CONFIG_HEADERS="$CONFIG_HEADERS $1"
3633    ac_need_defaults=false;;
3634
3635  # This is an error.
3636  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3637Try \`$0 --help' for more information." >&5
3638echo "$as_me: error: unrecognized option: $1
3639Try \`$0 --help' for more information." >&2;}
3640   { (exit 1); exit 1; }; } ;;
3641
3642  *) ac_config_targets="$ac_config_targets $1" ;;
3643
3644  esac
3645  shift
3646done
3647
3648_ACEOF
3649
3650cat >>$CONFIG_STATUS <<_ACEOF
3651#
3652# INIT-COMMANDS section.
3653#
3654
3655AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
3656
3657_ACEOF
3658
3659
3660
3661cat >>$CONFIG_STATUS <<\_ACEOF
3662for ac_config_target in $ac_config_targets
3663do
3664  case "$ac_config_target" in
3665  # Handling of arguments.
3666  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3667  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
3668  "calc.h" ) CONFIG_HEADERS="$CONFIG_HEADERS calc.h" ;;
3669  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3670echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3671   { (exit 1); exit 1; }; };;
3672  esac
3673done
3674
3675# If the user did not use the arguments to specify the items to instantiate,
3676# then the envvar interface is used.  Set only those that are not.
3677# We use the long form for the default assignment because of an extremely
3678# bizarre bug on SunOS 4.1.3.
3679if $ac_need_defaults; then
3680  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3681  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3682  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3683fi
3684
3685# Create a temporary directory, and hook for its removal unless debugging.
3686$debug ||
3687{
3688  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3689  trap '{ (exit 1); exit 1; }' 1 2 13 15
3690}
3691
3692# Create a (secure) tmp directory for tmp files.
3693: ${TMPDIR=/tmp}
3694{
3695  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3696  test -n "$tmp" && test -d "$tmp"
3697}  ||
3698{
3699  tmp=$TMPDIR/cs$$-$RANDOM
3700  (umask 077 && mkdir $tmp)
3701} ||
3702{
3703   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3704   { (exit 1); exit 1; }
3705}
3706
3707_ACEOF
3708
3709cat >>$CONFIG_STATUS <<_ACEOF
3710
3711#
3712# CONFIG_FILES section.
3713#
3714
3715# No need to generate the scripts if there are no CONFIG_FILES.
3716# This happens for instance when ./config.status config.h
3717if test -n "\$CONFIG_FILES"; then
3718  # Protect against being on the right side of a sed subst in config.status.
3719  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3720   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3721s,@SHELL@,$SHELL,;t t
3722s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3723s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3724s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3725s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3726s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3727s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3728s,@exec_prefix@,$exec_prefix,;t t
3729s,@prefix@,$prefix,;t t
3730s,@program_transform_name@,$program_transform_name,;t t
3731s,@bindir@,$bindir,;t t
3732s,@sbindir@,$sbindir,;t t
3733s,@libexecdir@,$libexecdir,;t t
3734s,@datadir@,$datadir,;t t
3735s,@sysconfdir@,$sysconfdir,;t t
3736s,@sharedstatedir@,$sharedstatedir,;t t
3737s,@localstatedir@,$localstatedir,;t t
3738s,@libdir@,$libdir,;t t
3739s,@includedir@,$includedir,;t t
3740s,@oldincludedir@,$oldincludedir,;t t
3741s,@infodir@,$infodir,;t t
3742s,@mandir@,$mandir,;t t
3743s,@build_alias@,$build_alias,;t t
3744s,@host_alias@,$host_alias,;t t
3745s,@target_alias@,$target_alias,;t t
3746s,@DEFS@,$DEFS,;t t
3747s,@ECHO_C@,$ECHO_C,;t t
3748s,@ECHO_N@,$ECHO_N,;t t
3749s,@ECHO_T@,$ECHO_T,;t t
3750s,@LIBS@,$LIBS,;t t
3751s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3752s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3753s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3754s,@PACKAGE@,$PACKAGE,;t t
3755s,@VERSION@,$VERSION,;t t
3756s,@ACLOCAL@,$ACLOCAL,;t t
3757s,@AUTOCONF@,$AUTOCONF,;t t
3758s,@AUTOMAKE@,$AUTOMAKE,;t t
3759s,@AUTOHEADER@,$AUTOHEADER,;t t
3760s,@MAKEINFO@,$MAKEINFO,;t t
3761s,@AMTAR@,$AMTAR,;t t
3762s,@install_sh@,$install_sh,;t t
3763s,@STRIP@,$STRIP,;t t
3764s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
3765s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
3766s,@AWK@,$AWK,;t t
3767s,@SET_MAKE@,$SET_MAKE,;t t
3768s,@CC@,$CC,;t t
3769s,@CFLAGS@,$CFLAGS,;t t
3770s,@LDFLAGS@,$LDFLAGS,;t t
3771s,@CPPFLAGS@,$CPPFLAGS,;t t
3772s,@ac_ct_CC@,$ac_ct_CC,;t t
3773s,@EXEEXT@,$EXEEXT,;t t
3774s,@OBJEXT@,$OBJEXT,;t t
3775s,@DEPDIR@,$DEPDIR,;t t
3776s,@am__include@,$am__include,;t t
3777s,@am__quote@,$am__quote,;t t
3778s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
3779s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
3780s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
3781s,@CCDEPMODE@,$CCDEPMODE,;t t
3782s,@CPP@,$CPP,;t t
3783s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3784s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3785s,@MAINT@,$MAINT,;t t
3786CEOF
3787
3788_ACEOF
3789
3790  cat >>$CONFIG_STATUS <<\_ACEOF
3791  # Split the substitutions into bite-sized pieces for seds with
3792  # small command number limits, like on Digital OSF/1 and HP-UX.
3793  ac_max_sed_lines=48
3794  ac_sed_frag=1 # Number of current file.
3795  ac_beg=1 # First line for current file.
3796  ac_end=$ac_max_sed_lines # Line after last line for current file.
3797  ac_more_lines=:
3798  ac_sed_cmds=
3799  while $ac_more_lines; do
3800    if test $ac_beg -gt 1; then
3801      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3802    else
3803      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3804    fi
3805    if test ! -s $tmp/subs.frag; then
3806      ac_more_lines=false
3807    else
3808      # The purpose of the label and of the branching condition is to
3809      # speed up the sed processing (if there are no `@' at all, there
3810      # is no need to browse any of the substitutions).
3811      # These are the two extra sed commands mentioned above.
3812      (echo ':t
3813  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3814      if test -z "$ac_sed_cmds"; then
3815  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3816      else
3817  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3818      fi
3819      ac_sed_frag=`expr $ac_sed_frag + 1`
3820      ac_beg=$ac_end
3821      ac_end=`expr $ac_end + $ac_max_sed_lines`
3822    fi
3823  done
3824  if test -z "$ac_sed_cmds"; then
3825    ac_sed_cmds=cat
3826  fi
3827fi # test -n "$CONFIG_FILES"
3828
3829_ACEOF
3830cat >>$CONFIG_STATUS <<\_ACEOF
3831for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3832  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3833  case $ac_file in
3834  - | *:- | *:-:* ) # input from stdin
3835        cat >$tmp/stdin
3836        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3837        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3838  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3839        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3840  * )   ac_file_in=$ac_file.in ;;
3841  esac
3842
3843  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3844  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3846         X"$ac_file" : 'X\(//\)[^/]' \| \
3847         X"$ac_file" : 'X\(//\)$' \| \
3848         X"$ac_file" : 'X\(/\)' \| \
3849         .     : '\(.\)' 2>/dev/null ||
3850echo X"$ac_file" |
3851    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3852  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3853  	  /^X\(\/\/\)$/{ s//\1/; q; }
3854  	  /^X\(\/\).*/{ s//\1/; q; }
3855  	  s/.*/./; q'`
3856  { case "$ac_dir" in
3857  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3858  *)                      as_incr_dir=.;;
3859esac
3860as_dummy="$ac_dir"
3861for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3862  case $as_mkdir_dir in
3863    # Skip DOS drivespec
3864    ?:) as_incr_dir=$as_mkdir_dir ;;
3865    *)
3866      as_incr_dir=$as_incr_dir/$as_mkdir_dir
3867      test -d "$as_incr_dir" ||
3868        mkdir "$as_incr_dir" ||
3869	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
3870echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
3871   { (exit 1); exit 1; }; }
3872    ;;
3873  esac
3874done; }
3875
3876  ac_builddir=.
3877
3878if test "$ac_dir" != .; then
3879  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3880  # A "../" for each directory in $ac_dir_suffix.
3881  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3882else
3883  ac_dir_suffix= ac_top_builddir=
3884fi
3885
3886case $srcdir in
3887  .)  # No --srcdir option.  We are building in place.
3888    ac_srcdir=.
3889    if test -z "$ac_top_builddir"; then
3890       ac_top_srcdir=.
3891    else
3892       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3893    fi ;;
3894  [\\/]* | ?:[\\/]* )  # Absolute path.
3895    ac_srcdir=$srcdir$ac_dir_suffix;
3896    ac_top_srcdir=$srcdir ;;
3897  *) # Relative path.
3898    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3899    ac_top_srcdir=$ac_top_builddir$srcdir ;;
3900esac
3901# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3902# absolute.
3903ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3904ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
3905ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3906ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3907
3908
3909  case $INSTALL in
3910  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3911  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3912  esac
3913
3914  if test x"$ac_file" != x-; then
3915    { echo "$as_me:$LINENO: creating $ac_file" >&5
3916echo "$as_me: creating $ac_file" >&6;}
3917    rm -f "$ac_file"
3918  fi
3919  # Let's still pretend it is `configure' which instantiates (i.e., don't
3920  # use $as_me), people would be surprised to read:
3921  #    /* config.h.  Generated by config.status.  */
3922  if test x"$ac_file" = x-; then
3923    configure_input=
3924  else
3925    configure_input="$ac_file.  "
3926  fi
3927  configure_input=$configure_input"Generated from `echo $ac_file_in |
3928                                     sed 's,.*/,,'` by configure."
3929
3930  # First look for the input files in the build tree, otherwise in the
3931  # src tree.
3932  ac_file_inputs=`IFS=:
3933    for f in $ac_file_in; do
3934      case $f in
3935      -) echo $tmp/stdin ;;
3936      [\\/$]*)
3937         # Absolute (can't be DOS-style, as IFS=:)
3938         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3939echo "$as_me: error: cannot find input file: $f" >&2;}
3940   { (exit 1); exit 1; }; }
3941         echo $f;;
3942      *) # Relative
3943         if test -f "$f"; then
3944           # Build tree
3945           echo $f
3946         elif test -f "$srcdir/$f"; then
3947           # Source tree
3948           echo $srcdir/$f
3949         else
3950           # /dev/null tree
3951           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3952echo "$as_me: error: cannot find input file: $f" >&2;}
3953   { (exit 1); exit 1; }; }
3954         fi;;
3955      esac
3956    done` || { (exit 1); exit 1; }
3957_ACEOF
3958cat >>$CONFIG_STATUS <<_ACEOF
3959  sed "$ac_vpsub
3960$extrasub
3961_ACEOF
3962cat >>$CONFIG_STATUS <<\_ACEOF
3963:t
3964/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3965s,@configure_input@,$configure_input,;t t
3966s,@srcdir@,$ac_srcdir,;t t
3967s,@abs_srcdir@,$ac_abs_srcdir,;t t
3968s,@top_srcdir@,$ac_top_srcdir,;t t
3969s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3970s,@builddir@,$ac_builddir,;t t
3971s,@abs_builddir@,$ac_abs_builddir,;t t
3972s,@top_builddir@,$ac_top_builddir,;t t
3973s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3974s,@INSTALL@,$ac_INSTALL,;t t
3975" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3976  rm -f $tmp/stdin
3977  if test x"$ac_file" != x-; then
3978    mv $tmp/out $ac_file
3979  else
3980    cat $tmp/out
3981    rm -f $tmp/out
3982  fi
3983
3984done
3985_ACEOF
3986cat >>$CONFIG_STATUS <<\_ACEOF
3987
3988#
3989# CONFIG_HEADER section.
3990#
3991
3992# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3993# NAME is the cpp macro being defined and VALUE is the value it is being given.
3994#
3995# ac_d sets the value in "#define NAME VALUE" lines.
3996ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
3997ac_dB='[ 	].*$,\1#\2'
3998ac_dC=' '
3999ac_dD=',;t'
4000# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4001ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4002ac_uB='$,\1#\2define\3'
4003ac_uC=' '
4004ac_uD=',;t'
4005
4006for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4007  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4008  case $ac_file in
4009  - | *:- | *:-:* ) # input from stdin
4010        cat >$tmp/stdin
4011        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4012        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4013  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4014        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4015  * )   ac_file_in=$ac_file.in ;;
4016  esac
4017
4018  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4019echo "$as_me: creating $ac_file" >&6;}
4020
4021  # First look for the input files in the build tree, otherwise in the
4022  # src tree.
4023  ac_file_inputs=`IFS=:
4024    for f in $ac_file_in; do
4025      case $f in
4026      -) echo $tmp/stdin ;;
4027      [\\/$]*)
4028         # Absolute (can't be DOS-style, as IFS=:)
4029         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4030echo "$as_me: error: cannot find input file: $f" >&2;}
4031   { (exit 1); exit 1; }; }
4032         echo $f;;
4033      *) # Relative
4034         if test -f "$f"; then
4035           # Build tree
4036           echo $f
4037         elif test -f "$srcdir/$f"; then
4038           # Source tree
4039           echo $srcdir/$f
4040         else
4041           # /dev/null tree
4042           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4043echo "$as_me: error: cannot find input file: $f" >&2;}
4044   { (exit 1); exit 1; }; }
4045         fi;;
4046      esac
4047    done` || { (exit 1); exit 1; }
4048  # Remove the trailing spaces.
4049  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
4050
4051_ACEOF
4052
4053# Transform confdefs.h into two sed scripts, `conftest.defines' and
4054# `conftest.undefs', that substitutes the proper values into
4055# config.h.in to produce config.h.  The first handles `#define'
4056# templates, and the second `#undef' templates.
4057# And first: Protect against being on the right side of a sed subst in
4058# config.status.  Protect against being in an unquoted here document
4059# in config.status.
4060rm -f conftest.defines conftest.undefs
4061# Using a here document instead of a string reduces the quoting nightmare.
4062# Putting comments in sed scripts is not portable.
4063#
4064# `end' is used to avoid that the second main sed command (meant for
4065# 0-ary CPP macros) applies to n-ary macro definitions.
4066# See the Autoconf documentation for `clear'.
4067cat >confdef2sed.sed <<\_ACEOF
4068s/[\\&,]/\\&/g
4069s,[\\$`],\\&,g
4070t clear
4071: clear
4072s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4073t end
4074s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4075: end
4076_ACEOF
4077# If some macros were called several times there might be several times
4078# the same #defines, which is useless.  Nevertheless, we may not want to
4079# sort them, since we want the *last* AC-DEFINE to be honored.
4080uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4081sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4082rm -f confdef2sed.sed
4083
4084# This sed command replaces #undef with comments.  This is necessary, for
4085# example, in the case of _POSIX_SOURCE, which is predefined and required
4086# on some systems where configure will not decide to define it.
4087cat >>conftest.undefs <<\_ACEOF
4088s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4089_ACEOF
4090
4091# Break up conftest.defines because some shells have a limit on the size
4092# of here documents, and old seds have small limits too (100 cmds).
4093echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4094echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4095echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4096echo '  :' >>$CONFIG_STATUS
4097rm -f conftest.tail
4098while grep . conftest.defines >/dev/null
4099do
4100  # Write a limited-size here document to $tmp/defines.sed.
4101  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4102  # Speed up: don't consider the non `#define' lines.
4103  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
4104  # Work around the forget-to-reset-the-flag bug.
4105  echo 't clr' >>$CONFIG_STATUS
4106  echo ': clr' >>$CONFIG_STATUS
4107  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4108  echo 'CEOF
4109  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4110  rm -f $tmp/in
4111  mv $tmp/out $tmp/in
4112' >>$CONFIG_STATUS
4113  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4114  rm -f conftest.defines
4115  mv conftest.tail conftest.defines
4116done
4117rm -f conftest.defines
4118echo '  fi # egrep' >>$CONFIG_STATUS
4119echo >>$CONFIG_STATUS
4120
4121# Break up conftest.undefs because some shells have a limit on the size
4122# of here documents, and old seds have small limits too (100 cmds).
4123echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4124rm -f conftest.tail
4125while grep . conftest.undefs >/dev/null
4126do
4127  # Write a limited-size here document to $tmp/undefs.sed.
4128  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4129  # Speed up: don't consider the non `#undef'
4130  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
4131  # Work around the forget-to-reset-the-flag bug.
4132  echo 't clr' >>$CONFIG_STATUS
4133  echo ': clr' >>$CONFIG_STATUS
4134  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4135  echo 'CEOF
4136  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4137  rm -f $tmp/in
4138  mv $tmp/out $tmp/in
4139' >>$CONFIG_STATUS
4140  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4141  rm -f conftest.undefs
4142  mv conftest.tail conftest.undefs
4143done
4144rm -f conftest.undefs
4145
4146cat >>$CONFIG_STATUS <<\_ACEOF
4147  # Let's still pretend it is `configure' which instantiates (i.e., don't
4148  # use $as_me), people would be surprised to read:
4149  #    /* config.h.  Generated by config.status.  */
4150  if test x"$ac_file" = x-; then
4151    echo "/* Generated by configure.  */" >$tmp/config.h
4152  else
4153    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4154  fi
4155  cat $tmp/in >>$tmp/config.h
4156  rm -f $tmp/in
4157  if test x"$ac_file" != x-; then
4158    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4159      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4160echo "$as_me: $ac_file is unchanged" >&6;}
4161    else
4162      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4163$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4164         X"$ac_file" : 'X\(//\)[^/]' \| \
4165         X"$ac_file" : 'X\(//\)$' \| \
4166         X"$ac_file" : 'X\(/\)' \| \
4167         .     : '\(.\)' 2>/dev/null ||
4168echo X"$ac_file" |
4169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4170  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4171  	  /^X\(\/\/\)$/{ s//\1/; q; }
4172  	  /^X\(\/\).*/{ s//\1/; q; }
4173  	  s/.*/./; q'`
4174      { case "$ac_dir" in
4175  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4176  *)                      as_incr_dir=.;;
4177esac
4178as_dummy="$ac_dir"
4179for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4180  case $as_mkdir_dir in
4181    # Skip DOS drivespec
4182    ?:) as_incr_dir=$as_mkdir_dir ;;
4183    *)
4184      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4185      test -d "$as_incr_dir" ||
4186        mkdir "$as_incr_dir" ||
4187	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4188echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4189   { (exit 1); exit 1; }; }
4190    ;;
4191  esac
4192done; }
4193
4194      rm -f $ac_file
4195      mv $tmp/config.h $ac_file
4196    fi
4197  else
4198    cat $tmp/config.h
4199    rm -f $tmp/config.h
4200  fi
4201  # Run the commands associated with the file.
4202  case $ac_file in
4203    calc.h ) # update the timestamp
4204echo 'timestamp for calc.h' >"./stamp-h1"
4205 ;;
4206  esac
4207done
4208_ACEOF
4209cat >>$CONFIG_STATUS <<\_ACEOF
4210
4211#
4212# CONFIG_COMMANDS section.
4213#
4214for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4215  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4216  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4217  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4218$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4219         X"$ac_dest" : 'X\(//\)[^/]' \| \
4220         X"$ac_dest" : 'X\(//\)$' \| \
4221         X"$ac_dest" : 'X\(/\)' \| \
4222         .     : '\(.\)' 2>/dev/null ||
4223echo X"$ac_dest" |
4224    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4225  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4226  	  /^X\(\/\/\)$/{ s//\1/; q; }
4227  	  /^X\(\/\).*/{ s//\1/; q; }
4228  	  s/.*/./; q'`
4229  ac_builddir=.
4230
4231if test "$ac_dir" != .; then
4232  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4233  # A "../" for each directory in $ac_dir_suffix.
4234  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4235else
4236  ac_dir_suffix= ac_top_builddir=
4237fi
4238
4239case $srcdir in
4240  .)  # No --srcdir option.  We are building in place.
4241    ac_srcdir=.
4242    if test -z "$ac_top_builddir"; then
4243       ac_top_srcdir=.
4244    else
4245       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4246    fi ;;
4247  [\\/]* | ?:[\\/]* )  # Absolute path.
4248    ac_srcdir=$srcdir$ac_dir_suffix;
4249    ac_top_srcdir=$srcdir ;;
4250  *) # Relative path.
4251    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4252    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4253esac
4254# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4255# absolute.
4256ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4257ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4258ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4259ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4260
4261
4262  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4263echo "$as_me: executing $ac_dest commands" >&6;}
4264  case $ac_dest in
4265    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4266  # Strip MF so we end up with the name of the file.
4267  mf=`echo "$mf" | sed -e 's/:.*$//'`
4268  if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
4269    dirpart=`(dirname "$mf") 2>/dev/null ||
4270$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4271         X"$mf" : 'X\(//\)[^/]' \| \
4272         X"$mf" : 'X\(//\)$' \| \
4273         X"$mf" : 'X\(/\)' \| \
4274         .     : '\(.\)' 2>/dev/null ||
4275echo X"$mf" |
4276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4277  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4278  	  /^X\(\/\/\)$/{ s//\1/; q; }
4279  	  /^X\(\/\).*/{ s//\1/; q; }
4280  	  s/.*/./; q'`
4281  else
4282    continue
4283  fi
4284  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4285  # Extract the definition of DEP_FILES from the Makefile without
4286  # running `make'.
4287  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4288  test -z "$DEPDIR" && continue
4289  # When using ansi2knr, U may be empty or an underscore; expand it
4290  U=`sed -n -e '/^U = / s///p' < "$mf"`
4291  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4292  # We invoke sed twice because it is the simplest approach to
4293  # changing $(DEPDIR) to its actual value in the expansion.
4294  for file in `sed -n -e '
4295    /^DEP_FILES = .*\\\\$/ {
4296      s/^DEP_FILES = //
4297      :loop
4298	s/\\\\$//
4299	p
4300	n
4301	/\\\\$/ b loop
4302      p
4303    }
4304    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4305       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4306    # Make sure the directory exists.
4307    test -f "$dirpart/$file" && continue
4308    fdir=`(dirname "$file") 2>/dev/null ||
4309$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4310         X"$file" : 'X\(//\)[^/]' \| \
4311         X"$file" : 'X\(//\)$' \| \
4312         X"$file" : 'X\(/\)' \| \
4313         .     : '\(.\)' 2>/dev/null ||
4314echo X"$file" |
4315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4316  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4317  	  /^X\(\/\/\)$/{ s//\1/; q; }
4318  	  /^X\(\/\).*/{ s//\1/; q; }
4319  	  s/.*/./; q'`
4320    { case $dirpart/$fdir in
4321  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4322  *)                      as_incr_dir=.;;
4323esac
4324as_dummy=$dirpart/$fdir
4325for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4326  case $as_mkdir_dir in
4327    # Skip DOS drivespec
4328    ?:) as_incr_dir=$as_mkdir_dir ;;
4329    *)
4330      as_incr_dir=$as_incr_dir/$as_mkdir_dir
4331      test -d "$as_incr_dir" ||
4332        mkdir "$as_incr_dir" ||
4333	{ { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
4334echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
4335   { (exit 1); exit 1; }; }
4336    ;;
4337  esac
4338done; }
4339
4340    # echo "creating $dirpart/$file"
4341    echo '# dummy' > "$dirpart/$file"
4342  done
4343done
4344 ;;
4345  esac
4346done
4347_ACEOF
4348
4349cat >>$CONFIG_STATUS <<\_ACEOF
4350
4351{ (exit 0); exit 0; }
4352_ACEOF
4353chmod +x $CONFIG_STATUS
4354ac_clean_files=$ac_clean_files_save
4355
4356
4357# configure is writing to config.log, and then calls config.status.
4358# config.status does its own redirection, appending to config.log.
4359# Unfortunately, on DOS this fails, as config.log is still kept open
4360# by configure, so config.status won't be able to write to it; its
4361# output is simply discarded.  So we exec the FD to /dev/null,
4362# effectively closing config.log, so it can be properly (re)opened and
4363# appended to by config.status.  When coming back to configure, we
4364# need to make the FD available again.
4365if test "$no_create" != yes; then
4366  ac_cs_success=:
4367  exec 5>/dev/null
4368  $SHELL $CONFIG_STATUS || ac_cs_success=false
4369  exec 5>>config.log
4370  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4371  # would make configure fail if this is the last instruction.
4372  $ac_cs_success || { (exit 1); exit 1; }
4373fi
4374
4375