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