/[dejagnu]/dejagnu/example/calc/configure
ViewVC logotype

Diff of /dejagnu/example/calc/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by rsavoye, Sun Feb 18 05:12:07 2001 UTC revision 1.3 by rsavoye, Fri Apr 26 03:32:40 2002 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
   
2  # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
3  # Generated automatically using autoconf version 2.13  # Generated by Autoconf 2.52.
 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.  
4  #  #
5    # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6    # Free Software Foundation, Inc.
7  # This configure script is free software; the Free Software Foundation  # This configure script is free software; the Free Software Foundation
8  # gives unlimited permission to copy, distribute and modify it.  # gives unlimited permission to copy, distribute and modify it.
9    
10  # Defaults:  # Avoid depending upon Character Ranges.
11  ac_help=  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12    as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13    as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14    as_cr_digits='0123456789'
15    as_cr_alnum=$as_cr_Letters$as_cr_digits
16    
17    # Sed expression to map a string onto a valid variable name.
18    as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19    
20    # Sed expression to map a string onto a valid CPP name.
21    as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22    
23    # Be Bourne compatible
24    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25      emulate sh
26      NULLCMD=:
27    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28      set -o posix
29    fi
30    
31    # Name of the executable.
32    as_me=`echo "$0" |sed 's,.*[\\/],,'`
33    
34    if expr a : '\(a\)' >/dev/null 2>&1; then
35      as_expr=expr
36    else
37      as_expr=false
38    fi
39    
40    rm -f conf$$ conf$$.exe conf$$.file
41    echo >conf$$.file
42    if ln -s conf$$.file conf$$ 2>/dev/null; then
43      # We could just check for DJGPP; but this test a) works b) is more generic
44      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45      if test -f conf$$.exe; then
46        # Don't use ln at all; we don't have any links
47        as_ln_s='cp -p'
48      else
49        as_ln_s='ln -s'
50      fi
51    elif ln conf$$.file conf$$ 2>/dev/null; then
52      as_ln_s=ln
53    else
54      as_ln_s='cp -p'
55    fi
56    rm -f conf$$ conf$$.exe conf$$.file
57    
58    as_executable_p="test -f"
59    
60    # Support unset when possible.
61    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62      as_unset=unset
63    else
64      as_unset=false
65    fi
66    
67    # NLS nuisances.
68    $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69    $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70    $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71    $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72    $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73    $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74    $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75    $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76    
77    # IFS
78    # We need space, tab and new line, in precisely that order.
79    as_nl='
80    '
81    IFS="   $as_nl"
82    
83    # CDPATH.
84    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85    
86    # Name of the host.
87    # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88    # so uname gets run too.
89    ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90    
91    exec 6>&1
92    
93    #
94    # Initializations.
95    #
96  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
97  # Any additions from configure.in:  cross_compiling=no
98    subdirs=
99    MFLAGS= MAKEFLAGS=
100    SHELL=${CONFIG_SHELL-/bin/sh}
101    
102    # Maximum number of lines to put in a shell here document.
103    # This variable seems obsolete.  It should probably be removed, and
104    # only ac_max_sed_lines should be used.
105    : ${ac_max_here_lines=38}
106    
107    ac_unique_file="calc.c"
108    
109  # Initialize some variables set by options.  # Initialize some variables set by options.
110    ac_init_help=
111    ac_init_version=false
112  # The variables have the same names as the options, with  # The variables have the same names as the options, with
113  # dashes changed to underlines.  # dashes changed to underlines.
114  build=NONE  cache_file=/dev/null
 cache_file=./config.cache  
115  exec_prefix=NONE  exec_prefix=NONE
 host=NONE  
116  no_create=  no_create=
 nonopt=NONE  
117  no_recursion=  no_recursion=
118  prefix=NONE  prefix=NONE
119  program_prefix=NONE  program_prefix=NONE
# Line 29  program_transform_name=s,x,x, Line 122  program_transform_name=s,x,x,
122  silent=  silent=
123  site=  site=
124  srcdir=  srcdir=
 target=NONE  
125  verbose=  verbose=
126  x_includes=NONE  x_includes=NONE
127  x_libraries=NONE  x_libraries=NONE
128    
129    # Installation directory options.
130    # These are left unexpanded so users can "make install exec_prefix=/foo"
131    # and all the variables that are supposed to be based on exec_prefix
132    # by default will actually change.
133    # Use braces instead of parens because sh, perl, etc. also accept them.
134  bindir='${exec_prefix}/bin'  bindir='${exec_prefix}/bin'
135  sbindir='${exec_prefix}/sbin'  sbindir='${exec_prefix}/sbin'
136  libexecdir='${exec_prefix}/libexec'  libexecdir='${exec_prefix}/libexec'
# Line 46  oldincludedir='/usr/include' Line 144  oldincludedir='/usr/include'
144  infodir='${prefix}/info'  infodir='${prefix}/info'
145  mandir='${prefix}/man'  mandir='${prefix}/man'
146    
147  # Initialize some other variables.  # Identity of this package.
148  subdirs=  PACKAGE_NAME=
149  MFLAGS= MAKEFLAGS=  PACKAGE_TARNAME=
150  SHELL=${CONFIG_SHELL-/bin/sh}  PACKAGE_VERSION=
151  # Maximum number of lines to put in a shell here document.  PACKAGE_STRING=
152  ac_max_here_lines=12  PACKAGE_BUGREPORT=
153    
154  ac_prev=  ac_prev=
155  for ac_option  for ac_option
156  do  do
   
157    # If the previous option needs an argument, assign it.    # If the previous option needs an argument, assign it.
158    if test -n "$ac_prev"; then    if test -n "$ac_prev"; then
159      eval "$ac_prev=\$ac_option"      eval "$ac_prev=\$ac_option"
# Line 64  do Line 161  do
161      continue      continue
162    fi    fi
163    
164    case "$ac_option" in    ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;  
   *) ac_optarg= ;;  
   esac  
165    
166    # Accept the important Cygnus configure options, so we can diagnose typos.    # Accept the important Cygnus configure options, so we can diagnose typos.
167    
168    case "$ac_option" in    case $ac_option in
169    
170    -bindir | --bindir | --bindi | --bind | --bin | --bi)    -bindir | --bindir | --bindi | --bind | --bin | --bi)
171      ac_prev=bindir ;;      ac_prev=bindir ;;
172    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173      bindir="$ac_optarg" ;;      bindir=$ac_optarg ;;
174    
175    -build | --build | --buil | --bui | --bu)    -build | --build | --buil | --bui | --bu)
176      ac_prev=build ;;      ac_prev=build_alias ;;
177    -build=* | --build=* | --buil=* | --bui=* | --bu=*)    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178      build="$ac_optarg" ;;      build_alias=$ac_optarg ;;
179    
180    -cache-file | --cache-file | --cache-fil | --cache-fi \    -cache-file | --cache-file | --cache-fil | --cache-fi \
181    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182      ac_prev=cache_file ;;      ac_prev=cache_file ;;
183    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185      cache_file="$ac_optarg" ;;      cache_file=$ac_optarg ;;
186    
187      --config-cache | -C)
188        cache_file=config.cache ;;
189    
190    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)    -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191      ac_prev=datadir ;;      ac_prev=datadir ;;
192    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \    -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193    | --da=*)    | --da=*)
194      datadir="$ac_optarg" ;;      datadir=$ac_optarg ;;
195    
196    -disable-* | --disable-*)    -disable-* | --disable-*)
197      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`      ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
199      if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201      fi     { (exit 1); exit 1; }; }
202      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203      eval "enable_${ac_feature}=no" ;;      eval "enable_$ac_feature=no" ;;
204    
205    -enable-* | --enable-*)    -enable-* | --enable-*)
206      ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`      ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
208      if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209        { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }        { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210      fi     { (exit 1); exit 1; }; }
211      ac_feature=`echo $ac_feature| sed 's/-/_/g'`      ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212      case "$ac_option" in      case $ac_option in
213        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
215      esac      esac
216      eval "enable_${ac_feature}='$ac_optarg'" ;;      eval "enable_$ac_feature='$ac_optarg'" ;;
217    
218    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
# Line 125  do Line 222  do
222    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224    | --exec=* | --exe=* | --ex=*)    | --exec=* | --exe=* | --ex=*)
225      exec_prefix="$ac_optarg" ;;      exec_prefix=$ac_optarg ;;
226    
227    -gas | --gas | --ga | --g)    -gas | --gas | --ga | --g)
228      # Obsolete; use --with-gas.      # Obsolete; use --with-gas.
229      with_gas=yes ;;      with_gas=yes ;;
230    
231    -help | --help | --hel | --he)    -help | --help | --hel | --he | -h)
232      # Omit some internal or obsolete options to make the list less imposing.      ac_init_help=long ;;
233      # This message is too long to be a string in the A/UX 3.1 sh.    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234      cat << EOF      ac_init_help=recursive ;;
235  Usage: configure [options] [host]    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236  Options: [defaults in brackets after descriptions]      ac_init_help=short ;;
 Configuration:  
   --cache-file=FILE       cache test results in FILE  
   --help                  print this message  
   --no-create             do not create output files  
   --quiet, --silent       do not print \`checking...' messages  
   --version               print the version of autoconf that created configure  
 Directory and file names:  
   --prefix=PREFIX         install architecture-independent files in PREFIX  
                           [$ac_default_prefix]  
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX  
                           [same as prefix]  
   --bindir=DIR            user executables in DIR [EPREFIX/bin]  
   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]  
   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]  
   --datadir=DIR           read-only architecture-independent data in DIR  
                           [PREFIX/share]  
   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]  
   --sharedstatedir=DIR    modifiable architecture-independent data in DIR  
                           [PREFIX/com]  
   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]  
   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]  
   --includedir=DIR        C header files in DIR [PREFIX/include]  
   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]  
   --infodir=DIR           info documentation in DIR [PREFIX/info]  
   --mandir=DIR            man documentation in DIR [PREFIX/man]  
   --srcdir=DIR            find the sources in DIR [configure dir or ..]  
   --program-prefix=PREFIX prepend PREFIX to installed program names  
   --program-suffix=SUFFIX append SUFFIX to installed program names  
   --program-transform-name=PROGRAM  
                           run sed PROGRAM on installed program names  
 EOF  
     cat << EOF  
 Host type:  
   --build=BUILD           configure for building on BUILD [BUILD=HOST]  
   --host=HOST             configure for HOST [guessed]  
   --target=TARGET         configure for TARGET [TARGET=HOST]  
 Features and packages:  
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)  
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]  
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]  
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)  
   --x-includes=DIR        X include files are in DIR  
   --x-libraries=DIR       X library files are in DIR  
 EOF  
     if test -n "$ac_help"; then  
       echo "--enable and --with options recognized:$ac_help"  
     fi  
     exit 0 ;;  
237    
238    -host | --host | --hos | --ho)    -host | --host | --hos | --ho)
239      ac_prev=host ;;      ac_prev=host_alias ;;
240    -host=* | --host=* | --hos=* | --ho=*)    -host=* | --host=* | --hos=* | --ho=*)
241      host="$ac_optarg" ;;      host_alias=$ac_optarg ;;
242    
243    -includedir | --includedir | --includedi | --included | --include \    -includedir | --includedir | --includedi | --included | --include \
244    | --includ | --inclu | --incl | --inc)    | --includ | --inclu | --incl | --inc)
245      ac_prev=includedir ;;      ac_prev=includedir ;;
246    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247    | --includ=* | --inclu=* | --incl=* | --inc=*)    | --includ=* | --inclu=* | --incl=* | --inc=*)
248      includedir="$ac_optarg" ;;      includedir=$ac_optarg ;;
249    
250    -infodir | --infodir | --infodi | --infod | --info | --inf)    -infodir | --infodir | --infodi | --infod | --info | --inf)
251      ac_prev=infodir ;;      ac_prev=infodir ;;
252    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253      infodir="$ac_optarg" ;;      infodir=$ac_optarg ;;
254    
255    -libdir | --libdir | --libdi | --libd)    -libdir | --libdir | --libdi | --libd)
256      ac_prev=libdir ;;      ac_prev=libdir ;;
257    -libdir=* | --libdir=* | --libdi=* | --libd=*)    -libdir=* | --libdir=* | --libdi=* | --libd=*)
258      libdir="$ac_optarg" ;;      libdir=$ac_optarg ;;
259    
260    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261    | --libexe | --libex | --libe)    | --libexe | --libex | --libe)
262      ac_prev=libexecdir ;;      ac_prev=libexecdir ;;
263    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264    | --libexe=* | --libex=* | --libe=*)    | --libexe=* | --libex=* | --libe=*)
265      libexecdir="$ac_optarg" ;;      libexecdir=$ac_optarg ;;
266    
267    -localstatedir | --localstatedir | --localstatedi | --localstated \    -localstatedir | --localstatedir | --localstatedi | --localstated \
268    | --localstate | --localstat | --localsta | --localst \    | --localstate | --localstat | --localsta | --localst \
# Line 222  EOF Line 271  EOF
271    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272    | --localstate=* | --localstat=* | --localsta=* | --localst=* \    | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)    | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274      localstatedir="$ac_optarg" ;;      localstatedir=$ac_optarg ;;
275    
276    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277      ac_prev=mandir ;;      ac_prev=mandir ;;
278    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279      mandir="$ac_optarg" ;;      mandir=$ac_optarg ;;
280    
281    -nfp | --nfp | --nf)    -nfp | --nfp | --nf)
282      # Obsolete; use --without-fp.      # Obsolete; use --without-fp.
# Line 248  EOF Line 297  EOF
297    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300      oldincludedir="$ac_optarg" ;;      oldincludedir=$ac_optarg ;;
301    
302    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303      ac_prev=prefix ;;      ac_prev=prefix ;;
304    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305      prefix="$ac_optarg" ;;      prefix=$ac_optarg ;;
306    
307    -program-prefix | --program-prefix | --program-prefi | --program-pref \    -program-prefix | --program-prefix | --program-prefi | --program-pref \
308    | --program-pre | --program-pr | --program-p)    | --program-pre | --program-pr | --program-p)
309      ac_prev=program_prefix ;;      ac_prev=program_prefix ;;
310    -program-prefix=* | --program-prefix=* | --program-prefi=* \    -program-prefix=* | --program-prefix=* | --program-prefi=* \
311    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312      program_prefix="$ac_optarg" ;;      program_prefix=$ac_optarg ;;
313    
314    -program-suffix | --program-suffix | --program-suffi | --program-suff \    -program-suffix | --program-suffix | --program-suffi | --program-suff \
315    | --program-suf | --program-su | --program-s)    | --program-suf | --program-su | --program-s)
316      ac_prev=program_suffix ;;      ac_prev=program_suffix ;;
317    -program-suffix=* | --program-suffix=* | --program-suffi=* \    -program-suffix=* | --program-suffix=* | --program-suffi=* \
318    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319      program_suffix="$ac_optarg" ;;      program_suffix=$ac_optarg ;;
320    
321    -program-transform-name | --program-transform-name \    -program-transform-name | --program-transform-name \
322    | --program-transform-nam | --program-transform-na \    | --program-transform-nam | --program-transform-na \
# Line 284  EOF Line 333  EOF
333    | --program-transfo=* | --program-transf=* \    | --program-transfo=* | --program-transf=* \
334    | --program-trans=* | --program-tran=* \    | --program-trans=* | --program-tran=* \
335    | --progr-tra=* | --program-tr=* | --program-t=*)    | --progr-tra=* | --program-tr=* | --program-t=*)
336      program_transform_name="$ac_optarg" ;;      program_transform_name=$ac_optarg ;;
337    
338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339    | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
# Line 294  EOF Line 343  EOF
343      ac_prev=sbindir ;;      ac_prev=sbindir ;;
344    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345    | --sbi=* | --sb=*)    | --sbi=* | --sb=*)
346      sbindir="$ac_optarg" ;;      sbindir=$ac_optarg ;;
347    
348    -sharedstatedir | --sharedstatedir | --sharedstatedi \    -sharedstatedir | --sharedstatedir | --sharedstatedi \
349    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
# Line 305  EOF Line 354  EOF
354    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356    | --sha=* | --sh=*)    | --sha=* | --sh=*)
357      sharedstatedir="$ac_optarg" ;;      sharedstatedir=$ac_optarg ;;
358    
359    -site | --site | --sit)    -site | --site | --sit)
360      ac_prev=site ;;      ac_prev=site ;;
361    -site=* | --site=* | --sit=*)    -site=* | --site=* | --sit=*)
362      site="$ac_optarg" ;;      site=$ac_optarg ;;
363    
364    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365      ac_prev=srcdir ;;      ac_prev=srcdir ;;
366    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367      srcdir="$ac_optarg" ;;      srcdir=$ac_optarg ;;
368    
369    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370    | --syscon | --sysco | --sysc | --sys | --sy)    | --syscon | --sysco | --sysc | --sys | --sy)
371      ac_prev=sysconfdir ;;      ac_prev=sysconfdir ;;
372    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374      sysconfdir="$ac_optarg" ;;      sysconfdir=$ac_optarg ;;
375    
376    -target | --target | --targe | --targ | --tar | --ta | --t)    -target | --target | --targe | --targ | --tar | --ta | --t)
377      ac_prev=target ;;      ac_prev=target_alias ;;
378    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379      target="$ac_optarg" ;;      target_alias=$ac_optarg ;;
380    
381    -v | -verbose | --verbose | --verbos | --verbo | --verb)    -v | -verbose | --verbose | --verbos | --verbo | --verb)
382      verbose=yes ;;      verbose=yes ;;
383    
384    -version | --version | --versio | --versi | --vers)    -version | --version | --versio | --versi | --vers | -V)
385      echo "configure generated by autoconf version 2.13"      ac_init_version=: ;;
     exit 0 ;;  
386    
387    -with-* | --with-*)    -with-* | --with-*)
388      ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`      ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
390      if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
392      fi     { (exit 1); exit 1; }; }
393      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package| sed 's/-/_/g'`
394      case "$ac_option" in      case $ac_option in
395        *=*) ;;        *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396        *) ac_optarg=yes ;;        *) ac_optarg=yes ;;
397      esac      esac
398      eval "with_${ac_package}='$ac_optarg'" ;;      eval "with_$ac_package='$ac_optarg'" ;;
399    
400    -without-* | --without-*)    -without-* | --without-*)
401      ac_package=`echo $ac_option|sed -e 's/-*without-//'`      ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402      # Reject names that are not valid shell variable names.      # Reject names that are not valid shell variable names.
403      if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then      expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404        { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }        { echo "$as_me: error: invalid package name: $ac_package" >&2
405      fi     { (exit 1); exit 1; }; }
406      ac_package=`echo $ac_package| sed 's/-/_/g'`      ac_package=`echo $ac_package | sed 's/-/_/g'`
407      eval "with_${ac_package}=no" ;;      eval "with_$ac_package=no" ;;
408    
409    --x)    --x)
410      # Obsolete; use --with-x.      # Obsolete; use --with-x.
# Line 367  EOF Line 415  EOF
415      ac_prev=x_includes ;;      ac_prev=x_includes ;;
416    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418      x_includes="$ac_optarg" ;;      x_includes=$ac_optarg ;;
419    
420    -x-libraries | --x-libraries | --x-librarie | --x-librari \    -x-libraries | --x-libraries | --x-librarie | --x-librari \
421    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422      ac_prev=x_libraries ;;      ac_prev=x_libraries ;;
423    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425      x_libraries="$ac_optarg" ;;      x_libraries=$ac_optarg ;;
426    
427    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }    -*) { echo "$as_me: error: unrecognized option: $ac_option
428    Try \`$0 --help' for more information." >&2
429       { (exit 1); exit 1; }; }
430      ;;      ;;
431    
432      *=*)
433        ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434        # Reject names that are not valid shell variable names.
435        expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436          { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437       { (exit 1); exit 1; }; }
438        ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439        eval "$ac_envvar='$ac_optarg'"
440        export $ac_envvar ;;
441    
442    *)    *)
443      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then      # FIXME: should be removed in autoconf 3.0.
444        echo "configure: warning: $ac_option: invalid host type" 1>&2      echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445      fi      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446      if test "x$nonopt" != xNONE; then        echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447        { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }      : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
     fi  
     nonopt="$ac_option"  
448      ;;      ;;
449    
450    esac    esac
451  done  done
452    
453  if test -n "$ac_prev"; then  if test -n "$ac_prev"; then
454    { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455  fi    { echo "$as_me: error: missing argument to $ac_option" >&2
456       { (exit 1); exit 1; }; }
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
 # File descriptor usage:  
 # 0 standard input  
 # 1 file creation  
 # 2 errors and warnings  
 # 3 some systems may open it to /dev/tty  
 # 4 used on the Kubota Titan  
 # 6 checking for... messages and results  
 # 5 compiler messages saved in config.log  
 if test "$silent" = yes; then  
   exec 6>/dev/null  
 else  
   exec 6>&1  
457  fi  fi
 exec 5>./config.log  
458    
459  echo "\  # Be sure to have absolute paths.
460  This file contains any messages produced by compilers while  for ac_var in exec_prefix prefix
461  running configure, to aid debugging if configure makes a mistake.  do
462  " 1>&5    eval ac_val=$`echo $ac_var`
463      case $ac_val in
464        [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465        *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466       { (exit 1); exit 1; }; };;
467      esac
468    done
469    
470  # Strip out --no-create and --no-recursion so they do not pile up.  # Be sure to have absolute paths.
471  # Also quote any args containing shell metacharacters.  for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472  ac_configure_args=                localstatedir libdir includedir oldincludedir infodir mandir
 for ac_arg  
473  do  do
474    case "$ac_arg" in    eval ac_val=$`echo $ac_var`
475    -no-create | --no-create | --no-creat | --no-crea | --no-cre \    case $ac_val in
476    | --no-cr | --no-c) ;;      [\\/$]* | ?:[\\/]* ) ;;
477    -no-recursion | --no-recursion | --no-recursio | --no-recursi \      *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;     { (exit 1); exit 1; }; };;
   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)  
   ac_configure_args="$ac_configure_args '$ac_arg'" ;;  
   *) ac_configure_args="$ac_configure_args $ac_arg" ;;  
479    esac    esac
480  done  done
481    
482  # NLS nuisances.  # There might be people who depend on the old broken behavior: `$host'
483  # Only set these to C if already set.  These must not be set unconditionally  # used to hold the argument of --host etc.
484  # because not all systems understand e.g. LANG=C (notably SCO).  build=$build_alias
485  # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!  host=$host_alias
486  # Non-C LC_CTYPE values break the ctype check.  target=$target_alias
487  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi  
488  if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi  # FIXME: should be removed in autoconf 3.0.
489  if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi  if test "x$host_alias" != x; then
490  if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi    if test "x$build_alias" = x; then
491        cross_compiling=maybe
492        echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493        If a cross compiler is detected then cross compile mode will be used." >&2
494      elif test "x$build_alias" != "x$host_alias"; then
495        cross_compiling=yes
496      fi
497    fi
498    
499  # confdefs.h avoids OS command line length limits that DEFS can exceed.  ac_tool_prefix=
500  rm -rf conftest* confdefs.h  test -n "$host_alias" && ac_tool_prefix=$host_alias-
 # AIX cpp loses on an empty file, so make sure it contains at least a newline.  
 echo > confdefs.h  
501    
502  # A filename unique to this package, relative to the directory that  test "$silent" = yes && exec 6>/dev/null
 # configure is in, which we can look for to find out if srcdir is correct.  
 ac_unique_file=calc.c  
503    
504  # Find the source files, if location was not specified.  # Find the source files, if location was not specified.
505  if test -z "$srcdir"; then  if test -z "$srcdir"; then
506    ac_srcdir_defaulted=yes    ac_srcdir_defaulted=yes
507    # Try the directory containing this script, then its parent.    # Try the directory containing this script, then its parent.
508    ac_prog=$0    ac_prog=$0
509    ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`    ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.    test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511    srcdir=$ac_confdir    srcdir=$ac_confdir
512    if test ! -r $srcdir/$ac_unique_file; then    if test ! -r $srcdir/$ac_unique_file; then
# Line 469  else Line 517  else
517  fi  fi
518  if test ! -r $srcdir/$ac_unique_file; then  if test ! -r $srcdir/$ac_unique_file; then
519    if test "$ac_srcdir_defaulted" = yes; then    if test "$ac_srcdir_defaulted" = yes; then
520      { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521       { (exit 1); exit 1; }; }
522    else    else
523      { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }      { echo "$as_me: error: cannot find sources in $srcdir" >&2
524       { (exit 1); exit 1; }; }
525    fi    fi
526  fi  fi
527  srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`  srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528    ac_env_build_alias_set=${build_alias+set}
529    ac_env_build_alias_value=$build_alias
530    ac_cv_env_build_alias_set=${build_alias+set}
531    ac_cv_env_build_alias_value=$build_alias
532    ac_env_host_alias_set=${host_alias+set}
533    ac_env_host_alias_value=$host_alias
534    ac_cv_env_host_alias_set=${host_alias+set}
535    ac_cv_env_host_alias_value=$host_alias
536    ac_env_target_alias_set=${target_alias+set}
537    ac_env_target_alias_value=$target_alias
538    ac_cv_env_target_alias_set=${target_alias+set}
539    ac_cv_env_target_alias_value=$target_alias
540    ac_env_CC_set=${CC+set}
541    ac_env_CC_value=$CC
542    ac_cv_env_CC_set=${CC+set}
543    ac_cv_env_CC_value=$CC
544    ac_env_CFLAGS_set=${CFLAGS+set}
545    ac_env_CFLAGS_value=$CFLAGS
546    ac_cv_env_CFLAGS_set=${CFLAGS+set}
547    ac_cv_env_CFLAGS_value=$CFLAGS
548    ac_env_LDFLAGS_set=${LDFLAGS+set}
549    ac_env_LDFLAGS_value=$LDFLAGS
550    ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551    ac_cv_env_LDFLAGS_value=$LDFLAGS
552    ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553    ac_env_CPPFLAGS_value=$CPPFLAGS
554    ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555    ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556    ac_env_CPP_set=${CPP+set}
557    ac_env_CPP_value=$CPP
558    ac_cv_env_CPP_set=${CPP+set}
559    ac_cv_env_CPP_value=$CPP
560    
561    #
562    # Report the --help message.
563    #
564    if test "$ac_init_help" = "long"; then
565      # Omit some internal or obsolete options to make the list less imposing.
566      # This message is too long to be a string in the A/UX 3.1 sh.
567      cat <<EOF
568    \`configure' configures this package to adapt to many kinds of systems.
569    
570    Usage: $0 [OPTION]... [VAR=VALUE]...
571    
572    To assign environment variables (e.g., CC, CFLAGS...), specify them as
573    VAR=VALUE.  See below for descriptions of some of the useful variables.
574    
575    Defaults for the options are specified in brackets.
576    
577    Configuration:
578      -h, --help              display this help and exit
579          --help=short        display options specific to this package
580          --help=recursive    display the short help of all the included packages
581      -V, --version           display version information and exit
582      -q, --quiet, --silent   do not print \`checking...' messages
583          --cache-file=FILE   cache test results in FILE [disabled]
584      -C, --config-cache      alias for \`--cache-file=config.cache'
585      -n, --no-create         do not create output files
586          --srcdir=DIR        find the sources in DIR [configure dir or \`..']
587    
588    EOF
589    
590      cat <<EOF
591    Installation directories:
592      --prefix=PREFIX         install architecture-independent files in PREFIX
593                              [$ac_default_prefix]
594      --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
595                              [PREFIX]
596    
597    By default, \`make install' will install all the files in
598    \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
599    an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600    for instance \`--prefix=\$HOME'.
601    
602    For better control, use the options below.
603    
604    Fine tuning of the installation directories:
605      --bindir=DIR           user executables [EPREFIX/bin]
606      --sbindir=DIR          system admin executables [EPREFIX/sbin]
607      --libexecdir=DIR       program executables [EPREFIX/libexec]
608      --datadir=DIR          read-only architecture-independent data [PREFIX/share]
609      --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
610      --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
611      --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
612      --libdir=DIR           object code libraries [EPREFIX/lib]
613      --includedir=DIR       C header files [PREFIX/include]
614      --oldincludedir=DIR    C header files for non-gcc [/usr/include]
615      --infodir=DIR          info documentation [PREFIX/info]
616      --mandir=DIR           man documentation [PREFIX/man]
617    EOF
618    
619      cat <<\EOF
620    
621    Program names:
622      --program-prefix=PREFIX            prepend PREFIX to installed program names
623      --program-suffix=SUFFIX            append SUFFIX to installed program names
624      --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
625    EOF
626    fi
627    
628    if test -n "$ac_init_help"; then
629    
630      cat <<\EOF
631    
632    Optional Features:
633      --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
634      --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
635      --disable-dependency-tracking Speeds up one-time builds
636      --enable-dependency-tracking  Do not reject slow dependency extractors
637      --enable-maintainer-mode enable make rules and dependencies not useful
638                              (and sometimes confusing) to the casual installer
639    
640    Some influential environment variables:
641      CC          C compiler command
642      CFLAGS      C compiler flags
643      LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
644                  nonstandard directory <lib dir>
645      CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
646                  headers in a nonstandard directory <include dir>
647      CPP         C preprocessor
648    
649    Use these variables to override the choices made by `configure' or to help
650    it to find libraries and programs with nonstandard names/locations.
651    
652    EOF
653    fi
654    
655    if test "$ac_init_help" = "recursive"; then
656      # If there are subdirs, report their specific --help.
657      ac_popdir=`pwd`
658      for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
659        cd $ac_subdir
660        # A "../" for each directory in /$ac_subdir.
661        ac_dots=`echo $ac_subdir |
662                 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
663    
664        case $srcdir in
665        .) # No --srcdir option.  We are building in place.
666          ac_sub_srcdir=$srcdir ;;
667        [\\/]* | ?:[\\/]* ) # Absolute path.
668          ac_sub_srcdir=$srcdir/$ac_subdir ;;
669        *) # Relative path.
670          ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
671        esac
672    
673        # Check for guested configure; otherwise get Cygnus style configure.
674        if test -f $ac_sub_srcdir/configure.gnu; then
675          echo
676          $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
677        elif test -f $ac_sub_srcdir/configure; then
678          echo
679          $SHELL $ac_sub_srcdir/configure  --help=recursive
680        elif test -f $ac_sub_srcdir/configure.ac ||
681               test -f $ac_sub_srcdir/configure.in; then
682          echo
683          $ac_configure --help
684        else
685          echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
686        fi
687        cd $ac_popdir
688      done
689    fi
690    
691    test -n "$ac_init_help" && exit 0
692    if $ac_init_version; then
693      cat <<\EOF
694    
695    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
696    Free Software Foundation, Inc.
697    This configure script is free software; the Free Software Foundation
698    gives unlimited permission to copy, distribute and modify it.
699    EOF
700      exit 0
701    fi
702    exec 5>config.log
703    cat >&5 <<EOF
704    This file contains any messages produced by compilers while
705    running configure, to aid debugging if configure makes a mistake.
706    
707    It was created by $as_me, which was
708    generated by GNU Autoconf 2.52.  Invocation command line was
709    
710      $ $0 $@
711    
712    EOF
713    {
714    cat <<_ASUNAME
715    ## ---------- ##
716    ## Platform.  ##
717    ## ---------- ##
718    
719    hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
720    uname -m = `(uname -m) 2>/dev/null || echo unknown`
721    uname -r = `(uname -r) 2>/dev/null || echo unknown`
722    uname -s = `(uname -s) 2>/dev/null || echo unknown`
723    uname -v = `(uname -v) 2>/dev/null || echo unknown`
724    
725    /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
726    /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
727    
728    /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
729    /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
730    /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
731    hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
732    /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
733    /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
734    /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
735    
736    PATH = $PATH
737    
738    _ASUNAME
739    } >&5
740    
741    cat >&5 <<EOF
742    ## ------------ ##
743    ## Core tests.  ##
744    ## ------------ ##
745    
746    EOF
747    
748    # Keep a trace of the command line.
749    # Strip out --no-create and --no-recursion so they do not pile up.
750    # Also quote any args containing shell meta-characters.
751    ac_configure_args=
752    ac_sep=
753    for ac_arg
754    do
755      case $ac_arg in
756      -no-create | --no-create | --no-creat | --no-crea | --no-cre \
757      | --no-cr | --no-c) ;;
758      -no-recursion | --no-recursion | --no-recursio | --no-recursi \
759      | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
760      *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
761        ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
762        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
763        ac_sep=" " ;;
764      *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
765         ac_sep=" " ;;
766      esac
767      # Get rid of the leading space.
768    done
769    
770    # When interrupted or exit'd, cleanup temporary files, and complete
771    # config.log.  We remove comments because anyway the quotes in there
772    # would cause problems or look ugly.
773    trap 'exit_status=$?
774      # Save into config.log some information that might help in debugging.
775      echo >&5
776      echo "## ----------------- ##" >&5
777      echo "## Cache variables.  ##" >&5
778      echo "## ----------------- ##" >&5
779      echo >&5
780      # The following way of writing the cache mishandles newlines in values,
781    {
782      (set) 2>&1 |
783        case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
784        *ac_space=\ *)
785          sed -n \
786            "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
787              s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
788          ;;
789        *)
790          sed -n \
791            "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
792          ;;
793        esac;
794    } >&5
795      sed "/^$/d" confdefs.h >conftest.log
796      if test -s conftest.log; then
797        echo >&5
798        echo "## ------------ ##" >&5
799        echo "## confdefs.h.  ##" >&5
800        echo "## ------------ ##" >&5
801        echo >&5
802        cat conftest.log >&5
803      fi
804      (echo; echo) >&5
805      test "$ac_signal" != 0 &&
806        echo "$as_me: caught signal $ac_signal" >&5
807      echo "$as_me: exit $exit_status" >&5
808      rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
809        exit $exit_status
810         ' 0
811    for ac_signal in 1 2 13 15; do
812      trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
813    done
814    ac_signal=0
815    
816    # confdefs.h avoids OS command line length limits that DEFS can exceed.
817    rm -rf conftest* confdefs.h
818    # AIX cpp loses on an empty file, so make sure it contains at least a newline.
819    echo >confdefs.h
820    
821    # Let the site file select an alternate cache file if it wants to.
822  # Prefer explicitly selected file to automatically selected ones.  # Prefer explicitly selected file to automatically selected ones.
823  if test -z "$CONFIG_SITE"; then  if test -z "$CONFIG_SITE"; then
824    if test "x$prefix" != xNONE; then    if test "x$prefix" != xNONE; then
# Line 486  if test -z "$CONFIG_SITE"; then Line 829  if test -z "$CONFIG_SITE"; then
829  fi  fi
830  for ac_site_file in $CONFIG_SITE; do  for ac_site_file in $CONFIG_SITE; do
831    if test -r "$ac_site_file"; then    if test -r "$ac_site_file"; then
832      echo "loading site script $ac_site_file"      { echo "$as_me:832: loading site script $ac_site_file" >&5
833    echo "$as_me: loading site script $ac_site_file" >&6;}
834        cat "$ac_site_file" >&5
835      . "$ac_site_file"      . "$ac_site_file"
836    fi    fi
837  done  done
838    
839  if test -r "$cache_file"; then  if test -r "$cache_file"; then
840    echo "loading cache $cache_file"    # Some versions of bash will fail to source /dev/null (special
841    . $cache_file    # files actually), so we avoid doing that.
842      if test -f "$cache_file"; then
843        { echo "$as_me:843: loading cache $cache_file" >&5
844    echo "$as_me: loading cache $cache_file" >&6;}
845        case $cache_file in
846          [\\/]* | ?:[\\/]* ) . $cache_file;;
847          *)                      . ./$cache_file;;
848        esac
849      fi
850  else  else
851    echo "creating cache $cache_file"    { echo "$as_me:851: creating cache $cache_file" >&5
852    > $cache_file  echo "$as_me: creating cache $cache_file" >&6;}
853      >$cache_file
854    fi
855    
856    # Check that the precious variables saved in the cache have kept the same
857    # value.
858    ac_cache_corrupted=false
859    for ac_var in `(set) 2>&1 |
860                   sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
861      eval ac_old_set=\$ac_cv_env_${ac_var}_set
862      eval ac_new_set=\$ac_env_${ac_var}_set
863      eval ac_old_val="\$ac_cv_env_${ac_var}_value"
864      eval ac_new_val="\$ac_env_${ac_var}_value"
865      case $ac_old_set,$ac_new_set in
866        set,)
867          { echo "$as_me:867: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
868    echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
869          ac_cache_corrupted=: ;;
870        ,set)
871          { echo "$as_me:871: error: \`$ac_var' was not set in the previous run" >&5
872    echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
873          ac_cache_corrupted=: ;;
874        ,);;
875        *)
876          if test "x$ac_old_val" != "x$ac_new_val"; then
877            { echo "$as_me:877: error: \`$ac_var' has changed since the previous run:" >&5
878    echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
879            { echo "$as_me:879:   former value:  $ac_old_val" >&5
880    echo "$as_me:   former value:  $ac_old_val" >&2;}
881            { echo "$as_me:881:   current value: $ac_new_val" >&5
882    echo "$as_me:   current value: $ac_new_val" >&2;}
883            ac_cache_corrupted=:
884          fi;;
885      esac
886      # Pass precious variables to config.status.  It doesn't matter if
887      # we pass some twice (in addition to the command line arguments).
888      if test "$ac_new_set" = set; then
889        case $ac_new_val in
890        *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
891          ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
892          ac_configure_args="$ac_configure_args '$ac_arg'"
893          ;;
894        *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
895           ;;
896        esac
897      fi
898    done
899    if $ac_cache_corrupted; then
900      { echo "$as_me:900: error: changes in the environment can compromise the build" >&5
901    echo "$as_me: error: changes in the environment can compromise the build" >&2;}
902      { { echo "$as_me:902: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
903    echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
904       { (exit 1); exit 1; }; }
905  fi  fi
906    
907  ac_ext=c  ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
908  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
909  ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
910  ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
911  cross_compiling=$ac_cv_prog_cc_cross  ac_compiler_gnu=$ac_cv_c_compiler_gnu
912    
913  ac_exeext=  case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
914  ac_objext=o    *c*,-n*) ECHO_N= ECHO_C='
915  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then  ' ECHO_T='      ' ;;
916    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.    *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
917    if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then    *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
918      ac_n= ac_c='  esac
919  ' ac_t='        '  echo "#! $SHELL" >conftest.sh
920    else  echo  "exit 0"   >>conftest.sh
921      ac_n=-n ac_c= ac_t=  chmod +x conftest.sh
922    fi  if { (echo "$as_me:922: PATH=\".;.\"; conftest.sh") >&5
923      (PATH=".;."; conftest.sh) 2>&5
924      ac_status=$?
925      echo "$as_me:925: \$? = $ac_status" >&5
926      (exit $ac_status); }; then
927      ac_path_separator=';'
928  else  else
929    ac_n= ac_c='\c' ac_t=    ac_path_separator=:
930  fi  fi
931    PATH_SEPARATOR="$ac_path_separator"
932    rm -f conftest.sh
933    
934                                                        ac_config_headers="$ac_config_headers calc.h"
   
   
935    
936  ac_aux_dir=  ac_aux_dir=
937  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
# Line 534  for ac_dir in $srcdir $srcdir/.. $srcdir Line 943  for ac_dir in $srcdir $srcdir/.. $srcdir
943      ac_aux_dir=$ac_dir      ac_aux_dir=$ac_dir
944      ac_install_sh="$ac_aux_dir/install.sh -c"      ac_install_sh="$ac_aux_dir/install.sh -c"
945      break      break
946      elif test -f $ac_dir/shtool; then
947        ac_aux_dir=$ac_dir
948        ac_install_sh="$ac_aux_dir/shtool install -c"
949        break
950    fi    fi
951  done  done
952  if test -z "$ac_aux_dir"; then  if test -z "$ac_aux_dir"; then
953    { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }    { { echo "$as_me:953: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
954  fi  echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
955  ac_config_guess=$ac_aux_dir/config.guess     { (exit 1); exit 1; }; }
956  ac_config_sub=$ac_aux_dir/config.sub  fi
957  ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.  ac_config_guess="$SHELL $ac_aux_dir/config.guess"
958    ac_config_sub="$SHELL $ac_aux_dir/config.sub"
959    ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
960    
961  # Find a good install program.  We prefer a C program (faster),  # Find a good install program.  We prefer a C program (faster),
962  # so one script is as good as another.  But avoid the broken or  # so one script is as good as another.  But avoid the broken or
# Line 550  ac_configure=$ac_aux_dir/configure # Thi Line 965  ac_configure=$ac_aux_dir/configure # Thi
965  # SunOS /usr/etc/install  # SunOS /usr/etc/install
966  # IRIX /sbin/install  # IRIX /sbin/install
967  # AIX /bin/install  # AIX /bin/install
968    # AmigaOS /C/install, which installs bootblocks on floppy discs
969  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
970  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
971  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
972  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
973  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo "$as_me:973: checking for a BSD compatible install" >&5
974  echo "configure:559: checking for a BSD compatible install" >&5  echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
975  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
976  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if test "${ac_cv_path_install+set}" = set; then
977    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
978  else  else
979      IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"      ac_save_IFS=$IFS; IFS=$ac_path_separator
980    for ac_dir in $PATH; do    for ac_dir in $PATH; do
981        IFS=$ac_save_IFS
982      # Account for people who put trailing slashes in PATH elements.      # Account for people who put trailing slashes in PATH elements.
983      case "$ac_dir/" in      case $ac_dir/ in
984      /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;      / | ./ | .// | /cC/* \
985        | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
986        | /usr/ucb/* ) ;;
987      *)      *)
988        # OSF1 and SCO ODT 3.0 have their own names for install.        # OSF1 and SCO ODT 3.0 have their own names for install.
989        # Don't use installbsd from OSF since it installs stuff as root        # Don't use installbsd from OSF since it installs stuff as root
990        # by default.        # by default.
991        for ac_prog in ginstall scoinst install; do        for ac_prog in ginstall scoinst install; do
992          if test -f $ac_dir/$ac_prog; then          if $as_executable_p "$ac_dir/$ac_prog"; then
993            if test $ac_prog = install &&            if test $ac_prog = install &&
994              grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then              grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
995              # AIX install.  It has an incompatible calling convention.              # AIX install.  It has an incompatible calling convention.
996              :              :
997              elif test $ac_prog = install &&
998                grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
999                # program-specific install script used by HP pwplus--don't use.
1000                :
1001            else            else
1002              ac_cv_path_install="$ac_dir/$ac_prog -c"              ac_cv_path_install="$ac_dir/$ac_prog -c"
1003              break 2              break 2
# Line 584  else Line 1007  else
1007        ;;        ;;
1008      esac      esac
1009    done    done
   IFS="$ac_save_IFS"  
1010    
1011  fi  fi
1012    if test "${ac_cv_path_install+set}" = set; then    if test "${ac_cv_path_install+set}" = set; then
1013      INSTALL="$ac_cv_path_install"      INSTALL=$ac_cv_path_install
1014    else    else
1015      # As a last resort, use the slow shell script.  We don't cache a      # As a last resort, use the slow shell script.  We don't cache a
1016      # path for INSTALL within a source directory, because that will      # path for INSTALL within a source directory, because that will
1017      # break other packages using the cache if that directory is      # break other packages using the cache if that directory is
1018      # removed, or if the path is relative.      # removed, or if the path is relative.
1019      INSTALL="$ac_install_sh"      INSTALL=$ac_install_sh
1020    fi    fi
1021  fi  fi
1022  echo "$ac_t""$INSTALL" 1>&6  echo "$as_me:1022: result: $INSTALL" >&5
1023    echo "${ECHO_T}$INSTALL" >&6
1024    
1025  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1026  # It thinks the first close brace ends the variable substitution.  # It thinks the first close brace ends the variable substitution.
1027  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1028    
1029  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1030    
1031  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1032    
1033  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6  echo "$as_me:1033: checking whether build environment is sane" >&5
1034  echo "configure:612: checking whether build environment is sane" >&5  echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1035  # Just in case  # Just in case
1036  sleep 1  sleep 1
1037  echo timestamp > conftestfile  echo timestamp > conftest.file
1038  # Do `set' in a subshell so we don't clobber the current shell's  # Do `set' in a subshell so we don't clobber the current shell's
1039  # arguments.  Must try -L first in case configure is actually a  # arguments.  Must try -L first in case configure is actually a
1040  # symlink; some systems play weird games with the mod time of symlinks  # symlink; some systems play weird games with the mod time of symlinks
1041  # (eg FreeBSD returns the mod time of the symlink's containing  # (eg FreeBSD returns the mod time of the symlink's containing
1042  # directory).  # directory).
1043  if (  if (
1044     set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1045     if test "$*" = "X"; then     if test "$*" = "X"; then
1046        # -L didn't work.        # -L didn't work.
1047        set X `ls -t $srcdir/configure conftestfile`        set X `ls -t $srcdir/configure conftest.file`
1048     fi     fi
1049     if test "$*" != "X $srcdir/configure conftestfile" \     rm -f conftest.file
1050        && test "$*" != "X conftestfile $srcdir/configure"; then     if test "$*" != "X $srcdir/configure conftest.file" \
1051          && test "$*" != "X conftest.file $srcdir/configure"; then
1052    
1053        # If neither matched, then we have a broken ls.  This can happen        # If neither matched, then we have a broken ls.  This can happen
1054        # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
1055        # broken ls alias from the environment.  This has actually        # broken ls alias from the environment.  This has actually
1056        # happened.  Such a system could not be considered "sane".        # happened.  Such a system could not be considered "sane".
1057        { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken        { { echo "$as_me:1057: error: ls -t appears to fail.  Make sure there is not a broken
1058  alias in your environment" 1>&2; exit 1; }  alias in your environment" >&5
1059    echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1060    alias in your environment" >&2;}
1061       { (exit 1); exit 1; }; }
1062     fi     fi
1063    
1064     test "$2" = conftestfile     test "$2" = conftest.file
1065     )     )
1066  then  then
1067     # Ok.     # Ok.
1068     :     :
1069  else  else
1070     { echo "configure: error: newly created file is older than distributed files!     { { echo "$as_me:1070: error: newly created file is older than distributed files!
1071  Check your system clock" 1>&2; exit 1; }  Check your system clock" >&5
1072  fi  echo "$as_me: error: newly created file is older than distributed files!
1073  rm -f conftest*  Check your system clock" >&2;}
1074  echo "$ac_t""yes" 1>&6     { (exit 1); exit 1; }; }
 if test "$program_transform_name" = s,x,x,; then  
   program_transform_name=  
 else  
   # Double any \ or $.  echo might interpret backslashes.  
   cat <<\EOF_SED > conftestsed  
 s,\\,\\\\,g; s,\$,$$,g  
 EOF_SED  
   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"  
   rm -f conftestsed  
1075  fi  fi
1076    echo "$as_me:1076: result: yes" >&5
1077    echo "${ECHO_T}yes" >&6
1078  test "$program_prefix" != NONE &&  test "$program_prefix" != NONE &&
1079    program_transform_name="s,^,${program_prefix},; $program_transform_name"    program_transform_name="s,^,$program_prefix,;$program_transform_name"
1080  # Use a double $ so make ignores it.  # Use a double $ so make ignores it.
1081  test "$program_suffix" != NONE &&  test "$program_suffix" != NONE &&
1082    program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"    program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1083    # Double any \ or $.  echo might interpret backslashes.
1084    # By default was `s,x,x', remove it if useless.
1085    cat <<\_ACEOF >conftest.sed
1086    s/[\\$]/&&/g;s/;s,x,x,$//
1087    _ACEOF
1088    program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1089    rm conftest.sed
1090    
1091    # expand $ac_aux_dir to an absolute path
1092    am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1093    
1094    test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1095    # Use eval to expand $SHELL
1096    if eval "$MISSING --run true"; then
1097      am_missing_run="$MISSING --run "
1098    else
1099      am_missing_run=
1100      am_backtick='`'
1101      { echo "$as_me:1101: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1102    echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1103    fi
1104    
1105    for ac_prog in mawk gawk nawk awk
1106    do
1107      # Extract the first word of "$ac_prog", so it can be a program name with args.
1108    set dummy $ac_prog; ac_word=$2
1109    echo "$as_me:1109: checking for $ac_word" >&5
1110    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1111    if test "${ac_cv_prog_AWK+set}" = set; then
1112      echo $ECHO_N "(cached) $ECHO_C" >&6
1113    else
1114      if test -n "$AWK"; then
1115      ac_cv_prog_AWK="$AWK" # Let the user override the test.
1116    else
1117      ac_save_IFS=$IFS; IFS=$ac_path_separator
1118    ac_dummy="$PATH"
1119    for ac_dir in $ac_dummy; do
1120      IFS=$ac_save_IFS
1121      test -z "$ac_dir" && ac_dir=.
1122      $as_executable_p "$ac_dir/$ac_word" || continue
1123    ac_cv_prog_AWK="$ac_prog"
1124    echo "$as_me:1124: found $ac_dir/$ac_word" >&5
1125    break
1126    done
1127    
1128    fi
1129    fi
1130    AWK=$ac_cv_prog_AWK
1131    if test -n "$AWK"; then
1132      echo "$as_me:1132: result: $AWK" >&5
1133    echo "${ECHO_T}$AWK" >&6
1134    else
1135      echo "$as_me:1135: result: no" >&5
1136    echo "${ECHO_T}no" >&6
1137    fi
1138    
1139  # sed with no file args requires a program.    test -n "$AWK" && break
1140  test "$program_transform_name" = "" && program_transform_name="s,x,x,"  done
1141    
1142  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo "$as_me:1142: checking whether ${MAKE-make} sets \${MAKE}" >&5
1143  echo "configure:669: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1144  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1145  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1146    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1147  else  else
1148    cat > conftestmake <<\EOF    cat >conftest.make <<\EOF
1149  all:  all:
1150          @echo 'ac_maketemp="${MAKE}"'          @echo 'ac_maketemp="${MAKE}"'
1151  EOF  EOF
1152  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.  # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1153  eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`  eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1154  if test -n "$ac_maketemp"; then  if test -n "$ac_maketemp"; then
1155    eval ac_cv_prog_make_${ac_make}_set=yes    eval ac_cv_prog_make_${ac_make}_set=yes
1156  else  else
1157    eval ac_cv_prog_make_${ac_make}_set=no    eval ac_cv_prog_make_${ac_make}_set=no
1158  fi  fi
1159  rm -f conftestmake  rm -f conftest.make
1160  fi  fi
1161  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1162    echo "$ac_t""yes" 1>&6    echo "$as_me:1162: result: yes" >&5
1163    echo "${ECHO_T}yes" >&6
1164    SET_MAKE=    SET_MAKE=
1165  else  else
1166    echo "$ac_t""no" 1>&6    echo "$as_me:1166: result: no" >&5
1167    echo "${ECHO_T}no" >&6
1168    SET_MAKE="MAKE=${MAKE-make}"    SET_MAKE="MAKE=${MAKE-make}"
1169  fi  fi
1170    
1171    # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1172    if test "${enable_dependency_tracking+set}" = set; then
1173      enableval="$enable_dependency_tracking"
1174    
1175  PACKAGE=calc  fi;
1176    if test "x$enable_dependency_tracking" != xno; then
1177      am_depcomp="$ac_aux_dir/depcomp"
1178      AMDEPBACKSLASH='\'
1179    fi
1180    
1181  VERSION=1.1  if test "x$enable_dependency_tracking" != xno; then
1182      AMDEP_TRUE=
1183      AMDEP_FALSE='#'
1184    else
1185      AMDEP_TRUE='#'
1186      AMDEP_FALSE=
1187    fi
1188    
1189  if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then  rm -f .deps 2>/dev/null
1190    { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }  mkdir .deps 2>/dev/null
1191    if test -d .deps; then
1192      DEPDIR=.deps
1193    else
1194      # MS-DOS does not allow filenames that begin with a dot.
1195      DEPDIR=_deps
1196  fi  fi
1197  cat >> confdefs.h <<EOF  rmdir .deps 2>/dev/null
1198    
1199    # test to see if srcdir already configured
1200    if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1201       test -f $srcdir/config.status; then
1202      { { echo "$as_me:1202: error: source directory already configured; run \"make distclean\" there first" >&5
1203    echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1204       { (exit 1); exit 1; }; }
1205    fi
1206    
1207    # Define the identity of the package.
1208    PACKAGE=calc
1209    VERSION=1.1
1210    
1211    cat >>confdefs.h <<EOF
1212  #define PACKAGE "$PACKAGE"  #define PACKAGE "$PACKAGE"
1213  EOF  EOF
1214    
1215  cat >> confdefs.h <<EOF  cat >>confdefs.h <<EOF
1216  #define VERSION "$VERSION"  #define VERSION "$VERSION"
1217  EOF  EOF
1218    
1219    # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1220    # the ones we care about.
1221    
1222    # Autoconf 2.50 always computes EXEEXT.  However we need to be
1223    # compatible with 2.13, for now.  So we always define EXEEXT, but we
1224    # don't compute it.
1225    
1226    # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1227    # requests that it be used.  This is a bit dumb.
1228    : ${OBJEXT=o}
1229    
1230    # Some tools Automake needs.
1231    
1232    ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1233    
1234  missing_dir=`cd $ac_aux_dir && pwd`  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1235  echo $ac_n "checking for working aclocal""... $ac_c" 1>&6  
1236  echo "configure:715: checking for working aclocal" >&5  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1237  # Run test in a subshell; some versions of sh will print an error if  
1238  # an executable is not found, even if stderr is redirected.  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1239  # Redirect stdin to placate older versions of autoconf.  Sigh.  
1240  if (aclocal --version) < /dev/null > /dev/null 2>&1; then  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1241     ACLOCAL=aclocal  
1242     echo "$ac_t""found" 1>&6  AMTAR=${AMTAR-"${am_missing_run}tar"}
1243  else  
1244     ACLOCAL="$missing_dir/missing aclocal"  install_sh=${install_sh-"$am_aux_dir/install-sh"}
1245     echo "$ac_t""missing" 1>&6  
1246  fi  INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1247    
1248  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6  # We need awk for the "check" target.  The system "awk" is bad on
1249  echo "configure:728: checking for working autoconf" >&5  # some platforms.
1250  # Run test in a subshell; some versions of sh will print an error if  
1251  # an executable is not found, even if stderr is redirected.  ac_ext=c
1252  # Redirect stdin to placate older versions of autoconf.  Sigh.  ac_cpp='$CPP $CPPFLAGS'
1253  if (autoconf --version) < /dev/null > /dev/null 2>&1; then  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254     AUTOCONF=autoconf  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255     echo "$ac_t""found" 1>&6  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256  else  if test -n "$ac_tool_prefix"; then
1257     AUTOCONF="$missing_dir/missing autoconf"    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1258     echo "$ac_t""missing" 1>&6  set dummy ${ac_tool_prefix}gcc; ac_word=$2
1259  fi  echo "$as_me:1259: checking for $ac_word" >&5
1260    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261  echo $ac_n "checking for working automake""... $ac_c" 1>&6  if test "${ac_cv_prog_CC+set}" = set; then
1262  echo "configure:741: checking for working automake" >&5    echo $ECHO_N "(cached) $ECHO_C" >&6
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (automake --version) < /dev/null > /dev/null 2>&1; then  
    AUTOMAKE=automake  
    echo "$ac_t""found" 1>&6  
 else  
    AUTOMAKE="$missing_dir/missing automake"  
    echo "$ac_t""missing" 1>&6  
 fi  
   
 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6  
 echo "configure:754: checking for working autoheader" >&5  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then  
    AUTOHEADER=autoheader  
    echo "$ac_t""found" 1>&6  
 else  
    AUTOHEADER="$missing_dir/missing autoheader"  
    echo "$ac_t""missing" 1>&6  
 fi  
   
 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6  
 echo "configure:767: checking for working makeinfo" >&5  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then  
    MAKEINFO=makeinfo  
    echo "$ac_t""found" 1>&6  
1263  else  else
1264     MAKEINFO="$missing_dir/missing makeinfo"    if test -n "$CC"; then
1265     echo "$ac_t""missing" 1>&6    ac_cv_prog_CC="$CC" # Let the user override the test.
1266    else
1267      ac_save_IFS=$IFS; IFS=$ac_path_separator
1268    ac_dummy="$PATH"
1269    for ac_dir in $ac_dummy; do
1270      IFS=$ac_save_IFS
1271      test -z "$ac_dir" && ac_dir=.
1272      $as_executable_p "$ac_dir/$ac_word" || continue
1273    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1274    echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1275    break
1276    done
1277    
1278    fi
1279    fi
1280    CC=$ac_cv_prog_CC
1281    if test -n "$CC"; then
1282      echo "$as_me:1282: result: $CC" >&5
1283    echo "${ECHO_T}$CC" >&6
1284    else
1285      echo "$as_me:1285: result: no" >&5
1286    echo "${ECHO_T}no" >&6
1287  fi  fi
1288    
1289    fi
1290    if test -z "$ac_cv_prog_CC"; then
1291      ac_ct_CC=$CC
1292      # Extract the first word of "gcc", so it can be a program name with args.
1293    set dummy gcc; ac_word=$2
1294    echo "$as_me:1294: checking for $ac_word" >&5
1295    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1296    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1297      echo $ECHO_N "(cached) $ECHO_C" >&6
1298    else
1299      if test -n "$ac_ct_CC"; then
1300      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1301    else
1302      ac_save_IFS=$IFS; IFS=$ac_path_separator
1303    ac_dummy="$PATH"
1304    for ac_dir in $ac_dummy; do
1305      IFS=$ac_save_IFS
1306      test -z "$ac_dir" && ac_dir=.
1307      $as_executable_p "$ac_dir/$ac_word" || continue
1308    ac_cv_prog_ac_ct_CC="gcc"
1309    echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1310    break
1311    done
1312    
1313    fi
1314    fi
1315    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1316    if test -n "$ac_ct_CC"; then
1317      echo "$as_me:1317: result: $ac_ct_CC" >&5
1318    echo "${ECHO_T}$ac_ct_CC" >&6
1319    else
1320      echo "$as_me:1320: result: no" >&5
1321    echo "${ECHO_T}no" >&6
1322    fi
1323    
1324  # Extract the first word of "gcc", so it can be a program name with args.    CC=$ac_ct_CC
1325  set dummy gcc; ac_word=$2  else
1326  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6    CC="$ac_cv_prog_CC"
1327  echo "configure:784: checking for $ac_word" >&5  fi
1328  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  
1329    echo $ac_n "(cached) $ac_c" 1>&6  if test -z "$CC"; then
1330      if test -n "$ac_tool_prefix"; then
1331      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1332    set dummy ${ac_tool_prefix}cc; ac_word=$2
1333    echo "$as_me:1333: checking for $ac_word" >&5
1334    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335    if test "${ac_cv_prog_CC+set}" = set; then
1336      echo $ECHO_N "(cached) $ECHO_C" >&6
1337  else  else
1338    if test -n "$CC"; then    if test -n "$CC"; then
1339    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1340  else  else
1341    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1342    ac_dummy="$PATH"  ac_dummy="$PATH"
1343    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1344      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1345      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1346        ac_cv_prog_CC="gcc"    $as_executable_p "$ac_dir/$ac_word" || continue
1347        break  ac_cv_prog_CC="${ac_tool_prefix}cc"
1348      fi  echo "$as_me:1348: found $ac_dir/$ac_word" >&5
1349    done  break
1350    IFS="$ac_save_ifs"  done
1351    
1352  fi  fi
1353  fi  fi
1354  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1355  if test -n "$CC"; then  if test -n "$CC"; then
1356    echo "$ac_t""$CC" 1>&6    echo "$as_me:1356: result: $CC" >&5
1357    echo "${ECHO_T}$CC" >&6
1358  else  else
1359    echo "$ac_t""no" 1>&6    echo "$as_me:1359: result: no" >&5
1360    echo "${ECHO_T}no" >&6
1361  fi  fi
1362    
1363    fi
1364    if test -z "$ac_cv_prog_CC"; then
1365      ac_ct_CC=$CC
1366      # Extract the first word of "cc", so it can be a program name with args.
1367    set dummy cc; ac_word=$2
1368    echo "$as_me:1368: checking for $ac_word" >&5
1369    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1371      echo $ECHO_N "(cached) $ECHO_C" >&6
1372    else
1373      if test -n "$ac_ct_CC"; then
1374      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1375    else
1376      ac_save_IFS=$IFS; IFS=$ac_path_separator
1377    ac_dummy="$PATH"
1378    for ac_dir in $ac_dummy; do
1379      IFS=$ac_save_IFS
1380      test -z "$ac_dir" && ac_dir=.
1381      $as_executable_p "$ac_dir/$ac_word" || continue
1382    ac_cv_prog_ac_ct_CC="cc"
1383    echo "$as_me:1383: found $ac_dir/$ac_word" >&5
1384    break
1385    done
1386    
1387    fi
1388    fi
1389    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1390    if test -n "$ac_ct_CC"; then
1391      echo "$as_me:1391: result: $ac_ct_CC" >&5
1392    echo "${ECHO_T}$ac_ct_CC" >&6
1393    else
1394      echo "$as_me:1394: result: no" >&5
1395    echo "${ECHO_T}no" >&6
1396    fi
1397    
1398      CC=$ac_ct_CC
1399    else
1400      CC="$ac_cv_prog_CC"
1401    fi
1402    
1403    fi
1404  if test -z "$CC"; then  if test -z "$CC"; then
1405    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1406  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1407  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo "$as_me:1407: checking for $ac_word" >&5
1408  echo "configure:814: checking for $ac_word" >&5  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if test "${ac_cv_prog_CC+set}" = set; then
1410    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
1411  else  else
1412    if test -n "$CC"; then    if test -n "$CC"; then
1413    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1414  else  else
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
1415    ac_prog_rejected=no    ac_prog_rejected=no
1416    ac_dummy="$PATH"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1417    for ac_dir in $ac_dummy; do  ac_dummy="$PATH"
1418      test -z "$ac_dir" && ac_dir=.  for ac_dir in $ac_dummy; do
1419      if test -f $ac_dir/$ac_word; then    IFS=$ac_save_IFS
1420        if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then    test -z "$ac_dir" && ac_dir=.
1421          ac_prog_rejected=yes    $as_executable_p "$ac_dir/$ac_word" || continue
1422          continue  if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1423        fi    ac_prog_rejected=yes
1424        ac_cv_prog_CC="cc"    continue
1425        break  fi
1426      fi  ac_cv_prog_CC="cc"
1427    done  echo "$as_me:1427: found $ac_dir/$ac_word" >&5
1428    IFS="$ac_save_ifs"  break
1429    done
1430    
1431  if test $ac_prog_rejected = yes; then  if test $ac_prog_rejected = yes; then
1432    # We found a bogon in the path, so make sure we never use it.    # We found a bogon in the path, so make sure we never use it.
1433    set dummy $ac_cv_prog_CC    set dummy $ac_cv_prog_CC
1434    shift    shift
1435    if test $# -gt 0; then    if test $# != 0; then
1436      # We chose a different compiler from the bogus one.      # We chose a different compiler from the bogus one.
1437      # However, it has the same basename, so the bogon will be chosen      # However, it has the same basename, so the bogon will be chosen
1438      # first if we set CC to just the basename; use the full file name.      # first if we set CC to just the basename; use the full file name.
1439      shift      shift
1440      set dummy "$ac_dir/$ac_word" "$@"      set dummy "$ac_dir/$ac_word" ${1+"$@"}
1441      shift      shift
1442      ac_cv_prog_CC="$@"      ac_cv_prog_CC="$@"
1443    fi    fi
1444  fi  fi
1445  fi  fi
1446  fi  fi
1447  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1448  if test -n "$CC"; then  if test -n "$CC"; then
1449    echo "$ac_t""$CC" 1>&6    echo "$as_me:1449: result: $CC" >&5
1450    echo "${ECHO_T}$CC" >&6
1451  else  else
1452    echo "$ac_t""no" 1>&6    echo "$as_me:1452: result: no" >&5
1453    echo "${ECHO_T}no" >&6
1454  fi  fi
1455    
1456    if test -z "$CC"; then  fi
1457      case "`uname -s`" in  if test -z "$CC"; then
1458      *win32* | *WIN32*)    if test -n "$ac_tool_prefix"; then
1459        # Extract the first word of "cl", so it can be a program name with args.    for ac_prog in cl
1460  set dummy cl; ac_word=$2    do
1461  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1462  echo "configure:865: checking for $ac_word" >&5  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1463  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  echo "$as_me:1463: checking for $ac_word" >&5
1464    echo $ac_n "(cached) $ac_c" 1>&6  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465    if test "${ac_cv_prog_CC+set}" = set; then
1466      echo $ECHO_N "(cached) $ECHO_C" >&6
1467  else  else
1468    if test -n "$CC"; then    if test -n "$CC"; then
1469    ac_cv_prog_CC="$CC" # Let the user override the test.    ac_cv_prog_CC="$CC" # Let the user override the test.
1470  else  else
1471    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    ac_save_IFS=$IFS; IFS=$ac_path_separator
1472    ac_dummy="$PATH"  ac_dummy="$PATH"
1473    for ac_dir in $ac_dummy; do  for ac_dir in $ac_dummy; do
1474      test -z "$ac_dir" && ac_dir=.    IFS=$ac_save_IFS
1475      if test -f $ac_dir/$ac_word; then    test -z "$ac_dir" && ac_dir=.
1476        ac_cv_prog_CC="cl"    $as_executable_p "$ac_dir/$ac_word" || continue
1477        break  ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1478      fi  echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1479    done  break
1480    IFS="$ac_save_ifs"  done
1481    
1482  fi  fi
1483  fi  fi
1484  CC="$ac_cv_prog_CC"  CC=$ac_cv_prog_CC
1485  if test -n "$CC"; then  if test -n "$CC"; then
1486    echo "$ac_t""$CC" 1>&6    echo "$as_me:1486: result: $CC" >&5
1487    echo "${ECHO_T}$CC" >&6
1488  else  else
1489    echo "$ac_t""no" 1>&6    echo "$as_me:1489: result: no" >&5
1490    echo "${ECHO_T}no" >&6
1491  fi  fi
1492   ;;  
1493      esac      test -n "$CC" && break
1494    fi    done
   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }  
1495  fi  fi
1496    if test -z "$CC"; then
1497      ac_ct_CC=$CC
1498      for ac_prog in cl
1499    do
1500      # Extract the first word of "$ac_prog", so it can be a program name with args.
1501    set dummy $ac_prog; ac_word=$2
1502    echo "$as_me:1502: checking for $ac_word" >&5
1503    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504    if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505      echo $ECHO_N "(cached) $ECHO_C" >&6
1506    else
1507      if test -n "$ac_ct_CC"; then
1508      ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509    else
1510      ac_save_IFS=$IFS; IFS=$ac_path_separator
1511    ac_dummy="$PATH"
1512    for ac_dir in $ac_dummy; do
1513      IFS=$ac_save_IFS
1514      test -z "$ac_dir" && ac_dir=.
1515      $as_executable_p "$ac_dir/$ac_word" || continue
1516    ac_cv_prog_ac_ct_CC="$ac_prog"
1517    echo "$as_me:1517: found $ac_dir/$ac_word" >&5
1518    break
1519    done
1520    
1521  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  fi
1522  echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  fi
1523    ac_ct_CC=$ac_cv_prog_ac_ct_CC
1524    if test -n "$ac_ct_CC"; then
1525      echo "$as_me:1525: result: $ac_ct_CC" >&5
1526    echo "${ECHO_T}$ac_ct_CC" >&6
1527    else
1528      echo "$as_me:1528: result: no" >&5
1529    echo "${ECHO_T}no" >&6
1530    fi
1531    
1532  ac_ext=c    test -n "$ac_ct_CC" && break
1533  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  done
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
1534    
1535  cat > conftest.$ac_ext << EOF    CC=$ac_ct_CC
1536    fi
1537    
1538    fi
1539    
1540  #line 908 "configure"  test -z "$CC" && { { echo "$as_me:1540: error: no acceptable cc found in \$PATH" >&5
1541    echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1542       { (exit 1); exit 1; }; }
1543    
1544    # Provide some information about the compiler.
1545    echo "$as_me:1545:" \
1546         "checking for C compiler version" >&5
1547    ac_compiler=`set X $ac_compile; echo $2`
1548    { (eval echo "$as_me:1548: \"$ac_compiler --version </dev/null >&5\"") >&5
1549      (eval $ac_compiler --version </dev/null >&5) 2>&5
1550      ac_status=$?
1551      echo "$as_me:1551: \$? = $ac_status" >&5
1552      (exit $ac_status); }
1553    { (eval echo "$as_me:1553: \"$ac_compiler -v </dev/null >&5\"") >&5
1554      (eval $ac_compiler -v </dev/null >&5) 2>&5
1555      ac_status=$?
1556      echo "$as_me:1556: \$? = $ac_status" >&5
1557      (exit $ac_status); }
1558    { (eval echo "$as_me:1558: \"$ac_compiler -V </dev/null >&5\"") >&5
1559      (eval $ac_compiler -V </dev/null >&5) 2>&5
1560      ac_status=$?
1561      echo "$as_me:1561: \$? = $ac_status" >&5
1562      (exit $ac_status); }
1563    
1564    cat >conftest.$ac_ext <<_ACEOF
1565    #line 1565 "configure"
1566  #include "confdefs.h"  #include "confdefs.h"
1567    
1568  main(){return(0);}  int
1569  EOF  main ()
1570  if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  {
1571    ac_cv_prog_cc_works=yes  
1572    # If we can't run a trivial program, we are probably using a cross compiler.    ;
1573    if (./conftest; exit) 2>/dev/null; then    return 0;
1574      ac_cv_prog_cc_cross=no  }
1575    _ACEOF
1576    ac_clean_files_save=$ac_clean_files
1577    ac_clean_files="$ac_clean_files a.out a.exe"
1578    # Try to create an executable without -o first, disregard a.out.
1579    # It will help us diagnose broken compilers, and finding out an intuition
1580    # of exeext.
1581    echo "$as_me:1581: checking for C compiler default output" >&5
1582    echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1583    ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1584    if { (eval echo "$as_me:1584: \"$ac_link_default\"") >&5
1585      (eval $ac_link_default) 2>&5
1586      ac_status=$?
1587      echo "$as_me:1587: \$? = $ac_status" >&5
1588      (exit $ac_status); }; then
1589      # Find the output, starting from the most likely.  This scheme is
1590    # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1591    # resort.
1592    for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1593                    ls a.out conftest 2>/dev/null;
1594                    ls a.* conftest.* 2>/dev/null`; do
1595      case $ac_file in
1596        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1597        a.out ) # We found the default executable, but exeext='' is most
1598                # certainly right.
1599                break;;
1600        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1601              # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1602              export ac_cv_exeext
1603              break;;
1604        * ) break;;
1605      esac
1606    done
1607    else
1608      echo "$as_me: failed program was:" >&5
1609    cat conftest.$ac_ext >&5
1610    { { echo "$as_me:1610: error: C compiler cannot create executables" >&5
1611    echo "$as_me: error: C compiler cannot create executables" >&2;}
1612       { (exit 77); exit 77; }; }
1613    fi
1614    
1615    ac_exeext=$ac_cv_exeext
1616    echo "$as_me:1616: result: $ac_file" >&5
1617    echo "${ECHO_T}$ac_file" >&6
1618    
1619    # Check the compiler produces executables we can run.  If not, either
1620    # the compiler is broken, or we cross compile.
1621    echo "$as_me:1621: checking whether the C compiler works" >&5
1622    echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1623    # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1624    # If not cross compiling, check that we can run a simple program.
1625    if test "$cross_compiling" != yes; then
1626      if { ac_try='./$ac_file'
1627      { (eval echo "$as_me:1627: \"$ac_try\"") >&5
1628      (eval $ac_try) 2>&5
1629      ac_status=$?
1630      echo "$as_me:1630: \$? = $ac_status" >&5
1631      (exit $ac_status); }; }; then
1632        cross_compiling=no
1633    else    else
1634      ac_cv_prog_cc_cross=yes      if test "$cross_compiling" = maybe; then
1635            cross_compiling=yes
1636        else
1637            { { echo "$as_me:1637: error: cannot run C compiled programs.
1638    If you meant to cross compile, use \`--host'." >&5
1639    echo "$as_me: error: cannot run C compiled programs.
1640    If you meant to cross compile, use \`--host'." >&2;}
1641       { (exit 1); exit 1; }; }
1642        fi
1643    fi    fi
 else  
   echo "configure: failed program was:" >&5  
   cat conftest.$ac_ext >&5  
   ac_cv_prog_cc_works=no  
 fi  
 rm -fr conftest*  
 ac_ext=c  
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'  
 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'  
 cross_compiling=$ac_cv_prog_cc_cross  
   
 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6  
 if test $ac_cv_prog_cc_works = no; then  
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }  
 fi  
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  
 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  
 cross_compiling=$ac_cv_prog_cc_cross  
   
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  
 echo "configure:944: checking whether we are using GNU C" >&5  
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  
   echo $ac_n "(cached) $ac_c" 1>&6  
 else  
   cat > conftest.c <<EOF  
 #ifdef __GNUC__  
   yes;  
 #endif  
 EOF  
 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  
   ac_cv_prog_gcc=yes  
 else  
   ac_cv_prog_gcc=no  
 fi  
1644  fi  fi
1645    echo "$as_me:1645: result: yes" >&5
1646    echo "${ECHO_T}yes" >&6
1647    
1648  echo "$ac_t""$ac_cv_prog_gcc" 1>&6  rm -f a.out a.exe conftest$ac_cv_exeext
1649    ac_clean_files=$ac_clean_files_save
1650    # Check the compiler produces executables we can run.  If not, either
1651    # the compiler is broken, or we cross compile.
1652    echo "$as_me:1652: checking whether we are cross compiling" >&5
1653    echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1654    echo "$as_me:1654: result: $cross_compiling" >&5
1655    echo "${ECHO_T}$cross_compiling" >&6
1656    
1657    echo "$as_me:1657: checking for executable suffix" >&5
1658    echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1659    if { (eval echo "$as_me:1659: \"$ac_link\"") >&5
1660      (eval $ac_link) 2>&5
1661      ac_status=$?
1662      echo "$as_me:1662: \$? = $ac_status" >&5
1663      (exit $ac_status); }; then
1664      # If both `conftest.exe' and `conftest' are `present' (well, observable)
1665    # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1666    # work properly (i.e., refer to `conftest.exe'), while it won't with
1667    # `rm'.
1668    for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1669      case $ac_file in
1670        *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1671        *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1672              export ac_cv_exeext
1673              break;;
1674        * ) break;;
1675      esac
1676    done
1677    else
1678      { { echo "$as_me:1678: error: cannot compute EXEEXT: cannot compile and link" >&5
1679    echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1680       { (exit 1); exit 1; }; }
1681    fi
1682    
1683    rm -f conftest$ac_cv_exeext
1684    echo "$as_me:1684: result: $ac_cv_exeext" >&5
1685    echo "${ECHO_T}$ac_cv_exeext" >&6
1686    
1687    rm -f conftest.$ac_ext
1688    EXEEXT=$ac_cv_exeext
1689    ac_exeext=$EXEEXT
1690    echo "$as_me:1690: checking for object suffix" >&5
1691    echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1692    if test "${ac_cv_objext+set}" = set; then
1693      echo $ECHO_N "(cached) $ECHO_C" >&6
1694    else
1695      cat >conftest.$ac_ext <<_ACEOF
1696    #line 1696 "configure"
1697    #include "confdefs.h"
1698    
1699  if test $ac_cv_prog_gcc = yes; then  int
1700    GCC=yes  main ()
1701    {
1702    
1703      ;
1704      return 0;
1705    }
1706    _ACEOF
1707    rm -f conftest.o conftest.obj
1708    if { (eval echo "$as_me:1708: \"$ac_compile\"") >&5
1709      (eval $ac_compile) 2>&5
1710      ac_status=$?
1711      echo "$as_me:1711: \$? = $ac_status" >&5
1712      (exit $ac_status); }; then
1713      for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1714      case $ac_file in
1715        *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1716        *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1717           break;;
1718      esac
1719    done
1720  else  else
1721    GCC=    echo "$as_me: failed program was:" >&5
1722  fi  cat conftest.$ac_ext >&5
1723    { { echo "$as_me:1723: error: cannot compute OBJEXT: cannot compile" >&5
1724    echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1725       { (exit 1); exit 1; }; }
1726    fi
1727    
1728    rm -f conftest.$ac_cv_objext conftest.$ac_ext
1729    fi
1730    echo "$as_me:1730: result: $ac_cv_objext" >&5
1731    echo "${ECHO_T}$ac_cv_objext" >&6
1732    OBJEXT=$ac_cv_objext
1733    ac_objext=$OBJEXT
1734    echo "$as_me:1734: checking whether we are using the GNU C compiler" >&5
1735    echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1736    if test "${ac_cv_c_compiler_gnu+set}" = set; then
1737      echo $ECHO_N "(cached) $ECHO_C" >&6
1738    else
1739      cat >conftest.$ac_ext <<_ACEOF
1740    #line 1740 "configure"
1741    #include "confdefs.h"
1742    
1743    int
1744    main ()
1745    {
1746    #ifndef __GNUC__
1747           choke me
1748    #endif
1749    
1750  ac_test_CFLAGS="${CFLAGS+set}"    ;
1751  ac_save_CFLAGS="$CFLAGS"    return 0;
1752  CFLAGS=  }
1753  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  _ACEOF
1754  echo "configure:972: checking whether ${CC-cc} accepts -g" >&5  rm -f conftest.$ac_objext
1755  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if { (eval echo "$as_me:1755: \"$ac_compile\"") >&5
1756    echo $ac_n "(cached) $ac_c" 1>&6    (eval $ac_compile) 2>&5
1757      ac_status=$?
1758      echo "$as_me:1758: \$? = $ac_status" >&5
1759      (exit $ac_status); } &&
1760             { ac_try='test -s conftest.$ac_objext'
1761      { (eval echo "$as_me:1761: \"$ac_try\"") >&5
1762      (eval $ac_try) 2>&5
1763      ac_status=$?
1764      echo "$as_me:1764: \$? = $ac_status" >&5
1765      (exit $ac_status); }; }; then
1766      ac_compiler_gnu=yes
1767    else
1768      echo "$as_me: failed program was:" >&5
1769    cat conftest.$ac_ext >&5
1770    ac_compiler_gnu=no
1771    fi
1772    rm -f conftest.$ac_objext conftest.$ac_ext
1773    ac_cv_c_compiler_gnu=$ac_compiler_gnu
1774    
1775    fi
1776    echo "$as_me:1776: result: $ac_cv_c_compiler_gnu" >&5
1777    echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1778    GCC=`test $ac_compiler_gnu = yes && echo yes`
1779    ac_test_CFLAGS=${CFLAGS+set}
1780    ac_save_CFLAGS=$CFLAGS
1781    CFLAGS="-g"
1782    echo "$as_me:1782: checking whether $CC accepts -g" >&5
1783    echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1784    if test "${ac_cv_prog_cc_g+set}" = set; then
1785      echo $ECHO_N "(cached) $ECHO_C" >&6
1786  else  else
1787    echo 'void f(){}' > conftest.c    cat >conftest.$ac_ext <<_ACEOF
1788  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then  #line 1788 "configure"
1789    #include "confdefs.h"
1790    
1791    int
1792    main ()
1793    {
1794    
1795      ;
1796      return 0;
1797    }
1798    _ACEOF
1799    rm -f conftest.$ac_objext
1800    if { (eval echo "$as_me:1800: \"$ac_compile\"") >&5
1801      (eval $ac_compile) 2>&5
1802      ac_status=$?
1803      echo "$as_me:1803: \$? = $ac_status" >&5
1804      (exit $ac_status); } &&
1805             { ac_try='test -s conftest.$ac_objext'
1806      { (eval echo "$as_me:1806: \"$ac_try\"") >&5
1807      (eval $ac_try) 2>&5
1808      ac_status=$?
1809      echo "$as_me:1809: \$? = $ac_status" >&5
1810      (exit $ac_status); }; }; then
1811    ac_cv_prog_cc_g=yes    ac_cv_prog_cc_g=yes
1812  else  else
1813    ac_cv_prog_cc_g=no    echo "$as_me: failed program was:" >&5
1814    cat conftest.$ac_ext >&5
1815    ac_cv_prog_cc_g=no
1816  fi  fi
1817  rm -f conftest*  rm -f conftest.$ac_objext conftest.$ac_ext
   
1818  fi  fi
1819    echo "$as_me:1819: result: $ac_cv_prog_cc_g" >&5
1820  echo "$ac_t""$ac_cv_prog_cc_g" 1>&6  echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1821  if test "$ac_test_CFLAGS" = set; then  if test "$ac_test_CFLAGS" = set; then
1822    CFLAGS="$ac_save_CFLAGS"    CFLAGS=$ac_save_CFLAGS
1823  elif test $ac_cv_prog_cc_g = yes; then  elif test $ac_cv_prog_cc_g = yes; then
1824    if test "$GCC" = yes; then    if test "$GCC" = yes; then
1825      CFLAGS="-g -O2"      CFLAGS="-g -O2"
# Line 998  else Line 1833  else
1833      CFLAGS=      CFLAGS=
1834    fi    fi
1835  fi  fi
1836    # Some people use a C++ compiler to compile C.  Since we use `exit',
1837    # in C++ we need to declare it.  In case someone uses the same compiler
1838    # for both compiling C and C++ we need to have the C++ compiler decide
1839    # the declaration of exit, since it's the most demanding environment.
1840    cat >conftest.$ac_ext <<_ACEOF
1841    #ifndef __cplusplus
1842      choke me
1843    #endif
1844    _ACEOF
1845    rm -f conftest.$ac_objext
1846    if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847      (eval $ac_compile) 2>&5
1848      ac_status=$?
1849      echo "$as_me:1849: \$? = $ac_status" >&5
1850      (exit $ac_status); } &&
1851             { ac_try='test -s conftest.$ac_objext'
1852      { (eval echo "$as_me:1852: \"$ac_try\"") >&5
1853      (eval $ac_try) 2>&5
1854      ac_status=$?
1855      echo "$as_me:1855: \$? = $ac_status" >&5
1856      (exit $ac_status); }; }; then
1857      for ac_declaration in \
1858       ''\
1859       '#include <stdlib.h>' \
1860       'extern "C" void std::exit (int) throw (); using std::exit;' \
1861       'extern "C" void std::exit (int); using std::exit;' \
1862       'extern "C" void exit (int) throw ();' \
1863       'extern "C" void exit (int);' \
1864       'void exit (int);'
1865    do
1866      cat >conftest.$ac_ext <<_ACEOF
1867    #line 1867 "configure"
1868    #include "confdefs.h"
1869    #include <stdlib.h>
1870    $ac_declaration
1871    int
1872    main ()
1873    {
1874    exit (42);
1875      ;
1876      return 0;
1877    }
1878    _ACEOF
1879    rm -f conftest.$ac_objext
1880    if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
1881      (eval $ac_compile) 2>&5
1882      ac_status=$?
1883      echo "$as_me:1883: \$? = $ac_status" >&5
1884      (exit $ac_status); } &&
1885             { ac_try='test -s conftest.$ac_objext'
1886      { (eval echo "$as_me:1886: \"$ac_try\"") >&5
1887      (eval $ac_try) 2>&5
1888      ac_status=$?
1889      echo "$as_me:1889: \$? = $ac_status" >&5
1890      (exit $ac_status); }; }; then
1891      :
1892    else
1893      echo "$as_me: failed program was:" >&5
1894    cat conftest.$ac_ext >&5
1895    continue
1896    fi
1897    rm -f conftest.$ac_objext conftest.$ac_ext
1898      cat >conftest.$ac_ext <<_ACEOF
1899    #line 1899 "configure"
1900    #include "confdefs.h"
1901    $ac_declaration
1902    int
1903    main ()
1904    {
1905    exit (42);
1906      ;
1907      return 0;
1908    }
1909    _ACEOF
1910    rm -f conftest.$ac_objext
1911    if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912      (eval $ac_compile) 2>&5
1913      ac_status=$?
1914      echo "$as_me:1914: \$? = $ac_status" >&5
1915      (exit $ac_status); } &&
1916             { ac_try='test -s conftest.$ac_objext'
1917      { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1918      (eval $ac_try) 2>&5
1919      ac_status=$?
1920      echo "$as_me:1920: \$? = $ac_status" >&5
1921      (exit $ac_status); }; }; then
1922      break
1923    else
1924      echo "$as_me: failed program was:" >&5
1925    cat conftest.$ac_ext >&5
1926    fi
1927    rm -f conftest.$ac_objext conftest.$ac_ext
1928    done
1929    rm -f conftest*
1930    if test -n "$ac_declaration"; then
1931      echo '#ifdef __cplusplus' >>confdefs.h
1932      echo $ac_declaration      >>confdefs.h
1933      echo '#endif'             >>confdefs.h
1934    fi
1935    
1936    else
1937      echo "$as_me: failed program was:" >&5
1938    cat conftest.$ac_ext >&5
1939    fi
1940    rm -f conftest.$ac_objext conftest.$ac_ext
1941    ac_ext=c
1942    ac_cpp='$CPP $CPPFLAGS'
1943    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945    ac_compiler_gnu=$ac_cv_c_compiler_gnu
1946    
1947    ac_config_commands="$ac_config_commands default-1"
1948    
1949    am_make=${MAKE-make}
1950    cat > confinc << 'END'
1951    doit:
1952            @echo done
1953    END
1954    # If we don't find an include directive, just comment out the code.
1955    echo "$as_me:1955: checking for style of include used by $am_make" >&5
1956    echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1957    am__include='#'
1958    am__quote=
1959    _am_result=none
1960    # First try GNU make style include.
1961    echo "include confinc" > confmf
1962    # We grep out `Entering directory' and `Leaving directory'
1963    # messages which can occur if `w' ends up in MAKEFLAGS.
1964    # In particular we don't look at `^make:' because GNU make might
1965    # be invoked under some other name (usually "gmake"), in which
1966    # case it prints its new name instead of `make'.
1967    if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1968       am__include=include
1969       am__quote=
1970       _am_result=GNU
1971    fi
1972    # Now try BSD make style include.
1973    if test "$am__include" = "#"; then
1974       echo '.include "confinc"' > confmf
1975       if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1976          am__include=.include
1977          am__quote='"'
1978          _am_result=BSD
1979       fi
1980    fi
1981    
1982    echo "$as_me:1982: result: $_am_result" >&5
1983    echo "${ECHO_T}$_am_result" >&6
1984    rm -f confinc confmf
1985    
1986    depcc="$CC"   am_compiler_list=
1987    
1988    echo "$as_me:1988: checking dependency style of $depcc" >&5
1989    echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1990    if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1991      echo $ECHO_N "(cached) $ECHO_C" >&6
1992    else
1993      if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1994      # We make a subdir and do the tests there.  Otherwise we can end up
1995      # making bogus files that we don't know about and never remove.  For
1996      # instance it was reported that on HP-UX the gcc test will end up
1997      # making a dummy file named `D' -- because `-MD' means `put the output
1998      # in D'.
1999      mkdir conftest.dir
2000      # Copy depcomp to subdir because otherwise we won't find it if we're
2001      # using a relative directory.
2002      cp "$am_depcomp" conftest.dir
2003      cd conftest.dir
2004    
2005      am_cv_CC_dependencies_compiler_type=none
2006      if test "$am_compiler_list" = ""; then
2007         am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2008      fi
2009      for depmode in $am_compiler_list; do
2010        # We need to recreate these files for each test, as the compiler may
2011        # overwrite some of them when testing with obscure command lines.
2012        # This happens at least with the AIX C compiler.
2013        echo '#include "conftest.h"' > conftest.c
2014        echo 'int i;' > conftest.h
2015        echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2016    
2017        case $depmode in
2018        nosideeffect)
2019          # after this tag, mechanisms are not by side-effect, so they'll
2020          # only be used when explicitly requested
2021          if test "x$enable_dependency_tracking" = xyes; then
2022            continue
2023          else
2024            break
2025          fi
2026          ;;
2027        none) break ;;
2028        esac
2029        # We check with `-c' and `-o' for the sake of the "dashmstdout"
2030        # mode.  It turns out that the SunPro C++ compiler does not properly
2031        # handle `-M -o', and we need to detect this.
2032        if depmode=$depmode \
2033           source=conftest.c object=conftest.o \
2034           depfile=conftest.Po tmpdepfile=conftest.TPo \
2035           $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2036           grep conftest.h conftest.Po > /dev/null 2>&1 &&
2037           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2038          am_cv_CC_dependencies_compiler_type=$depmode
2039          break
2040        fi
2041      done
2042    
2043      cd ..
2044      rm -rf conftest.dir
2045    else
2046      am_cv_CC_dependencies_compiler_type=none
2047    fi
2048    
2049    fi
2050    echo "$as_me:2050: result: $am_cv_CC_dependencies_compiler_type" >&5
2051    echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2052    CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2053    
2054  # Find a good install program.  We prefer a C program (faster),  # Find a good install program.  We prefer a C program (faster),
2055  # so one script is as good as another.  But avoid the broken or  # so one script is as good as another.  But avoid the broken or
# Line 1006  fi Line 2058  fi
2058  # SunOS /usr/etc/install  # SunOS /usr/etc/install
2059  # IRIX /sbin/install  # IRIX /sbin/install
2060  # AIX /bin/install  # AIX /bin/install
2061    # AmigaOS /C/install, which installs bootblocks on floppy discs
2062  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2063  # AFS /usr/afsws/bin/install, which mishandles nonexistent args  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2064  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2065  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
2066  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo "$as_me:2066: checking for a BSD compatible install" >&5
2067  echo "configure:1015: checking for a BSD compatible install" >&5  echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2068  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
2069  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if test "${ac_cv_path_install+set}" = set; then
2070    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2071  else  else
2072      IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"      ac_save_IFS=$IFS; IFS=$ac_path_separator
2073    for ac_dir in $PATH; do    for ac_dir in $PATH; do
2074        IFS=$ac_save_IFS
2075      # Account for people who put trailing slashes in PATH elements.      # Account for people who put trailing slashes in PATH elements.
2076      case "$ac_dir/" in      case $ac_dir/ in
2077      /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;      / | ./ | .// | /cC/* \
2078        | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2079        | /usr/ucb/* ) ;;
2080      *)      *)
2081        # OSF1 and SCO ODT 3.0 have their own names for install.        # OSF1 and SCO ODT 3.0 have their own names for install.
2082        # Don't use installbsd from OSF since it installs stuff as root        # Don't use installbsd from OSF since it installs stuff as root
2083        # by default.        # by default.
2084        for ac_prog in ginstall scoinst install; do        for ac_prog in ginstall scoinst install; do
2085          if test -f $ac_dir/$ac_prog; then          if $as_executable_p "$ac_dir/$ac_prog"; then
2086            if test $ac_prog = install &&            if test $ac_prog = install &&
2087              grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then              grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2088              # AIX install.  It has an incompatible calling convention.              # AIX install.  It has an incompatible calling convention.
2089              :              :
2090              elif test $ac_prog = install &&
2091                grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2092                # program-specific install script used by HP pwplus--don't use.
2093                :
2094            else            else
2095              ac_cv_path_install="$ac_dir/$ac_prog -c"              ac_cv_path_install="$ac_dir/$ac_prog -c"
2096              break 2              break 2
# Line 1040  else Line 2100  else
2100        ;;        ;;
2101      esac      esac
2102    done    done
   IFS="$ac_save_IFS"  
2103    
2104  fi  fi
2105    if test "${ac_cv_path_install+set}" = set; then    if test "${ac_cv_path_install+set}" = set; then
2106      INSTALL="$ac_cv_path_install"      INSTALL=$ac_cv_path_install
2107    else    else
2108      # As a last resort, use the slow shell script.  We don't cache a      # As a last resort, use the slow shell script.  We don't cache a
2109      # path for INSTALL within a source directory, because that will      # path for INSTALL within a source directory, because that will
2110      # break other packages using the cache if that directory is      # break other packages using the cache if that directory is
2111      # removed, or if the path is relative.      # removed, or if the path is relative.
2112      INSTALL="$ac_install_sh"      INSTALL=$ac_install_sh
2113    fi    fi
2114  fi  fi
2115  echo "$ac_t""$INSTALL" 1>&6  echo "$as_me:2115: result: $INSTALL" >&5
2116    echo "${ECHO_T}$INSTALL" >&6
2117    
2118  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2119  # It thinks the first close brace ends the variable substitution.  # It thinks the first close brace ends the variable substitution.
2120  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2121    
2122  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2123    
2124  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2125    
2126  #  #
2127  # Look for various header files  # Look for various header files
2128  #  #
2129  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  
2130  echo "configure:1071: checking how to run the C preprocessor" >&5  ac_ext=c
2131    ac_cpp='$CPP $CPPFLAGS'
2132    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135    echo "$as_me:2135: checking how to run the C preprocessor" >&5
2136    echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2137  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2138  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2139    CPP=    CPP=
2140  fi  fi
2141  if test -z "$CPP"; then  if test -z "$CPP"; then
2142  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then    if test "${ac_cv_prog_CPP+set}" = set; then
2143    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2144  else  else
2145      # This must be in double quotes, not single quotes, because CPP may get        # Double quotes because CPP needs to be expanded
2146    # substituted into the Makefile and "${CC-cc}" will confuse make.      for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2147    CPP="${CC-cc} -E"      do
2148          ac_preproc_ok=false
2149    for ac_c_preproc_warn_flag in '' yes
2150    do
2151      # Use a header file that comes with gcc, so configuring glibc
2152      # with a fresh cross-compiler works.
2153    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2154    # not just through cpp.    # not just through cpp. "Syntax error" is here to catch this case.
2155    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2156  #line 1086 "configure"  #line 2156 "configure"
2157  #include "confdefs.h"  #include "confdefs.h"
2158  #include <assert.h>  #include <assert.h>
2159  Syntax Error                       Syntax error
2160  EOF  _ACEOF
2161  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2161: \"$ac_cpp conftest.$ac_ext\"") >&5
2162  { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2163  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2164  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2165      rm -f conftest.er1
2166      cat conftest.err >&5
2167      echo "$as_me:2167: \$? = $ac_status" >&5
2168      (exit $ac_status); } >/dev/null; then
2169      if test -s conftest.err; then
2170        ac_cpp_err=$ac_c_preproc_warn_flag
2171      else
2172        ac_cpp_err=
2173      fi
2174    else
2175      ac_cpp_err=yes
2176    fi
2177    if test -z "$ac_cpp_err"; then
2178    :    :
2179  else  else
2180    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2181    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2182    rm -rf conftest*    # Broken: fails on valid input.
2183    CPP="${CC-cc} -E -traditional-cpp"  continue
2184    cat > conftest.$ac_ext <<EOF  fi
2185  #line 1103 "configure"  rm -f conftest.err conftest.$ac_ext
2186    
2187      # OK, works on sane cases.  Now check whether non-existent headers
2188      # can be detected and how.
2189      cat >conftest.$ac_ext <<_ACEOF
2190    #line 2190 "configure"
2191  #include "confdefs.h"  #include "confdefs.h"
2192  #include <assert.h>  #include <ac_nonexistent.h>
2193  Syntax Error  _ACEOF
2194  EOF  if { (eval echo "$as_me:2194: \"$ac_cpp conftest.$ac_ext\"") >&5
2195  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2196  { (eval echo configure:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    ac_status=$?
2197  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    egrep -v '^ *\+' conftest.er1 >conftest.err
2198  if test -z "$ac_err"; then    rm -f conftest.er1
2199    :    cat conftest.err >&5
2200      echo "$as_me:2200: \$? = $ac_status" >&5
2201      (exit $ac_status); } >/dev/null; then
2202      if test -s conftest.err; then
2203        ac_cpp_err=$ac_c_preproc_warn_flag
2204      else
2205        ac_cpp_err=
2206      fi
2207    else
2208      ac_cpp_err=yes
2209    fi
2210    if test -z "$ac_cpp_err"; then
2211      # Broken: success on invalid input.
2212    continue
2213  else  else
2214    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2215    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2216    rm -rf conftest*    # Passes both tests.
2217    CPP="${CC-cc} -nologo -E"  ac_preproc_ok=:
2218    cat > conftest.$ac_ext <<EOF  break
2219  #line 1120 "configure"  fi
2220    rm -f conftest.err conftest.$ac_ext
2221    
2222    done
2223    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2224    rm -f conftest.err conftest.$ac_ext
2225    if $ac_preproc_ok; then
2226      break
2227    fi
2228    
2229        done
2230        ac_cv_prog_CPP=$CPP
2231    
2232    fi
2233      CPP=$ac_cv_prog_CPP
2234    else
2235      ac_cv_prog_CPP=$CPP
2236    fi
2237    echo "$as_me:2237: result: $CPP" >&5
2238    echo "${ECHO_T}$CPP" >&6
2239    ac_preproc_ok=false
2240    for ac_c_preproc_warn_flag in '' yes
2241    do
2242      # Use a header file that comes with gcc, so configuring glibc
2243      # with a fresh cross-compiler works.
2244      # On the NeXT, cc -E runs the code through the compiler's parser,
2245      # not just through cpp. "Syntax error" is here to catch this case.
2246      cat >conftest.$ac_ext <<_ACEOF
2247    #line 2247 "configure"
2248  #include "confdefs.h"  #include "confdefs.h"
2249  #include <assert.h>  #include <assert.h>
2250  Syntax Error                       Syntax error
2251  EOF  _ACEOF
2252  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2252: \"$ac_cpp conftest.$ac_ext\"") >&5
2253  { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2254  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2255  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2256      rm -f conftest.er1
2257      cat conftest.err >&5
2258      echo "$as_me:2258: \$? = $ac_status" >&5
2259      (exit $ac_status); } >/dev/null; then
2260      if test -s conftest.err; then
2261        ac_cpp_err=$ac_c_preproc_warn_flag
2262      else
2263        ac_cpp_err=
2264      fi
2265    else
2266      ac_cpp_err=yes
2267    fi
2268    if test -z "$ac_cpp_err"; then
2269    :    :
2270  else  else
2271    echo "$ac_err" >&5    echo "$as_me: failed program was:" >&5
   echo "configure: failed program was:" >&5  
2272    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2273    rm -rf conftest*    # Broken: fails on valid input.
2274    CPP=/lib/cpp  continue
 fi  
 rm -f conftest*  
2275  fi  fi
2276  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2277    
2278      # OK, works on sane cases.  Now check whether non-existent headers
2279      # can be detected and how.
2280      cat >conftest.$ac_ext <<_ACEOF
2281    #line 2281 "configure"
2282    #include "confdefs.h"
2283    #include <ac_nonexistent.h>
2284    _ACEOF
2285    if { (eval echo "$as_me:2285: \"$ac_cpp conftest.$ac_ext\"") >&5
2286      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2287      ac_status=$?
2288      egrep -v '^ *\+' conftest.er1 >conftest.err
2289      rm -f conftest.er1
2290      cat conftest.err >&5
2291      echo "$as_me:2291: \$? = $ac_status" >&5
2292      (exit $ac_status); } >/dev/null; then
2293      if test -s conftest.err; then
2294        ac_cpp_err=$ac_c_preproc_warn_flag
2295      else
2296        ac_cpp_err=
2297      fi
2298    else
2299      ac_cpp_err=yes
2300  fi  fi
2301  rm -f conftest*  if test -z "$ac_cpp_err"; then
2302    ac_cv_prog_CPP="$CPP"    # Broken: success on invalid input.
2303    continue
2304    else
2305      echo "$as_me: failed program was:" >&5
2306      cat conftest.$ac_ext >&5
2307      # Passes both tests.
2308    ac_preproc_ok=:
2309    break
2310  fi  fi
2311    CPP="$ac_cv_prog_CPP"  rm -f conftest.err conftest.$ac_ext
2312    
2313    done
2314    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2315    rm -f conftest.err conftest.$ac_ext
2316    if $ac_preproc_ok; then
2317      :
2318  else  else
2319    ac_cv_prog_CPP="$CPP"    { { echo "$as_me:2319: error: C preprocessor \"$CPP\" fails sanity check" >&5
2320    echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2321       { (exit 1); exit 1; }; }
2322  fi  fi
 echo "$ac_t""$CPP" 1>&6  
2323    
2324  for ac_hdr in stdlib.h  ac_ext=c
2325    ac_cpp='$CPP $CPPFLAGS'
2326    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328    ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329    
2330    for ac_header in stdlib.h
2331  do  do
2332  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2333  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo "$as_me:2333: checking for $ac_header" >&5
2334  echo "configure:1154: checking for $ac_hdr" >&5  echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2335  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"\${$as_ac_Header+set}\" = set"; then
2336    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2337  else  else
2338    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2339  #line 1159 "configure"  #line 2339 "configure"
2340  #include "confdefs.h"  #include "confdefs.h"
2341  #include <$ac_hdr>  #include <$ac_header>
2342  EOF  _ACEOF
2343  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  if { (eval echo "$as_me:2343: \"$ac_cpp conftest.$ac_ext\"") >&5
2344  { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2345  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`    ac_status=$?
2346  if test -z "$ac_err"; then    egrep -v '^ *\+' conftest.er1 >conftest.err
2347    rm -rf conftest*    rm -f conftest.er1
2348    eval "ac_cv_header_$ac_safe=yes"    cat conftest.err >&5
2349      echo "$as_me:2349: \$? = $ac_status" >&5
2350      (exit $ac_status); } >/dev/null; then
2351      if test -s conftest.err; then
2352        ac_cpp_err=$ac_c_preproc_warn_flag
2353      else
2354        ac_cpp_err=
2355      fi
2356  else  else
2357    echo "$ac_err" >&5    ac_cpp_err=yes
2358    echo "configure: failed program was:" >&5  fi
2359    if test -z "$ac_cpp_err"; then
2360      eval "$as_ac_Header=yes"
2361    else
2362      echo "$as_me: failed program was:" >&5
2363    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2364    rm -rf conftest*    eval "$as_ac_Header=no"
   eval "ac_cv_header_$ac_safe=no"  
2365  fi  fi
2366  rm -f conftest*  rm -f conftest.err conftest.$ac_ext
2367  fi  fi
2368  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  echo "$as_me:2368: result: `eval echo '${'$as_ac_Header'}'`" >&5
2369    echo "$ac_t""yes" 1>&6  echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2370      ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  if test `eval echo '${'$as_ac_Header'}'` = yes; then
2371    cat >> confdefs.h <<EOF    cat >>confdefs.h <<EOF
2372  #define $ac_tr_hdr 1  #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2373  EOF  EOF
2374    
 else  
   echo "$ac_t""no" 1>&6  
2375  fi  fi
2376  done  done
2377    
   
2378  #  #
2379  # Look for various functions  # Look for various functions
2380  #  #
2381  echo $ac_n "checking for strcmp""... $ac_c" 1>&6  echo "$as_me:2381: checking for strcmp" >&5
2382  echo "configure:1195: checking for strcmp" >&5  echo $ECHO_N "checking for strcmp... $ECHO_C" >&6
2383  if eval "test \"`echo '$''{'ac_cv_func_strcmp'+set}'`\" = set"; then  if test "${ac_cv_func_strcmp+set}" = set; then
2384    echo $ac_n "(cached) $ac_c" 1>&6    echo $ECHO_N "(cached) $ECHO_C" >&6
2385  else  else
2386    cat > conftest.$ac_ext <<EOF    cat >conftest.$ac_ext <<_ACEOF
2387  #line 1200 "configure"  #line 2387 "configure"
2388  #include "confdefs.h"  #include "confdefs.h"
2389  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2390      which can conflict with char strcmp(); below.  */      which can conflict with char strcmp (); below.  */
2391  #include <assert.h>  #include <assert.h>
2392  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2393    #ifdef __cplusplus
2394    extern "C"
2395    #endif
2396  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
2397      builtin and then its argument prototype would still apply.  */     builtin and then its argument prototype would still apply.  */
2398  char strcmp();  char strcmp ();
2399    char (*f) ();
2400  int main() {  
2401    int
2402    main ()
2403    {
2404  /* The GNU C library defines this for functions which it implements  /* The GNU C library defines this for functions which it implements
2405      to always fail with ENOSYS.  Some functions are actually named      to always fail with ENOSYS.  Some functions are actually named
2406      something starting with __ and the normal name is an alias.  */      something starting with __ and the normal name is an alias.  */
2407  #if defined (__stub_strcmp) || defined (__stub___strcmp)  #if defined (__stub_strcmp) || defined (__stub___strcmp)
2408  choke me  choke me
2409  #else  #else
2410  strcmp();  f = strcmp;
2411  #endif  #endif
2412    
2413  ; return 0; }    ;
2414  EOF    return 0;
2415  if { (eval echo configure:1223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  }
2416    rm -rf conftest*  _ACEOF
2417    eval "ac_cv_func_strcmp=yes"  rm -f conftest.$ac_objext conftest$ac_exeext
2418  else  if { (eval echo "$as_me:2418: \"$ac_link\"") >&5
2419    echo "configure: failed program was:" >&5    (eval $ac_link) 2>&5
2420    cat conftest.$ac_ext >&5    ac_status=$?
2421    rm -rf conftest*    echo "$as_me:2421: \$? = $ac_status" >&5
2422    eval "ac_cv_func_strcmp=no"    (exit $ac_status); } &&
2423  fi           { ac_try='test -s conftest$ac_exeext'
2424  rm -f conftest*    { (eval echo "$as_me:2424: \"$ac_try\"") >&5
2425  fi    (eval $ac_try) 2>&5
2426      ac_status=$?
2427  if eval "test \"`echo '$ac_cv_func_'strcmp`\" = yes"; then    echo "$as_me:2427: \$? = $ac_status" >&5
2428    echo "$ac_t""yes" 1>&6    (exit $ac_status); }; }; then
2429    :    ac_cv_func_strcmp=yes
2430    else
2431      echo "$as_me: failed program was:" >&5
2432    cat conftest.$ac_ext >&5
2433    ac_cv_func_strcmp=no
2434    fi
2435    rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2436    fi
2437    echo "$as_me:2437: result: $ac_cv_func_strcmp" >&5
2438    echo "${ECHO_T}$ac_cv_func_strcmp" >&6
2439    
2440    echo "$as_me:2440: checking whether to enable maintainer-specific portions of Makefiles" >&5
2441    echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2442        # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2443    if test "${enable_maintainer_mode+set}" = set; then
2444      enableval="$enable_maintainer_mode"
2445      USE_MAINTAINER_MODE=$enableval
2446    else
2447      USE_MAINTAINER_MODE=no
2448    fi;
2449      echo "$as_me:2449: result: $USE_MAINTAINER_MODE" >&5
2450    echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2451    
2452    if test $USE_MAINTAINER_MODE = yes; then
2453      MAINTAINER_MODE_TRUE=
2454      MAINTAINER_MODE_FALSE='#'
2455  else  else
2456    echo "$ac_t""no" 1>&6    MAINTAINER_MODE_TRUE='#'
2457      MAINTAINER_MODE_FALSE=
2458  fi  fi
2459      MAINT=$MAINTAINER_MODE_TRUE
2460    
2461  #  #
2462  # Output Makefile with substitutions  # Output Makefile with substitutions
2463    
2464  trap '' 1 2 15  ac_config_files="$ac_config_files Makefile"
2465  cat > confcache <<\EOF  cat >confcache <<\_ACEOF
2466  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
2467  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
2468  # scripts and configure runs.  It is not useful on other systems.  # scripts and configure runs, see configure's option --config-cache.
2469  # If it contains results you don't want to keep, you may remove or edit it.  # It is not useful on other systems.  If it contains results you don't
2470    # want to keep, you may remove or edit it.
2471  #  #
2472  # By default, configure uses ./config.cache as the cache file,  # config.status only pays attention to the cache file if you give it
2473  # creating it if it does not exist already.  You can give configure  # the --recheck option to rerun configure.
 # the --cache-file=FILE option to use a different cache file; that is  
 # what configure does when it calls configure scripts in  
 # subdirectories, so they share the cache.  
 # Giving --cache-file=/dev/null disables caching, for debugging configure.  
 # config.status only pays attention to the cache file if you give it the  
 # --recheck option to rerun configure.  
2474  #  #
2475  EOF  # `ac_cv_env_foo' variables (set or unset) will be overriden when
2476    # loading this file, other *unset* `ac_cv_foo' will be assigned the
2477    # following values.
2478    
2479    _ACEOF
2480    
2481  # The following way of writing the cache mishandles newlines in values,  # The following way of writing the cache mishandles newlines in values,
2482  # but we know of no workaround that is simple, portable, and efficient.  # but we know of no workaround that is simple, portable, and efficient.
2483  # So, don't put newlines in cache variables' values.  # So, don't put newlines in cache variables' values.
2484  # Ultrix sh set writes to stderr and can't be redirected directly,  # Ultrix sh set writes to stderr and can't be redirected directly,
2485  # and sets the high bit in the cache file unless we assign to the vars.  # and sets the high bit in the cache file unless we assign to the vars.
2486  (set) 2>&1 |  {
2487    case `(ac_space=' '; set | grep ac_space) 2>&1` in    (set) 2>&1 |
2488    *ac_space=\ *)      case `(ac_space=' '; set | grep ac_space) 2>&1` in
2489      # `set' does not quote correctly, so add quotes (double-quote substitution      *ac_space=\ *)
2490      # turns \\\\ into \\, and sed turns \\ into \).        # `set' does not quote correctly, so add quotes (double-quote
2491      sed -n \        # substitution turns \\\\ into \\, and sed turns \\ into \).
2492        -e "s/'/'\\\\''/g" \        sed -n \
2493        -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"          "s/'/'\\\\''/g;
2494      ;;            s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2495    *)        ;;
2496      # `set' quotes correctly as required by POSIX, so do not add quotes.      *)
2497      sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'        # `set' quotes correctly as required by POSIX, so do not add quotes.
2498      ;;        sed -n \
2499    esac >> confcache          "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2500  if cmp -s $cache_file confcache; then        ;;
2501    :      esac;
2502  else  } |
2503      sed '
2504         t clear
2505         : clear
2506         s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2507         t end
2508         /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2509         : end' >>confcache
2510    if cmp -s $cache_file confcache; then :; else
2511    if test -w $cache_file; then    if test -w $cache_file; then
2512      echo "updating cache $cache_file"      test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2513      cat confcache > $cache_file      cat confcache >$cache_file
2514    else    else
2515      echo "not updating unwritable cache $cache_file"      echo "not updating unwritable cache $cache_file"
2516    fi    fi
2517  fi  fi
2518  rm -f confcache  rm -f confcache
2519    
 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15  
   
2520  test "x$prefix" = xNONE && prefix=$ac_default_prefix  test "x$prefix" = xNONE && prefix=$ac_default_prefix
2521  # Let make expand exec_prefix.  # Let make expand exec_prefix.
2522  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2523    
2524  # Any assignment to VPATH causes Sun make to only execute  # VPATH may cause trouble with some makes, so we remove $(srcdir),
2525  # the first set of double-colon rules, so remove it if not needed.  # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2526  # If there is a colon in the path, we need to keep it.  # trailing colons and then remove the whole line if VPATH becomes empty
2527    # (actually we leave an empty line to preserve line numbers).
2528  if test "x$srcdir" = x.; then  if test "x$srcdir" = x.; then
2529    ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'    ac_vpsub='/^[         ]*VPATH[        ]*=/{
2530    s/:*\$(srcdir):*/:/;
2531    s/:*\${srcdir}:*/:/;
2532    s/:*@srcdir@:*/:/;
2533    s/^\([^=]*=[    ]*\):*/\1/;
2534    s/:*$//;
2535    s/^[^=]*=[      ]*$//;
2536    }'
2537  fi  fi
2538    
 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15  
   
2539  DEFS=-DHAVE_CONFIG_H  DEFS=-DHAVE_CONFIG_H
2540    
 # Without the "./", some shells look in PATH for config.status.  
2541  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
2542    ac_clean_files_save=$ac_clean_files
2543  echo creating $CONFIG_STATUS  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2544  rm -f $CONFIG_STATUS  { echo "$as_me:2544: creating $CONFIG_STATUS" >&5
2545  cat > $CONFIG_STATUS <<EOF  echo "$as_me: creating $CONFIG_STATUS" >&6;}
2546  #! /bin/sh  cat >$CONFIG_STATUS <<_ACEOF
2547    #! $SHELL
2548  # Generated automatically by configure.  # Generated automatically by configure.
2549  # Run this file to recreate the current configuration.  # Run this file to recreate the current configuration.
 # This directory was configured as follows,  
 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  
 #  
 # $0 $ac_configure_args  
 #  
2550  # Compiler output produced by configure, useful for debugging  # Compiler output produced by configure, useful for debugging
2551  # configure, is in ./config.log if it exists.  # configure, is in config.log if it exists.
2552    
2553  ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"  debug=false
2554  for ac_option  SHELL=\${CONFIG_SHELL-$SHELL}
2555    ac_cs_invocation="\$0 \$@"
2556    
2557    _ACEOF
2558    
2559    cat >>$CONFIG_STATUS <<\_ACEOF
2560    # Be Bourne compatible
2561    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2562      emulate sh
2563      NULLCMD=:
2564    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2565      set -o posix
2566    fi
2567    
2568    # Name of the executable.
2569    as_me=`echo "$0" |sed 's,.*[\\/],,'`
2570    
2571    if expr a : '\(a\)' >/dev/null 2>&1; then
2572      as_expr=expr
2573    else
2574      as_expr=false
2575    fi
2576    
2577    rm -f conf$$ conf$$.exe conf$$.file
2578    echo >conf$$.file
2579    if ln -s conf$$.file conf$$ 2>/dev/null; then
2580      # We could just check for DJGPP; but this test a) works b) is more generic
2581      # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2582      if test -f conf$$.exe; then
2583        # Don't use ln at all; we don't have any links
2584        as_ln_s='cp -p'
2585      else
2586        as_ln_s='ln -s'
2587      fi
2588    elif ln conf$$.file conf$$ 2>/dev/null; then
2589      as_ln_s=ln
2590    else
2591      as_ln_s='cp -p'
2592    fi
2593    rm -f conf$$ conf$$.exe conf$$.file
2594    
2595    as_executable_p="test -f"
2596    
2597    # Support unset when possible.
2598    if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2599      as_unset=unset
2600    else
2601      as_unset=false
2602    fi
2603    
2604    # NLS nuisances.
2605    $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2606    $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2607    $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2608    $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2609    $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2610    $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2611    $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2612    $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2613    
2614    # IFS
2615    # We need space, tab and new line, in precisely that order.
2616    as_nl='
2617    '
2618    IFS="   $as_nl"
2619    
2620    # CDPATH.
2621    $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2622    
2623    exec 6>&1
2624    
2625    _ACEOF
2626    
2627    # Files that config.status was made for.
2628    if test -n "$ac_config_files"; then
2629      echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2630    fi
2631    
2632    if test -n "$ac_config_headers"; then
2633      echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2634    fi
2635    
2636    if test -n "$ac_config_links"; then
2637      echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2638    fi
2639    
2640    if test -n "$ac_config_commands"; then
2641      echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2642    fi
2643    
2644    cat >>$CONFIG_STATUS <<\EOF
2645    
2646    ac_cs_usage="\
2647    \`$as_me' instantiates files from templates according to the
2648    current configuration.
2649    
2650    Usage: $0 [OPTIONS] [FILE]...
2651    
2652      -h, --help       print this help, then exit
2653      -V, --version    print version number, then exit
2654      -d, --debug      don't remove temporary files
2655          --recheck    update $as_me by reconfiguring in the same conditions
2656      --file=FILE[:TEMPLATE]
2657                       instantiate the configuration file FILE
2658      --header=FILE[:TEMPLATE]
2659                       instantiate the configuration header FILE
2660    
2661    Configuration files:
2662    $config_files
2663    
2664    Configuration headers:
2665    $config_headers
2666    
2667    Configuration commands:
2668    $config_commands
2669    
2670    Report bugs to <bug-autoconf@gnu.org>."
2671    EOF
2672    
2673    cat >>$CONFIG_STATUS <<EOF
2674    ac_cs_version="\\
2675    config.status
2676    configured by $0, generated by GNU Autoconf 2.52,
2677      with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2678    
2679    Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2680    Free Software Foundation, Inc.
2681    This config.status script is free software; the Free Software Foundation
2682    gives unlimited permission to copy, distribute and modify it."
2683    srcdir=$srcdir
2684    INSTALL="$INSTALL"
2685    EOF
2686    
2687    cat >>$CONFIG_STATUS <<\EOF
2688    # If no file are specified by the user, then we need to provide default
2689    # value.  By we need to know if files were specified by the user.
2690    ac_need_defaults=:
2691    while test $# != 0
2692  do  do
2693    case "\$ac_option" in    case $1 in
2694      --*=*)
2695        ac_option=`expr "x$1" : 'x\([^=]*\)='`
2696        ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2697        shift
2698        set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2699        shift
2700        ;;
2701      -*);;
2702      *) # This is not an option, so the user has probably given explicit
2703         # arguments.
2704         ac_need_defaults=false;;
2705      esac
2706    
2707      case $1 in
2708      # Handling of the options.
2709    EOF
2710    cat >>$CONFIG_STATUS <<EOF
2711    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2712      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"      echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2713      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;      exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2714    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)  EOF
2715      echo "$CONFIG_STATUS generated by autoconf version 2.13"  cat >>$CONFIG_STATUS <<\EOF
2716      exit 0 ;;    --version | --vers* | -V )
2717    -help | --help | --hel | --he | --h)      echo "$ac_cs_version"; exit 0 ;;
2718      echo "\$ac_cs_usage"; exit 0 ;;    --he | --h)
2719    *) echo "\$ac_cs_usage"; exit 1 ;;      # Conflict between --help and --header
2720        { { echo "$as_me:2720: error: ambiguous option: $1
2721    Try \`$0 --help' for more information." >&5
2722    echo "$as_me: error: ambiguous option: $1
2723    Try \`$0 --help' for more information." >&2;}
2724       { (exit 1); exit 1; }; };;
2725      --help | --hel | -h )
2726        echo "$ac_cs_usage"; exit 0 ;;
2727      --debug | --d* | -d )
2728        debug=: ;;
2729      --file | --fil | --fi | --f )
2730        shift
2731        CONFIG_FILES="$CONFIG_FILES $1"
2732        ac_need_defaults=false;;
2733      --header | --heade | --head | --hea )
2734        shift
2735        CONFIG_HEADERS="$CONFIG_HEADERS $1"
2736        ac_need_defaults=false;;
2737    
2738      # This is an error.
2739      -*) { { echo "$as_me:2739: error: unrecognized option: $1
2740    Try \`$0 --help' for more information." >&5
2741    echo "$as_me: error: unrecognized option: $1
2742    Try \`$0 --help' for more information." >&2;}
2743       { (exit 1); exit 1; }; } ;;
2744    
2745      *) ac_config_targets="$ac_config_targets $1" ;;
2746    
2747    esac    esac
2748      shift
2749  done  done
2750    
2751  ac_given_srcdir=$srcdir  exec 5>>config.log
2752  ac_given_INSTALL="$INSTALL"  cat >&5 << _ACEOF
2753    
2754    ## ----------------------- ##
2755    ## Running config.status.  ##
2756    ## ----------------------- ##
2757    
2758  trap 'rm -fr `echo "Makefile calc.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15  This file was extended by $as_me 2.52, executed with
2759      CONFIG_FILES    = $CONFIG_FILES
2760      CONFIG_HEADERS  = $CONFIG_HEADERS
2761      CONFIG_LINKS    = $CONFIG_LINKS
2762      CONFIG_COMMANDS = $CONFIG_COMMANDS
2763      > $ac_cs_invocation
2764    on `(hostname || uname -n) 2>/dev/null | sed 1q`
2765    
2766    _ACEOF
2767  EOF  EOF
 cat >> $CONFIG_STATUS <<EOF  
2768    
2769  # Protect against being on the right side of a sed subst in config.status.  cat >>$CONFIG_STATUS <<EOF
2770  sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;  #
2771   s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF  # INIT-COMMANDS section.
2772  $ac_vpsub  #
2773  $extrasub  
2774  s%@SHELL@%$SHELL%g  AMDEP_TRUE="$AMDEP_TRUE"
2775  s%@CFLAGS@%$CFLAGS%g  ac_aux_dir="$ac_aux_dir"
 s%@CPPFLAGS@%$CPPFLAGS%g  
 s%@CXXFLAGS@%$CXXFLAGS%g  
 s%@FFLAGS@%$FFLAGS%g  
 s%@DEFS@%$DEFS%g  
 s%@LDFLAGS@%$LDFLAGS%g  
 s%@LIBS@%$LIBS%g  
 s%@exec_prefix@%$exec_prefix%g  
 s%@prefix@%$prefix%g  
 s%@program_transform_name@%$program_transform_name%g  
 s%@bindir@%$bindir%g  
 s%@sbindir@%$sbindir%g  
 s%@libexecdir@%$libexecdir%g  
 s%@datadir@%$datadir%g  
 s%@sysconfdir@%$sysconfdir%g  
 s%@sharedstatedir@%$sharedstatedir%g  
 s%@localstatedir@%$localstatedir%g  
 s%@libdir@%$libdir%g  
 s%@includedir@%$includedir%g  
 s%@oldincludedir@%$oldincludedir%g  
 s%@infodir@%$infodir%g  
 s%@mandir@%$mandir%g  
 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g  
 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g  
 s%@INSTALL_DATA@%$INSTALL_DATA%g  
 s%@PACKAGE@%$PACKAGE%g  
 s%@VERSION@%$VERSION%g  
 s%@ACLOCAL@%$ACLOCAL%g  
 s%@AUTOCONF@%$AUTOCONF%g  
 s%@AUTOMAKE@%$AUTOMAKE%g  
 s%@AUTOHEADER@%$AUTOHEADER%g  
 s%@MAKEINFO@%$MAKEINFO%g  
 s%@SET_MAKE@%$SET_MAKE%g  
 s%@CC@%$CC%g  
 s%@CPP@%$CPP%g  
2776    
 CEOF  
2777  EOF  EOF
2778    
2779  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\EOF
2780    for ac_config_target in $ac_config_targets
2781    do
2782      case "$ac_config_target" in
2783      # Handling of arguments.
2784      "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2785      "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
2786      "calc.h" ) CONFIG_HEADERS="$CONFIG_HEADERS calc.h" ;;
2787      *) { { echo "$as_me:2787: error: invalid argument: $ac_config_target" >&5
2788    echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2789       { (exit 1); exit 1; }; };;
2790      esac
2791    done
2792    
2793  # Split the substitutions into bite-sized pieces for seds with  # If the user did not use the arguments to specify the items to instantiate,
2794  # small command number limits, like on Digital OSF/1 and HP-UX.  # then the envvar interface is used.  Set only those that are not.
2795  ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.  # We use the long form for the default assignment because of an extremely
2796  ac_file=1 # Number of current file.  # bizarre bug on SunOS 4.1.3.
2797  ac_beg=1 # First line for current file.  if $ac_need_defaults; then
2798  ac_end=$ac_max_sed_cmds # Line after last line for current file.    test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2799  ac_more_lines=:    test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2800  ac_sed_cmds=""    test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2801  while $ac_more_lines; do  fi
2802    if test $ac_beg -gt 1; then  
2803      sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file  # Create a temporary directory, and hook for its removal unless debugging.
2804    else  $debug ||
2805      sed "${ac_end}q" conftest.subs > conftest.s$ac_file  {
2806    fi    trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2807    if test ! -s conftest.s$ac_file; then    trap '{ (exit 1); exit 1; }' 1 2 13 15
2808      ac_more_lines=false  }
2809      rm -f conftest.s$ac_file  
2810    else  # Create a (secure) tmp directory for tmp files.
2811      if test -z "$ac_sed_cmds"; then  : ${TMPDIR=/tmp}
2812        ac_sed_cmds="sed -f conftest.s$ac_file"  {
2813      tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2814      test -n "$tmp" && test -d "$tmp"
2815    }  ||
2816    {
2817      tmp=$TMPDIR/cs$$-$RANDOM
2818      (umask 077 && mkdir $tmp)
2819    } ||
2820    {
2821       echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2822       { (exit 1); exit 1; }
2823    }
2824    
2825    EOF
2826    
2827    cat >>$CONFIG_STATUS <<EOF
2828    
2829    #
2830    # CONFIG_FILES section.
2831    #
2832    
2833    # No need to generate the scripts if there are no CONFIG_FILES.
2834    # This happens for instance when ./config.status config.h
2835    if test -n "\$CONFIG_FILES"; then
2836      # Protect against being on the right side of a sed subst in config.status.
2837      sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2838       s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2839    s,@SHELL@,$SHELL,;t t
2840    s,@exec_prefix@,$exec_prefix,;t t
2841    s,@prefix@,$prefix,;t t
2842    s,@program_transform_name@,$program_transform_name,;t t
2843    s,@bindir@,$bindir,;t t
2844    s,@sbindir@,$sbindir,;t t
2845    s,@libexecdir@,$libexecdir,;t t
2846    s,@datadir@,$datadir,;t t
2847    s,@sysconfdir@,$sysconfdir,;t t
2848    s,@sharedstatedir@,$sharedstatedir,;t t
2849    s,@localstatedir@,$localstatedir,;t t
2850    s,@libdir@,$libdir,;t t
2851    s,@includedir@,$includedir,;t t
2852    s,@oldincludedir@,$oldincludedir,;t t
2853    s,@infodir@,$infodir,;t t
2854    s,@mandir@,$mandir,;t t
2855    s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2856    s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2857    s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2858    s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2859    s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2860    s,@build_alias@,$build_alias,;t t
2861    s,@host_alias@,$host_alias,;t t
2862    s,@target_alias@,$target_alias,;t t
2863    s,@ECHO_C@,$ECHO_C,;t t
2864    s,@ECHO_N@,$ECHO_N,;t t
2865    s,@ECHO_T@,$ECHO_T,;t t
2866    s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2867    s,@DEFS@,$DEFS,;t t
2868    s,@LIBS@,$LIBS,;t t
2869    s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2870    s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2871    s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2872    s,@PACKAGE@,$PACKAGE,;t t
2873    s,@VERSION@,$VERSION,;t t
2874    s,@EXEEXT@,$EXEEXT,;t t
2875    s,@OBJEXT@,$OBJEXT,;t t
2876    s,@ACLOCAL@,$ACLOCAL,;t t
2877    s,@AUTOCONF@,$AUTOCONF,;t t
2878    s,@AUTOMAKE@,$AUTOMAKE,;t t
2879    s,@AUTOHEADER@,$AUTOHEADER,;t t
2880    s,@MAKEINFO@,$MAKEINFO,;t t
2881    s,@AMTAR@,$AMTAR,;t t
2882    s,@install_sh@,$install_sh,;t t
2883    s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
2884    s,@AWK@,$AWK,;t t
2885    s,@SET_MAKE@,$SET_MAKE,;t t
2886    s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
2887    s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
2888    s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
2889    s,@DEPDIR@,$DEPDIR,;t t
2890    s,@CC@,$CC,;t t
2891    s,@CFLAGS@,$CFLAGS,;t t
2892    s,@LDFLAGS@,$LDFLAGS,;t t
2893    s,@CPPFLAGS@,$CPPFLAGS,;t t
2894    s,@ac_ct_CC@,$ac_ct_CC,;t t
2895    s,@am__include@,$am__include,;t t
2896    s,@am__quote@,$am__quote,;t t
2897    s,@CCDEPMODE@,$CCDEPMODE,;t t
2898    s,@CPP@,$CPP,;t t
2899    s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
2900    s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
2901    s,@MAINT@,$MAINT,;t t
2902    CEOF
2903    
2904    EOF
2905    
2906      cat >>$CONFIG_STATUS <<\EOF
2907      # Split the substitutions into bite-sized pieces for seds with
2908      # small command number limits, like on Digital OSF/1 and HP-UX.
2909      ac_max_sed_lines=48
2910      ac_sed_frag=1 # Number of current file.
2911      ac_beg=1 # First line for current file.
2912      ac_end=$ac_max_sed_lines # Line after last line for current file.
2913      ac_more_lines=:
2914      ac_sed_cmds=
2915      while $ac_more_lines; do
2916        if test $ac_beg -gt 1; then
2917          sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2918      else      else
2919        ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"        sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2920      fi      fi
2921      ac_file=`expr $ac_file + 1`      if test ! -s $tmp/subs.frag; then
2922      ac_beg=$ac_end        ac_more_lines=false
2923      ac_end=`expr $ac_end + $ac_max_sed_cmds`      else
2924          # The purpose of the label and of the branching condition is to
2925          # speed up the sed processing (if there are no `@' at all, there
2926          # is no need to browse any of the substitutions).
2927          # These are the two extra sed commands mentioned above.
2928          (echo ':t
2929      /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2930          if test -z "$ac_sed_cmds"; then
2931            ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2932          else
2933            ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2934          fi
2935          ac_sed_frag=`expr $ac_sed_frag + 1`
2936          ac_beg=$ac_end
2937          ac_end=`expr $ac_end + $ac_max_sed_lines`
2938        fi
2939      done
2940      if test -z "$ac_sed_cmds"; then
2941        ac_sed_cmds=cat
2942    fi    fi
2943  done  fi # test -n "$CONFIG_FILES"
 if test -z "$ac_sed_cmds"; then  
   ac_sed_cmds=cat  
 fi  
 EOF  
2944    
 cat >> $CONFIG_STATUS <<EOF  
   
 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}  
2945  EOF  EOF
2946  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\EOF
2947  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then  for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2948    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2949    case "$ac_file" in    case $ac_file in
2950    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
2951         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
2952    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2953            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2954      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2955            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2956      * )   ac_file_in=$ac_file.in ;;
2957    esac    esac
2958    
2959    # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2960      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2961    # Remove last slash and all that follows it.  Not all systems have dirname.           X"$ac_file" : 'X\(//\)[^/]' \| \
2962    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`           X"$ac_file" : 'X\(//\)$' \| \
2963             X"$ac_file" : 'X\(/\)' \| \
2964             .     : '\(.\)' 2>/dev/null ||
2965    echo X"$ac_file" |
2966        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2967              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2968              /^X\(\/\/\)$/{ s//\1/; q; }
2969              /^X\(\/\).*/{ s//\1/; q; }
2970              s/.*/./; q'`
2971    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then    if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2972      # The file is in a subdirectory.      { case "$ac_dir" in
2973      test ! -d "$ac_dir" && mkdir "$ac_dir"    [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2974      ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"    *)                      as_incr_dir=.;;
2975    esac
2976    as_dummy="$ac_dir"
2977    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2978      case $as_mkdir_dir in
2979        # Skip DOS drivespec
2980        ?:) as_incr_dir=$as_mkdir_dir ;;
2981        *)
2982          as_incr_dir=$as_incr_dir/$as_mkdir_dir
2983          test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2984        ;;
2985      esac
2986    done; }
2987    
2988        ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2989      # A "../" for each directory in $ac_dir_suffix.      # A "../" for each directory in $ac_dir_suffix.
2990      ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`      ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2991    else    else
2992      ac_dir_suffix= ac_dots=      ac_dir_suffix= ac_dots=
2993    fi    fi
2994    
2995    case "$ac_given_srcdir" in    case $srcdir in
2996    .)  srcdir=.    .)  ac_srcdir=.
2997        if test -z "$ac_dots"; then top_srcdir=.        if test -z "$ac_dots"; then
2998        else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;           ac_top_srcdir=.
2999    /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;        else
3000             ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3001          fi ;;
3002      [\\/]* | ?:[\\/]* )
3003          ac_srcdir=$srcdir$ac_dir_suffix;
3004          ac_top_srcdir=$srcdir ;;
3005    *) # Relative path.    *) # Relative path.
3006      srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"      ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3007      top_srcdir="$ac_dots$ac_given_srcdir" ;;      ac_top_srcdir=$ac_dots$srcdir ;;
3008    esac    esac
3009    
3010    case "$ac_given_INSTALL" in    case $INSTALL in
3011    [/$]*) INSTALL="$ac_given_INSTALL" ;;    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3012    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;    *) ac_INSTALL=$ac_dots$INSTALL ;;
3013    esac    esac
3014    
3015    echo creating "$ac_file"    if test x"$ac_file" != x-; then
3016    rm -f "$ac_file"      { echo "$as_me:3016: creating $ac_file" >&5
3017    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."  echo "$as_me: creating $ac_file" >&6;}
3018    case "$ac_file" in      rm -f "$ac_file"
3019    *Makefile*) ac_comsub="1i\\    fi
3020  # $configure_input" ;;    # Let's still pretend it is `configure' which instantiates (i.e., don't
3021    *) ac_comsub= ;;    # use $as_me), people would be surprised to read:
3022    esac    #    /* config.h.  Generated automatically by config.status.  */
3023      configure_input="Generated automatically from `echo $ac_file_in |
3024                                                     sed 's,.*/,,'` by configure."
3025    
3026      # First look for the input files in the build tree, otherwise in the
3027      # src tree.
3028      ac_file_inputs=`IFS=:
3029        for f in $ac_file_in; do
3030          case $f in
3031          -) echo $tmp/stdin ;;
3032          [\\/$]*)
3033             # Absolute (can't be DOS-style, as IFS=:)
3034             test -f "$f" || { { echo "$as_me:3034: error: cannot find input file: $f" >&5
3035    echo "$as_me: error: cannot find input file: $f" >&2;}
3036       { (exit 1); exit 1; }; }
3037             echo $f;;
3038          *) # Relative
3039             if test -f "$f"; then
3040               # Build tree
3041               echo $f
3042             elif test -f "$srcdir/$f"; then
3043               # Source tree
3044               echo $srcdir/$f
3045             else
3046               # /dev/null tree
3047               { { echo "$as_me:3047: error: cannot find input file: $f" >&5
3048    echo "$as_me: error: cannot find input file: $f" >&2;}
3049       { (exit 1); exit 1; }; }
3050             fi;;
3051          esac
3052        done` || { (exit 1); exit 1; }
3053    EOF
3054    cat >>$CONFIG_STATUS <<EOF
3055      sed "$ac_vpsub
3056    $extrasub
3057    EOF
3058    cat >>$CONFIG_STATUS <<\EOF
3059    :t
3060    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3061    s,@configure_input@,$configure_input,;t t
3062    s,@srcdir@,$ac_srcdir,;t t
3063    s,@top_srcdir@,$ac_top_srcdir,;t t
3064    s,@INSTALL@,$ac_INSTALL,;t t
3065    " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3066      rm -f $tmp/stdin
3067      if test x"$ac_file" != x-; then
3068        mv $tmp/out $ac_file
3069      else
3070        cat $tmp/out
3071        rm -f $tmp/out
3072      fi
3073    
3074    done
3075    EOF
3076    cat >>$CONFIG_STATUS <<\EOF
3077    
3078    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`  #
3079    sed -e "$ac_comsub  # CONFIG_HEADER section.
3080  s%@configure_input@%$configure_input%g  #
 s%@srcdir@%$srcdir%g  
 s%@top_srcdir@%$top_srcdir%g  
 s%@INSTALL@%$INSTALL%g  
 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file  
 fi; done  
 rm -f conftest.s*  
3081    
3082  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3083  # NAME is the cpp macro being defined and VALUE is the value it is being given.  # NAME is the cpp macro being defined and VALUE is the value it is being given.
3084  #  #
3085  # ac_d sets the value in "#define NAME VALUE" lines.  # ac_d sets the value in "#define NAME VALUE" lines.
3086  ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'  ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3087  ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'  ac_dB='[        ].*$,\1#\2'
3088  ac_dC='\3'  ac_dC=' '
3089  ac_dD='%g'  ac_dD=',;t'
3090  # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".  # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3091  ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3092  ac_uB='\([      ]\)%\1#\2define\3'  ac_uB='$,\1#\2define\3'
3093  ac_uC=' '  ac_uC=' '
3094  ac_uD='\4%g'  ac_uD=',;t'
 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".  
 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'  
 ac_eB='$%\1#\2define\3'  
 ac_eC=' '  
 ac_eD='%g'  
3095    
3096  if test "${CONFIG_HEADERS+set}" != set; then  for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 EOF  
 cat >> $CONFIG_STATUS <<EOF  
   CONFIG_HEADERS="calc.h"  
 EOF  
 cat >> $CONFIG_STATUS <<\EOF  
 fi  
 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then  
3097    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3098    case "$ac_file" in    case $ac_file in
3099    *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`    - | *:- | *:-:* ) # input from stdin
3100         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;          cat >$tmp/stdin
3101    *) ac_file_in="${ac_file}.in" ;;          ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3102            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3103      *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3104            ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3105      * )   ac_file_in=$ac_file.in ;;
3106    esac    esac
3107    
3108    echo creating $ac_file    test x"$ac_file" != x- && { echo "$as_me:3108: creating $ac_file" >&5
3109    echo "$as_me: creating $ac_file" >&6;}
3110    
3111    rm -f conftest.frag conftest.in conftest.out    # First look for the input files in the build tree, otherwise in the
3112    ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`    # src tree.
3113    cat $ac_file_inputs > conftest.in    ac_file_inputs=`IFS=:
3114        for f in $ac_file_in; do
3115          case $f in
3116          -) echo $tmp/stdin ;;
3117          [\\/$]*)
3118             # Absolute (can't be DOS-style, as IFS=:)
3119             test -f "$f" || { { echo "$as_me:3119: error: cannot find input file: $f" >&5
3120    echo "$as_me: error: cannot find input file: $f" >&2;}
3121       { (exit 1); exit 1; }; }
3122             echo $f;;
3123          *) # Relative
3124             if test -f "$f"; then
3125               # Build tree
3126               echo $f
3127             elif test -f "$srcdir/$f"; then
3128               # Source tree
3129               echo $srcdir/$f
3130             else
3131               # /dev/null tree
3132               { { echo "$as_me:3132: error: cannot find input file: $f" >&5
3133    echo "$as_me: error: cannot find input file: $f" >&2;}
3134       { (exit 1); exit 1; }; }
3135             fi;;
3136          esac
3137        done` || { (exit 1); exit 1; }
3138      # Remove the trailing spaces.
3139      sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
3140    
3141  EOF  EOF
3142    
3143  # Transform confdefs.h into a sed script conftest.vals that substitutes  # Transform confdefs.h into two sed scripts, `conftest.defines' and
3144  # the proper values into config.h.in to produce config.h.  And first:  # `conftest.undefs', that substitutes the proper values into
3145  # Protect against being on the right side of a sed subst in config.status.  # config.h.in to produce config.h.  The first handles `#define'
3146  # Protect against being in an unquoted here document in config.status.  # templates, and the second `#undef' templates.
3147  rm -f conftest.vals  # And first: Protect against being on the right side of a sed subst in
3148  cat > conftest.hdr <<\EOF  # config.status.  Protect against being in an unquoted here document
3149  s/[\\&%]/\\&/g  # in config.status.
3150  s%[\\$`]%\\&%g  rm -f conftest.defines conftest.undefs
3151  s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp  # Using a here document instead of a string reduces the quoting nightmare.
3152  s%ac_d%ac_u%gp  # Putting comments in sed scripts is not portable.
3153  s%ac_u%ac_e%gp  #
3154  EOF  # `end' is used to avoid that the second main sed command (meant for
3155  sed -n -f conftest.hdr confdefs.h > conftest.vals  # 0-ary CPP macros) applies to n-ary macro definitions.
3156  rm -f conftest.hdr  # See the Autoconf documentation for `clear'.
3157    cat >confdef2sed.sed <<\EOF
3158    s/[\\&,]/\\&/g
3159    s,[\\$`],\\&,g
3160    t clear
3161    : clear
3162    s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3163    t end
3164    s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3165    : end
3166    EOF
3167    # If some macros were called several times there might be several times
3168    # the same #defines, which is useless.  Nevertheless, we may not want to
3169    # sort them, since we want the *last* AC-DEFINE to be honored.
3170    uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3171    sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3172    rm -f confdef2sed.sed
3173    
3174  # This sed command replaces #undef with comments.  This is necessary, for  # This sed command replaces #undef with comments.  This is necessary, for
3175  # example, in the case of _POSIX_SOURCE, which is predefined and required  # example, in the case of _POSIX_SOURCE, which is predefined and required
3176  # on some systems where configure will not decide to define it.  # on some systems where configure will not decide to define it.
3177  cat >> conftest.vals <<\EOF  cat >>conftest.undefs <<\EOF
3178  s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%  s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3179  EOF  EOF
3180    
3181  # Break up conftest.vals because some shells have a limit on  # Break up conftest.defines because some shells have a limit on the size
3182  # the size of here documents, and old seds have small limits too.  # of here documents, and old seds have small limits too (100 cmds).
3183    echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3184    echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3185    echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3186    echo '  :' >>$CONFIG_STATUS
3187    rm -f conftest.tail
3188    while grep . conftest.defines >/dev/null
3189    do
3190      # Write a limited-size here document to $tmp/defines.sed.
3191      echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3192      # Speed up: don't consider the non `#define' lines.
3193      echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
3194      # Work around the forget-to-reset-the-flag bug.
3195      echo 't clr' >>$CONFIG_STATUS
3196      echo ': clr' >>$CONFIG_STATUS
3197      sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3198      echo 'CEOF
3199      sed -f $tmp/defines.sed $tmp/in >$tmp/out
3200      rm -f $tmp/in
3201      mv $tmp/out $tmp/in
3202    ' >>$CONFIG_STATUS
3203      sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3204      rm -f conftest.defines
3205      mv conftest.tail conftest.defines
3206    done
3207    rm -f conftest.defines
3208    echo '  fi # egrep' >>$CONFIG_STATUS
3209    echo >>$CONFIG_STATUS
3210    
3211    # Break up conftest.undefs because some shells have a limit on the size
3212    # of here documents, and old seds have small limits too (100 cmds).
3213    echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
3214  rm -f conftest.tail  rm -f conftest.tail
3215  while :  while grep . conftest.undefs >/dev/null
3216  do  do
3217    ac_lines=`grep -c . conftest.vals`    # Write a limited-size here document to $tmp/undefs.sed.
3218    # grep -c gives empty output for an empty file on some AIX systems.    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3219    if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi    # Speed up: don't consider the non `#undef'
3220    # Write a limited-size here document to conftest.frag.    echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
3221    echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS    # Work around the forget-to-reset-the-flag bug.
3222    sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS    echo 't clr' >>$CONFIG_STATUS
3223      echo ': clr' >>$CONFIG_STATUS
3224      sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3225    echo 'CEOF    echo 'CEOF
3226    sed -f conftest.frag conftest.in > conftest.out    sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3227    rm -f conftest.in    rm -f $tmp/in
3228    mv conftest.out conftest.in    mv $tmp/out $tmp/in
3229  ' >> $CONFIG_STATUS  ' >>$CONFIG_STATUS
3230    sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail    sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3231    rm -f conftest.vals    rm -f conftest.undefs
3232    mv conftest.tail conftest.vals    mv conftest.tail conftest.undefs
3233  done  done
3234  rm -f conftest.vals  rm -f conftest.undefs
3235    
3236  cat >> $CONFIG_STATUS <<\EOF  cat >>$CONFIG_STATUS <<\EOF
3237    rm -f conftest.frag conftest.h    # Let's still pretend it is `configure' which instantiates (i.e., don't
3238    echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h    # use $as_me), people would be surprised to read:
3239    cat conftest.in >> conftest.h    #    /* config.h.  Generated automatically by config.status.  */
3240    rm -f conftest.in    if test x"$ac_file" = x-; then
3241    if cmp -s $ac_file conftest.h 2>/dev/null; then      echo "/* Generated automatically by configure.  */" >$tmp/config.h
     echo "$ac_file is unchanged"  
     rm -f conftest.h  
3242    else    else
3243      # Remove last slash and all that follows it.  Not all systems have dirname.      echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
3244        ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`    fi
3245      cat $tmp/in >>$tmp/config.h
3246      rm -f $tmp/in
3247      if test x"$ac_file" != x-; then
3248        if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3249          { echo "$as_me:3249: $ac_file is unchanged" >&5
3250    echo "$as_me: $ac_file is unchanged" >&6;}
3251        else
3252          ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3253             X"$ac_file" : 'X\(//\)[^/]' \| \
3254             X"$ac_file" : 'X\(//\)$' \| \
3255             X"$ac_file" : 'X\(/\)' \| \
3256             .     : '\(.\)' 2>/dev/null ||
3257    echo X"$ac_file" |
3258        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3259              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3260              /^X\(\/\/\)$/{ s//\1/; q; }
3261              /^X\(\/\).*/{ s//\1/; q; }
3262              s/.*/./; q'`
3263        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then        if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3264        # The file is in a subdirectory.          { case "$ac_dir" in
3265        test ! -d "$ac_dir" && mkdir "$ac_dir"    [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3266      *)                      as_incr_dir=.;;
3267    esac
3268    as_dummy="$ac_dir"
3269    for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3270      case $as_mkdir_dir in
3271        # Skip DOS drivespec
3272        ?:) as_incr_dir=$as_mkdir_dir ;;
3273        *)
3274          as_incr_dir=$as_incr_dir/$as_mkdir_dir
3275          test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3276        ;;
3277      esac
3278    done; }
3279    
3280          fi
3281          rm -f $ac_file
3282          mv $tmp/config.h $ac_file
3283      fi      fi
3284      rm -f $ac_file    else
3285      mv conftest.h $ac_file      cat $tmp/config.h
3286        rm -f $tmp/config.h
3287    fi    fi
3288  fi; done    # Run the commands associated with the file.
3289      case $ac_file in
3290        calc.h ) # update the timestamp
3291    echo timestamp >"./stamp-h1"
3292     ;;
3293      esac
3294    done
3295  EOF  EOF
3296  cat >> $CONFIG_STATUS <<EOF  cat >>$CONFIG_STATUS <<\EOF
   
3297    
3298    #
3299    # CONFIG_COMMANDS section.
3300    #
3301    for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3302      ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3303      ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3304    
3305      case $ac_dest in
3306        default-1 )
3307    test x"$AMDEP_TRUE" != x"" ||
3308    for mf in $CONFIG_FILES; do
3309      case "$mf" in
3310      Makefile) dirpart=.;;
3311      */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
3312      *) continue;;
3313      esac
3314      grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
3315      # Extract the definition of DEP_FILES from the Makefile without
3316      # running `make'.
3317      DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
3318      test -z "$DEPDIR" && continue
3319      # When using ansi2knr, U may be empty or an underscore; expand it
3320      U=`sed -n -e '/^U = / s///p' < "$mf"`
3321      test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
3322      # We invoke sed twice because it is the simplest approach to
3323      # changing $(DEPDIR) to its actual value in the expansion.
3324      for file in `sed -n -e '
3325        /^DEP_FILES = .*\\\\$/ {
3326          s/^DEP_FILES = //
3327          :loop
3328            s/\\\\$//
3329            p
3330            n
3331            /\\\\$/ b loop
3332          p
3333        }
3334        /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
3335           sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
3336        # Make sure the directory exists.
3337        test -f "$dirpart/$file" && continue
3338        fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
3339        $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
3340        # echo "creating $dirpart/$file"
3341        echo '# dummy' > "$dirpart/$file"
3342      done
3343    done
3344     ;;
3345      esac
3346    done
3347  EOF  EOF
 cat >> $CONFIG_STATUS <<\EOF  
 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h  
3348    
3349  exit 0  cat >>$CONFIG_STATUS <<\EOF
3350    
3351    { (exit 0); exit 0; }
3352  EOF  EOF
3353  chmod +x $CONFIG_STATUS  chmod +x $CONFIG_STATUS
3354  rm -fr confdefs* $ac_clean_files  ac_clean_files=$ac_clean_files_save
3355  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1  
3356    # configure is writing to config.log, and then calls config.status.
3357    # config.status does its own redirection, appending to config.log.
3358    # Unfortunately, on DOS this fails, as config.log is still kept open
3359    # by configure, so config.status won't be able to write to it; its
3360    # output is simply discarded.  So we exec the FD to /dev/null,
3361    # effectively closing config.log, so it can be properly (re)opened and
3362    # appended to by config.status.  When coming back to configure, we
3363    # need to make the FD available again.
3364    if test "$no_create" != yes; then
3365      ac_cs_success=:
3366      exec 5>/dev/null
3367      $SHELL $CONFIG_STATUS || ac_cs_success=false
3368      exec 5>>config.log
3369      # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3370      # would make configure fail if this is the last instruction.
3371      $ac_cs_success || { (exit 1); exit 1; }
3372    fi
3373    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26