source: tags/release-1.0/configure @ 1391

Last change on this file since 1391 was 110, checked in by Matthew Whiting, 18 years ago

Final update of config-related files, as well as COPYING and README.
Minor fixes to plotting.cc and plots.hh.
mainDuchamp makes use of header info from config.h.
Added a fix to param.cc to get be able to print true/false even when
boolalpha not defined.
Final update to Guide, included Installation instructions.

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