source: trunk/configure @ 1088

Last change on this file since 1088 was 1088, checked in by MatthewWhiting, 12 years ago

Updating the version number in configure, a few updates to CHANGES, and a cleanest target in Makefile to remove the configure-generated content

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