source: trunk/configure @ 794

Last change on this file since 794 was 788, checked in by MatthewWhiting, 13 years ago

First part of dealing with #110. Have defined a Beam & DuchampBeam? class and use these to hold the beam information. FitsHeader? holds the one that we work with, and copies it to Param for use with outputs. Parameters will be taken into account if no header information is present. Still need to add code to deal with the case of neither being present (the beam being EMPTY) and how that affects the integrated flux calculations.

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