source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/lib/mct/configure @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 5 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

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