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