source: trunk/configure @ 1213

Last change on this file since 1213 was 1213, checked in by MatthewWhiting, 11 years ago

Documentation updates, plus incrementing the version number to 1.3.2

  • Property svn:executable set to *
File size: 220.4 KB
RevLine 
[107]1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
[1213]3# Generated by GNU Autoconf 2.69 for Duchamp 1.3.2.
[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'
[1213]583PACKAGE_VERSION='1.3.2'
584PACKAGE_STRING='Duchamp 1.3.2'
[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
[1213]1261\`configure' configures Duchamp 1.3.2 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
[1213]1326     short | recursive ) echo "Configuration of Duchamp 1.3.2:";;
[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
[1213]1426Duchamp configure 1.3.2
[1088]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
[1213]1971It was created by Duchamp $as_me 1.3.2, which was
[1088]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##  AC_PATH_X
[788]5512  { $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
5513$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]5514  # returns C compiler flags needed for X to X_CFLAGS and the X linker flags to X_LIBS
[501]5515  if test "x$X_LIBS" != x; then
5516    LDFLAGS="$LDFLAGS $X_LIBS"
[765]5517    EXTRAPGLIB="$X_LIBS $X_PRE_LIBS -lX11 $EXTRAPGLIB"
[501]5518  fi
5519
[351]5520#  # Add pgplot libraries, if they exist to the lib path
5521#  for LIBDIR in $PGPLOTLIBDIRS ; do
5522#    AC_CHECK_FILE([$LIBDIR/libcpgplot.a], [PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break])
5523#  done
5524
[342]5525  # It is possible that other libraries may be required depending on what
5526  # graphics drivers were installed with PGPLOT.
[788]5527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5528$as_echo_n "checking for deflate in -lz... " >&6; }
5529if ${ac_cv_lib_z_deflate+:} false; then :
5530  $as_echo_n "(cached) " >&6
[107]5531else
5532  ac_check_lib_save_LIBS=$LIBS
[351]5533LIBS="-lz $EXTRAPGLIB $LIBS $LIBS"
[788]5534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]5535/* end confdefs.h.  */
5536
[763]5537/* Override any GCC internal prototype to avoid an error.
5538   Use char because int might match the return type of a GCC
5539   builtin and then its argument prototype would still apply.  */
[107]5540#ifdef __cplusplus
5541extern "C"
5542#endif
5543char deflate ();
5544int
5545main ()
5546{
[763]5547return deflate ();
[107]5548  ;
5549  return 0;
5550}
5551_ACEOF
[788]5552if ac_fn_c_try_link "$LINENO"; then :
[107]5553  ac_cv_lib_z_deflate=yes
5554else
[788]5555  ac_cv_lib_z_deflate=no
[107]5556fi
[788]5557rm -f core conftest.err conftest.$ac_objext \
5558    conftest$ac_exeext conftest.$ac_ext
[107]5559LIBS=$ac_check_lib_save_LIBS
5560fi
[788]5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5562$as_echo "$ac_cv_lib_z_deflate" >&6; }
5563if test "x$ac_cv_lib_z_deflate" = xyes; then :
[351]5564  EXTRAPGLIB="$EXTRAPGLIB -lz"
[107]5565fi
5566
[788]5567  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_error in -lpng" >&5
5568$as_echo_n "checking for png_error in -lpng... " >&6; }
5569if ${ac_cv_lib_png_png_error+:} false; then :
5570  $as_echo_n "(cached) " >&6
[107]5571else
5572  ac_check_lib_save_LIBS=$LIBS
[351]5573LIBS="-lpng $EXTRAPGLIB $LIBS $LIBS"
[788]5574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]5575/* end confdefs.h.  */
5576
[763]5577/* Override any GCC internal prototype to avoid an error.
5578   Use char because int might match the return type of a GCC
5579   builtin and then its argument prototype would still apply.  */
[107]5580#ifdef __cplusplus
5581extern "C"
5582#endif
5583char png_error ();
5584int
5585main ()
5586{
[763]5587return png_error ();
[107]5588  ;
5589  return 0;
5590}
5591_ACEOF
[788]5592if ac_fn_c_try_link "$LINENO"; then :
[107]5593  ac_cv_lib_png_png_error=yes
5594else
[788]5595  ac_cv_lib_png_png_error=no
[107]5596fi
[788]5597rm -f core conftest.err conftest.$ac_objext \
5598    conftest$ac_exeext conftest.$ac_ext
[107]5599LIBS=$ac_check_lib_save_LIBS
5600fi
[788]5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_error" >&5
5602$as_echo "$ac_cv_lib_png_png_error" >&6; }
5603if test "x$ac_cv_lib_png_png_error" = xyes; then :
[351]5604  EXTRAPGLIB="$EXTRAPGLIB -lpng"
[107]5605fi
5606
[351]5607
5608  ac_ext=f
5609ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5610ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5612
5613
[788]5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgopen in -lpgplot" >&5
5615$as_echo_n "checking for pgopen in -lpgplot... " >&6; }
5616if ${ac_cv_lib_pgplot_pgopen+:} false; then :
5617  $as_echo_n "(cached) " >&6
[107]5618else
5619  ac_check_lib_save_LIBS=$LIBS
[352]5620LIBS="-lpgplot $PGPLOTLIB $EXTRAPGLIB $LIBS"
[788]5621cat > conftest.$ac_ext <<_ACEOF
[351]5622      program main
5623      call pgopen
5624      end
[107]5625_ACEOF
[788]5626if ac_fn_f77_try_link "$LINENO"; then :
[351]5627  ac_cv_lib_pgplot_pgopen=yes
[107]5628else
[788]5629  ac_cv_lib_pgplot_pgopen=no
[107]5630fi
[788]5631rm -f core conftest.err conftest.$ac_objext \
5632    conftest$ac_exeext conftest.$ac_ext
[107]5633LIBS=$ac_check_lib_save_LIBS
5634fi
[788]5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgplot_pgopen" >&5
5636$as_echo "$ac_cv_lib_pgplot_pgopen" >&6; }
5637if test "x$ac_cv_lib_pgplot_pgopen" = xyes; then :
[351]5638  PGPLOTLIB="-lpgplot"
[107]5639fi
5640
[351]5641  ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
[352]5647  # Checks for extra libraries needed by PGPLOT -- will add -lg2c -lstdc++ to $LIBS
[788]5648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gerror_ in -lg2c" >&5
5649$as_echo_n "checking for gerror_ in -lg2c... " >&6; }
5650if ${ac_cv_lib_g2c_gerror_+:} false; then :
5651  $as_echo_n "(cached) " >&6
[352]5652else
5653  ac_check_lib_save_LIBS=$LIBS
5654LIBS="-lg2c  $LIBS"
[788]5655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[352]5656/* end confdefs.h.  */
5657
[763]5658/* Override any GCC internal prototype to avoid an error.
5659   Use char because int might match the return type of a GCC
5660   builtin and then its argument prototype would still apply.  */
[352]5661#ifdef __cplusplus
5662extern "C"
5663#endif
5664char gerror_ ();
5665int
5666main ()
5667{
[763]5668return gerror_ ();
[352]5669  ;
5670  return 0;
5671}
5672_ACEOF
[788]5673if ac_fn_c_try_link "$LINENO"; then :
[352]5674  ac_cv_lib_g2c_gerror_=yes
5675else
[788]5676  ac_cv_lib_g2c_gerror_=no
[352]5677fi
[788]5678rm -f core conftest.err conftest.$ac_objext \
5679    conftest$ac_exeext conftest.$ac_ext
[352]5680LIBS=$ac_check_lib_save_LIBS
5681fi
[788]5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_g2c_gerror_" >&5
5683$as_echo "$ac_cv_lib_g2c_gerror_" >&6; }
5684if test "x$ac_cv_lib_g2c_gerror_" = xyes; then :
[352]5685  cat >>confdefs.h <<_ACEOF
5686#define HAVE_LIBG2C 1
5687_ACEOF
5688
5689  LIBS="-lg2c $LIBS"
5690
5691fi
5692
[788]5693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
5694$as_echo_n "checking for main in -lstdc++... " >&6; }
5695if ${ac_cv_lib_stdcpp_main+:} false; then :
5696  $as_echo_n "(cached) " >&6
[352]5697else
5698  ac_check_lib_save_LIBS=$LIBS
5699LIBS="-lstdc++  $LIBS"
[788]5700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[352]5701/* end confdefs.h.  */
5702
5703
5704int
5705main ()
5706{
[763]5707return main ();
[352]5708  ;
5709  return 0;
5710}
5711_ACEOF
[788]5712if ac_fn_c_try_link "$LINENO"; then :
[352]5713  ac_cv_lib_stdcpp_main=yes
5714else
[788]5715  ac_cv_lib_stdcpp_main=no
[352]5716fi
[788]5717rm -f core conftest.err conftest.$ac_objext \
5718    conftest$ac_exeext conftest.$ac_ext
[352]5719LIBS=$ac_check_lib_save_LIBS
5720fi
[788]5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
5722$as_echo "$ac_cv_lib_stdcpp_main" >&6; }
5723if test "x$ac_cv_lib_stdcpp_main" = xyes; then :
[352]5724  cat >>confdefs.h <<_ACEOF
5725#define HAVE_LIBSTDC__ 1
5726_ACEOF
5727
5728  LIBS="-lstdc++ $LIBS"
5729
5730fi
5731
[351]5732  if test "x$F77" = xgfortran; then
5733    PGPLOTLIB="-lcpgplot $PGPLOTLIB"
[788]5734    { $as_echo "$as_me:${as_lineno-$LINENO}:  Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&5
5735$as_echo "$as_me:  Using gfortran, so manually adding -lcpgplot to PGPLOTLIB string." >&6;}
[351]5736  else
[788]5737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgopen in -lcpgplot" >&5
5738$as_echo_n "checking for cpgopen in -lcpgplot... " >&6; }
5739if ${ac_cv_lib_cpgplot_cpgopen+:} false; then :
5740  $as_echo_n "(cached) " >&6
[107]5741else
5742  ac_check_lib_save_LIBS=$LIBS
[351]5743LIBS="-lcpgplot $PGPLOTLIB $LIBS $EXTRAPGLIB $LIBS"
[788]5744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]5745/* end confdefs.h.  */
5746
[763]5747/* Override any GCC internal prototype to avoid an error.
5748   Use char because int might match the return type of a GCC
5749   builtin and then its argument prototype would still apply.  */
[107]5750#ifdef __cplusplus
5751extern "C"
5752#endif
5753char cpgopen ();
5754int
5755main ()
5756{
[763]5757return cpgopen ();
[107]5758  ;
5759  return 0;
5760}
5761_ACEOF
[788]5762if ac_fn_c_try_link "$LINENO"; then :
[107]5763  ac_cv_lib_cpgplot_cpgopen=yes
5764else
[788]5765  ac_cv_lib_cpgplot_cpgopen=no
[107]5766fi
[788]5767rm -f core conftest.err conftest.$ac_objext \
5768    conftest$ac_exeext conftest.$ac_ext
[107]5769LIBS=$ac_check_lib_save_LIBS
5770fi
[788]5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpgplot_cpgopen" >&5
5772$as_echo "$ac_cv_lib_cpgplot_cpgopen" >&6; }
5773if test "x$ac_cv_lib_cpgplot_cpgopen" = xyes; then :
[107]5774  PGPLOTLIB="-lcpgplot $PGPLOTLIB"
5775fi
5776
[351]5777  fi
[107]5778
[342]5779  # If PGPLOT is not present, we give a warning message but still continue.
5780  # The compilation is able to work without the PGPLOT-dependent files.
5781  if test "x$PGPLOTLIB" = x; then
[788]5782    { $as_echo "$as_me:${as_lineno-$LINENO}:
[342]5783      -------------------------------------------------------
5784      WARNING! PGPLOT could not be found.
5785      Compiling Duchamp without graphics capabilities.
5786      -------------------------------------------------------" >&5
[788]5787$as_echo "$as_me:
[342]5788      -------------------------------------------------------
5789      WARNING! PGPLOT could not be found.
5790      Compiling Duchamp without graphics capabilities.
5791      -------------------------------------------------------" >&6;}
[402]5792    #We have no pgplot, so we just link with g++ (or equivalent)
5793    LINKER=$CXX
[342]5794  else
[402]5795    #We are using pgplot, so link with the fortran compiler.
5796    LINKER=$F77
[351]5797    PGPLOTLIB="$PGPLOTLIB $EXTRAPGLIB $LIBS"
[788]5798    { $as_echo "$as_me:${as_lineno-$LINENO}: PGPLOT appears to be available." >&5
5799$as_echo "$as_me: PGPLOT appears to be available." >&6;}
[107]5800
[788]5801$as_echo "#define HAVE_PGPLOT 1" >>confdefs.h
[107]5802
[342]5803    for LIBDIR in $PGPLOTLIBDIRS ; do
[788]5804     as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcpgplot.a" | $as_tr_sh`
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcpgplot.a" >&5
5806$as_echo_n "checking for $LIBDIR/libcpgplot.a... " >&6; }
5807if eval \${$as_ac_File+:} false; then :
5808  $as_echo_n "(cached) " >&6
[342]5809else
5810  test "$cross_compiling" = yes &&
[788]5811  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[342]5812if test -r "$LIBDIR/libcpgplot.a"; then
5813  eval "$as_ac_File=yes"
5814else
5815  eval "$as_ac_File=no"
[107]5816fi
[342]5817fi
[788]5818eval ac_res=\$$as_ac_File
5819               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5820$as_echo "$ac_res" >&6; }
5821if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[342]5822  PGPLOTLIB="-L$LIBDIR $PGPLOTLIB"; break
5823fi
[107]5824
[806]5825     as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/lib/libcpgplot.a" | $as_tr_sh`
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/lib/libcpgplot.a" >&5
5827$as_echo_n "checking for $LIBDIR/lib/libcpgplot.a... " >&6; }
5828if eval \${$as_ac_File+:} false; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831  test "$cross_compiling" = yes &&
5832  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5833if test -r "$LIBDIR/lib/libcpgplot.a"; then
5834  eval "$as_ac_File=yes"
5835else
5836  eval "$as_ac_File=no"
5837fi
5838fi
5839eval ac_res=\$$as_ac_File
5840               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5841$as_echo "$ac_res" >&6; }
5842if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
5843  PGPLOTLIB="-L$LIBDIR/lib $PGPLOTLIB"; break
5844fi
5845
5846     as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/pgplot/libcpgplot.a" | $as_tr_sh`
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/pgplot/libcpgplot.a" >&5
5848$as_echo_n "checking for $LIBDIR/pgplot/libcpgplot.a... " >&6; }
5849if eval \${$as_ac_File+:} false; then :
5850  $as_echo_n "(cached) " >&6
5851else
5852  test "$cross_compiling" = yes &&
5853  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5854if test -r "$LIBDIR/pgplot/libcpgplot.a"; then
5855  eval "$as_ac_File=yes"
5856else
5857  eval "$as_ac_File=no"
5858fi
5859fi
5860eval ac_res=\$$as_ac_File
5861               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5862$as_echo "$ac_res" >&6; }
5863if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
5864  PGPLOTLIB="-L$LIBDIR/pgplot $PGPLOTLIB"; break
5865fi
5866
[342]5867    done
[805]5868#    if test "x$F77" = xgfortran; then
5869#      PGPLOTLIB="$PGPLOTLIB -bind_at_load"
5870#    fi
[342]5871  fi
[107]5872
[342]5873fi
[107]5874
[342]5875
5876
[384]5877
[107]5878##########################################################################
5879
5880##########################################################################
5881# Search for CFITSIO.
[342]5882# use --with-cfitsio=directory to specify a particular CFITSIO directory.
5883# else do the normal searching for libraries.
5884
[788]5885{ $as_echo "$as_me:${as_lineno-$LINENO}:   -- CFITSIO -- " >&5
5886$as_echo "$as_me:   -- CFITSIO -- " >&6;}
[342]5887
[763]5888# Check whether --with-cfitsio was given.
[788]5889if test "${with_cfitsio+set}" = set; then :
[763]5890  withval=$with_cfitsio;  #if we specify a directory...
[342]5891if test "x$withval" = xno; then
[788]5892  { $as_echo "$as_me:${as_lineno-$LINENO}:
[342]5893    The CFITSIO library is required.
5894    Ignoring the \"--with-cfitsio=no\" and searching for the library." >&5
[788]5895$as_echo "$as_me:
[342]5896    The CFITSIO library is required.
5897    Ignoring the \"--with-cfitsio=no\" and searching for the library." >&1;}
5898  CFITSIOINCDIRS=$INCDIRS
5899  CFITSIOLIBDIRS=$LIBDIRS
5900else
[788]5901  { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5
5902$as_echo "$as_me: Using directory \"$withval\"" >&6;}
[342]5903  CFITSIOINCDIRS="$withval \
5904              $withval/include"
5905  CFITSIOLIBDIRS="$withval \
5906              $withval/lib"
[351]5907  for LIBDIR in $CFITSIOLIBDIRS ; do
[788]5908    as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh`
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5
5910$as_echo_n "checking for $LIBDIR... " >&6; }
5911if eval \${$as_ac_File+:} false; then :
5912  $as_echo_n "(cached) " >&6
[107]5913else
5914  test "$cross_compiling" = yes &&
[788]5915  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]5916if test -r "$LIBDIR"; then
[107]5917  eval "$as_ac_File=yes"
5918else
5919  eval "$as_ac_File=no"
5920fi
5921fi
[788]5922eval ac_res=\$$as_ac_File
5923               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5924$as_echo "$ac_res" >&6; }
5925if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]5926  LDFLAGS="$LDFLAGS -L$LIBDIR"
5927else
5928  continue
[107]5929fi
5930
[351]5931  done
5932  for INCDIR in $CFITSIOINCDIRS ; do
[788]5933    as_ac_File=`$as_echo "ac_cv_file_$INCDIR" | $as_tr_sh`
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR" >&5
5935$as_echo_n "checking for $INCDIR... " >&6; }
5936if eval \${$as_ac_File+:} false; then :
5937  $as_echo_n "(cached) " >&6
[107]5938else
5939  test "$cross_compiling" = yes &&
[788]5940  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]5941if test -r "$INCDIR"; then
[107]5942  eval "$as_ac_File=yes"
5943else
5944  eval "$as_ac_File=no"
5945fi
5946fi
[788]5947eval ac_res=\$$as_ac_File
5948               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5949$as_echo "$ac_res" >&6; }
5950if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]5951  CPPFLAGS="$CPPFLAGS -I$INCDIR"
5952else
5953  continue
[107]5954fi
5955
[351]5956  done
5957fi
[107]5958
[351]5959else
5960   # if directory not specified, go searching.
5961CFITSIOINCDIRS=$INCDIRS
5962CFITSIOLIBDIRS=$LIBDIRS
5963
[763]5964fi
[351]5965
[763]5966
[351]5967for INCDIR in $CFITSIOINCDIRS ; do
[788]5968  as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh`
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5
5970$as_echo_n "checking for $INCDIR/fitsio.h... " >&6; }
5971if eval \${$as_ac_File+:} false; then :
5972  $as_echo_n "(cached) " >&6
[349]5973else
5974  test "$cross_compiling" = yes &&
[788]5975  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]5976if test -r "$INCDIR/fitsio.h"; then
[349]5977  eval "$as_ac_File=yes"
5978else
5979  eval "$as_ac_File=no"
5980fi
5981fi
[788]5982eval ac_res=\$$as_ac_File
5983               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5984$as_echo "$ac_res" >&6; }
5985if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]5986  CFITSIOINC=-I$INCDIR; break
[349]5987fi
5988
[351]5989  INCDIR=$INCDIR/cfitsio
[788]5990  as_ac_File=`$as_echo "ac_cv_file_$INCDIR/fitsio.h" | $as_tr_sh`
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/fitsio.h" >&5
5992$as_echo_n "checking for $INCDIR/fitsio.h... " >&6; }
5993if eval \${$as_ac_File+:} false; then :
5994  $as_echo_n "(cached) " >&6
[349]5995else
5996  test "$cross_compiling" = yes &&
[788]5997  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]5998if test -r "$INCDIR/fitsio.h"; then
[349]5999  eval "$as_ac_File=yes"
6000else
6001  eval "$as_ac_File=no"
6002fi
6003fi
[788]6004eval ac_res=\$$as_ac_File
6005               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6006$as_echo "$ac_res" >&6; }
6007if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]6008  CFITSIOINC=-I$INCDIR; break
[349]6009fi
6010
6011done
6012
[788]6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv in -lsocket" >&5
6014$as_echo_n "checking for recv in -lsocket... " >&6; }
6015if ${ac_cv_lib_socket_recv+:} false; then :
6016  $as_echo_n "(cached) " >&6
[107]6017else
6018  ac_check_lib_save_LIBS=$LIBS
6019LIBS="-lsocket $LIBS $LIBS"
[788]6020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]6021/* end confdefs.h.  */
6022
[763]6023/* Override any GCC internal prototype to avoid an error.
6024   Use char because int might match the return type of a GCC
6025   builtin and then its argument prototype would still apply.  */
[107]6026#ifdef __cplusplus
6027extern "C"
6028#endif
6029char recv ();
6030int
6031main ()
6032{
[763]6033return recv ();
[107]6034  ;
6035  return 0;
6036}
6037_ACEOF
[788]6038if ac_fn_c_try_link "$LINENO"; then :
[107]6039  ac_cv_lib_socket_recv=yes
6040else
[788]6041  ac_cv_lib_socket_recv=no
[107]6042fi
[788]6043rm -f core conftest.err conftest.$ac_objext \
6044    conftest$ac_exeext conftest.$ac_ext
[107]6045LIBS=$ac_check_lib_save_LIBS
6046fi
[788]6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_recv" >&5
6048$as_echo "$ac_cv_lib_socket_recv" >&6; }
6049if test "x$ac_cv_lib_socket_recv" = xyes; then :
[351]6050  CFITSIOLIB="$CFITSIOLIB -lsocket"
[107]6051fi
6052
[788]6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffopen in -lcfitsio" >&5
6054$as_echo_n "checking for ffopen in -lcfitsio... " >&6; }
6055if ${ac_cv_lib_cfitsio_ffopen+:} false; then :
6056  $as_echo_n "(cached) " >&6
[107]6057else
6058  ac_check_lib_save_LIBS=$LIBS
6059LIBS="-lcfitsio $CFITSIOLIB $LIBS $LIBS"
[788]6060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]6061/* end confdefs.h.  */
6062
[763]6063/* Override any GCC internal prototype to avoid an error.
6064   Use char because int might match the return type of a GCC
6065   builtin and then its argument prototype would still apply.  */
[107]6066#ifdef __cplusplus
6067extern "C"
6068#endif
6069char ffopen ();
6070int
6071main ()
6072{
[763]6073return ffopen ();
[107]6074  ;
6075  return 0;
6076}
6077_ACEOF
[788]6078if ac_fn_c_try_link "$LINENO"; then :
[107]6079  ac_cv_lib_cfitsio_ffopen=yes
6080else
[788]6081  ac_cv_lib_cfitsio_ffopen=no
[107]6082fi
[788]6083rm -f core conftest.err conftest.$ac_objext \
6084    conftest$ac_exeext conftest.$ac_ext
[107]6085LIBS=$ac_check_lib_save_LIBS
6086fi
[788]6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfitsio_ffopen" >&5
6088$as_echo "$ac_cv_lib_cfitsio_ffopen" >&6; }
6089if test "x$ac_cv_lib_cfitsio_ffopen" = xyes; then :
[351]6090  CFITSIOLIB="$CFITSIOLIB -lcfitsio"
[107]6091fi
6092
6093
[328]6094# CFITSIO is essential for Duchamp, so exit with error message if it
6095#   is not present.
[107]6096if test "x$CFITSIOINC" = x -o "x$CFITSIOLIB" = x; then
[788]6097  as_fn_error 1 "
[107]6098    -------------------------------------------------------
6099    Could not find the CFITSIO library.
6100
6101    ERROR: Duchamp configuration failure.
[788]6102    -------------------------------------------------------" "$LINENO" 5
[107]6103else
[788]6104  { $as_echo "$as_me:${as_lineno-$LINENO}: CFITSIO appears to be available." >&5
6105$as_echo "$as_me: CFITSIO appears to be available." >&6;}
[107]6106
[788]6107$as_echo "#define HAVE_CFITSIO 1" >>confdefs.h
[107]6108
[351]6109for LIBDIR in $CFITSIOLIBDIRS ; do
[788]6110  as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh`
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5
6112$as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; }
6113if eval \${$as_ac_File+:} false; then :
6114  $as_echo_n "(cached) " >&6
[351]6115else
6116  test "$cross_compiling" = yes &&
[788]6117  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]6118if test -r "$LIBDIR/libcfitsio.a"; then
6119  eval "$as_ac_File=yes"
6120else
6121  eval "$as_ac_File=no"
[107]6122fi
[351]6123fi
[788]6124eval ac_res=\$$as_ac_File
6125               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6126$as_echo "$ac_res" >&6; }
6127if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]6128  CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break
6129fi
[107]6130
[351]6131  LIBDIR=$LIBDIR/cfitsio
[788]6132  as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libcfitsio.a" | $as_tr_sh`
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libcfitsio.a" >&5
6134$as_echo_n "checking for $LIBDIR/libcfitsio.a... " >&6; }
6135if eval \${$as_ac_File+:} false; then :
6136  $as_echo_n "(cached) " >&6
[351]6137else
6138  test "$cross_compiling" = yes &&
[788]6139  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]6140if test -r "$LIBDIR/libcfitsio.a"; then
6141  eval "$as_ac_File=yes"
6142else
6143  eval "$as_ac_File=no"
6144fi
6145fi
[788]6146eval ac_res=\$$as_ac_File
6147               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6148$as_echo "$ac_res" >&6; }
6149if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]6150  CFITSIOLIB="-L$LIBDIR $CFITSIOLIB"; break
6151fi
[107]6152
[351]6153done
[107]6154
[351]6155fi
6156
6157
6158
[107]6159##########################################################################
6160
6161##########################################################################
6162# Search for WCSLIB.
[351]6163# use --with-wcslib=directory to specify a particular WCSLIB directory.
[342]6164# else do the normal searching for libraries.
6165
[788]6166{ $as_echo "$as_me:${as_lineno-$LINENO}:   -- WCSLIB -- " >&5
6167$as_echo "$as_me:   -- WCSLIB -- " >&6;}
[402]6168WCSINCDIR=""
[342]6169
[763]6170# Check whether --with-wcslib was given.
[788]6171if test "${with_wcslib+set}" = set; then :
[763]6172  withval=$with_wcslib;  #if we specify a directory...
[342]6173if test "x$withval" = xno; then
[788]6174  { $as_echo "$as_me:${as_lineno-$LINENO}:
[342]6175    The WCSLIB library is required.
6176    Ignoring the \"--with-wcslib=no\" and searching for the library." >&5
[788]6177$as_echo "$as_me:
[342]6178    The WCSLIB library is required.
6179    Ignoring the \"--with-wcslib=no\" and searching for the library." >&1;}
[351]6180  WCSINCDIRS=$INCDIRS
6181  WCSLIBDIRS=$LIBDIRS
[342]6182else
[788]6183  { $as_echo "$as_me:${as_lineno-$LINENO}: Using directory \"$withval\"" >&5
6184$as_echo "$as_me: Using directory \"$withval\"" >&6;}
[342]6185  WCSINCDIRS="$withval \
6186              $withval/include"
6187  WCSLIBDIRS="$withval \
6188              $withval/lib"
[351]6189  for LIBDIR in $WCSLIBDIRS ; do
[788]6190    as_ac_File=`$as_echo "ac_cv_file_$LIBDIR" | $as_tr_sh`
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR" >&5
6192$as_echo_n "checking for $LIBDIR... " >&6; }
6193if eval \${$as_ac_File+:} false; then :
6194  $as_echo_n "(cached) " >&6
[107]6195else
6196  test "$cross_compiling" = yes &&
[788]6197  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]6198if test -r "$LIBDIR"; then
[107]6199  eval "$as_ac_File=yes"
6200else
6201  eval "$as_ac_File=no"
6202fi
6203fi
[788]6204eval ac_res=\$$as_ac_File
6205               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6206$as_echo "$ac_res" >&6; }
6207if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]6208  LDFLAGS="$LDFLAGS -L$LIBDIR"
6209else
6210  continue
[107]6211fi
6212
[351]6213  done
6214  for INCDIR in $WCSINCDIRS ; do
[788]6215    as_ac_File=`$as_echo "ac_cv_file_$INCDIR/wcslib" | $as_tr_sh`
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCDIR/wcslib" >&5
6217$as_echo_n "checking for $INCDIR/wcslib... " >&6; }
6218if eval \${$as_ac_File+:} false; then :
6219  $as_echo_n "(cached) " >&6
[107]6220else
6221  test "$cross_compiling" = yes &&
[788]6222  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[402]6223if test -r "$INCDIR/wcslib"; then
[107]6224  eval "$as_ac_File=yes"
6225else
6226  eval "$as_ac_File=no"
6227fi
6228fi
[788]6229eval ac_res=\$$as_ac_File
6230               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6231$as_echo "$ac_res" >&6; }
6232if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[402]6233  CPPFLAGS="$CPPFLAGS -I$INCDIR"; WCSINCDIR=$INCDIR; break
[351]6234else
6235  continue
[107]6236fi
6237
[351]6238  done
[107]6239fi
6240
[351]6241else
6242   # if directory not specified, go searching.
6243WCSINCDIRS=$INCDIRS
6244WCSLIBDIRS=$LIBDIRS
6245
[763]6246fi
[351]6247
6248
[763]6249
[402]6250if test "x$WCSINCDIR" = x; then
6251  for INCBASE in $WCSINCDIRS ; do
[788]6252    as_ac_File=`$as_echo "ac_cv_file_$INCBASE/wcslib/wcs.h" | $as_tr_sh`
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $INCBASE/wcslib/wcs.h" >&5
6254$as_echo_n "checking for $INCBASE/wcslib/wcs.h... " >&6; }
6255if eval \${$as_ac_File+:} false; then :
6256  $as_echo_n "(cached) " >&6
[107]6257else
6258  test "$cross_compiling" = yes &&
[788]6259  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[402]6260if test -r "$INCBASE/wcslib/wcs.h"; then
[107]6261  eval "$as_ac_File=yes"
6262else
6263  eval "$as_ac_File=no"
6264fi
6265fi
[788]6266eval ac_res=\$$as_ac_File
6267               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6268$as_echo "$ac_res" >&6; }
6269if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[492]6270  WCSINC="-I$INCBASE -I$INCBASE/wcslib $WCSINC"; break
[349]6271fi
[402]6272
6273  done
[351]6274else
[788]6275  as_ac_File=`$as_echo "ac_cv_file_$WCSINCDIR/wcslib/wcs.h" | $as_tr_sh`
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $WCSINCDIR/wcslib/wcs.h" >&5
6277$as_echo_n "checking for $WCSINCDIR/wcslib/wcs.h... " >&6; }
6278if eval \${$as_ac_File+:} false; then :
6279  $as_echo_n "(cached) " >&6
[349]6280else
6281  test "$cross_compiling" = yes &&
[788]6282  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[402]6283if test -r "$WCSINCDIR/wcslib/wcs.h"; then
[349]6284  eval "$as_ac_File=yes"
6285else
6286  eval "$as_ac_File=no"
6287fi
6288fi
[788]6289eval ac_res=\$$as_ac_File
6290               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6291$as_echo "$ac_res" >&6; }
6292if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[492]6293  WCSINC="-I$WCSINCDIR -I$WCSINCDIR/wcslib $WCSINC"
[349]6294fi
6295
6296fi
6297
6298
[351]6299# Look for libwcs.a, and libpgsbox.a
[788]6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcss2p in -lwcs" >&5
6301$as_echo_n "checking for wcss2p in -lwcs... " >&6; }
6302if ${ac_cv_lib_wcs_wcss2p+:} false; then :
6303  $as_echo_n "(cached) " >&6
[107]6304else
6305  ac_check_lib_save_LIBS=$LIBS
[351]6306LIBS="-lwcs $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS"
[788]6307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]6308/* end confdefs.h.  */
6309
[763]6310/* Override any GCC internal prototype to avoid an error.
6311   Use char because int might match the return type of a GCC
6312   builtin and then its argument prototype would still apply.  */
[107]6313#ifdef __cplusplus
6314extern "C"
6315#endif
[351]6316char wcss2p ();
[107]6317int
6318main ()
6319{
[763]6320return wcss2p ();
[107]6321  ;
6322  return 0;
6323}
6324_ACEOF
[788]6325if ac_fn_c_try_link "$LINENO"; then :
[351]6326  ac_cv_lib_wcs_wcss2p=yes
[107]6327else
[788]6328  ac_cv_lib_wcs_wcss2p=no
[107]6329fi
[788]6330rm -f core conftest.err conftest.$ac_objext \
6331    conftest$ac_exeext conftest.$ac_ext
[107]6332LIBS=$ac_check_lib_save_LIBS
6333fi
[788]6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wcs_wcss2p" >&5
6335$as_echo "$ac_cv_lib_wcs_wcss2p" >&6; }
6336if test "x$ac_cv_lib_wcs_wcss2p" = xyes; then :
[351]6337  WCSLIB="$WCSLIB -lwcs"
[107]6338fi
6339
[826]6340
6341# Only use libpgsbox if we have pgplot enabled - determine this by testing the PGPLOTINCDIRS variable
6342if test "x$PGPLOTINCDIRS" != x; then
6343   if test "x$F77" = xgfortran; then
6344     WCSLIB="$WCSLIB -lpgsbox"
6345       { $as_echo "$as_me:${as_lineno-$LINENO}:  Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&5
[788]6346$as_echo "$as_me:  Using gfortran, so manually adding -lpgsbox to WCSLIB string." >&6;}
[826]6347   else
6348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpgsbox in -lpgsbox" >&5
[788]6349$as_echo_n "checking for cpgsbox in -lpgsbox... " >&6; }
6350if ${ac_cv_lib_pgsbox_cpgsbox+:} false; then :
6351  $as_echo_n "(cached) " >&6
[107]6352else
6353  ac_check_lib_save_LIBS=$LIBS
[351]6354LIBS="-lpgsbox $WCSLIB $LIBS $CFITSIOLIB $PGPLOTLIB $LIBS"
[788]6355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
[107]6356/* end confdefs.h.  */
6357
[763]6358/* Override any GCC internal prototype to avoid an error.
6359   Use char because int might match the return type of a GCC
6360   builtin and then its argument prototype would still apply.  */
[107]6361#ifdef __cplusplus
6362extern "C"
6363#endif
[351]6364char cpgsbox ();
[107]6365int
6366main ()
6367{
[763]6368return cpgsbox ();
[107]6369  ;
6370  return 0;
6371}
6372_ACEOF
[788]6373if ac_fn_c_try_link "$LINENO"; then :
[351]6374  ac_cv_lib_pgsbox_cpgsbox=yes
[107]6375else
[788]6376  ac_cv_lib_pgsbox_cpgsbox=no
[107]6377fi
[788]6378rm -f core conftest.err conftest.$ac_objext \
6379    conftest$ac_exeext conftest.$ac_ext
[107]6380LIBS=$ac_check_lib_save_LIBS
6381fi
[788]6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pgsbox_cpgsbox" >&5
6383$as_echo "$ac_cv_lib_pgsbox_cpgsbox" >&6; }
6384if test "x$ac_cv_lib_pgsbox_cpgsbox" = xyes; then :
[351]6385  WCSLIB="$WCSLIB -lpgsbox"
[107]6386fi
6387
[826]6388   fi
[351]6389fi
[107]6390
[328]6391# WCSLIB is essential for Duchamp, so exit with error message if it
6392#   is not present. Need at least libwcs to be available -- libpgsbox will
6393#   depend on PGPLOT being available, but is not critical.
[107]6394if test "x$WCSINC" = x -o "x$WCSLIB" = x; then
[788]6395  as_fn_error 1 "
[107]6396    -------------------------------------------------------
6397    Could not find the WCSLIB library.
6398
6399    ERROR: Duchamp configuration failure.
[788]6400    -------------------------------------------------------" "$LINENO" 5
[107]6401else
[788]6402  { $as_echo "$as_me:${as_lineno-$LINENO}: WCSLIB appears to be available." >&5
6403$as_echo "$as_me: WCSLIB appears to be available." >&6;}
[107]6404
[788]6405$as_echo "#define HAVE_WCSLIB 1" >>confdefs.h
[107]6406
[351]6407# Now add the -L statements to start of WCSLIB.
6408# Search for libwcs.a, and, if we find it, search for libpgsbox in same directory and
6409#   then in other directories, keeping the appropriate order of -L calls.
6410
[402]6411  DIRLIST=". \
6412           wcs \
6413           wcslib"
6414
[351]6415  for LIBBASE in $WCSLIBDIRS ; do
6416    for DIR in $DIRLIST; do
6417      if test "x$DIR" = x.; then
6418       LIBDIR=$LIBBASE
6419      else
6420       LIBDIR="$LIBBASE/$DIR"
6421      fi
[788]6422      as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libwcs.a" | $as_tr_sh`
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libwcs.a" >&5
6424$as_echo_n "checking for $LIBDIR/libwcs.a... " >&6; }
6425if eval \${$as_ac_File+:} false; then :
6426  $as_echo_n "(cached) " >&6
[351]6427else
6428  test "$cross_compiling" = yes &&
[788]6429  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]6430if test -r "$LIBDIR/libwcs.a"; then
6431  eval "$as_ac_File=yes"
6432else
6433  eval "$as_ac_File=no"
[107]6434fi
[351]6435fi
[788]6436eval ac_res=\$$as_ac_File
6437               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6438$as_echo "$ac_res" >&6; }
6439if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]6440  WCSLIBFRONT="-L$LIBDIR";
[788]6441             as_ac_File=`$as_echo "ac_cv_file_$LIBDIR/libpgsbox.a" | $as_tr_sh`
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR/libpgsbox.a" >&5
6443$as_echo_n "checking for $LIBDIR/libpgsbox.a... " >&6; }
6444if eval \${$as_ac_File+:} false; then :
6445  $as_echo_n "(cached) " >&6
[351]6446else
6447  test "$cross_compiling" = yes &&
[788]6448  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]6449if test -r "$LIBDIR/libpgsbox.a"; then
6450  eval "$as_ac_File=yes"
6451else
6452  eval "$as_ac_File=no"
6453fi
6454fi
[788]6455eval ac_res=\$$as_ac_File
6456               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6457$as_echo "$ac_res" >&6; }
6458if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
6459
[351]6460else
[107]6461
[351]6462               for LIBBASE2 in $WCSLIBDIRS ; do
6463                for DIR2 in $DIRLIST; do
6464                 if test "x$DIR" = x.; then
6465                  LIBDIR=$LIBBASE
6466                 else
6467                  LIBDIR="$LIBBASE/$DIR"
6468                 fi
[788]6469                 as_ac_File=`$as_echo "ac_cv_file_$LIBDIR2/libpgsbox.a" | $as_tr_sh`
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBDIR2/libpgsbox.a" >&5
6471$as_echo_n "checking for $LIBDIR2/libpgsbox.a... " >&6; }
6472if eval \${$as_ac_File+:} false; then :
6473  $as_echo_n "(cached) " >&6
[351]6474else
6475  test "$cross_compiling" = yes &&
[788]6476  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
[351]6477if test -r "$LIBDIR2/libpgsbox.a"; then
6478  eval "$as_ac_File=yes"
6479else
6480  eval "$as_ac_File=no"
6481fi
6482fi
[788]6483eval ac_res=\$$as_ac_File
6484               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6485$as_echo "$ac_res" >&6; }
6486if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
[351]6487  WCSLIBFRONT="$WCSLIB -L$LIBDIR2"; break
6488fi
[107]6489
[351]6490                done
6491               done
6492fi
[107]6493
[351]6494              break
6495fi
6496
6497    done
6498  done
6499  WCSLIB="$WCSLIBFRONT $WCSLIB"
6500fi
6501
6502
6503
[107]6504##########################################################################
6505
6506
6507
[763]6508ac_config_files="$ac_config_files Makefile"
[107]6509
6510cat >confcache <<\_ACEOF
6511# This file is a shell script that caches the results of configure
6512# tests run on this system so they can be shared between configure
6513# scripts and configure runs, see configure's option --config-cache.
6514# It is not useful on other systems.  If it contains results you don't
6515# want to keep, you may remove or edit it.
6516#
6517# config.status only pays attention to the cache file if you give it
6518# the --recheck option to rerun configure.
6519#
6520# `ac_cv_env_foo' variables (set or unset) will be overridden when
6521# loading this file, other *unset* `ac_cv_foo' will be assigned the
6522# following values.
6523
6524_ACEOF
6525
6526# The following way of writing the cache mishandles newlines in values,
6527# but we know of no workaround that is simple, portable, and efficient.
[763]6528# So, we kill variables containing newlines.
[107]6529# Ultrix sh set writes to stderr and can't be redirected directly,
6530# and sets the high bit in the cache file unless we assign to the vars.
[763]6531(
6532  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6533    eval ac_val=\$$ac_var
6534    case $ac_val in #(
6535    *${as_nl}*)
6536      case $ac_var in #(
[788]6537      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6538$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
[763]6539      esac
6540      case $ac_var in #(
6541      _ | IFS | as_nl) ;; #(
[788]6542      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6543      *) { eval $ac_var=; unset $ac_var;} ;;
[763]6544      esac ;;
6545    esac
6546  done
6547
[107]6548  (set) 2>&1 |
[763]6549    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6550    *${as_nl}ac_space=\ *)
[788]6551      # `set' does not quote correctly, so add quotes: double-quote
6552      # substitution turns \\\\ into \\, and sed turns \\ into \.
[107]6553      sed -n \
[349]6554        "s/'/'\\\\''/g;
6555          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
[763]6556      ;; #(
[107]6557    *)
6558      # `set' quotes correctly as required by POSIX, so do not add quotes.
[763]6559      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
[107]6560      ;;
[763]6561    esac |
6562    sort
6563) |
[107]6564  sed '
[763]6565     /^ac_cv_env_/b end
[107]6566     t clear
[763]6567     :clear
[107]6568     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6569     t end
[763]6570     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6571     :end' >>confcache
6572if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6573  if test -w "$cache_file"; then
[788]6574    if test "x$cache_file" != "x/dev/null"; then
6575      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6576$as_echo "$as_me: updating cache $cache_file" >&6;}
6577      if test ! -f "$cache_file" || test -h "$cache_file"; then
6578        cat confcache >"$cache_file"
6579      else
6580        case $cache_file in #(
6581        */* | ?:*)
6582          mv -f confcache "$cache_file"$$ &&
6583          mv -f "$cache_file"$$ "$cache_file" ;; #(
6584        *)
6585          mv -f confcache "$cache_file" ;;
6586        esac
6587      fi
6588    fi
[107]6589  else
[788]6590    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6591$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
[107]6592  fi
6593fi
6594rm -f confcache
6595
6596test "x$prefix" = xNONE && prefix=$ac_default_prefix
6597# Let make expand exec_prefix.
6598test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6599
6600DEFS=-DHAVE_CONFIG_H
6601
6602ac_libobjs=
6603ac_ltlibobjs=
[788]6604U=
[107]6605for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6606  # 1. Remove the extension, and $U if already installed.
[763]6607  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
[788]6608  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
[763]6609  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6610  #    will be set to the directory where LIBOBJS objects are built.
[788]6611  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6612  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
[107]6613done
6614LIBOBJS=$ac_libobjs
6615
6616LTLIBOBJS=$ac_ltlibobjs
6617
6618
6619
[788]6620: "${CONFIG_STATUS=./config.status}"
6621ac_write_fail=0
[107]6622ac_clean_files_save=$ac_clean_files
6623ac_clean_files="$ac_clean_files $CONFIG_STATUS"
[788]6624{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6625$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6626as_write_fail=0
6627cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
[107]6628#! $SHELL
6629# Generated by $as_me.
6630# Run this file to recreate the current configuration.
6631# Compiler output produced by configure, useful for debugging
6632# configure, is in config.log if it exists.
6633
6634debug=false
6635ac_cs_recheck=false
6636ac_cs_silent=false
[788]6637
[107]6638SHELL=\${CONFIG_SHELL-$SHELL}
[788]6639export SHELL
6640_ASEOF
6641cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6642## -------------------- ##
6643## M4sh Initialization. ##
6644## -------------------- ##
[107]6645
[763]6646# Be more Bourne compatible
6647DUALCASE=1; export DUALCASE # for MKS sh
[788]6648if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
[107]6649  emulate sh
6650  NULLCMD=:
[788]6651  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
[107]6652  # is contrary to our usage.  Disable this feature.
6653  alias -g '${1+"$@"}'='"$@"'
[763]6654  setopt NO_GLOB_SUBST
6655else
[788]6656  case `(set -o) 2>/dev/null` in #(
6657  *posix*) :
6658    set -o posix ;; #(
6659  *) :
6660     ;;
[763]6661esac
[107]6662fi
6663
[763]6664
[788]6665as_nl='
6666'
6667export as_nl
6668# Printing a long string crashes Solaris 7 /usr/bin/printf.
6669as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6670as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6671as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6672# Prefer a ksh shell builtin over an external printf program on Solaris,
6673# but without wasting forks for bash or zsh.
6674if test -z "$BASH_VERSION$ZSH_VERSION" \
6675    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6676  as_echo='print -r --'
6677  as_echo_n='print -rn --'
6678elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6679  as_echo='printf %s\n'
6680  as_echo_n='printf %s'
6681else
6682  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6683    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6684    as_echo_n='/usr/ucb/echo -n'
[763]6685  else
[788]6686    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6687    as_echo_n_body='eval
6688      arg=$1;
6689      case $arg in #(
6690      *"$as_nl"*)
6691        expr "X$arg" : "X\\(.*\\)$as_nl";
6692        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6693      esac;
6694      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6695    '
6696    export as_echo_n_body
6697    as_echo_n='sh -c $as_echo_n_body as_echo'
[763]6698  fi
[788]6699  export as_echo_body
6700  as_echo='sh -c $as_echo_body as_echo'
[763]6701fi
6702
[788]6703# The user is always right.
6704if test "${PATH_SEPARATOR+set}" != set; then
6705  PATH_SEPARATOR=:
6706  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6707    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6708      PATH_SEPARATOR=';'
6709  }
[107]6710fi
6711
6712
[763]6713# IFS
6714# We need space, tab and new line, in precisely that order.  Quoting is
6715# there to prevent editors from complaining about space-tab.
6716# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6717# splitting by setting IFS to empty value.)
6718IFS=" ""        $as_nl"
6719
6720# Find who we are.  Look in the path if we contain no directory separator.
[788]6721as_myself=
6722case $0 in #((
[763]6723  *[\\/]* ) as_myself=$0 ;;
6724  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727  IFS=$as_save_IFS
6728  test -z "$as_dir" && as_dir=.
[788]6729    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6730  done
[763]6731IFS=$as_save_IFS
6732
6733     ;;
6734esac
6735# We did not find ourselves, most probably we were run as `sh COMMAND'
6736# in which case we are not to be found in the path.
6737if test "x$as_myself" = x; then
6738  as_myself=$0
6739fi
6740if test ! -f "$as_myself"; then
[788]6741  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6742  exit 1
[763]6743fi
6744
[788]6745# Unset variables that we do not need and which cause bugs (e.g. in
6746# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6747# suppresses any "Segmentation fault" message there.  '((' could
6748# trigger a bug in pdksh 5.2.14.
6749for as_var in BASH_ENV ENV MAIL MAILPATH
6750do eval test x\${$as_var+set} = xset \
6751  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
[763]6752done
[107]6753PS1='$ '
6754PS2='> '
6755PS4='+ '
6756
6757# NLS nuisances.
[788]6758LC_ALL=C
6759export LC_ALL
6760LANGUAGE=C
6761export LANGUAGE
6762
6763# CDPATH.
6764(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6765
6766
6767# as_fn_error STATUS ERROR [LINENO LOG_FD]
6768# ----------------------------------------
6769# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6770# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6771# script with STATUS, using 1 if that was 0.
6772as_fn_error ()
6773{
6774  as_status=$1; test $as_status -eq 0 && as_status=1
6775  if test "$4"; then
6776    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6777    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
[107]6778  fi
[788]6779  $as_echo "$as_me: error: $2" >&2
6780  as_fn_exit $as_status
6781} # as_fn_error
[107]6782
[788]6783
6784# as_fn_set_status STATUS
6785# -----------------------
6786# Set $? to STATUS, without forking.
6787as_fn_set_status ()
6788{
6789  return $1
6790} # as_fn_set_status
6791
6792# as_fn_exit STATUS
6793# -----------------
6794# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6795as_fn_exit ()
6796{
6797  set +e
6798  as_fn_set_status $1
6799  exit $1
6800} # as_fn_exit
6801
6802# as_fn_unset VAR
6803# ---------------
6804# Portably unset VAR.
6805as_fn_unset ()
6806{
6807  { eval $1=; unset $1;}
6808}
6809as_unset=as_fn_unset
6810# as_fn_append VAR VALUE
6811# ----------------------
6812# Append the text in VALUE to the end of the definition contained in VAR. Take
6813# advantage of any shell optimizations that allow amortized linear growth over
6814# repeated appends, instead of the typical quadratic growth present in naive
6815# implementations.
6816if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6817  eval 'as_fn_append ()
6818  {
6819    eval $1+=\$2
6820  }'
6821else
6822  as_fn_append ()
6823  {
6824    eval $1=\$$1\$2
6825  }
6826fi # as_fn_append
6827
6828# as_fn_arith ARG...
6829# ------------------
6830# Perform arithmetic evaluation on the ARGs, and store the result in the
6831# global $as_val. Take advantage of shells that can avoid forks. The arguments
6832# must be portable across $(()) and expr.
6833if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6834  eval 'as_fn_arith ()
6835  {
6836    as_val=$(( $* ))
6837  }'
6838else
6839  as_fn_arith ()
6840  {
6841    as_val=`expr "$@" || test $? -eq 1`
6842  }
6843fi # as_fn_arith
6844
6845
[763]6846if expr a : '\(a\)' >/dev/null 2>&1 &&
6847   test "X`expr 00001 : '.*\(...\)'`" = X001; then
[107]6848  as_expr=expr
6849else
6850  as_expr=false
6851fi
6852
[763]6853if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
[107]6854  as_basename=basename
6855else
6856  as_basename=false
6857fi
6858
[788]6859if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6860  as_dirname=dirname
6861else
6862  as_dirname=false
6863fi
[107]6864
[763]6865as_me=`$as_basename -- "$0" ||
[107]6866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6867         X"$0" : 'X\(//\)$' \| \
[763]6868         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
[788]6869$as_echo X/"$0" |
[763]6870    sed '/^.*\/\([^/][^/]*\)\/*$/{
6871            s//\1/
6872            q
6873          }
6874          /^X\/\(\/\/\)$/{
6875            s//\1/
6876            q
6877          }
6878          /^X\/\(\/\).*/{
6879            s//\1/
6880            q
6881          }
6882          s/.*/./; q'`
[107]6883
[788]6884# Avoid depending upon Character Ranges.
6885as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6886as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6887as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6888as_cr_digits='0123456789'
6889as_cr_alnum=$as_cr_Letters$as_cr_digits
[107]6890
[763]6891ECHO_C= ECHO_N= ECHO_T=
[788]6892case `echo -n x` in #(((((
[763]6893-n*)
[788]6894  case `echo 'xy\c'` in
[763]6895  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
[788]6896  xy)  ECHO_C='\c';;
6897  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6898       ECHO_T=' ';;
[763]6899  esac;;
6900*)
6901  ECHO_N='-n';;
[107]6902esac
6903
6904rm -f conf$$ conf$$.exe conf$$.file
[763]6905if test -d conf$$.dir; then
6906  rm -f conf$$.dir/conf$$.file
6907else
6908  rm -f conf$$.dir
[788]6909  mkdir conf$$.dir 2>/dev/null
[763]6910fi
[788]6911if (echo >conf$$.file) 2>/dev/null; then
6912  if ln -s conf$$.file conf$$ 2>/dev/null; then
6913    as_ln_s='ln -s'
6914    # ... but there are two gotchas:
6915    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6916    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
[1088]6917    # In both cases, we have to default to `cp -pR'.
[788]6918    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
[1088]6919      as_ln_s='cp -pR'
[788]6920  elif ln conf$$.file conf$$ 2>/dev/null; then
6921    as_ln_s=ln
6922  else
[1088]6923    as_ln_s='cp -pR'
[788]6924  fi
[107]6925else
[1088]6926  as_ln_s='cp -pR'
[107]6927fi
[763]6928rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6929rmdir conf$$.dir 2>/dev/null
[107]6930
[788]6931
6932# as_fn_mkdir_p
6933# -------------
6934# Create "$as_dir" as a directory, including parents if necessary.
6935as_fn_mkdir_p ()
6936{
6937
6938  case $as_dir in #(
6939  -*) as_dir=./$as_dir;;
6940  esac
6941  test -d "$as_dir" || eval $as_mkdir_p || {
6942    as_dirs=
6943    while :; do
6944      case $as_dir in #(
6945      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6946      *) as_qdir=$as_dir;;
6947      esac
6948      as_dirs="'$as_qdir' $as_dirs"
6949      as_dir=`$as_dirname -- "$as_dir" ||
6950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6951         X"$as_dir" : 'X\(//\)[^/]' \| \
6952         X"$as_dir" : 'X\(//\)$' \| \
6953         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6954$as_echo X"$as_dir" |
6955    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6956            s//\1/
6957            q
6958          }
6959          /^X\(\/\/\)[^/].*/{
6960            s//\1/
6961            q
6962          }
6963          /^X\(\/\/\)$/{
6964            s//\1/
6965            q
6966          }
6967          /^X\(\/\).*/{
6968            s//\1/
6969            q
6970          }
6971          s/.*/./; q'`
6972      test -d "$as_dir" && break
6973    done
6974    test -z "$as_dirs" || eval "mkdir $as_dirs"
6975  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6976
6977
6978} # as_fn_mkdir_p
[107]6979if mkdir -p . 2>/dev/null; then
[788]6980  as_mkdir_p='mkdir -p "$as_dir"'
[107]6981else
[349]6982  test -d ./-p && rmdir ./-p
[107]6983  as_mkdir_p=false
6984fi
6985
6986
[1088]6987# as_fn_executable_p FILE
6988# -----------------------
6989# Test if FILE is an executable regular file.
6990as_fn_executable_p ()
6991{
6992  test -f "$1" && test -x "$1"
6993} # as_fn_executable_p
6994as_test_x='test -x'
6995as_executable_p=as_fn_executable_p
6996
[107]6997# Sed expression to map a string onto a valid CPP name.
[349]6998as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
[107]6999
7000# Sed expression to map a string onto a valid variable name.
[349]7001as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
[107]7002
7003
7004exec 6>&1
[788]7005## ----------------------------------- ##
7006## Main body of $CONFIG_STATUS script. ##
7007## ----------------------------------- ##
7008_ASEOF
7009test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
[107]7010
[788]7011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7012# Save the log message, to keep $0 and so on meaningful, and to
[107]7013# report actual input values of CONFIG_FILES etc. instead of their
[763]7014# values after options handling.
7015ac_log="
[1213]7016This file was extended by Duchamp $as_me 1.3.2, which was
[1088]7017generated by GNU Autoconf 2.69.  Invocation command line was
[107]7018
7019  CONFIG_FILES    = $CONFIG_FILES
7020  CONFIG_HEADERS  = $CONFIG_HEADERS
7021  CONFIG_LINKS    = $CONFIG_LINKS
7022  CONFIG_COMMANDS = $CONFIG_COMMANDS
7023  $ $0 $@
7024
[763]7025on `(hostname || uname -n) 2>/dev/null | sed 1q`
7026"
7027
[107]7028_ACEOF
7029
[788]7030case $ac_config_files in *"
7031"*) set x $ac_config_files; shift; ac_config_files=$*;;
7032esac
7033
7034case $ac_config_headers in *"
7035"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7036esac
7037
7038
7039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
[107]7040# Files that config.status was made for.
[763]7041config_files="$ac_config_files"
7042config_headers="$ac_config_headers"
[107]7043
[763]7044_ACEOF
[107]7045
[788]7046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[107]7047ac_cs_usage="\
[788]7048\`$as_me' instantiates files and other configuration actions
7049from templates according to the current configuration.  Unless the files
7050and actions are specified as TAGs, all are instantiated by default.
[107]7051
[788]7052Usage: $0 [OPTION]... [TAG]...
[107]7053
7054  -h, --help       print this help, then exit
[763]7055  -V, --version    print version number and configuration settings, then exit
[788]7056      --config     print configuration, then exit
7057  -q, --quiet, --silent
7058                   do not print progress messages
[107]7059  -d, --debug      don't remove temporary files
7060      --recheck    update $as_me by reconfiguring in the same conditions
[788]7061      --file=FILE[:TEMPLATE]
7062                   instantiate the configuration file FILE
7063      --header=FILE[:TEMPLATE]
7064                   instantiate the configuration header FILE
[107]7065
7066Configuration files:
7067$config_files
7068
7069Configuration headers:
7070$config_headers
7071
[788]7072Report bugs to <Matthew.Whiting@csiro.au>."
[763]7073
[107]7074_ACEOF
[788]7075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7076ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
[107]7077ac_cs_version="\\
[1213]7078Duchamp config.status 1.3.2
[1088]7079configured by $0, generated by GNU Autoconf 2.69,
[788]7080  with options \\"\$ac_cs_config\\"
[107]7081
[1088]7082Copyright (C) 2012 Free Software Foundation, Inc.
[107]7083This config.status script is free software; the Free Software Foundation
7084gives unlimited permission to copy, distribute and modify it."
[763]7085
7086ac_pwd='$ac_pwd'
7087srcdir='$srcdir'
[788]7088test -n "\$AWK" || AWK=awk
[107]7089_ACEOF
7090
[788]7091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7092# The default lists apply if the user does not specify any file.
[107]7093ac_need_defaults=:
7094while test $# != 0
7095do
7096  case $1 in
[788]7097  --*=?*)
[763]7098    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7099    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
[107]7100    ac_shift=:
7101    ;;
[788]7102  --*=)
7103    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7104    ac_optarg=
7105    ac_shift=:
7106    ;;
[763]7107  *)
[107]7108    ac_option=$1
7109    ac_optarg=$2
7110    ac_shift=shift
7111    ;;
7112  esac
7113
7114  case $ac_option in
7115  # Handling of the options.
7116  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7117    ac_cs_recheck=: ;;
[763]7118  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
[788]7119    $as_echo "$ac_cs_version"; exit ;;
7120  --config | --confi | --conf | --con | --co | --c )
7121    $as_echo "$ac_cs_config"; exit ;;
[763]7122  --debug | --debu | --deb | --de | --d | -d )
[107]7123    debug=: ;;
7124  --file | --fil | --fi | --f )
7125    $ac_shift
[788]7126    case $ac_optarg in
7127    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7128    '') as_fn_error $? "missing file argument" ;;
7129    esac
7130    as_fn_append CONFIG_FILES " '$ac_optarg'"
[107]7131    ac_need_defaults=false;;
7132  --header | --heade | --head | --hea )
7133    $ac_shift
[788]7134    case $ac_optarg in
7135    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7136    esac
7137    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
[107]7138    ac_need_defaults=false;;
[763]7139  --he | --h)
7140    # Conflict between --help and --header
[788]7141    as_fn_error $? "ambiguous option: \`$1'
7142Try \`$0 --help' for more information.";;
[763]7143  --help | --hel | -h )
[788]7144    $as_echo "$ac_cs_usage"; exit ;;
[107]7145  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7146  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7147    ac_cs_silent=: ;;
7148
7149  # This is an error.
[788]7150  -*) as_fn_error $? "unrecognized option: \`$1'
7151Try \`$0 --help' for more information." ;;
[107]7152
[788]7153  *) as_fn_append ac_config_targets " $1"
[763]7154     ac_need_defaults=false ;;
[107]7155
7156  esac
7157  shift
7158done
7159
7160ac_configure_extra_args=
7161
7162if $ac_cs_silent; then
7163  exec 6>/dev/null
7164  ac_configure_extra_args="$ac_configure_extra_args --silent"
7165fi
7166
7167_ACEOF
[788]7168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
[107]7169if \$ac_cs_recheck; then
[1088]7170  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
[788]7171  shift
7172  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7173  CONFIG_SHELL='$SHELL'
[763]7174  export CONFIG_SHELL
[788]7175  exec "\$@"
[107]7176fi
7177
7178_ACEOF
[788]7179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[763]7180exec 5>>config.log
7181{
7182  echo
7183  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7184## Running $as_me. ##
7185_ASBOX
[788]7186  $as_echo "$ac_log"
[763]7187} >&5
[107]7188
[763]7189_ACEOF
[788]7190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
[763]7191_ACEOF
[107]7192
[788]7193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[107]7194
[763]7195# Handling of arguments.
[107]7196for ac_config_target in $ac_config_targets
7197do
[763]7198  case $ac_config_target in
7199    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7200    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7201
[788]7202  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
[107]7203  esac
7204done
7205
[763]7206
[107]7207# If the user did not use the arguments to specify the items to instantiate,
7208# then the envvar interface is used.  Set only those that are not.
7209# We use the long form for the default assignment because of an extremely
7210# bizarre bug on SunOS 4.1.3.
7211if $ac_need_defaults; then
7212  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7213  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7214fi
7215
7216# Have a temporary directory for convenience.  Make it in the build tree
[763]7217# simply because there is no reason against having it here, and in addition,
[107]7218# creating and moving files from /tmp can sometimes cause problems.
[763]7219# Hook for its removal unless debugging.
7220# Note that there is a small window in which the directory will not be cleaned:
7221# after its creation but before its name has been assigned to `$tmp'.
[107]7222$debug ||
7223{
[788]7224  tmp= ac_tmp=
[763]7225  trap 'exit_status=$?
[788]7226  : "${ac_tmp:=$tmp}"
7227  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
[763]7228' 0
[788]7229  trap 'as_fn_exit 1' 1 2 13 15
[107]7230}
7231# Create a (secure) tmp directory for tmp files.
7232
7233{
[763]7234  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
[788]7235  test -d "$tmp"
[107]7236}  ||
7237{
[763]7238  tmp=./conf$$-$RANDOM
7239  (umask 077 && mkdir "$tmp")
[788]7240} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7241ac_tmp=$tmp
[107]7242
[788]7243# Set up the scripts for CONFIG_FILES section.
7244# No need to generate them if there are no CONFIG_FILES.
7245# This happens for instance with `./config.status config.h'.
[763]7246if test -n "$CONFIG_FILES"; then
[107]7247
[788]7248
7249ac_cr=`echo X | tr X '\015'`
7250# On cygwin, bash can eat \r inside `` if the user requested igncr.
7251# But we know of no other shell where ac_cr would be empty at this
7252# point, so we can use a bashism as a fallback.
7253if test "x$ac_cr" = x; then
7254  eval ac_cr=\$\'\\r\'
7255fi
7256ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7257if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7258  ac_cs_awk_cr='\\r'
7259else
7260  ac_cs_awk_cr=$ac_cr
7261fi
7262
7263echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
[107]7264_ACEOF
7265
[763]7266
[788]7267{
7268  echo "cat >conf$$subs.awk <<_ACEOF" &&
7269  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7270  echo "_ACEOF"
7271} >conf$$subs.sh ||
7272  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7273ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
[763]7274ac_delim='%!_!# '
7275for ac_last_try in false false false false false :; do
[788]7276  . ./conf$$subs.sh ||
7277    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
[763]7278
[788]7279  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7280  if test $ac_delim_n = $ac_delim_num; then
[763]7281    break
7282  elif $ac_last_try; then
[788]7283    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
[763]7284  else
7285    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
[107]7286  fi
[763]7287done
[788]7288rm -f conf$$subs.sh
[107]7289
[788]7290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7291cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7292_ACEOF
7293sed -n '
7294h
7295s/^/S["/; s/!.*/"]=/
7296p
7297g
7298s/^[^!]*!//
7299:repl
7300t repl
7301s/'"$ac_delim"'$//
7302t delim
7303:nl
7304h
7305s/\(.\{148\}\)..*/\1/
7306t more1
7307s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7308p
7309n
7310b repl
7311:more1
7312s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7313p
7314g
7315s/.\{148\}//
7316t nl
7317:delim
7318h
7319s/\(.\{148\}\)..*/\1/
7320t more2
7321s/["\\]/\\&/g; s/^/"/; s/$/"/
7322p
7323b
7324:more2
7325s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7326p
7327g
7328s/.\{148\}//
7329t delim
7330' <conf$$subs.awk | sed '
7331/^[^""]/{
7332  N
7333  s/\n//
7334}
7335' >>$CONFIG_STATUS || ac_write_fail=1
7336rm -f conf$$subs.awk
7337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7338_ACAWK
7339cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7340  for (key in S) S_is_set[key] = 1
7341  FS = ""
[763]7342
[788]7343}
7344{
7345  line = $ 0
7346  nfields = split(line, field, "@")
7347  substed = 0
7348  len = length(field[1])
7349  for (i = 2; i < nfields; i++) {
7350    key = field[i]
7351    keylen = length(key)
7352    if (S_is_set[key]) {
7353      value = S[key]
7354      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7355      len += length(value) + length(field[++i])
7356      substed = 1
7357    } else
7358      len += 1 + keylen
7359  }
7360
7361  print line
7362}
7363
7364_ACAWK
[107]7365_ACEOF
[788]7366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7367if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7368  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7369else
7370  cat
7371fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7372  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
[763]7373_ACEOF
7374
[788]7375# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7376# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
[763]7377# trailing colons and then remove the whole line if VPATH becomes empty
7378# (actually we leave an empty line to preserve line numbers).
7379if test "x$srcdir" = x.; then
[788]7380  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7381h
7382s///
7383s/^/:/
7384s/[      ]*$/:/
7385s/:\$(srcdir):/:/g
7386s/:\${srcdir}:/:/g
7387s/:@srcdir@:/:/g
7388s/^:*//
[763]7389s/:*$//
[788]7390x
7391s/\(=[   ]*\).*/\1/
7392G
7393s/\n//
[763]7394s/^[^=]*=[       ]*$//
7395}'
7396fi
7397
[788]7398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[763]7399fi # test -n "$CONFIG_FILES"
7400
[788]7401# Set up the scripts for CONFIG_HEADERS section.
7402# No need to generate them if there are no CONFIG_HEADERS.
7403# This happens for instance with `./config.status Makefile'.
7404if test -n "$CONFIG_HEADERS"; then
7405cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7406BEGIN {
7407_ACEOF
[763]7408
[788]7409# Transform confdefs.h into an awk script `defines.awk', embedded as
7410# here-document in config.status, that substitutes the proper values into
7411# config.h.in to produce config.h.
7412
7413# Create a delimiter string that does not exist in confdefs.h, to ease
7414# handling of long lines.
7415ac_delim='%!_!# '
7416for ac_last_try in false false :; do
7417  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7418  if test -z "$ac_tt"; then
7419    break
7420  elif $ac_last_try; then
7421    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7422  else
7423    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7424  fi
7425done
7426
7427# For the awk script, D is an array of macro values keyed by name,
7428# likewise P contains macro parameters if any.  Preserve backslash
7429# newline sequences.
7430
7431ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7432sed -n '
7433s/.\{148\}/&'"$ac_delim"'/g
7434t rset
7435:rset
7436s/^[     ]*#[    ]*define[       ][      ]*/ /
7437t def
7438d
7439:def
7440s/\\$//
7441t bsnl
7442s/["\\]/\\&/g
7443s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7444D["\1"]=" \3"/p
7445s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
7446d
7447:bsnl
7448s/["\\]/\\&/g
7449s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
7450D["\1"]=" \3\\\\\\n"\\/p
7451t cont
7452s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7453t cont
7454d
7455:cont
7456n
7457s/.\{148\}/&'"$ac_delim"'/g
7458t clear
7459:clear
7460s/\\$//
7461t bsnlc
7462s/["\\]/\\&/g; s/^/"/; s/$/"/p
7463d
7464:bsnlc
7465s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7466b cont
7467' <confdefs.h | sed '
7468s/'"$ac_delim"'/"\\\
7469"/g' >>$CONFIG_STATUS || ac_write_fail=1
7470
7471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7472  for (key in D) D_is_set[key] = 1
7473  FS = ""
7474}
7475/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7476  line = \$ 0
7477  split(line, arg, " ")
7478  if (arg[1] == "#") {
7479    defundef = arg[2]
7480    mac1 = arg[3]
7481  } else {
7482    defundef = substr(arg[1], 2)
7483    mac1 = arg[2]
7484  }
7485  split(mac1, mac2, "(") #)
7486  macro = mac2[1]
7487  prefix = substr(line, 1, index(line, defundef) - 1)
7488  if (D_is_set[macro]) {
7489    # Preserve the white space surrounding the "#".
7490    print prefix "define", macro P[macro] D[macro]
7491    next
7492  } else {
7493    # Replace #undef with comments.  This is necessary, for example,
7494    # in the case of _POSIX_SOURCE, which is predefined and required
7495    # on some systems where configure will not decide to define it.
7496    if (defundef == "undef") {
7497      print "/*", prefix defundef, macro, "*/"
7498      next
7499    }
7500  }
7501}
7502{ print }
7503_ACAWK
7504_ACEOF
7505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7506  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7507fi # test -n "$CONFIG_HEADERS"
7508
7509
7510eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7511shift
7512for ac_tag
[763]7513do
7514  case $ac_tag in
7515  :[FHLC]) ac_mode=$ac_tag; continue;;
[107]7516  esac
[763]7517  case $ac_mode$ac_tag in
7518  :[FHL]*:*);;
[788]7519  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
[763]7520  :[FH]-) ac_tag=-:-;;
7521  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7522  esac
7523  ac_save_IFS=$IFS
7524  IFS=:
7525  set x $ac_tag
7526  IFS=$ac_save_IFS
7527  shift
7528  ac_file=$1
7529  shift
[107]7530
[763]7531  case $ac_mode in
7532  :L) ac_source=$1;;
7533  :[FH])
7534    ac_file_inputs=
7535    for ac_f
7536    do
7537      case $ac_f in
[788]7538      -) ac_f="$ac_tmp/stdin";;
[763]7539      *) # Look for the file first in the build tree, then in the source tree
7540         # (if the path is not absolute).  The absolute path cannot be DOS-style,
7541         # because $ac_f cannot contain `:'.
7542         test -f "$ac_f" ||
7543           case $ac_f in
7544           [\\/$]*) false;;
7545           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7546           esac ||
[788]7547           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
[763]7548      esac
[788]7549      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7550      as_fn_append ac_file_inputs " '$ac_f'"
[763]7551    done
7552
7553    # Let's still pretend it is `configure' which instantiates (i.e., don't
7554    # use $as_me), people would be surprised to read:
7555    #    /* config.h.  Generated by config.status.  */
[788]7556    configure_input='Generated from '`
7557          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7558        `' by configure.'
[763]7559    if test x"$ac_file" != x-; then
7560      configure_input="$ac_file.  $configure_input"
[788]7561      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7562$as_echo "$as_me: creating $ac_file" >&6;}
[763]7563    fi
[788]7564    # Neutralize special characters interpreted by sed in replacement strings.
7565    case $configure_input in #(
7566    *\&* | *\|* | *\\* )
7567       ac_sed_conf_input=`$as_echo "$configure_input" |
7568       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7569    *) ac_sed_conf_input=$configure_input;;
7570    esac
[763]7571
7572    case $ac_tag in
[788]7573    *:-:* | *:-) cat >"$ac_tmp/stdin" \
7574      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
[763]7575    esac
7576    ;;
7577  esac
7578
7579  ac_dir=`$as_dirname -- "$ac_file" ||
[107]7580$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
[349]7581         X"$ac_file" : 'X\(//\)[^/]' \| \
7582         X"$ac_file" : 'X\(//\)$' \| \
[763]7583         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
[788]7584$as_echo X"$ac_file" |
[763]7585    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7586            s//\1/
7587            q
7588          }
7589          /^X\(\/\/\)[^/].*/{
7590            s//\1/
7591            q
7592          }
7593          /^X\(\/\/\)$/{
7594            s//\1/
7595            q
7596          }
7597          /^X\(\/\).*/{
7598            s//\1/
7599            q
7600          }
7601          s/.*/./; q'`
[788]7602  as_dir="$ac_dir"; as_fn_mkdir_p
[107]7603  ac_builddir=.
7604
[763]7605case "$ac_dir" in
7606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7607*)
[788]7608  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
[763]7609  # A ".." for each directory in $ac_dir_suffix.
[788]7610  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
[763]7611  case $ac_top_builddir_sub in
7612  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7613  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7614  esac ;;
7615esac
7616ac_abs_top_builddir=$ac_pwd
7617ac_abs_builddir=$ac_pwd$ac_dir_suffix
7618# for backward compatibility:
7619ac_top_builddir=$ac_top_build_prefix
[107]7620
7621case $srcdir in
[763]7622  .)  # We are building in place.
[107]7623    ac_srcdir=.
[763]7624    ac_top_srcdir=$ac_top_builddir_sub
7625    ac_abs_top_srcdir=$ac_pwd ;;
7626  [\\/]* | ?:[\\/]* )  # Absolute name.
[107]7627    ac_srcdir=$srcdir$ac_dir_suffix;
[763]7628    ac_top_srcdir=$srcdir
7629    ac_abs_top_srcdir=$srcdir ;;
7630  *) # Relative name.
7631    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7632    ac_top_srcdir=$ac_top_build_prefix$srcdir
7633    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
[107]7634esac
[763]7635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
[107]7636
7637
[763]7638  case $ac_mode in
7639  :F)
7640  #
7641  # CONFIG_FILE
7642  #
[107]7643
[763]7644_ACEOF
[349]7645
[788]7646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[763]7647# If the template does not know about datarootdir, expand it.
7648# FIXME: This hack should be removed a few years after 2.60.
7649ac_datarootdir_hack=; ac_datarootdir_seen=
[788]7650ac_sed_dataroot='
7651/datarootdir/ {
[763]7652  p
7653  q
7654}
7655/@datadir@/p
7656/@docdir@/p
7657/@infodir@/p
7658/@localedir@/p
[788]7659/@mandir@/p'
7660case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
[763]7661*datarootdir*) ac_datarootdir_seen=yes;;
7662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
[788]7663  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7664$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
[107]7665_ACEOF
[788]7666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
[763]7667  ac_datarootdir_hack='
7668  s&@datadir@&$datadir&g
7669  s&@docdir@&$docdir&g
7670  s&@infodir@&$infodir&g
7671  s&@localedir@&$localedir&g
7672  s&@mandir@&$mandir&g
[788]7673  s&\\\${datarootdir}&$datarootdir&g' ;;
[763]7674esac
7675_ACEOF
7676
7677# Neutralize VPATH when `$srcdir' = `.'.
7678# Shell code in configure.ac might set extrasub.
7679# FIXME: do we really want to maintain this feature?
[788]7680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7681ac_sed_extra="$ac_vpsub
[107]7682$extrasub
7683_ACEOF
[788]7684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
[107]7685:t
7686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
[788]7687s|@configure_input@|$ac_sed_conf_input|;t t
[763]7688s&@top_builddir@&$ac_top_builddir_sub&;t t
[788]7689s&@top_build_prefix@&$ac_top_build_prefix&;t t
[763]7690s&@srcdir@&$ac_srcdir&;t t
7691s&@abs_srcdir@&$ac_abs_srcdir&;t t
7692s&@top_srcdir@&$ac_top_srcdir&;t t
7693s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7694s&@builddir@&$ac_builddir&;t t
7695s&@abs_builddir@&$ac_abs_builddir&;t t
7696s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7697$ac_datarootdir_hack
[788]7698"
7699eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7700  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
[107]7701
[763]7702test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
[788]7703  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7704  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7705      "$ac_tmp/out"`; test -z "$ac_out"; } &&
7706  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7707which seems to be undefined.  Please make sure it is defined" >&5
7708$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7709which seems to be undefined.  Please make sure it is defined" >&2;}
[107]7710
[788]7711  rm -f "$ac_tmp/stdin"
[107]7712  case $ac_file in
[788]7713  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7714  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7715  esac \
7716  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
[763]7717 ;;
7718  :H)
7719  #
7720  # CONFIG_HEADER
7721  #
[107]7722  if test x"$ac_file" != x-; then
[788]7723    {
7724      $as_echo "/* $configure_input  */" \
7725      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7726    } >"$ac_tmp/config.h" \
7727      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7728    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7729      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7730$as_echo "$as_me: $ac_file is unchanged" >&6;}
[107]7731    else
[788]7732      rm -f "$ac_file"
7733      mv "$ac_tmp/config.h" "$ac_file" \
7734        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
[107]7735    fi
7736  else
[788]7737    $as_echo "/* $configure_input  */" \
7738      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7739      || as_fn_error $? "could not create -" "$LINENO" 5
[107]7740  fi
[763]7741 ;;
[107]7742
7743
[763]7744  esac
7745
7746done # for ac_tag
7747
7748
[788]7749as_fn_exit 0
[107]7750_ACEOF
7751ac_clean_files=$ac_clean_files_save
7752
[788]7753test $ac_write_fail = 0 ||
7754  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
[107]7755
[788]7756
[107]7757# configure is writing to config.log, and then calls config.status.
7758# config.status does its own redirection, appending to config.log.
7759# Unfortunately, on DOS this fails, as config.log is still kept open
7760# by configure, so config.status won't be able to write to it; its
7761# output is simply discarded.  So we exec the FD to /dev/null,
7762# effectively closing config.log, so it can be properly (re)opened and
7763# appended to by config.status.  When coming back to configure, we
7764# need to make the FD available again.
7765if test "$no_create" != yes; then
7766  ac_cs_success=:
7767  ac_config_status_args=
7768  test "$silent" = yes &&
7769    ac_config_status_args="$ac_config_status_args --quiet"
7770  exec 5>/dev/null
7771  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7772  exec 5>>config.log
7773  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7774  # would make configure fail if this is the last instruction.
[788]7775  $ac_cs_success || as_fn_exit 1
[107]7776fi
[788]7777if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7778  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7779$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7780fi
[107]7781
Note: See TracBrowser for help on using the repository browser.