source: CPL/oasis3-mct/branches/OASIS3-MCT_5.0_branch/lib/mct/mpi-serial/configure @ 6331

Last change on this file since 6331 was 6331, checked in by aclsce, 17 months ago

Moved oasis-mct_5.0 in oasis3-mct/branches directory.

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