source: tags/release-1.0.2/configure

Last change on this file was 121, checked in by Matthew Whiting, 18 years ago

Added CHANGES for version 1.0.2.
Updated configure.ac to include the new version number and created new
configure script.

  • Property svn:executable set to *
File size: 188.9 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.2.
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.2'
272PACKAGE_STRING='Duchamp 1.0.2'
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.2 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.2:";;
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.2
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.2, 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 gerror_ in -lg2c" >&5
2730echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6
2731if test "${ac_cv_lib_g2c_gerror_+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  ac_check_lib_save_LIBS=$LIBS
2735LIBS="-lg2c  $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 gerror_ ();
2751int
2752main ()
2753{
2754gerror_ ();
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_g2c_gerror_=yes
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776ac_cv_lib_g2c_gerror_=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_g2c_gerror_" >&5
2782echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6
2783if test $ac_cv_lib_g2c_gerror_ = yes; then
2784  cat >>confdefs.h <<_ACEOF
2785#define HAVE_LIBG2C 1
2786_ACEOF
2787
2788  LIBS="-lg2c $LIBS"
2789
2790fi
2791
2792
2793echo "$as_me:$LINENO: checking for log in -lm" >&5
2794echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
2795if test "${ac_cv_lib_m_log+set}" = set; then
2796  echo $ECHO_N "(cached) $ECHO_C" >&6
2797else
2798  ac_check_lib_save_LIBS=$LIBS
2799LIBS="-lm  $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 log ();
2815int
2816main ()
2817{
2818log ();
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_m_log=yes
2836else
2837  echo "$as_me: failed program was:" >&5
2838sed 's/^/| /' conftest.$ac_ext >&5
2839
2840ac_cv_lib_m_log=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_m_log" >&5
2846echo "${ECHO_T}$ac_cv_lib_m_log" >&6
2847if test $ac_cv_lib_m_log = yes; then
2848  cat >>confdefs.h <<_ACEOF
2849#define HAVE_LIBM 1
2850_ACEOF
2851
2852  LIBS="-lm $LIBS"
2853
2854fi
2855
2856
2857# Checks for header files.
2858
2859echo "$as_me:$LINENO: checking for egrep" >&5
2860echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2861if test "${ac_cv_prog_egrep+set}" = set; then
2862  echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2865    then ac_cv_prog_egrep='grep -E'
2866    else ac_cv_prog_egrep='egrep'
2867    fi
2868fi
2869echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2870echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2871 EGREP=$ac_cv_prog_egrep
2872
2873
2874echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2875echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2876if test "${ac_cv_header_stdc+set}" = set; then
2877  echo $ECHO_N "(cached) $ECHO_C" >&6
2878else
2879  cat >conftest.$ac_ext <<_ACEOF
2880#line $LINENO "configure"
2881/* confdefs.h.  */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h.  */
2886#include <stdlib.h>
2887#include <stdarg.h>
2888#include <string.h>
2889#include <float.h>
2890
2891int
2892main ()
2893{
2894
2895  ;
2896  return 0;
2897}
2898_ACEOF
2899rm -f conftest.$ac_objext
2900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901  (eval $ac_compile) 2>&5
2902  ac_status=$?
2903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904  (exit $ac_status); } &&
2905         { ac_try='test -s conftest.$ac_objext'
2906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907  (eval $ac_try) 2>&5
2908  ac_status=$?
2909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910  (exit $ac_status); }; }; then
2911  ac_cv_header_stdc=yes
2912else
2913  echo "$as_me: failed program was:" >&5
2914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916ac_cv_header_stdc=no
2917fi
2918rm -f conftest.$ac_objext conftest.$ac_ext
2919
2920if test $ac_cv_header_stdc = yes; then
2921  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2922  cat >conftest.$ac_ext <<_ACEOF
2923#line $LINENO "configure"
2924/* confdefs.h.  */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h.  */
2929#include <string.h>
2930
2931_ACEOF
2932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2933  $EGREP "memchr" >/dev/null 2>&1; then
2934  :
2935else
2936  ac_cv_header_stdc=no
2937fi
2938rm -f conftest*
2939
2940fi
2941
2942if test $ac_cv_header_stdc = yes; then
2943  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2944  cat >conftest.$ac_ext <<_ACEOF
2945#line $LINENO "configure"
2946/* confdefs.h.  */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h.  */
2951#include <stdlib.h>
2952
2953_ACEOF
2954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2955  $EGREP "free" >/dev/null 2>&1; then
2956  :
2957else
2958  ac_cv_header_stdc=no
2959fi
2960rm -f conftest*
2961
2962fi
2963
2964if test $ac_cv_header_stdc = yes; then
2965  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2966  if test "$cross_compiling" = yes; then
2967  :
2968else
2969  cat >conftest.$ac_ext <<_ACEOF
2970#line $LINENO "configure"
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976#include <ctype.h>
2977#if ((' ' & 0x0FF) == 0x020)
2978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2980#else
2981# define ISLOWER(c) \
2982                   (('a' <= (c) && (c) <= 'i') \
2983                     || ('j' <= (c) && (c) <= 'r') \
2984                     || ('s' <= (c) && (c) <= 'z'))
2985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2986#endif
2987
2988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2989int
2990main ()
2991{
2992  int i;
2993  for (i = 0; i < 256; i++)
2994    if (XOR (islower (i), ISLOWER (i))
2995        || toupper (i) != TOUPPER (i))
2996      exit(2);
2997  exit (0);
2998}
2999_ACEOF
3000rm -f conftest$ac_exeext
3001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002  (eval $ac_link) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; }; then
3011  :
3012else
3013  echo "$as_me: program exited with status $ac_status" >&5
3014echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017( exit $ac_status )
3018ac_cv_header_stdc=no
3019fi
3020rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3021fi
3022fi
3023fi
3024echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3025echo "${ECHO_T}$ac_cv_header_stdc" >&6
3026if test $ac_cv_header_stdc = yes; then
3027
3028cat >>confdefs.h <<\_ACEOF
3029#define STDC_HEADERS 1
3030_ACEOF
3031
3032fi
3033
3034# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3045                  inttypes.h stdint.h unistd.h
3046do
3047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3048echo "$as_me:$LINENO: checking for $ac_header" >&5
3049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3050if eval "test \"\${$as_ac_Header+set}\" = set"; then
3051  echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053  cat >conftest.$ac_ext <<_ACEOF
3054#line $LINENO "configure"
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060$ac_includes_default
3061
3062#include <$ac_header>
3063_ACEOF
3064rm -f conftest.$ac_objext
3065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3066  (eval $ac_compile) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); } &&
3070         { ac_try='test -s conftest.$ac_objext'
3071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072  (eval $ac_try) 2>&5
3073  ac_status=$?
3074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075  (exit $ac_status); }; }; then
3076  eval "$as_ac_Header=yes"
3077else
3078  echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081eval "$as_ac_Header=no"
3082fi
3083rm -f conftest.$ac_objext conftest.$ac_ext
3084fi
3085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3087if test `eval echo '${'$as_ac_Header'}'` = yes; then
3088  cat >>confdefs.h <<_ACEOF
3089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3090_ACEOF
3091
3092fi
3093
3094done
3095
3096
3097
3098
3099
3100
3101
3102for ac_header in stdlib.h string.h unistd.h time.h math.h
3103do
3104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3105if eval "test \"\${$as_ac_Header+set}\" = set"; then
3106  echo "$as_me:$LINENO: checking for $ac_header" >&5
3107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3108if eval "test \"\${$as_ac_Header+set}\" = set"; then
3109  echo $ECHO_N "(cached) $ECHO_C" >&6
3110fi
3111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113else
3114  # Is the header compilable?
3115echo "$as_me:$LINENO: checking $ac_header usability" >&5
3116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3117cat >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#include <$ac_header>
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129  (eval $ac_compile) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); } &&
3133         { ac_try='test -s conftest.$ac_objext'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; }; then
3139  ac_header_compiler=yes
3140else
3141  echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144ac_header_compiler=no
3145fi
3146rm -f conftest.$ac_objext conftest.$ac_ext
3147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3148echo "${ECHO_T}$ac_header_compiler" >&6
3149
3150# Is the header present?
3151echo "$as_me:$LINENO: checking $ac_header presence" >&5
3152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3153cat >conftest.$ac_ext <<_ACEOF
3154#line $LINENO "configure"
3155/* confdefs.h.  */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h.  */
3160#include <$ac_header>
3161_ACEOF
3162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3164  ac_status=$?
3165  grep -v '^ *+' conftest.er1 >conftest.err
3166  rm -f conftest.er1
3167  cat conftest.err >&5
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); } >/dev/null; then
3170  if test -s conftest.err; then
3171    ac_cpp_err=$ac_c_preproc_warn_flag
3172  else
3173    ac_cpp_err=
3174  fi
3175else
3176  ac_cpp_err=yes
3177fi
3178if test -z "$ac_cpp_err"; then
3179  ac_header_preproc=yes
3180else
3181  echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184  ac_header_preproc=no
3185fi
3186rm -f conftest.err conftest.$ac_ext
3187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3188echo "${ECHO_T}$ac_header_preproc" >&6
3189
3190# So?  What about this header?
3191case $ac_header_compiler:$ac_header_preproc in
3192  yes:no )
3193    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3197    (
3198      cat <<\_ASBOX
3199## ------------------------------------ ##
3200## Report this to bug-autoconf@gnu.org. ##
3201## ------------------------------------ ##
3202_ASBOX
3203    ) |
3204      sed "s/^/$as_me: WARNING:     /" >&2
3205    ;;
3206  no:yes )
3207    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3209    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3211    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3212echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3213    (
3214      cat <<\_ASBOX
3215## ------------------------------------ ##
3216## Report this to bug-autoconf@gnu.org. ##
3217## ------------------------------------ ##
3218_ASBOX
3219    ) |
3220      sed "s/^/$as_me: WARNING:     /" >&2
3221    ;;
3222esac
3223echo "$as_me:$LINENO: checking for $ac_header" >&5
3224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3225if eval "test \"\${$as_ac_Header+set}\" = set"; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  eval "$as_ac_Header=$ac_header_preproc"
3229fi
3230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3231echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3232
3233fi
3234if test `eval echo '${'$as_ac_Header'}'` = yes; then
3235  cat >>confdefs.h <<_ACEOF
3236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3237_ACEOF
3238
3239fi
3240
3241done
3242
3243
3244# Checks for typedefs, structures, and compiler characteristics.
3245echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3246echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3247if test "${ac_cv_header_stdbool_h+set}" = set; then
3248  echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
3250  cat >conftest.$ac_ext <<_ACEOF
3251#line $LINENO "configure"
3252/* confdefs.h.  */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h.  */
3257
3258#include <stdbool.h>
3259#ifndef bool
3260# error bool is not defined
3261#endif
3262#ifndef false
3263# error false is not defined
3264#endif
3265#if false
3266# error false is not 0
3267#endif
3268#ifndef true
3269# error true is not defined
3270#endif
3271#if true != 1
3272# error true is not 1
3273#endif
3274#ifndef __bool_true_false_are_defined
3275# error __bool_true_false_are_defined is not defined
3276#endif
3277
3278        struct s { _Bool s: 1; _Bool t; } s;
3279
3280        char a[true == 1 ? 1 : -1];
3281        char b[false == 0 ? 1 : -1];
3282        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3283        char d[(bool) -0.5 == true ? 1 : -1];
3284        bool e = &s;
3285        char f[(_Bool) -0.0 == false ? 1 : -1];
3286        char g[true];
3287        char h[sizeof (_Bool)];
3288        char i[sizeof s.t];
3289
3290int
3291main ()
3292{
3293 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300  (eval $ac_compile) 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); } &&
3304         { ac_try='test -s conftest.$ac_objext'
3305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306  (eval $ac_try) 2>&5
3307  ac_status=$?
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); }; }; then
3310  ac_cv_header_stdbool_h=yes
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315ac_cv_header_stdbool_h=no
3316fi
3317rm -f conftest.$ac_objext conftest.$ac_ext
3318fi
3319echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
3320echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
3321echo "$as_me:$LINENO: checking for _Bool" >&5
3322echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
3323if test "${ac_cv_type__Bool+set}" = set; then
3324  echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326  cat >conftest.$ac_ext <<_ACEOF
3327#line $LINENO "configure"
3328/* confdefs.h.  */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h.  */
3333$ac_includes_default
3334int
3335main ()
3336{
3337if ((_Bool *) 0)
3338  return 0;
3339if (sizeof (_Bool))
3340  return 0;
3341  ;
3342  return 0;
3343}
3344_ACEOF
3345rm -f conftest.$ac_objext
3346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347  (eval $ac_compile) 2>&5
3348  ac_status=$?
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); } &&
3351         { ac_try='test -s conftest.$ac_objext'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; }; then
3357  ac_cv_type__Bool=yes
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362ac_cv_type__Bool=no
3363fi
3364rm -f conftest.$ac_objext conftest.$ac_ext
3365fi
3366echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
3367echo "${ECHO_T}$ac_cv_type__Bool" >&6
3368if test $ac_cv_type__Bool = yes; then
3369
3370cat >>confdefs.h <<_ACEOF
3371#define HAVE__BOOL 1
3372_ACEOF
3373
3374
3375fi
3376
3377if test $ac_cv_header_stdbool_h = yes; then
3378
3379cat >>confdefs.h <<\_ACEOF
3380#define HAVE_STDBOOL_H 1
3381_ACEOF
3382
3383fi
3384
3385echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3386echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3387if test "${ac_cv_c_const+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
3398int
3399main ()
3400{
3401/* FIXME: Include the comments suggested by Paul. */
3402#ifndef __cplusplus
3403  /* Ultrix mips cc rejects this.  */
3404  typedef int charset[2];
3405  const charset x;
3406  /* SunOS 4.1.1 cc rejects this.  */
3407  char const *const *ccp;
3408  char **p;
3409  /* NEC SVR4.0.2 mips cc rejects this.  */
3410  struct point {int x, y;};
3411  static struct point const zero = {0,0};
3412  /* AIX XL C 1.02.0.0 rejects this.
3413     It does not let you subtract one const X* pointer from another in
3414     an arm of an if-expression whose if-part is not a constant
3415     expression */
3416  const char *g = "string";
3417  ccp = &g + (g ? g-g : 0);
3418  /* HPUX 7.0 cc rejects these. */
3419  ++ccp;
3420  p = (char**) ccp;
3421  ccp = (char const *const *) p;
3422  { /* SCO 3.2v4 cc rejects this.  */
3423    char *t;
3424    char const *s = 0 ? (char *) 0 : (char const *) 0;
3425
3426    *t++ = 0;
3427  }
3428  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3429    int x[] = {25, 17};
3430    const int *foo = &x[0];
3431    ++foo;
3432  }
3433  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3434    typedef const int *iptr;
3435    iptr p = 0;
3436    ++p;
3437  }
3438  { /* AIX XL C 1.02.0.0 rejects this saying
3439       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3440    struct s { int j; const int *ap[3]; };
3441    struct s *b; b->j = 5;
3442  }
3443  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3444    const int foo = 10;
3445  }
3446#endif
3447
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452rm -f conftest.$ac_objext
3453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454  (eval $ac_compile) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } &&
3458         { ac_try='test -s conftest.$ac_objext'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; }; then
3464  ac_cv_c_const=yes
3465else
3466  echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469ac_cv_c_const=no
3470fi
3471rm -f conftest.$ac_objext conftest.$ac_ext
3472fi
3473echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3474echo "${ECHO_T}$ac_cv_c_const" >&6
3475if test $ac_cv_c_const = no; then
3476
3477cat >>confdefs.h <<\_ACEOF
3478#define const
3479_ACEOF
3480
3481fi
3482
3483echo "$as_me:$LINENO: checking for inline" >&5
3484echo $ECHO_N "checking for inline... $ECHO_C" >&6
3485if test "${ac_cv_c_inline+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  ac_cv_c_inline=no
3489for ac_kw in inline __inline__ __inline; do
3490  cat >conftest.$ac_ext <<_ACEOF
3491#line $LINENO "configure"
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497#ifndef __cplusplus
3498typedef int foo_t;
3499static $ac_kw foo_t static_foo () {return 0; }
3500$ac_kw foo_t foo () {return 0; }
3501#endif
3502
3503_ACEOF
3504rm -f conftest.$ac_objext
3505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506  (eval $ac_compile) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); } &&
3510         { ac_try='test -s conftest.$ac_objext'
3511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512  (eval $ac_try) 2>&5
3513  ac_status=$?
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); }; }; then
3516  ac_cv_c_inline=$ac_kw; break
3517else
3518  echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521fi
3522rm -f conftest.$ac_objext conftest.$ac_ext
3523done
3524
3525fi
3526echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3527echo "${ECHO_T}$ac_cv_c_inline" >&6
3528case $ac_cv_c_inline in
3529  inline | yes) ;;
3530  no)
3531cat >>confdefs.h <<\_ACEOF
3532#define inline
3533_ACEOF
3534 ;;
3535  *)  cat >>confdefs.h <<_ACEOF
3536#define inline $ac_cv_c_inline
3537_ACEOF
3538 ;;
3539esac
3540
3541
3542# Checks for library functions.
3543echo "$as_me:$LINENO: checking for working strtod" >&5
3544echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
3545if test "${ac_cv_func_strtod+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  if test "$cross_compiling" = yes; then
3549  ac_cv_func_strtod=no
3550else
3551  cat >conftest.$ac_ext <<_ACEOF
3552#line $LINENO "configure"
3553/* confdefs.h.  */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h.  */
3558
3559double strtod ();
3560int
3561main()
3562{
3563  {
3564    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
3565    char *string = " +69";
3566    char *term;
3567    double value;
3568    value = strtod (string, &term);
3569    if (value != 69 || term != (string + 4))
3570      exit (1);
3571  }
3572
3573  {
3574    /* Under Solaris 2.4, strtod returns the wrong value for the
3575       terminating character under some conditions.  */
3576    char *string = "NaN";
3577    char *term;
3578    strtod (string, &term);
3579    if (term != string && *(term - 1) == 0)
3580      exit (1);
3581  }
3582  exit (0);
3583}
3584
3585_ACEOF
3586rm -f conftest$ac_exeext
3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588  (eval $ac_link) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; }; then
3597  ac_cv_func_strtod=yes
3598else
3599  echo "$as_me: program exited with status $ac_status" >&5
3600echo "$as_me: failed program was:" >&5
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603( exit $ac_status )
3604ac_cv_func_strtod=no
3605fi
3606rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3607fi
3608fi
3609echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
3610echo "${ECHO_T}$ac_cv_func_strtod" >&6
3611if test $ac_cv_func_strtod = no; then
3612  LIBOBJS="$LIBOBJS strtod.$ac_objext"
3613echo "$as_me:$LINENO: checking for pow" >&5
3614echo $ECHO_N "checking for pow... $ECHO_C" >&6
3615if test "${ac_cv_func_pow+set}" = set; then
3616  echo $ECHO_N "(cached) $ECHO_C" >&6
3617else
3618  cat >conftest.$ac_ext <<_ACEOF
3619#line $LINENO "configure"
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625/* System header to define __stub macros and hopefully few prototypes,
3626    which can conflict with char pow (); below.
3627    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3628    <limits.h> exists even on freestanding compilers.  */
3629#ifdef __STDC__
3630# include <limits.h>
3631#else
3632# include <assert.h>
3633#endif
3634/* Override any gcc2 internal prototype to avoid an error.  */
3635#ifdef __cplusplus
3636extern "C"
3637{
3638#endif
3639/* We use char because int might match the return type of a gcc2
3640   builtin and then its argument prototype would still apply.  */
3641char pow ();
3642/* The GNU C library defines this for functions which it implements
3643    to always fail with ENOSYS.  Some functions are actually named
3644    something starting with __ and the normal name is an alias.  */
3645#if defined (__stub_pow) || defined (__stub___pow)
3646choke me
3647#else
3648char (*f) () = pow;
3649#endif
3650#ifdef __cplusplus
3651}
3652#endif
3653
3654int
3655main ()
3656{
3657return f != pow;
3658  ;
3659  return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext conftest$ac_exeext
3663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3664  (eval $ac_link) 2>&5
3665  ac_status=$?
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); } &&
3668         { ac_try='test -s conftest$ac_exeext'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; }; then
3674  ac_cv_func_pow=yes
3675else
3676  echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679ac_cv_func_pow=no
3680fi
3681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3682fi
3683echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
3684echo "${ECHO_T}$ac_cv_func_pow" >&6
3685
3686if test $ac_cv_func_pow = no; then
3687  echo "$as_me:$LINENO: checking for pow in -lm" >&5
3688echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
3689if test "${ac_cv_lib_m_pow+set}" = set; then
3690  echo $ECHO_N "(cached) $ECHO_C" >&6
3691else
3692  ac_check_lib_save_LIBS=$LIBS
3693LIBS="-lm  $LIBS"
3694cat >conftest.$ac_ext <<_ACEOF
3695#line $LINENO "configure"
3696/* confdefs.h.  */
3697_ACEOF
3698cat confdefs.h >>conftest.$ac_ext
3699cat >>conftest.$ac_ext <<_ACEOF
3700/* end confdefs.h.  */
3701
3702/* Override any gcc2 internal prototype to avoid an error.  */
3703#ifdef __cplusplus
3704extern "C"
3705#endif
3706/* We use char because int might match the return type of a gcc2
3707   builtin and then its argument prototype would still apply.  */
3708char pow ();
3709int
3710main ()
3711{
3712pow ();
3713  ;
3714  return 0;
3715}
3716_ACEOF
3717rm -f conftest.$ac_objext conftest$ac_exeext
3718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3719  (eval $ac_link) 2>&5
3720  ac_status=$?
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); } &&
3723         { ac_try='test -s conftest$ac_exeext'
3724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725  (eval $ac_try) 2>&5
3726  ac_status=$?
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); }; }; then
3729  ac_cv_lib_m_pow=yes
3730else
3731  echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734ac_cv_lib_m_pow=no
3735fi
3736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3737LIBS=$ac_check_lib_save_LIBS
3738fi
3739echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
3740echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
3741if test $ac_cv_lib_m_pow = yes; then
3742  POW_LIB=-lm
3743else
3744  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
3745echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
3746fi
3747
3748fi
3749
3750fi
3751
3752
3753
3754
3755
3756
3757
3758
3759for ac_func in floor pow sqrt strtol log atan fabs
3760do
3761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3762echo "$as_me:$LINENO: checking for $ac_func" >&5
3763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_var+set}\" = set"; then
3765  echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767  cat >conftest.$ac_ext <<_ACEOF
3768#line $LINENO "configure"
3769/* confdefs.h.  */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h.  */
3774/* System header to define __stub macros and hopefully few prototypes,
3775    which can conflict with char $ac_func (); below.
3776    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3777    <limits.h> exists even on freestanding compilers.  */
3778#ifdef __STDC__
3779# include <limits.h>
3780#else
3781# include <assert.h>
3782#endif
3783/* Override any gcc2 internal prototype to avoid an error.  */
3784#ifdef __cplusplus
3785extern "C"
3786{
3787#endif
3788/* We use char because int might match the return type of a gcc2
3789   builtin and then its argument prototype would still apply.  */
3790char $ac_func ();
3791/* The GNU C library defines this for functions which it implements
3792    to always fail with ENOSYS.  Some functions are actually named
3793    something starting with __ and the normal name is an alias.  */
3794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3795choke me
3796#else
3797char (*f) () = $ac_func;
3798#endif
3799#ifdef __cplusplus
3800}
3801#endif
3802
3803int
3804main ()
3805{
3806return f != $ac_func;
3807  ;
3808  return 0;
3809}
3810_ACEOF
3811rm -f conftest.$ac_objext conftest$ac_exeext
3812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813  (eval $ac_link) 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); } &&
3817         { ac_try='test -s conftest$ac_exeext'
3818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819  (eval $ac_try) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); }; }; then
3823  eval "$as_ac_var=yes"
3824else
3825  echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828eval "$as_ac_var=no"
3829fi
3830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3831fi
3832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3834if test `eval echo '${'$as_ac_var'}'` = yes; then
3835  cat >>confdefs.h <<_ACEOF
3836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3837_ACEOF
3838
3839fi
3840done
3841
3842
3843# Look for a Fortran compiler.
3844ac_ext=f
3845ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3846ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3848if test -n "$ac_tool_prefix"; then
3849  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
3850  do
3851    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_prog_F77+set}" = set; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  if test -n "$F77"; then
3859  ac_cv_prog_F77="$F77" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866  for ac_exec_ext in '' $ac_executable_extensions; do
3867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873done
3874
3875fi
3876fi
3877F77=$ac_cv_prog_F77
3878if test -n "$F77"; then
3879  echo "$as_me:$LINENO: result: $F77" >&5
3880echo "${ECHO_T}$F77" >&6
3881else
3882  echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
3884fi
3885
3886    test -n "$F77" && break
3887  done
3888fi
3889if test -z "$F77"; then
3890  ac_ct_F77=$F77
3891  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
3892do
3893  # Extract the first word of "$ac_prog", so it can be a program name with args.
3894set dummy $ac_prog; ac_word=$2
3895echo "$as_me:$LINENO: checking for $ac_word" >&5
3896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3898  echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900  if test -n "$ac_ct_F77"; then
3901  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3902else
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906  IFS=$as_save_IFS
3907  test -z "$as_dir" && as_dir=.
3908  for ac_exec_ext in '' $ac_executable_extensions; do
3909  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910    ac_cv_prog_ac_ct_F77="$ac_prog"
3911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3912    break 2
3913  fi
3914done
3915done
3916
3917fi
3918fi
3919ac_ct_F77=$ac_cv_prog_ac_ct_F77
3920if test -n "$ac_ct_F77"; then
3921  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3922echo "${ECHO_T}$ac_ct_F77" >&6
3923else
3924  echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
3926fi
3927
3928  test -n "$ac_ct_F77" && break
3929done
3930
3931  F77=$ac_ct_F77
3932fi
3933
3934
3935# Provide some information about the compiler.
3936echo "$as_me:3936:" \
3937     "checking for Fortran 77 compiler version" >&5
3938ac_compiler=`set X $ac_compile; echo $2`
3939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3940  (eval $ac_compiler --version </dev/null >&5) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }
3944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3945  (eval $ac_compiler -v </dev/null >&5) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }
3949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3950  (eval $ac_compiler -V </dev/null >&5) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }
3954
3955# If we don't use `.F' as extension, the preprocessor is not run on the
3956# input file.
3957ac_save_ext=$ac_ext
3958ac_ext=F
3959echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3960echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3961if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3962  echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964  cat >conftest.$ac_ext <<_ACEOF
3965      program main
3966#ifndef __GNUC__
3967       choke me
3968#endif
3969
3970      end
3971_ACEOF
3972rm -f conftest.$ac_objext
3973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974  (eval $ac_compile) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); } &&
3978         { ac_try='test -s conftest.$ac_objext'
3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980  (eval $ac_try) 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }; }; then
3984  ac_compiler_gnu=yes
3985else
3986  echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
3989ac_compiler_gnu=no
3990fi
3991rm -f conftest.$ac_objext conftest.$ac_ext
3992ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3993
3994fi
3995echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3996echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3997ac_ext=$ac_save_ext
3998G77=`test $ac_compiler_gnu = yes && echo yes`
3999ac_test_FFLAGS=${FFLAGS+set}
4000ac_save_FFLAGS=$FFLAGS
4001FFLAGS=
4002echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4003echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4004if test "${ac_cv_prog_f77_g+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  FFLAGS=-g
4008cat >conftest.$ac_ext <<_ACEOF
4009      program main
4010
4011      end
4012_ACEOF
4013rm -f conftest.$ac_objext
4014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4015  (eval $ac_compile) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); } &&
4019         { ac_try='test -s conftest.$ac_objext'
4020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021  (eval $ac_try) 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }; }; then
4025  ac_cv_prog_f77_g=yes
4026else
4027  echo "$as_me: failed program was:" >&5
4028sed 's/^/| /' conftest.$ac_ext >&5
4029
4030ac_cv_prog_f77_g=no
4031fi
4032rm -f conftest.$ac_objext conftest.$ac_ext
4033
4034fi
4035echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4036echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4037if test "$ac_test_FFLAGS" = set; then
4038  FFLAGS=$ac_save_FFLAGS
4039elif test $ac_cv_prog_f77_g = yes; then
4040  if test "$G77" = yes; then
4041    FFLAGS="-g -O2"
4042  else
4043    FFLAGS="-g"
4044  fi
4045else
4046  if test "$G77" = yes; then
4047    FFLAGS="-O2"
4048  else
4049    FFLAGS=
4050  fi
4051fi
4052ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058if test "x$F77" = x; then
4059  { echo "$as_me:$LINENO: WARNING: Fortran compiler not found" >&5
4060echo "$as_me: WARNING: Fortran compiler not found" >&2;}
4061else
4062  if test "x$ac_cv_f77_compiler_gnu" = xyes ; then
4063    FFLAGS="$FFLAGS -Wno-globals"
4064  fi
4065
4066  echo "$as_me:$LINENO: checking whether $F77 accepts -I" >&5
4067echo $ECHO_N "checking whether $F77 accepts -I... $ECHO_C" >&6
4068  ac_ext=f
4069ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4070ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4072
4073  FFLAGS_save=$FFLAGS
4074  FFLAGS=-I.
4075
4076cat >conftest.$ac_ext <<_ACEOF
4077      program main
4078
4079      end
4080_ACEOF
4081rm -f conftest.$ac_objext
4082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4083  (eval $ac_compile) 2>&5
4084  ac_status=$?
4085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086  (exit $ac_status); } &&
4087         { ac_try='test -s conftest.$ac_objext'
4088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089  (eval $ac_try) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }; }; then
4093  FFLAGS="$FFLAGS_save -I."; echo "$as_me:$LINENO: result: yes" >&5
4094echo "${ECHO_T}yes" >&6
4095else
4096  echo "$as_me: failed program was:" >&5
4097sed 's/^/| /' conftest.$ac_ext >&5
4098
4099FFLAGS="$FFLAGS_save"; echo "$as_me:$LINENO: result: no" >&5
4100echo "${ECHO_T}no" >&6
4101fi
4102rm -f conftest.$ac_objext conftest.$ac_ext
4103  ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
4109fi
4110
4111# Extra places to look for third-party include files and libraries.
4112INCDIRS="$INCDIRS           \
4113         /usr/include       \
4114         /usr/local/include \
4115         /usr/local/pgplot  \
4116         /usr/local/cfitsio \
4117         /usr/local/wcslib  \
4118         /local/pgplot      \
4119         /local/cfitsio     \
4120         /opt/local/include"
4121
4122LIBDIRS="$LIBDIRS           \
4123         /usr/lib           \
4124         /usr/local/lib     \
4125         /usr/local/pgplot  \
4126         /usr/local/cfitsio \
4127         /usr/local/wcslib  \
4128         /local/lib         \
4129         /local/pgplot      \
4130         /local/cfitsio     \
4131         /opt/SUNWspro/lib  \
4132         /opt/local/lib"
4133
4134{ echo "$as_me:$LINENO: LIBDIRS" >&5
4135echo "$as_me: LIBDIRS" >&6;}
4136
4137for LIBDIR in $LIBDIRS ; do
4138  as_ac_File=`echo "ac_cv_file_$LIBDIR" | $as_tr_sh`
4139echo "$as_me:$LINENO: checking for $LIBDIR" >&5
4140echo $ECHO_N "checking for $LIBDIR... $ECHO_C" >&6
4141if eval "test \"\${$as_ac_File+set}\" = set"; then
4142  echo $ECHO_N "(cached) $ECHO_C" >&6
4143else
4144  test "$cross_compiling" = yes &&
4145  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4146echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4147   { (exit 1); exit 1; }; }
4148if test -r "$LIBDIR"; then
4149  eval "$as_ac_File=yes"
4150else
4151  eval "$as_ac_File=no"
4152fi
4153fi
4154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4155echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4156if test `eval echo '${'$as_ac_File'}'` = yes; then
4157  LDFLAGS="$LDFLAGS -L$LIBDIR"
4158else
4159  continue
4160fi
4161
4162done
4163
4164##########################################################################
4165# Search for PGPLOT
4166
4167for INCDIR in $INCDIRS ; do
4168  as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh`
4169echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5
4170echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6
4171if eval "test \"\${$as_ac_File+set}\" = set"; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  test "$cross_compiling" = yes &&
4175  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4176echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4177   { (exit 1); exit 1; }; }
4178if test -r "$INCDIR/cpgplot.h"; then
4179  eval "$as_ac_File=yes"
4180else
4181  eval "$as_ac_File=no"
4182fi
4183fi
4184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4185echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4186if test `eval echo '${'$as_ac_File'}'` = yes; then
4187  PGPLOTINC=-I$INCDIR; break
4188fi
4189
4190  INCDIR=$INCDIR/pgplot
4191  as_ac_File=`echo "ac_cv_file_$INCDIR/cpgplot.h" | $as_tr_sh`
4192echo "$as_me:$LINENO: checking for $INCDIR/cpgplot.h" >&5
4193echo $ECHO_N "checking for $INCDIR/cpgplot.h... $ECHO_C" >&6
4194if eval "test \"\${$as_ac_File+set}\" = set"; then
4195  echo $ECHO_N "(cached) $ECHO_C" >&6
4196else
4197  test "$cross_compiling" = yes &&
4198  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4199echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4200   { (exit 1); exit 1; }; }
4201if test -r "$INCDIR/cpgplot.h"; then
4202  eval "$as_ac_File=yes"
4203else
4204  eval "$as_ac_File=no"
4205fi
4206fi
4207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4208echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4209if test `eval echo '${'$as_ac_File'}'` = yes; then
4210  PGPLOTINC=-I$INCDIR; break
4211fi
4212
4213done
4214
4215# PGPLOT compiled with a SUN compiler but linked with something else.
4216echo "$as_me:$LINENO: checking for cosd in -lsunmath" >&5
4217echo $ECHO_N "checking for cosd in -lsunmath... $ECHO_C" >&6
4218if test "${ac_cv_lib_sunmath_cosd+set}" = set; then
4219  echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221  ac_check_lib_save_LIBS=$LIBS
4222LIBS="-lsunmath $PGPLOTLIB $LIBS $LIBS"
4223cat >conftest.$ac_ext <<_ACEOF
4224#line $LINENO "configure"
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230
4231/* Override any gcc2 internal prototype to avoid an error.  */
4232#ifdef __cplusplus
4233extern "C"
4234#endif
4235/* We use char because int might match the return type of a gcc2
4236   builtin and then its argument prototype would still apply.  */
4237char cosd ();
4238int
4239main ()
4240{
4241cosd ();
4242  ;
4243  return 0;
4244}
4245_ACEOF
4246rm -f conftest.$ac_objext conftest$ac_exeext
4247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4248  (eval $ac_link) 2>&5
4249  ac_status=$?
4250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251  (exit $ac_status); } &&
4252         { ac_try='test -s conftest$ac_exeext'
4253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254  (eval $ac_try) 2>&5
4255  ac_status=$?
4256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257  (exit $ac_status); }; }; then
4258  ac_cv_lib_sunmath_cosd=yes
4259else
4260  echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263ac_cv_lib_sunmath_cosd=no
4264fi
4265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4266LIBS=$ac_check_lib_save_LIBS
4267fi
4268echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_cosd" >&5
4269echo "${ECHO_T}$ac_cv_lib_sunmath_cosd" >&6
4270if test $ac_cv_lib_sunmath_cosd = yes; then
4271  PGPLOTLIB="-lsunmath $PGPLOTLIB"
4272fi
4273
4274echo "$as_me:$LINENO: checking for iand_ in -lM77" >&5
4275echo $ECHO_N "checking for iand_ in -lM77... $ECHO_C" >&6
4276if test "${ac_cv_lib_M77_iand_+set}" = set; then
4277  echo $ECHO_N "(cached) $ECHO_C" >&6
4278else
4279  ac_check_lib_save_LIBS=$LIBS
4280LIBS="-lM77 $PGPLOTLIB $LIBS $LIBS"
4281cat >conftest.$ac_ext <<_ACEOF
4282#line $LINENO "configure"
4283/* confdefs.h.  */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h.  */
4288
4289/* Override any gcc2 internal prototype to avoid an error.  */
4290#ifdef __cplusplus
4291extern "C"
4292#endif
4293/* We use char because int might match the return type of a gcc2
4294   builtin and then its argument prototype would still apply.  */
4295char iand_ ();
4296int
4297main ()
4298{
4299iand_ ();
4300  ;
4301  return 0;
4302}
4303_ACEOF
4304rm -f conftest.$ac_objext conftest$ac_exeext
4305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4306  (eval $ac_link) 2>&5
4307  ac_status=$?
4308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309  (exit $ac_status); } &&
4310         { ac_try='test -s conftest$ac_exeext'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; }; then
4316  ac_cv_lib_M77_iand_=yes
4317else
4318  echo "$as_me: failed program was:" >&5
4319sed 's/^/| /' conftest.$ac_ext >&5
4320
4321ac_cv_lib_M77_iand_=no
4322fi
4323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4324LIBS=$ac_check_lib_save_LIBS
4325fi
4326echo "$as_me:$LINENO: result: $ac_cv_lib_M77_iand_" >&5
4327echo "${ECHO_T}$ac_cv_lib_M77_iand_" >&6
4328if test $ac_cv_lib_M77_iand_ = yes; then
4329  PGPLOTLIB="-lM77 $PGPLOTLIB"
4330fi
4331
4332echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5
4333echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6
4334if test "${ac_cv_lib_F77_f77_init+set}" = set; then
4335  echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337  ac_check_lib_save_LIBS=$LIBS
4338LIBS="-lF77 $PGPLOTLIB $LIBS $LIBS"
4339cat >conftest.$ac_ext <<_ACEOF
4340#line $LINENO "configure"
4341/* confdefs.h.  */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h.  */
4346
4347/* Override any gcc2 internal prototype to avoid an error.  */
4348#ifdef __cplusplus
4349extern "C"
4350#endif
4351/* We use char because int might match the return type of a gcc2
4352   builtin and then its argument prototype would still apply.  */
4353char f77_init ();
4354int
4355main ()
4356{
4357f77_init ();
4358  ;
4359  return 0;
4360}
4361_ACEOF
4362rm -f conftest.$ac_objext conftest$ac_exeext
4363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364  (eval $ac_link) 2>&5
4365  ac_status=$?
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); } &&
4368         { ac_try='test -s conftest$ac_exeext'
4369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370  (eval $ac_try) 2>&5
4371  ac_status=$?
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); }; }; then
4374  ac_cv_lib_F77_f77_init=yes
4375else
4376  echo "$as_me: failed program was:" >&5
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
4379ac_cv_lib_F77_f77_init=no
4380fi
4381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4382LIBS=$ac_check_lib_save_LIBS
4383fi
4384echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5
4385echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6
4386if test $ac_cv_lib_F77_f77_init = yes; then
4387  PGPLOTLIB="-lF77 $PGPLOTLIB"
4388fi
4389
4390# PGPLOT compiled with a GNU compiler but linked with something else.
4391echo "$as_me:$LINENO: checking for log in -lm" >&5
4392echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
4393if test "${ac_cv_lib_m_log+set}" = set; then
4394  echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396  ac_check_lib_save_LIBS=$LIBS
4397LIBS="-lm  $LIBS"
4398cat >conftest.$ac_ext <<_ACEOF
4399#line $LINENO "configure"
4400/* confdefs.h.  */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h.  */
4405
4406/* Override any gcc2 internal prototype to avoid an error.  */
4407#ifdef __cplusplus
4408extern "C"
4409#endif
4410/* We use char because int might match the return type of a gcc2
4411   builtin and then its argument prototype would still apply.  */
4412char log ();
4413int
4414main ()
4415{
4416log ();
4417  ;
4418  return 0;
4419}
4420_ACEOF
4421rm -f conftest.$ac_objext conftest$ac_exeext
4422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4423  (eval $ac_link) 2>&5
4424  ac_status=$?
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); } &&
4427         { ac_try='test -s conftest$ac_exeext'
4428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429  (eval $ac_try) 2>&5
4430  ac_status=$?
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); }; }; then
4433  ac_cv_lib_m_log=yes
4434else
4435  echo "$as_me: failed program was:" >&5
4436sed 's/^/| /' conftest.$ac_ext >&5
4437
4438ac_cv_lib_m_log=no
4439fi
4440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4441LIBS=$ac_check_lib_save_LIBS
4442fi
4443echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
4444echo "${ECHO_T}$ac_cv_lib_m_log" >&6
4445if test $ac_cv_lib_m_log = yes; then
4446  PGPLOTLIB="-lm $PGPLOTLIB"
4447fi
4448
4449echo "$as_me:$LINENO: checking for gerror_ in -lg2c" >&5
4450echo $ECHO_N "checking for gerror_ in -lg2c... $ECHO_C" >&6
4451if test "${ac_cv_lib_g2c_gerror_+set}" = set; then
4452  echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454  ac_check_lib_save_LIBS=$LIBS
4455LIBS="-lg2c $PGPLOTLIB $LIBS $LIBS"
4456cat >conftest.$ac_ext <<_ACEOF
4457#line $LINENO "configure"
4458/* confdefs.h.  */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h.  */
4463
4464/* Override any gcc2 internal prototype to avoid an error.  */
4465#ifdef __cplusplus
4466extern "C"
4467#endif
4468/* We use char because int might match the return type of a gcc2
4469   builtin and then its argument prototype would still apply.  */
4470char gerror_ ();
4471int
4472main ()
4473{
4474gerror_ ();
4475  ;
4476  return 0;
4477}
4478_ACEOF
4479rm -f conftest.$ac_objext conftest$ac_exeext
4480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481  (eval $ac_link) 2>&5
4482  ac_status=$?
4483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484  (exit $ac_status); } &&
4485         { ac_try='test -s conftest$ac_exeext'
4486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487  (eval $ac_try) 2>&5
4488  ac_status=$?
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); }; }; then
4491  ac_cv_lib_g2c_gerror_=yes
4492else
4493  echo "$as_me: failed program was:" >&5
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
4496ac_cv_lib_g2c_gerror_=no
4497fi
4498rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4499LIBS=$ac_check_lib_save_LIBS
4500fi
4501echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_gerror_" >&5
4502echo "${ECHO_T}$ac_cv_lib_g2c_gerror_" >&6
4503if test $ac_cv_lib_g2c_gerror_ = yes; then
4504  PGPLOTLIB="-lg2c $PGPLOTLIB"
4505fi
4506
4507
4508# Search for X11 includes and libraries.
4509echo "$as_me:$LINENO: checking for X" >&5
4510echo $ECHO_N "checking for X... $ECHO_C" >&6
4511
4512
4513# Check whether --with-x or --without-x was given.
4514if test "${with_x+set}" = set; then
4515  withval="$with_x"
4516
4517fi;
4518# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4519if test "x$with_x" = xno; then
4520  # The user explicitly disabled X.
4521  have_x=disabled
4522else
4523  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4524    # Both variables are already set.
4525    have_x=yes
4526  else
4527    if test "${ac_cv_have_x+set}" = set; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  # One or both of the vars are not set, and there is no cached value.
4531ac_x_includes=no ac_x_libraries=no
4532rm -fr conftest.dir
4533if mkdir conftest.dir; then
4534  cd conftest.dir
4535  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4536  cat >Imakefile <<'_ACEOF'
4537acfindx:
4538        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4539_ACEOF
4540  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4541    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4542    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4543    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4544    for ac_extension in a so sl; do
4545      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4546         test -f $ac_im_libdir/libX11.$ac_extension; then
4547        ac_im_usrlibdir=$ac_im_libdir; break
4548      fi
4549    done
4550    # Screen out bogus values from the imake configuration.  They are
4551    # bogus both because they are the default anyway, and because
4552    # using them would break gcc on systems where it needs fixed includes.
4553    case $ac_im_incroot in
4554        /usr/include) ;;
4555        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4556    esac
4557    case $ac_im_usrlibdir in
4558        /usr/lib | /lib) ;;
4559        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4560    esac
4561  fi
4562  cd ..
4563  rm -fr conftest.dir
4564fi
4565
4566# Standard set of common directories for X headers.
4567# Check X11 before X11Rn because it is often a symlink to the current release.
4568ac_x_header_dirs='
4569/usr/X11/include
4570/usr/X11R6/include
4571/usr/X11R5/include
4572/usr/X11R4/include
4573
4574/usr/include/X11
4575/usr/include/X11R6
4576/usr/include/X11R5
4577/usr/include/X11R4
4578
4579/usr/local/X11/include
4580/usr/local/X11R6/include
4581/usr/local/X11R5/include
4582/usr/local/X11R4/include
4583
4584/usr/local/include/X11
4585/usr/local/include/X11R6
4586/usr/local/include/X11R5
4587/usr/local/include/X11R4
4588
4589/usr/X386/include
4590/usr/x386/include
4591/usr/XFree86/include/X11
4592
4593/usr/include
4594/usr/local/include
4595/usr/unsupported/include
4596/usr/athena/include
4597/usr/local/x11r5/include
4598/usr/lpp/Xamples/include
4599
4600/usr/openwin/include
4601/usr/openwin/share/include'
4602
4603if test "$ac_x_includes" = no; then
4604  # Guess where to find include files, by looking for Intrinsic.h.
4605  # First, try using that file with no special directory specified.
4606  cat >conftest.$ac_ext <<_ACEOF
4607#line $LINENO "configure"
4608/* confdefs.h.  */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h.  */
4613#include <X11/Intrinsic.h>
4614_ACEOF
4615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4616  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4617  ac_status=$?
4618  grep -v '^ *+' conftest.er1 >conftest.err
4619  rm -f conftest.er1
4620  cat conftest.err >&5
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); } >/dev/null; then
4623  if test -s conftest.err; then
4624    ac_cpp_err=$ac_c_preproc_warn_flag
4625  else
4626    ac_cpp_err=
4627  fi
4628else
4629  ac_cpp_err=yes
4630fi
4631if test -z "$ac_cpp_err"; then
4632  # We can compile using X headers with no special include directory.
4633ac_x_includes=
4634else
4635  echo "$as_me: failed program was:" >&5
4636sed 's/^/| /' conftest.$ac_ext >&5
4637
4638  for ac_dir in $ac_x_header_dirs; do
4639  if test -r "$ac_dir/X11/Intrinsic.h"; then
4640    ac_x_includes=$ac_dir
4641    break
4642  fi
4643done
4644fi
4645rm -f conftest.err conftest.$ac_ext
4646fi # $ac_x_includes = no
4647
4648if test "$ac_x_libraries" = no; then
4649  # Check for the libraries.
4650  # See if we find them without any special options.
4651  # Don't add to $LIBS permanently.
4652  ac_save_LIBS=$LIBS
4653  LIBS="-lXt $LIBS"
4654  cat >conftest.$ac_ext <<_ACEOF
4655#line $LINENO "configure"
4656/* confdefs.h.  */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h.  */
4661#include <X11/Intrinsic.h>
4662int
4663main ()
4664{
4665XtMalloc (0)
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670rm -f conftest.$ac_objext conftest$ac_exeext
4671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672  (eval $ac_link) 2>&5
4673  ac_status=$?
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); } &&
4676         { ac_try='test -s conftest$ac_exeext'
4677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678  (eval $ac_try) 2>&5
4679  ac_status=$?
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); }; }; then
4682  LIBS=$ac_save_LIBS
4683# We can link X programs with no special library path.
4684ac_x_libraries=
4685else
4686  echo "$as_me: failed program was:" >&5
4687sed 's/^/| /' conftest.$ac_ext >&5
4688
4689LIBS=$ac_save_LIBS
4690for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4691do
4692  # Don't even attempt the hair of trying to link an X program!
4693  for ac_extension in a so sl; do
4694    if test -r $ac_dir/libXt.$ac_extension; then
4695      ac_x_libraries=$ac_dir
4696      break 2
4697    fi
4698  done
4699done
4700fi
4701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702fi # $ac_x_libraries = no
4703
4704if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4705  # Didn't find X anywhere.  Cache the known absence of X.
4706  ac_cv_have_x="have_x=no"
4707else
4708  # Record where we found X for the cache.
4709  ac_cv_have_x="have_x=yes \
4710                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4711fi
4712fi
4713
4714  fi
4715  eval "$ac_cv_have_x"
4716fi # $with_x != no
4717
4718if test "$have_x" != yes; then
4719  echo "$as_me:$LINENO: result: $have_x" >&5
4720echo "${ECHO_T}$have_x" >&6
4721  no_x=yes
4722else
4723  # If each of the values was on the command line, it overrides each guess.
4724  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4725  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4726  # Update the cache value to reflect the command line values.
4727  ac_cv_have_x="have_x=yes \
4728                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4729  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4730echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4731fi
4732
4733if test "x$ac_x_libraries" != x; then
4734  LDFLAGS="$LDFLAGS -L$ac_x_libraries"
4735  PGPLOTLIB="-lX11 $PGPLOTLIB"
4736fi
4737
4738# It is possible that other libraries may be required depending on what
4739# graphics drivers were installed with PGPLOT.
4740echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4741echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
4742if test "${ac_cv_lib_z_deflate+set}" = set; then
4743  echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745  ac_check_lib_save_LIBS=$LIBS
4746LIBS="-lz $PGPLOTLIB $LIBS $LIBS"
4747cat >conftest.$ac_ext <<_ACEOF
4748#line $LINENO "configure"
4749/* confdefs.h.  */
4750_ACEOF
4751cat confdefs.h >>conftest.$ac_ext
4752cat >>conftest.$ac_ext <<_ACEOF
4753/* end confdefs.h.  */
4754
4755/* Override any gcc2 internal prototype to avoid an error.  */
4756#ifdef __cplusplus
4757extern "C"
4758#endif
4759/* We use char because int might match the return type of a gcc2
4760   builtin and then its argument prototype would still apply.  */
4761char deflate ();
4762int
4763main ()
4764{
4765deflate ();
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770rm -f conftest.$ac_objext conftest$ac_exeext
4771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4772  (eval $ac_link) 2>&5
4773  ac_status=$?
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } &&
4776         { ac_try='test -s conftest$ac_exeext'
4777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778  (eval $ac_try) 2>&5
4779  ac_status=$?
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); }; }; then
4782  ac_cv_lib_z_deflate=yes
4783else
4784  echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787ac_cv_lib_z_deflate=no
4788fi
4789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4790LIBS=$ac_check_lib_save_LIBS
4791fi
4792echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4793echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
4794if test $ac_cv_lib_z_deflate = yes; then
4795  PGPLOTLIB="-lz $PGPLOTLIB"
4796fi
4797
4798echo "$as_me:$LINENO: checking for png_error in -lpng" >&5
4799echo $ECHO_N "checking for png_error in -lpng... $ECHO_C" >&6
4800if test "${ac_cv_lib_png_png_error+set}" = set; then
4801  echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803  ac_check_lib_save_LIBS=$LIBS
4804LIBS="-lpng $PGPLOTLIB $LIBS $LIBS"
4805cat >conftest.$ac_ext <<_ACEOF
4806#line $LINENO "configure"
4807/* confdefs.h.  */
4808_ACEOF
4809cat confdefs.h >>conftest.$ac_ext
4810cat >>conftest.$ac_ext <<_ACEOF
4811/* end confdefs.h.  */
4812
4813/* Override any gcc2 internal prototype to avoid an error.  */
4814#ifdef __cplusplus
4815extern "C"
4816#endif
4817/* We use char because int might match the return type of a gcc2
4818   builtin and then its argument prototype would still apply.  */
4819char png_error ();
4820int
4821main ()
4822{
4823png_error ();
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext conftest$ac_exeext
4829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830  (eval $ac_link) 2>&5
4831  ac_status=$?
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); } &&
4834         { ac_try='test -s conftest$ac_exeext'
4835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836  (eval $ac_try) 2>&5
4837  ac_status=$?
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); }; }; then
4840  ac_cv_lib_png_png_error=yes
4841else
4842  echo "$as_me: failed program was:" >&5
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845ac_cv_lib_png_png_error=no
4846fi
4847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4848LIBS=$ac_check_lib_save_LIBS
4849fi
4850echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_error" >&5
4851echo "${ECHO_T}$ac_cv_lib_png_png_error" >&6
4852if test $ac_cv_lib_png_png_error = yes; then
4853  PGPLOTLIB="-lpng $PGPLOTLIB"
4854fi
4855
4856echo "$as_me:$LINENO: checking for pgbeg_ in -lpgplot" >&5
4857echo $ECHO_N "checking for pgbeg_ in -lpgplot... $ECHO_C" >&6
4858if test "${ac_cv_lib_pgplot_pgbeg_+set}" = set; then
4859  echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861  ac_check_lib_save_LIBS=$LIBS
4862LIBS="-lpgplot $PGPLOTLIB $LIBS $LIBS"
4863cat >conftest.$ac_ext <<_ACEOF
4864#line $LINENO "configure"
4865/* confdefs.h.  */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h.  */
4870
4871/* Override any gcc2 internal prototype to avoid an error.  */
4872#ifdef __cplusplus
4873extern "C"
4874#endif
4875/* We use char because int might match the return type of a gcc2
4876   builtin and then its argument prototype would still apply.  */
4877char pgbeg_ ();
4878int
4879main ()
4880{
4881pgbeg_ ();
4882  ;
4883  return 0;
4884}
4885_ACEOF
4886rm -f conftest.$ac_objext conftest$ac_exeext
4887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888  (eval $ac_link) 2>&5
4889  ac_status=$?
4890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891  (exit $ac_status); } &&
4892         { ac_try='test -s conftest$ac_exeext'
4893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894  (eval $ac_try) 2>&5
4895  ac_status=$?
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); }; }; then
4898  ac_cv_lib_pgplot_pgbeg_=yes
4899else
4900  echo "$as_me: failed program was:" >&5
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903ac_cv_lib_pgplot_pgbeg_=no
4904fi
4905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4906LIBS=$ac_check_lib_save_LIBS
4907fi
4908echo "$as_me:$LINENO: result: $ac_cv_lib_pgplot_pgbeg_" >&5
4909echo "${ECHO_T}$ac_cv_lib_pgplot_pgbeg_" >&6
4910if test $ac_cv_lib_pgplot_pgbeg_ = yes; then
4911  PGPLOTLIB="-lpgplot $PGPLOTLIB"
4912fi
4913
4914echo "$as_me:$LINENO: checking for cpgopen in -lcpgplot" >&5
4915echo $ECHO_N "checking for cpgopen in -lcpgplot... $ECHO_C" >&6
4916if test "${ac_cv_lib_cpgplot_cpgopen+set}" = set; then
4917  echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919  ac_check_lib_save_LIBS=$LIBS
4920LIBS="-lcpgplot $PGPLOTLIB $LIBS $LIBS"
4921cat >conftest.$ac_ext <<_ACEOF
4922#line $LINENO "configure"
4923/* confdefs.h.  */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h.  */
4928
4929/* Override any gcc2 internal prototype to avoid an error.  */
4930#ifdef __cplusplus
4931extern "C"
4932#endif
4933/* We use char because int might match the return type of a gcc2
4934   builtin and then its argument prototype would still apply.  */
4935char cpgopen ();
4936int
4937main ()
4938{
4939cpgopen ();
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946  (eval $ac_link) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); } &&
4950         { ac_try='test -s conftest$ac_exeext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  ac_cv_lib_cpgplot_cpgopen=yes
4957else
4958  echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961ac_cv_lib_cpgplot_cpgopen=no
4962fi
4963rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4964LIBS=$ac_check_lib_save_LIBS
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_lib_cpgplot_cpgopen" >&5
4967echo "${ECHO_T}$ac_cv_lib_cpgplot_cpgopen" >&6
4968if test $ac_cv_lib_cpgplot_cpgopen = yes; then
4969  PGPLOTLIB="-lcpgplot $PGPLOTLIB"
4970else
4971  PGPLOTLIB=
4972fi
4973
4974
4975if test "x$PGPLOTLIB" = x; then
4976  { { echo "$as_me:$LINENO: error:
4977    -------------------------------------------------------
4978    Could not find the PGPLOT library.
4979
4980    ERROR: Duchamp configuration failure.
4981    -------------------------------------------------------" >&5
4982echo "$as_me: error:
4983    -------------------------------------------------------
4984    Could not find the PGPLOT library.
4985
4986    ERROR: Duchamp configuration failure.
4987    -------------------------------------------------------" >&2;}
4988   { (exit 1); exit 1; }; }
4989else
4990  { echo "$as_me:$LINENO: PGPLOT appears to be available." >&5
4991echo "$as_me: PGPLOT appears to be available." >&6;}
4992
4993cat >>confdefs.h <<\_ACEOF
4994#define HAVE_PGPLOT 1
4995_ACEOF
4996
4997fi
4998
4999
5000
5001##########################################################################
5002
5003##########################################################################
5004# Search for CFITSIO.
5005for INCDIR in $INCDIRS ; do
5006  as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh`
5007echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5
5008echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6
5009if eval "test \"\${$as_ac_File+set}\" = set"; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  test "$cross_compiling" = yes &&
5013  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5014echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5015   { (exit 1); exit 1; }; }
5016if test -r "$INCDIR/fitsio.h"; then
5017  eval "$as_ac_File=yes"
5018else
5019  eval "$as_ac_File=no"
5020fi
5021fi
5022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5023echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5024if test `eval echo '${'$as_ac_File'}'` = yes; then
5025  CFITSIOINC=-I$INCDIR; break
5026fi
5027
5028  INCDIR=$INCDIR/cfitsio
5029  as_ac_File=`echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh`
5030echo "$as_me:$LINENO: checking for $INCDIR/fitsio.h" >&5
5031echo $ECHO_N "checking for $INCDIR/fitsio.h... $ECHO_C" >&6
5032if eval "test \"\${$as_ac_File+set}\" = set"; then
5033  echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035  test "$cross_compiling" = yes &&
5036  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5037echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5038   { (exit 1); exit 1; }; }
5039if test -r "$INCDIR/fitsio.h"; then
5040  eval "$as_ac_File=yes"
5041else
5042  eval "$as_ac_File=no"
5043fi
5044fi
5045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5046echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5047if test `eval echo '${'$as_ac_File'}'` = yes; then
5048  CFITSIOINC=-I$INCDIR; break
5049fi
5050
5051done
5052
5053echo "$as_me:$LINENO: checking for recv in -lsocket" >&5
5054echo $ECHO_N "checking for recv in -lsocket... $ECHO_C" >&6
5055if test "${ac_cv_lib_socket_recv+set}" = set; then
5056  echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058  ac_check_lib_save_LIBS=$LIBS
5059LIBS="-lsocket $LIBS $LIBS"
5060cat >conftest.$ac_ext <<_ACEOF
5061#line $LINENO "configure"
5062/* confdefs.h.  */
5063_ACEOF
5064cat confdefs.h >>conftest.$ac_ext
5065cat >>conftest.$ac_ext <<_ACEOF
5066/* end confdefs.h.  */
5067
5068/* Override any gcc2 internal prototype to avoid an error.  */
5069#ifdef __cplusplus
5070extern "C"
5071#endif
5072/* We use char because int might match the return type of a gcc2
5073   builtin and then its argument prototype would still apply.  */
5074char recv ();
5075int
5076main ()
5077{
5078recv ();
5079  ;
5080  return 0;
5081}
5082_ACEOF
5083rm -f conftest.$ac_objext conftest$ac_exeext
5084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5085  (eval $ac_link) 2>&5
5086  ac_status=$?
5087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088  (exit $ac_status); } &&
5089         { ac_try='test -s conftest$ac_exeext'
5090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091  (eval $ac_try) 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; }; then
5095  ac_cv_lib_socket_recv=yes
5096else
5097  echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100ac_cv_lib_socket_recv=no
5101fi
5102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5103LIBS=$ac_check_lib_save_LIBS
5104fi
5105echo "$as_me:$LINENO: result: $ac_cv_lib_socket_recv" >&5
5106echo "${ECHO_T}$ac_cv_lib_socket_recv" >&6
5107if test $ac_cv_lib_socket_recv = yes; then
5108  CFITSIOLIB="-lsocket"
5109fi
5110
5111echo "$as_me:$LINENO: checking for ffopen in -lcfitsio" >&5
5112echo $ECHO_N "checking for ffopen in -lcfitsio... $ECHO_C" >&6
5113if test "${ac_cv_lib_cfitsio_ffopen+set}" = set; then
5114  echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116  ac_check_lib_save_LIBS=$LIBS
5117LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS"
5118cat >conftest.$ac_ext <<_ACEOF
5119#line $LINENO "configure"
5120/* confdefs.h.  */
5121_ACEOF
5122cat confdefs.h >>conftest.$ac_ext
5123cat >>conftest.$ac_ext <<_ACEOF
5124/* end confdefs.h.  */
5125
5126/* Override any gcc2 internal prototype to avoid an error.  */
5127#ifdef __cplusplus
5128extern "C"
5129#endif
5130/* We use char because int might match the return type of a gcc2
5131   builtin and then its argument prototype would still apply.  */
5132char ffopen ();
5133int
5134main ()
5135{
5136ffopen ();
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141rm -f conftest.$ac_objext conftest$ac_exeext
5142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5143  (eval $ac_link) 2>&5
5144  ac_status=$?
5145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146  (exit $ac_status); } &&
5147         { ac_try='test -s conftest$ac_exeext'
5148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149  (eval $ac_try) 2>&5
5150  ac_status=$?
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); }; }; then
5153  ac_cv_lib_cfitsio_ffopen=yes
5154else
5155  echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
5158ac_cv_lib_cfitsio_ffopen=no
5159fi
5160rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5161LIBS=$ac_check_lib_save_LIBS
5162fi
5163echo "$as_me:$LINENO: result: $ac_cv_lib_cfitsio_ffopen" >&5
5164echo "${ECHO_T}$ac_cv_lib_cfitsio_ffopen" >&6
5165if test $ac_cv_lib_cfitsio_ffopen = yes; then
5166  CFITSIOLIB="-lcfitsio $CFITSIOLIB"
5167fi
5168
5169
5170if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then
5171  { { echo "$as_me:$LINENO: error:
5172    -------------------------------------------------------
5173    Could not find the CFITSIO library.
5174
5175    ERROR: Duchamp configuration failure.
5176    -------------------------------------------------------" >&5
5177echo "$as_me: error:
5178    -------------------------------------------------------
5179    Could not find the CFITSIO library.
5180
5181    ERROR: Duchamp configuration failure.
5182    -------------------------------------------------------" >&2;}
5183   { (exit 1); exit 1; }; }
5184else
5185  for LIBDIR in $LIBDIRS ; do
5186    as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh`
5187echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5
5188echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6
5189if eval "test \"\${$as_ac_File+set}\" = set"; then
5190  echo $ECHO_N "(cached) $ECHO_C" >&6
5191else
5192  test "$cross_compiling" = yes &&
5193  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5194echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5195   { (exit 1); exit 1; }; }
5196if test -r "$LIBDIR/libcfitsio.a"; then
5197  eval "$as_ac_File=yes"
5198else
5199  eval "$as_ac_File=no"
5200fi
5201fi
5202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5203echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5204if test `eval echo '${'$as_ac_File'}'` = yes; then
5205  CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break
5206fi
5207
5208    LIBDIR=$LIBDIR/cfitsio
5209    as_ac_File=`echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh`
5210echo "$as_me:$LINENO: checking for $LIBDIR/libcfitsio.a" >&5
5211echo $ECHO_N "checking for $LIBDIR/libcfitsio.a... $ECHO_C" >&6
5212if eval "test \"\${$as_ac_File+set}\" = set"; then
5213  echo $ECHO_N "(cached) $ECHO_C" >&6
5214else
5215  test "$cross_compiling" = yes &&
5216  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5217echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5218   { (exit 1); exit 1; }; }
5219if test -r "$LIBDIR/libcfitsio.a"; then
5220  eval "$as_ac_File=yes"
5221else
5222  eval "$as_ac_File=no"
5223fi
5224fi
5225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5226echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5227if test `eval echo '${'$as_ac_File'}'` = yes; then
5228  CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break
5229fi
5230
5231  done
5232  { echo "$as_me:$LINENO: CFITSIO appears to be available." >&5
5233echo "$as_me: CFITSIO appears to be available." >&6;}
5234
5235cat >>confdefs.h <<\_ACEOF
5236#define HAVE_CFITSIO 1
5237_ACEOF
5238
5239fi
5240
5241
5242
5243##########################################################################
5244
5245##########################################################################
5246# Search for WCSLIB.
5247for INCDIR in $INCDIRS ; do
5248  as_ac_File=`echo "ac_cv_file_$INCDIR/wcs.h" | $as_tr_sh`
5249echo "$as_me:$LINENO: checking for $INCDIR/wcs.h" >&5
5250echo $ECHO_N "checking for $INCDIR/wcs.h... $ECHO_C" >&6
5251if eval "test \"\${$as_ac_File+set}\" = set"; then
5252  echo $ECHO_N "(cached) $ECHO_C" >&6
5253else
5254  test "$cross_compiling" = yes &&
5255  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5256echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5257   { (exit 1); exit 1; }; }
5258if test -r "$INCDIR/wcs.h"; then
5259  eval "$as_ac_File=yes"
5260else
5261  eval "$as_ac_File=no"
5262fi
5263fi
5264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5265echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5266if test `eval echo '${'$as_ac_File'}'` = yes; then
5267  WCSINC="-I$INCDIR $WCSINC"; break
5268fi
5269
5270  INCDIR=$INCDIR/wcslib
5271  as_ac_File=`echo "ac_cv_file_$INCDIR/wcs.h" | $as_tr_sh`
5272echo "$as_me:$LINENO: checking for $INCDIR/wcs.h" >&5
5273echo $ECHO_N "checking for $INCDIR/wcs.h... $ECHO_C" >&6
5274if eval "test \"\${$as_ac_File+set}\" = set"; then
5275  echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277  test "$cross_compiling" = yes &&
5278  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5279echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5280   { (exit 1); exit 1; }; }
5281if test -r "$INCDIR/wcs.h"; then
5282  eval "$as_ac_File=yes"
5283else
5284  eval "$as_ac_File=no"
5285fi
5286fi
5287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5288echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5289if test `eval echo '${'$as_ac_File'}'` = yes; then
5290  WCSINC="-I$INCDIR $WCSINC"; break
5291fi
5292
5293done
5294for INCDIR in $INCDIRS ; do
5295  as_ac_File=`echo "ac_cv_file_$INCDIR/cpgsbox.h" | $as_tr_sh`
5296echo "$as_me:$LINENO: checking for $INCDIR/cpgsbox.h" >&5
5297echo $ECHO_N "checking for $INCDIR/cpgsbox.h... $ECHO_C" >&6
5298if eval "test \"\${$as_ac_File+set}\" = set"; then
5299  echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301  test "$cross_compiling" = yes &&
5302  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5303echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5304   { (exit 1); exit 1; }; }
5305if test -r "$INCDIR/cpgsbox.h"; then
5306  eval "$as_ac_File=yes"
5307else
5308  eval "$as_ac_File=no"
5309fi
5310fi
5311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5312echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5313if test `eval echo '${'$as_ac_File'}'` = yes; then
5314  WCSINC="-I$INCDIR $WCSINC"; break
5315fi
5316
5317  INCDIR=$INCDIR/wcslib
5318  as_ac_File=`echo "ac_cv_file_$INCDIR/cpgsbox.h" | $as_tr_sh`
5319echo "$as_me:$LINENO: checking for $INCDIR/cpgsbox.h" >&5
5320echo $ECHO_N "checking for $INCDIR/cpgsbox.h... $ECHO_C" >&6
5321if eval "test \"\${$as_ac_File+set}\" = set"; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324  test "$cross_compiling" = yes &&
5325  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5326echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5327   { (exit 1); exit 1; }; }
5328if test -r "$INCDIR/cpgsbox.h"; then
5329  eval "$as_ac_File=yes"
5330else
5331  eval "$as_ac_File=no"
5332fi
5333fi
5334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5335echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5336if test `eval echo '${'$as_ac_File'}'` = yes; then
5337  WCSINC="-I$INCDIR $WCSINC"; break
5338fi
5339
5340done
5341
5342echo "$as_me:$LINENO: checking for wcss2p in -lwcs" >&5
5343echo $ECHO_N "checking for wcss2p in -lwcs... $ECHO_C" >&6
5344if test "${ac_cv_lib_wcs_wcss2p+set}" = set; then
5345  echo $ECHO_N "(cached) $ECHO_C" >&6
5346else
5347  ac_check_lib_save_LIBS=$LIBS
5348LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS"
5349cat >conftest.$ac_ext <<_ACEOF
5350#line $LINENO "configure"
5351/* confdefs.h.  */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h.  */
5356
5357/* Override any gcc2 internal prototype to avoid an error.  */
5358#ifdef __cplusplus
5359extern "C"
5360#endif
5361/* We use char because int might match the return type of a gcc2
5362   builtin and then its argument prototype would still apply.  */
5363char wcss2p ();
5364int
5365main ()
5366{
5367wcss2p ();
5368  ;
5369  return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext conftest$ac_exeext
5373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374  (eval $ac_link) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); } &&
5378         { ac_try='test -s conftest$ac_exeext'
5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380  (eval $ac_try) 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  ac_cv_lib_wcs_wcss2p=yes
5385else
5386  echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389ac_cv_lib_wcs_wcss2p=no
5390fi
5391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392LIBS=$ac_check_lib_save_LIBS
5393fi
5394echo "$as_me:$LINENO: result: $ac_cv_lib_wcs_wcss2p" >&5
5395echo "${ECHO_T}$ac_cv_lib_wcs_wcss2p" >&6
5396if test $ac_cv_lib_wcs_wcss2p = yes; then
5397  WCSLIB="-lwcs $WCSLIB"
5398fi
5399
5400echo "$as_me:$LINENO: checking for cpgsbox in -lpgsbox" >&5
5401echo $ECHO_N "checking for cpgsbox in -lpgsbox... $ECHO_C" >&6
5402if test "${ac_cv_lib_pgsbox_cpgsbox+set}" = set; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405  ac_check_lib_save_LIBS=$LIBS
5406LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS"
5407cat >conftest.$ac_ext <<_ACEOF
5408#line $LINENO "configure"
5409/* confdefs.h.  */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h.  */
5414
5415/* Override any gcc2 internal prototype to avoid an error.  */
5416#ifdef __cplusplus
5417extern "C"
5418#endif
5419/* We use char because int might match the return type of a gcc2
5420   builtin and then its argument prototype would still apply.  */
5421char cpgsbox ();
5422int
5423main ()
5424{
5425cpgsbox ();
5426  ;
5427  return 0;
5428}
5429_ACEOF
5430rm -f conftest.$ac_objext conftest$ac_exeext
5431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5432  (eval $ac_link) 2>&5
5433  ac_status=$?
5434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435  (exit $ac_status); } &&
5436         { ac_try='test -s conftest$ac_exeext'
5437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438  (eval $ac_try) 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }; }; then
5442  ac_cv_lib_pgsbox_cpgsbox=yes
5443else
5444  echo "$as_me: failed program was:" >&5
5445sed 's/^/| /' conftest.$ac_ext >&5
5446
5447ac_cv_lib_pgsbox_cpgsbox=no
5448fi
5449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5450LIBS=$ac_check_lib_save_LIBS
5451fi
5452echo "$as_me:$LINENO: result: $ac_cv_lib_pgsbox_cpgsbox" >&5
5453echo "${ECHO_T}$ac_cv_lib_pgsbox_cpgsbox" >&6
5454if test $ac_cv_lib_pgsbox_cpgsbox = yes; then
5455  WCSLIB="-lpgsbox $WCSLIB"
5456fi
5457
5458
5459if test "x$WCSINC" = x -o "x$WCSLIB" = x; then
5460  { { echo "$as_me:$LINENO: error:
5461    -------------------------------------------------------
5462    Could not find the WCSLIB library.
5463
5464    ERROR: Duchamp configuration failure.
5465    -------------------------------------------------------" >&5
5466echo "$as_me: error:
5467    -------------------------------------------------------
5468    Could not find the WCSLIB library.
5469
5470    ERROR: Duchamp configuration failure.
5471    -------------------------------------------------------" >&2;}
5472   { (exit 1); exit 1; }; }
5473else
5474  for LIBDIR in $LIBDIRS ; do
5475    as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh`
5476echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5
5477echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6
5478if eval "test \"\${$as_ac_File+set}\" = set"; then
5479  echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481  test "$cross_compiling" = yes &&
5482  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5483echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5484   { (exit 1); exit 1; }; }
5485if test -r "$LIBDIR/libwcs.a"; then
5486  eval "$as_ac_File=yes"
5487else
5488  eval "$as_ac_File=no"
5489fi
5490fi
5491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5492echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5493if test `eval echo '${'$as_ac_File'}'` = yes; then
5494  WCSLIB="-L$LIBDIR $WCSLIB"; break
5495fi
5496
5497    LIBDIR=$LIBDIR/wcs
5498    as_ac_File=`echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh`
5499echo "$as_me:$LINENO: checking for $LIBDIR/libwcs.a" >&5
5500echo $ECHO_N "checking for $LIBDIR/libwcs.a... $ECHO_C" >&6
5501if eval "test \"\${$as_ac_File+set}\" = set"; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  test "$cross_compiling" = yes &&
5505  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5506echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5507   { (exit 1); exit 1; }; }
5508if test -r "$LIBDIR/libwcs.a"; then
5509  eval "$as_ac_File=yes"
5510else
5511  eval "$as_ac_File=no"
5512fi
5513fi
5514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5515echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5516if test `eval echo '${'$as_ac_File'}'` = yes; then
5517  WCSLIB="-L$LIBDIR $WCSLIB"; break
5518fi
5519
5520  done
5521  for LIBDIR in $LIBDIRS ; do
5522    as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh`
5523echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5
5524echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6
5525if eval "test \"\${$as_ac_File+set}\" = set"; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528  test "$cross_compiling" = yes &&
5529  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5530echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5531   { (exit 1); exit 1; }; }
5532if test -r "$LIBDIR/libpgsbox.a"; then
5533  eval "$as_ac_File=yes"
5534else
5535  eval "$as_ac_File=no"
5536fi
5537fi
5538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5539echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5540if test `eval echo '${'$as_ac_File'}'` = yes; then
5541  WCSLIB="-L$LIBDIR $WCSLIB"; break
5542fi
5543
5544    LIBDIR=$LIBDIR/wcs
5545    as_ac_File=`echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh`
5546echo "$as_me:$LINENO: checking for $LIBDIR/libpgsbox.a" >&5
5547echo $ECHO_N "checking for $LIBDIR/libpgsbox.a... $ECHO_C" >&6
5548if eval "test \"\${$as_ac_File+set}\" = set"; then
5549  echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551  test "$cross_compiling" = yes &&
5552  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5553echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5554   { (exit 1); exit 1; }; }
5555if test -r "$LIBDIR/libpgsbox.a"; then
5556  eval "$as_ac_File=yes"
5557else
5558  eval "$as_ac_File=no"
5559fi
5560fi
5561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5562echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5563if test `eval echo '${'$as_ac_File'}'` = yes; then
5564  WCSLIB="-L$LIBDIR $WCSLIB"; break
5565fi
5566
5567  done
5568  { echo "$as_me:$LINENO: WCSLIB appears to be available." >&5
5569echo "$as_me: WCSLIB appears to be available." >&6;}
5570
5571cat >>confdefs.h <<\_ACEOF
5572#define HAVE_WCSLIB 1
5573_ACEOF
5574
5575fi
5576
5577
5578
5579##########################################################################
5580
5581
5582
5583          ac_config_files="$ac_config_files Makefile"
5584
5585cat >confcache <<\_ACEOF
5586# This file is a shell script that caches the results of configure
5587# tests run on this system so they can be shared between configure
5588# scripts and configure runs, see configure's option --config-cache.
5589# It is not useful on other systems.  If it contains results you don't
5590# want to keep, you may remove or edit it.
5591#
5592# config.status only pays attention to the cache file if you give it
5593# the --recheck option to rerun configure.
5594#
5595# `ac_cv_env_foo' variables (set or unset) will be overridden when
5596# loading this file, other *unset* `ac_cv_foo' will be assigned the
5597# following values.
5598
5599_ACEOF
5600
5601# The following way of writing the cache mishandles newlines in values,
5602# but we know of no workaround that is simple, portable, and efficient.
5603# So, don't put newlines in cache variables' values.
5604# Ultrix sh set writes to stderr and can't be redirected directly,
5605# and sets the high bit in the cache file unless we assign to the vars.
5606{
5607  (set) 2>&1 |
5608    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5609    *ac_space=\ *)
5610      # `set' does not quote correctly, so add quotes (double-quote
5611      # substitution turns \\\\ into \\, and sed turns \\ into \).
5612      sed -n \
5613        "s/'/'\\\\''/g;
5614          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5615      ;;
5616    *)
5617      # `set' quotes correctly as required by POSIX, so do not add quotes.
5618      sed -n \
5619        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5620      ;;
5621    esac;
5622} |
5623  sed '
5624     t clear
5625     : clear
5626     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5627     t end
5628     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5629     : end' >>confcache
5630if diff $cache_file confcache >/dev/null 2>&1; then :; else
5631  if test -w $cache_file; then
5632    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5633    cat confcache >$cache_file
5634  else
5635    echo "not updating unwritable cache $cache_file"
5636  fi
5637fi
5638rm -f confcache
5639
5640test "x$prefix" = xNONE && prefix=$ac_default_prefix
5641# Let make expand exec_prefix.
5642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5643
5644# VPATH may cause trouble with some makes, so we remove $(srcdir),
5645# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5646# trailing colons and then remove the whole line if VPATH becomes empty
5647# (actually we leave an empty line to preserve line numbers).
5648if test "x$srcdir" = x.; then
5649  ac_vpsub='/^[         ]*VPATH[        ]*=/{
5650s/:*\$(srcdir):*/:/;
5651s/:*\${srcdir}:*/:/;
5652s/:*@srcdir@:*/:/;
5653s/^\([^=]*=[    ]*\):*/\1/;
5654s/:*$//;
5655s/^[^=]*=[      ]*$//;
5656}'
5657fi
5658
5659DEFS=-DHAVE_CONFIG_H
5660
5661ac_libobjs=
5662ac_ltlibobjs=
5663for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5664  # 1. Remove the extension, and $U if already installed.
5665  ac_i=`echo "$ac_i" |
5666         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5667  # 2. Add them.
5668  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5669  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5670done
5671LIBOBJS=$ac_libobjs
5672
5673LTLIBOBJS=$ac_ltlibobjs
5674
5675
5676
5677: ${CONFIG_STATUS=./config.status}
5678ac_clean_files_save=$ac_clean_files
5679ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5680{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5681echo "$as_me: creating $CONFIG_STATUS" >&6;}
5682cat >$CONFIG_STATUS <<_ACEOF
5683#! $SHELL
5684# Generated by $as_me.
5685# Run this file to recreate the current configuration.
5686# Compiler output produced by configure, useful for debugging
5687# configure, is in config.log if it exists.
5688
5689debug=false
5690ac_cs_recheck=false
5691ac_cs_silent=false
5692SHELL=\${CONFIG_SHELL-$SHELL}
5693_ACEOF
5694
5695cat >>$CONFIG_STATUS <<\_ACEOF
5696## --------------------- ##
5697## M4sh Initialization.  ##
5698## --------------------- ##
5699
5700# Be Bourne compatible
5701if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5702  emulate sh
5703  NULLCMD=:
5704  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5705  # is contrary to our usage.  Disable this feature.
5706  alias -g '${1+"$@"}'='"$@"'
5707elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5708  set -o posix
5709fi
5710
5711# Support unset when possible.
5712if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5713  as_unset=unset
5714else
5715  as_unset=false
5716fi
5717
5718
5719# Work around bugs in pre-3.0 UWIN ksh.
5720$as_unset ENV MAIL MAILPATH
5721PS1='$ '
5722PS2='> '
5723PS4='+ '
5724
5725# NLS nuisances.
5726for as_var in \
5727  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5728  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5729  LC_TELEPHONE LC_TIME
5730do
5731  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5732    eval $as_var=C; export $as_var
5733  else
5734    $as_unset $as_var
5735  fi
5736done
5737
5738# Required to use basename.
5739if expr a : '\(a\)' >/dev/null 2>&1; then
5740  as_expr=expr
5741else
5742  as_expr=false
5743fi
5744
5745if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5746  as_basename=basename
5747else
5748  as_basename=false
5749fi
5750
5751
5752# Name of the executable.
5753as_me=`$as_basename "$0" ||
5754$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5755         X"$0" : 'X\(//\)$' \| \
5756         X"$0" : 'X\(/\)$' \| \
5757         .     : '\(.\)' 2>/dev/null ||
5758echo X/"$0" |
5759    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5760          /^X\/\(\/\/\)$/{ s//\1/; q; }
5761          /^X\/\(\/\).*/{ s//\1/; q; }
5762          s/.*/./; q'`
5763
5764
5765# PATH needs CR, and LINENO needs CR and PATH.
5766# Avoid depending upon Character Ranges.
5767as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5769as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5770as_cr_digits='0123456789'
5771as_cr_alnum=$as_cr_Letters$as_cr_digits
5772
5773# The user is always right.
5774if test "${PATH_SEPARATOR+set}" != set; then
5775  echo "#! /bin/sh" >conf$$.sh
5776  echo  "exit 0"   >>conf$$.sh
5777  chmod +x conf$$.sh
5778  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5779    PATH_SEPARATOR=';'
5780  else
5781    PATH_SEPARATOR=:
5782  fi
5783  rm -f conf$$.sh
5784fi
5785
5786
5787  as_lineno_1=$LINENO
5788  as_lineno_2=$LINENO
5789  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5790  test "x$as_lineno_1" != "x$as_lineno_2" &&
5791  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5792  # Find who we are.  Look in the path if we contain no path at all
5793  # relative or not.
5794  case $0 in
5795    *[\\/]* ) as_myself=$0 ;;
5796    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799  IFS=$as_save_IFS
5800  test -z "$as_dir" && as_dir=.
5801  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5802done
5803
5804       ;;
5805  esac
5806  # We did not find ourselves, most probably we were run as `sh COMMAND'
5807  # in which case we are not to be found in the path.
5808  if test "x$as_myself" = x; then
5809    as_myself=$0
5810  fi
5811  if test ! -f "$as_myself"; then
5812    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5813echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5814   { (exit 1); exit 1; }; }
5815  fi
5816  case $CONFIG_SHELL in
5817  '')
5818    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5820do
5821  IFS=$as_save_IFS
5822  test -z "$as_dir" && as_dir=.
5823  for as_base in sh bash ksh sh5; do
5824         case $as_dir in
5825         /*)
5826           if ("$as_dir/$as_base" -c '
5827  as_lineno_1=$LINENO
5828  as_lineno_2=$LINENO
5829  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5830  test "x$as_lineno_1" != "x$as_lineno_2" &&
5831  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5832             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5833             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5834             CONFIG_SHELL=$as_dir/$as_base
5835             export CONFIG_SHELL
5836             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5837           fi;;
5838         esac
5839       done
5840done
5841;;
5842  esac
5843
5844  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5845  # uniformly replaced by the line number.  The first 'sed' inserts a
5846  # line-number line before each line; the second 'sed' does the real
5847  # work.  The second script uses 'N' to pair each line-number line
5848  # with the numbered line, and appends trailing '-' during
5849  # substitution so that $LINENO is not a special case at line end.
5850  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5851  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5852  sed '=' <$as_myself |
5853    sed '
5854      N
5855      s,$,-,
5856      : loop
5857      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5858      t loop
5859      s,-$,,
5860      s,^['$as_cr_digits']*\n,,
5861    ' >$as_me.lineno &&
5862  chmod +x $as_me.lineno ||
5863    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5864echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5865   { (exit 1); exit 1; }; }
5866
5867  # Don't try to exec as it changes $[0], causing all sort of problems
5868  # (the dirname of $[0] is not the place where we might find the
5869  # original and so on.  Autoconf is especially sensible to this).
5870  . ./$as_me.lineno
5871  # Exit status is that of the last command.
5872  exit
5873}
5874
5875
5876case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5877  *c*,-n*) ECHO_N= ECHO_C='
5878' ECHO_T='      ' ;;
5879  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5880  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5881esac
5882
5883if expr a : '\(a\)' >/dev/null 2>&1; then
5884  as_expr=expr
5885else
5886  as_expr=false
5887fi
5888
5889rm -f conf$$ conf$$.exe conf$$.file
5890echo >conf$$.file
5891if ln -s conf$$.file conf$$ 2>/dev/null; then
5892  # We could just check for DJGPP; but this test a) works b) is more generic
5893  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5894  if test -f conf$$.exe; then
5895    # Don't use ln at all; we don't have any links
5896    as_ln_s='cp -p'
5897  else
5898    as_ln_s='ln -s'
5899  fi
5900elif ln conf$$.file conf$$ 2>/dev/null; then
5901  as_ln_s=ln
5902else
5903  as_ln_s='cp -p'
5904fi
5905rm -f conf$$ conf$$.exe conf$$.file
5906
5907if mkdir -p . 2>/dev/null; then
5908  as_mkdir_p=:
5909else
5910  as_mkdir_p=false
5911fi
5912
5913as_executable_p="test -f"
5914
5915# Sed expression to map a string onto a valid CPP name.
5916as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5917
5918# Sed expression to map a string onto a valid variable name.
5919as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5920
5921
5922# IFS
5923# We need space, tab and new line, in precisely that order.
5924as_nl='
5925'
5926IFS="   $as_nl"
5927
5928# CDPATH.
5929$as_unset CDPATH
5930
5931exec 6>&1
5932
5933# Open the log real soon, to keep \$[0] and so on meaningful, and to
5934# report actual input values of CONFIG_FILES etc. instead of their
5935# values after options handling.  Logging --version etc. is OK.
5936exec 5>>config.log
5937{
5938  echo
5939  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5940## Running $as_me. ##
5941_ASBOX
5942} >&5
5943cat >&5 <<_CSEOF
5944
5945This file was extended by Duchamp $as_me 1.0.2, which was
5946generated by GNU Autoconf 2.57.  Invocation command line was
5947
5948  CONFIG_FILES    = $CONFIG_FILES
5949  CONFIG_HEADERS  = $CONFIG_HEADERS
5950  CONFIG_LINKS    = $CONFIG_LINKS
5951  CONFIG_COMMANDS = $CONFIG_COMMANDS
5952  $ $0 $@
5953
5954_CSEOF
5955echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5956echo >&5
5957_ACEOF
5958
5959# Files that config.status was made for.
5960if test -n "$ac_config_files"; then
5961  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5962fi
5963
5964if test -n "$ac_config_headers"; then
5965  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5966fi
5967
5968if test -n "$ac_config_links"; then
5969  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5970fi
5971
5972if test -n "$ac_config_commands"; then
5973  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5974fi
5975
5976cat >>$CONFIG_STATUS <<\_ACEOF
5977
5978ac_cs_usage="\
5979\`$as_me' instantiates files from templates according to the
5980current configuration.
5981
5982Usage: $0 [OPTIONS] [FILE]...
5983
5984  -h, --help       print this help, then exit
5985  -V, --version    print version number, then exit
5986  -q, --quiet      do not print progress messages
5987  -d, --debug      don't remove temporary files
5988      --recheck    update $as_me by reconfiguring in the same conditions
5989  --file=FILE[:TEMPLATE]
5990                   instantiate the configuration file FILE
5991  --header=FILE[:TEMPLATE]
5992                   instantiate the configuration header FILE
5993
5994Configuration files:
5995$config_files
5996
5997Configuration headers:
5998$config_headers
5999
6000Report bugs to <bug-autoconf@gnu.org>."
6001_ACEOF
6002
6003cat >>$CONFIG_STATUS <<_ACEOF
6004ac_cs_version="\\
6005Duchamp config.status 1.0.2
6006configured by $0, generated by GNU Autoconf 2.57,
6007  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6008
6009Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6010Free Software Foundation, Inc.
6011This config.status script is free software; the Free Software Foundation
6012gives unlimited permission to copy, distribute and modify it."
6013srcdir=$srcdir
6014_ACEOF
6015
6016cat >>$CONFIG_STATUS <<\_ACEOF
6017# If no file are specified by the user, then we need to provide default
6018# value.  By we need to know if files were specified by the user.
6019ac_need_defaults=:
6020while test $# != 0
6021do
6022  case $1 in
6023  --*=*)
6024    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6025    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6026    ac_shift=:
6027    ;;
6028  -*)
6029    ac_option=$1
6030    ac_optarg=$2
6031    ac_shift=shift
6032    ;;
6033  *) # This is not an option, so the user has probably given explicit
6034     # arguments.
6035     ac_option=$1
6036     ac_need_defaults=false;;
6037  esac
6038
6039  case $ac_option in
6040  # Handling of the options.
6041_ACEOF
6042cat >>$CONFIG_STATUS <<\_ACEOF
6043  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6044    ac_cs_recheck=: ;;
6045  --version | --vers* | -V )
6046    echo "$ac_cs_version"; exit 0 ;;
6047  --he | --h)
6048    # Conflict between --help and --header
6049    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6050Try \`$0 --help' for more information." >&5
6051echo "$as_me: error: ambiguous option: $1
6052Try \`$0 --help' for more information." >&2;}
6053   { (exit 1); exit 1; }; };;
6054  --help | --hel | -h )
6055    echo "$ac_cs_usage"; exit 0 ;;
6056  --debug | --d* | -d )
6057    debug=: ;;
6058  --file | --fil | --fi | --f )
6059    $ac_shift
6060    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6061    ac_need_defaults=false;;
6062  --header | --heade | --head | --hea )
6063    $ac_shift
6064    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6065    ac_need_defaults=false;;
6066  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6067  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6068    ac_cs_silent=: ;;
6069
6070  # This is an error.
6071  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6072Try \`$0 --help' for more information." >&5
6073echo "$as_me: error: unrecognized option: $1
6074Try \`$0 --help' for more information." >&2;}
6075   { (exit 1); exit 1; }; } ;;
6076
6077  *) ac_config_targets="$ac_config_targets $1" ;;
6078
6079  esac
6080  shift
6081done
6082
6083ac_configure_extra_args=
6084
6085if $ac_cs_silent; then
6086  exec 6>/dev/null
6087  ac_configure_extra_args="$ac_configure_extra_args --silent"
6088fi
6089
6090_ACEOF
6091cat >>$CONFIG_STATUS <<_ACEOF
6092if \$ac_cs_recheck; then
6093  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6094  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6095fi
6096
6097_ACEOF
6098
6099
6100
6101
6102
6103cat >>$CONFIG_STATUS <<\_ACEOF
6104for ac_config_target in $ac_config_targets
6105do
6106  case "$ac_config_target" in
6107  # Handling of arguments.
6108  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6109  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
6110  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6111echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6112   { (exit 1); exit 1; }; };;
6113  esac
6114done
6115
6116# If the user did not use the arguments to specify the items to instantiate,
6117# then the envvar interface is used.  Set only those that are not.
6118# We use the long form for the default assignment because of an extremely
6119# bizarre bug on SunOS 4.1.3.
6120if $ac_need_defaults; then
6121  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6122  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6123fi
6124
6125# Have a temporary directory for convenience.  Make it in the build tree
6126# simply because there is no reason to put it here, and in addition,
6127# creating and moving files from /tmp can sometimes cause problems.
6128# Create a temporary directory, and hook for its removal unless debugging.
6129$debug ||
6130{
6131  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6132  trap '{ (exit 1); exit 1; }' 1 2 13 15
6133}
6134
6135# Create a (secure) tmp directory for tmp files.
6136
6137{
6138  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6139  test -n "$tmp" && test -d "$tmp"
6140}  ||
6141{
6142  tmp=./confstat$$-$RANDOM
6143  (umask 077 && mkdir $tmp)
6144} ||
6145{
6146   echo "$me: cannot create a temporary directory in ." >&2
6147   { (exit 1); exit 1; }
6148}
6149
6150_ACEOF
6151
6152cat >>$CONFIG_STATUS <<_ACEOF
6153
6154#
6155# CONFIG_FILES section.
6156#
6157
6158# No need to generate the scripts if there are no CONFIG_FILES.
6159# This happens for instance when ./config.status config.h
6160if test -n "\$CONFIG_FILES"; then
6161  # Protect against being on the right side of a sed subst in config.status.
6162  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6163   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6164s,@SHELL@,$SHELL,;t t
6165s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6166s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6167s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6168s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6169s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6170s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6171s,@exec_prefix@,$exec_prefix,;t t
6172s,@prefix@,$prefix,;t t
6173s,@program_transform_name@,$program_transform_name,;t t
6174s,@bindir@,$bindir,;t t
6175s,@sbindir@,$sbindir,;t t
6176s,@libexecdir@,$libexecdir,;t t
6177s,@datadir@,$datadir,;t t
6178s,@sysconfdir@,$sysconfdir,;t t
6179s,@sharedstatedir@,$sharedstatedir,;t t
6180s,@localstatedir@,$localstatedir,;t t
6181s,@libdir@,$libdir,;t t
6182s,@includedir@,$includedir,;t t
6183s,@oldincludedir@,$oldincludedir,;t t
6184s,@infodir@,$infodir,;t t
6185s,@mandir@,$mandir,;t t
6186s,@build_alias@,$build_alias,;t t
6187s,@host_alias@,$host_alias,;t t
6188s,@target_alias@,$target_alias,;t t
6189s,@DEFS@,$DEFS,;t t
6190s,@ECHO_C@,$ECHO_C,;t t
6191s,@ECHO_N@,$ECHO_N,;t t
6192s,@ECHO_T@,$ECHO_T,;t t
6193s,@LIBS@,$LIBS,;t t
6194s,@CXX@,$CXX,;t t
6195s,@CXXFLAGS@,$CXXFLAGS,;t t
6196s,@LDFLAGS@,$LDFLAGS,;t t
6197s,@CPPFLAGS@,$CPPFLAGS,;t t
6198s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6199s,@EXEEXT@,$EXEEXT,;t t
6200s,@OBJEXT@,$OBJEXT,;t t
6201s,@CC@,$CC,;t t
6202s,@CFLAGS@,$CFLAGS,;t t
6203s,@ac_ct_CC@,$ac_ct_CC,;t t
6204s,@CPP@,$CPP,;t t
6205s,@EGREP@,$EGREP,;t t
6206s,@POW_LIB@,$POW_LIB,;t t
6207s,@LIBOBJS@,$LIBOBJS,;t t
6208s,@F77@,$F77,;t t
6209s,@FFLAGS@,$FFLAGS,;t t
6210s,@ac_ct_F77@,$ac_ct_F77,;t t
6211s,@PGPLOTINC@,$PGPLOTINC,;t t
6212s,@PGPLOTLIB@,$PGPLOTLIB,;t t
6213s,@CFITSIOINC@,$CFITSIOINC,;t t
6214s,@CFITSIOLIB@,$CFITSIOLIB,;t t
6215s,@WCSINC@,$WCSINC,;t t
6216s,@WCSLIB@,$WCSLIB,;t t
6217s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6218CEOF
6219
6220_ACEOF
6221
6222  cat >>$CONFIG_STATUS <<\_ACEOF
6223  # Split the substitutions into bite-sized pieces for seds with
6224  # small command number limits, like on Digital OSF/1 and HP-UX.
6225  ac_max_sed_lines=48
6226  ac_sed_frag=1 # Number of current file.
6227  ac_beg=1 # First line for current file.
6228  ac_end=$ac_max_sed_lines # Line after last line for current file.
6229  ac_more_lines=:
6230  ac_sed_cmds=
6231  while $ac_more_lines; do
6232    if test $ac_beg -gt 1; then
6233      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6234    else
6235      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6236    fi
6237    if test ! -s $tmp/subs.frag; then
6238      ac_more_lines=false
6239    else
6240      # The purpose of the label and of the branching condition is to
6241      # speed up the sed processing (if there are no `@' at all, there
6242      # is no need to browse any of the substitutions).
6243      # These are the two extra sed commands mentioned above.
6244      (echo ':t
6245  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6246      if test -z "$ac_sed_cmds"; then
6247        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6248      else
6249        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6250      fi
6251      ac_sed_frag=`expr $ac_sed_frag + 1`
6252      ac_beg=$ac_end
6253      ac_end=`expr $ac_end + $ac_max_sed_lines`
6254    fi
6255  done
6256  if test -z "$ac_sed_cmds"; then
6257    ac_sed_cmds=cat
6258  fi
6259fi # test -n "$CONFIG_FILES"
6260
6261_ACEOF
6262cat >>$CONFIG_STATUS <<\_ACEOF
6263for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6264  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6265  case $ac_file in
6266  - | *:- | *:-:* ) # input from stdin
6267        cat >$tmp/stdin
6268        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6269        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6270  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6271        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6272  * )   ac_file_in=$ac_file.in ;;
6273  esac
6274
6275  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6276  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6277$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6278         X"$ac_file" : 'X\(//\)[^/]' \| \
6279         X"$ac_file" : 'X\(//\)$' \| \
6280         X"$ac_file" : 'X\(/\)' \| \
6281         .     : '\(.\)' 2>/dev/null ||
6282echo X"$ac_file" |
6283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6284          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6285          /^X\(\/\/\)$/{ s//\1/; q; }
6286          /^X\(\/\).*/{ s//\1/; q; }
6287          s/.*/./; q'`
6288  { if $as_mkdir_p; then
6289    mkdir -p "$ac_dir"
6290  else
6291    as_dir="$ac_dir"
6292    as_dirs=
6293    while test ! -d "$as_dir"; do
6294      as_dirs="$as_dir $as_dirs"
6295      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6297         X"$as_dir" : 'X\(//\)[^/]' \| \
6298         X"$as_dir" : 'X\(//\)$' \| \
6299         X"$as_dir" : 'X\(/\)' \| \
6300         .     : '\(.\)' 2>/dev/null ||
6301echo X"$as_dir" |
6302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6303          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6304          /^X\(\/\/\)$/{ s//\1/; q; }
6305          /^X\(\/\).*/{ s//\1/; q; }
6306          s/.*/./; q'`
6307    done
6308    test ! -n "$as_dirs" || mkdir $as_dirs
6309  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6310echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6311   { (exit 1); exit 1; }; }; }
6312
6313  ac_builddir=.
6314
6315if test "$ac_dir" != .; then
6316  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6317  # A "../" for each directory in $ac_dir_suffix.
6318  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6319else
6320  ac_dir_suffix= ac_top_builddir=
6321fi
6322
6323case $srcdir in
6324  .)  # No --srcdir option.  We are building in place.
6325    ac_srcdir=.
6326    if test -z "$ac_top_builddir"; then
6327       ac_top_srcdir=.
6328    else
6329       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6330    fi ;;
6331  [\\/]* | ?:[\\/]* )  # Absolute path.
6332    ac_srcdir=$srcdir$ac_dir_suffix;
6333    ac_top_srcdir=$srcdir ;;
6334  *) # Relative path.
6335    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6336    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6337esac
6338# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6339# absolute.
6340ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6341ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6342ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6343ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6344
6345
6346
6347  if test x"$ac_file" != x-; then
6348    { echo "$as_me:$LINENO: creating $ac_file" >&5
6349echo "$as_me: creating $ac_file" >&6;}
6350    rm -f "$ac_file"
6351  fi
6352  # Let's still pretend it is `configure' which instantiates (i.e., don't
6353  # use $as_me), people would be surprised to read:
6354  #    /* config.h.  Generated by config.status.  */
6355  if test x"$ac_file" = x-; then
6356    configure_input=
6357  else
6358    configure_input="$ac_file.  "
6359  fi
6360  configure_input=$configure_input"Generated from `echo $ac_file_in |
6361                                     sed 's,.*/,,'` by configure."
6362
6363  # First look for the input files in the build tree, otherwise in the
6364  # src tree.
6365  ac_file_inputs=`IFS=:
6366    for f in $ac_file_in; do
6367      case $f in
6368      -) echo $tmp/stdin ;;
6369      [\\/$]*)
6370         # Absolute (can't be DOS-style, as IFS=:)
6371         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6372echo "$as_me: error: cannot find input file: $f" >&2;}
6373   { (exit 1); exit 1; }; }
6374         echo $f;;
6375      *) # Relative
6376         if test -f "$f"; then
6377           # Build tree
6378           echo $f
6379         elif test -f "$srcdir/$f"; then
6380           # Source tree
6381           echo $srcdir/$f
6382         else
6383           # /dev/null tree
6384           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6385echo "$as_me: error: cannot find input file: $f" >&2;}
6386   { (exit 1); exit 1; }; }
6387         fi;;
6388      esac
6389    done` || { (exit 1); exit 1; }
6390_ACEOF
6391cat >>$CONFIG_STATUS <<_ACEOF
6392  sed "$ac_vpsub
6393$extrasub
6394_ACEOF
6395cat >>$CONFIG_STATUS <<\_ACEOF
6396:t
6397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6398s,@configure_input@,$configure_input,;t t
6399s,@srcdir@,$ac_srcdir,;t t
6400s,@abs_srcdir@,$ac_abs_srcdir,;t t
6401s,@top_srcdir@,$ac_top_srcdir,;t t
6402s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6403s,@builddir@,$ac_builddir,;t t
6404s,@abs_builddir@,$ac_abs_builddir,;t t
6405s,@top_builddir@,$ac_top_builddir,;t t
6406s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6407" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6408  rm -f $tmp/stdin
6409  if test x"$ac_file" != x-; then
6410    mv $tmp/out $ac_file
6411  else
6412    cat $tmp/out
6413    rm -f $tmp/out
6414  fi
6415
6416done
6417_ACEOF
6418cat >>$CONFIG_STATUS <<\_ACEOF
6419
6420#
6421# CONFIG_HEADER section.
6422#
6423
6424# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6425# NAME is the cpp macro being defined and VALUE is the value it is being given.
6426#
6427# ac_d sets the value in "#define NAME VALUE" lines.
6428ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6429ac_dB='[        ].*$,\1#\2'
6430ac_dC=' '
6431ac_dD=',;t'
6432# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6433ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6434ac_uB='$,\1#\2define\3'
6435ac_uC=' '
6436ac_uD=',;t'
6437
6438for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6439  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6440  case $ac_file in
6441  - | *:- | *:-:* ) # input from stdin
6442        cat >$tmp/stdin
6443        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6444        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6445  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6446        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6447  * )   ac_file_in=$ac_file.in ;;
6448  esac
6449
6450  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6451echo "$as_me: creating $ac_file" >&6;}
6452
6453  # First look for the input files in the build tree, otherwise in the
6454  # src tree.
6455  ac_file_inputs=`IFS=:
6456    for f in $ac_file_in; do
6457      case $f in
6458      -) echo $tmp/stdin ;;
6459      [\\/$]*)
6460         # Absolute (can't be DOS-style, as IFS=:)
6461         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6462echo "$as_me: error: cannot find input file: $f" >&2;}
6463   { (exit 1); exit 1; }; }
6464         echo $f;;
6465      *) # Relative
6466         if test -f "$f"; then
6467           # Build tree
6468           echo $f
6469         elif test -f "$srcdir/$f"; then
6470           # Source tree
6471           echo $srcdir/$f
6472         else
6473           # /dev/null tree
6474           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6475echo "$as_me: error: cannot find input file: $f" >&2;}
6476   { (exit 1); exit 1; }; }
6477         fi;;
6478      esac
6479    done` || { (exit 1); exit 1; }
6480  # Remove the trailing spaces.
6481  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6482
6483_ACEOF
6484
6485# Transform confdefs.h into two sed scripts, `conftest.defines' and
6486# `conftest.undefs', that substitutes the proper values into
6487# config.h.in to produce config.h.  The first handles `#define'
6488# templates, and the second `#undef' templates.
6489# And first: Protect against being on the right side of a sed subst in
6490# config.status.  Protect against being in an unquoted here document
6491# in config.status.
6492rm -f conftest.defines conftest.undefs
6493# Using a here document instead of a string reduces the quoting nightmare.
6494# Putting comments in sed scripts is not portable.
6495#
6496# `end' is used to avoid that the second main sed command (meant for
6497# 0-ary CPP macros) applies to n-ary macro definitions.
6498# See the Autoconf documentation for `clear'.
6499cat >confdef2sed.sed <<\_ACEOF
6500s/[\\&,]/\\&/g
6501s,[\\$`],\\&,g
6502t clear
6503: clear
6504s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6505t end
6506s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6507: end
6508_ACEOF
6509# If some macros were called several times there might be several times
6510# the same #defines, which is useless.  Nevertheless, we may not want to
6511# sort them, since we want the *last* AC-DEFINE to be honored.
6512uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6513sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6514rm -f confdef2sed.sed
6515
6516# This sed command replaces #undef with comments.  This is necessary, for
6517# example, in the case of _POSIX_SOURCE, which is predefined and required
6518# on some systems where configure will not decide to define it.
6519cat >>conftest.undefs <<\_ACEOF
6520s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6521_ACEOF
6522
6523# Break up conftest.defines because some shells have a limit on the size
6524# of here documents, and old seds have small limits too (100 cmds).
6525echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6526echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6527echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6528echo '  :' >>$CONFIG_STATUS
6529rm -f conftest.tail
6530while grep . conftest.defines >/dev/null
6531do
6532  # Write a limited-size here document to $tmp/defines.sed.
6533  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6534  # Speed up: don't consider the non `#define' lines.
6535  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6536  # Work around the forget-to-reset-the-flag bug.
6537  echo 't clr' >>$CONFIG_STATUS
6538  echo ': clr' >>$CONFIG_STATUS
6539  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6540  echo 'CEOF
6541  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6542  rm -f $tmp/in
6543  mv $tmp/out $tmp/in
6544' >>$CONFIG_STATUS
6545  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6546  rm -f conftest.defines
6547  mv conftest.tail conftest.defines
6548done
6549rm -f conftest.defines
6550echo '  fi # grep' >>$CONFIG_STATUS
6551echo >>$CONFIG_STATUS
6552
6553# Break up conftest.undefs because some shells have a limit on the size
6554# of here documents, and old seds have small limits too (100 cmds).
6555echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6556rm -f conftest.tail
6557while grep . conftest.undefs >/dev/null
6558do
6559  # Write a limited-size here document to $tmp/undefs.sed.
6560  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6561  # Speed up: don't consider the non `#undef'
6562  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6563  # Work around the forget-to-reset-the-flag bug.
6564  echo 't clr' >>$CONFIG_STATUS
6565  echo ': clr' >>$CONFIG_STATUS
6566  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6567  echo 'CEOF
6568  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6569  rm -f $tmp/in
6570  mv $tmp/out $tmp/in
6571' >>$CONFIG_STATUS
6572  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6573  rm -f conftest.undefs
6574  mv conftest.tail conftest.undefs
6575done
6576rm -f conftest.undefs
6577
6578cat >>$CONFIG_STATUS <<\_ACEOF
6579  # Let's still pretend it is `configure' which instantiates (i.e., don't
6580  # use $as_me), people would be surprised to read:
6581  #    /* config.h.  Generated by config.status.  */
6582  if test x"$ac_file" = x-; then
6583    echo "/* Generated by configure.  */" >$tmp/config.h
6584  else
6585    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6586  fi
6587  cat $tmp/in >>$tmp/config.h
6588  rm -f $tmp/in
6589  if test x"$ac_file" != x-; then
6590    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6591      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6592echo "$as_me: $ac_file is unchanged" >&6;}
6593    else
6594      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6595$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6596         X"$ac_file" : 'X\(//\)[^/]' \| \
6597         X"$ac_file" : 'X\(//\)$' \| \
6598         X"$ac_file" : 'X\(/\)' \| \
6599         .     : '\(.\)' 2>/dev/null ||
6600echo X"$ac_file" |
6601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6602          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6603          /^X\(\/\/\)$/{ s//\1/; q; }
6604          /^X\(\/\).*/{ s//\1/; q; }
6605          s/.*/./; q'`
6606      { if $as_mkdir_p; then
6607    mkdir -p "$ac_dir"
6608  else
6609    as_dir="$ac_dir"
6610    as_dirs=
6611    while test ! -d "$as_dir"; do
6612      as_dirs="$as_dir $as_dirs"
6613      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6614$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6615         X"$as_dir" : 'X\(//\)[^/]' \| \
6616         X"$as_dir" : 'X\(//\)$' \| \
6617         X"$as_dir" : 'X\(/\)' \| \
6618         .     : '\(.\)' 2>/dev/null ||
6619echo X"$as_dir" |
6620    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6621          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6622          /^X\(\/\/\)$/{ s//\1/; q; }
6623          /^X\(\/\).*/{ s//\1/; q; }
6624          s/.*/./; q'`
6625    done
6626    test ! -n "$as_dirs" || mkdir $as_dirs
6627  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6628echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6629   { (exit 1); exit 1; }; }; }
6630
6631      rm -f $ac_file
6632      mv $tmp/config.h $ac_file
6633    fi
6634  else
6635    cat $tmp/config.h
6636    rm -f $tmp/config.h
6637  fi
6638done
6639_ACEOF
6640
6641cat >>$CONFIG_STATUS <<\_ACEOF
6642
6643{ (exit 0); exit 0; }
6644_ACEOF
6645chmod +x $CONFIG_STATUS
6646ac_clean_files=$ac_clean_files_save
6647
6648
6649# configure is writing to config.log, and then calls config.status.
6650# config.status does its own redirection, appending to config.log.
6651# Unfortunately, on DOS this fails, as config.log is still kept open
6652# by configure, so config.status won't be able to write to it; its
6653# output is simply discarded.  So we exec the FD to /dev/null,
6654# effectively closing config.log, so it can be properly (re)opened and
6655# appended to by config.status.  When coming back to configure, we
6656# need to make the FD available again.
6657if test "$no_create" != yes; then
6658  ac_cs_success=:
6659  ac_config_status_args=
6660  test "$silent" = yes &&
6661    ac_config_status_args="$ac_config_status_args --quiet"
6662  exec 5>/dev/null
6663  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6664  exec 5>>config.log
6665  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6666  # would make configure fail if this is the last instruction.
6667  $ac_cs_success || { (exit 1); exit 1; }
6668fi
6669
Note: See TracBrowser for help on using the repository browser.