1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for PLUMED 2.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 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
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$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# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='PLUMED'
579PACKAGE_TARNAME='plumed'
580PACKAGE_VERSION='2'
581PACKAGE_STRING='PLUMED 2'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585# Factoring default headers for most tests.
586ac_includes_default="\
587#include <stdio.h>
588#ifdef HAVE_SYS_TYPES_H
589# include <sys/types.h>
590#endif
591#ifdef HAVE_SYS_STAT_H
592# include <sys/stat.h>
593#endif
594#ifdef STDC_HEADERS
595# include <stdlib.h>
596# include <stddef.h>
597#else
598# ifdef HAVE_STDLIB_H
599#  include <stdlib.h>
600# endif
601#endif
602#ifdef HAVE_STRING_H
603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604#  include <memory.h>
605# endif
606# include <string.h>
607#endif
608#ifdef HAVE_STRINGS_H
609# include <strings.h>
610#endif
611#ifdef HAVE_INTTYPES_H
612# include <inttypes.h>
613#endif
614#ifdef HAVE_STDINT_H
615# include <stdint.h>
616#endif
617#ifdef HAVE_UNISTD_H
618# include <unistd.h>
619#endif"
620
621ac_subst_vars='LTLIBOBJS
622LIBOBJS
623build_dir
624program_name
625pkgconfig_bin
626make_static_archive
627AR_CR
628LD_RO
629use_loader_path
630use_absolute_soname
631program_can_run_mpi
632program_can_run
633xxd
634make_pdfdoc
635dot
636doxygen
637make_doc
638readelf
639OPENMP_CXXFLAGS
640EGREP
641GREP
642CXXCPP
643disable_dependency_tracking
644ac_ct_FC
645FCFLAGS
646FC
647ac_ct_CC
648CFLAGS
649CC
650OBJEXT
651EXEEXT
652ac_ct_CXX
653CPPFLAGS
654LDFLAGS
655CXXFLAGS
656CXX
657MPIEXEC
658BASH_COMPLETION_DIR
659PYTHON_BIN
660LDSHARED
661STATIC_LIBS
662SOEXT
663target_alias
664host_alias
665build_alias
666LIBS
667ECHO_T
668ECHO_N
669ECHO_C
670DEFS
671mandir
672localedir
673libdir
674psdir
675pdfdir
676dvidir
677htmldir
678infodir
679docdir
680oldincludedir
681includedir
682localstatedir
683sharedstatedir
684sysconfdir
685datadir
686datarootdir
687libexecdir
688sbindir
689bindir
690program_transform_name
691prefix
692exec_prefix
693PACKAGE_URL
694PACKAGE_BUGREPORT
695PACKAGE_STRING
696PACKAGE_VERSION
697PACKAGE_TARNAME
698PACKAGE_NAME
699PATH_SEPARATOR
700SHELL'
701ac_subst_files=''
702ac_user_opts='
703enable_option_checking
704enable_modules
705enable_libsearch
706enable_static_patch
707enable_doc
708enable_pdfdoc
709enable_debug
710enable_gcov
711enable_basic_warnings
712enable_fussy
713enable_debug_glibcxx
714enable_shared
715enable_dependency_tracking
716enable_rpath
717enable_absolute_soname
718enable_absolute_install_name
719enable_loader_path
720enable_bsymbolic
721enable_ld_r
722enable_ar_cr
723enable_static_archive
724enable_asmjit
725enable_mpi
726enable_external_lapack
727enable_external_blas
728enable_molfile_plugins
729enable_external_molfile_plugins
730enable_zlib
731enable_readdir_r
732enable_cregex
733enable_dlopen
734enable_rtld_default
735enable_chdir
736enable_subprocess
737enable_getcwd
738enable_execinfo
739enable_gsl
740enable_xdrfile
741enable_boost_graph
742enable_boost_serialization
743enable_fftw
744enable_python
745enable_af_ocl
746enable_af_cuda
747enable_af_cpu
748enable_openmp
749'
750      ac_precious_vars='build_alias
751host_alias
752target_alias
753SOEXT
754STATIC_LIBS
755LDSHARED
756PYTHON_BIN
757BASH_COMPLETION_DIR
758MPIEXEC
759CXX
760CXXFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CCC
765CC
766CFLAGS
767FC
768FCFLAGS
769CXXCPP'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225  elif test "x$build_alias" != "x$host_alias"; then
1226    cross_compiling=yes
1227  fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239  as_fn_error $? "working directory cannot be determined"
1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241  as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246  ac_srcdir_defaulted=yes
1247  # Try the directory containing this script, then the parent directory.
1248  ac_confdir=`$as_dirname -- "$as_myself" ||
1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250	 X"$as_myself" : 'X\(//\)[^/]' \| \
1251	 X"$as_myself" : 'X\(//\)$' \| \
1252	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253$as_echo X"$as_myself" |
1254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)[^/].*/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\).*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  s/.*/./; q'`
1271  srcdir=$ac_confdir
1272  if test ! -r "$srcdir/$ac_unique_file"; then
1273    srcdir=..
1274  fi
1275else
1276  ac_srcdir_defaulted=no
1277fi
1278if test ! -r "$srcdir/$ac_unique_file"; then
1279  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281fi
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
1284	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285	pwd)`
1286# When building in place, set srcdir=.
1287if test "$ac_abs_confdir" = "$ac_pwd"; then
1288  srcdir=.
1289fi
1290# Remove unnecessary trailing slashes from srcdir.
1291# Double slashes in file names in object file debugging info
1292# mess up M-x gdb in Emacs.
1293case $srcdir in
1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295esac
1296for ac_var in $ac_precious_vars; do
1297  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_env_${ac_var}_value=\$${ac_var}
1299  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301done
1302
1303#
1304# Report the --help message.
1305#
1306if test "$ac_init_help" = "long"; then
1307  # Omit some internal or obsolete options to make the list less imposing.
1308  # This message is too long to be a string in the A/UX 3.1 sh.
1309  cat <<_ACEOF
1310\`configure' configures PLUMED 2 to adapt to many kinds of systems.
1311
1312Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315VAR=VALUE.  See below for descriptions of some of the useful variables.
1316
1317Defaults for the options are specified in brackets.
1318
1319Configuration:
1320  -h, --help              display this help and exit
1321      --help=short        display options specific to this package
1322      --help=recursive    display the short help of all the included packages
1323  -V, --version           display version information and exit
1324  -q, --quiet, --silent   do not print \`checking ...' messages
1325      --cache-file=FILE   cache test results in FILE [disabled]
1326  -C, --config-cache      alias for \`--cache-file=config.cache'
1327  -n, --no-create         do not create output files
1328      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329
1330Installation directories:
1331  --prefix=PREFIX         install architecture-independent files in PREFIX
1332                          [$ac_default_prefix]
1333  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1334                          [PREFIX]
1335
1336By default, \`make install' will install all the files in
1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339for instance \`--prefix=\$HOME'.
1340
1341For better control, use the options below.
1342
1343Fine tuning of the installation directories:
1344  --bindir=DIR            user executables [EPREFIX/bin]
1345  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1346  --libexecdir=DIR        program executables [EPREFIX/libexec]
1347  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1348  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1349  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1350  --libdir=DIR            object code libraries [EPREFIX/lib]
1351  --includedir=DIR        C header files [PREFIX/include]
1352  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1353  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1354  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1355  --infodir=DIR           info documentation [DATAROOTDIR/info]
1356  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357  --mandir=DIR            man documentation [DATAROOTDIR/man]
1358  --docdir=DIR            documentation root [DATAROOTDIR/doc/plumed]
1359  --htmldir=DIR           html documentation [DOCDIR]
1360  --dvidir=DIR            dvi documentation [DOCDIR]
1361  --pdfdir=DIR            pdf documentation [DOCDIR]
1362  --psdir=DIR             ps documentation [DOCDIR]
1363_ACEOF
1364
1365  cat <<\_ACEOF
1366
1367Program names:
1368  --program-prefix=PREFIX            prepend PREFIX to installed program names
1369  --program-suffix=SUFFIX            append SUFFIX to installed program names
1370  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371_ACEOF
1372fi
1373
1374if test -n "$ac_init_help"; then
1375  case $ac_init_help in
1376     short | recursive ) echo "Configuration of PLUMED 2:";;
1377   esac
1378  cat <<\_ACEOF
1379
1380Optional Features:
1381  --disable-option-checking  ignore unrecognized --enable/--with options
1382  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1383  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1384  --enable-modules        all/none/reset or : separated list such as
1385                          +crystallization:-bias default: reset
1386  --enable-libsearch      enable search for libraries, default: yes
1387  --enable-static-patch   enable allow statically linking plumed, default: yes
1388  --enable-doc            enable documentation, default: yes
1389  --enable-pdfdoc         enable pdf version of the manual, default: no
1390  --enable-debug          enable debugging, default: no
1391  --enable-gcov           enable gcov to estimate code coverage, default: no
1392  --enable-basic-warnings enable basic warnings, default: yes
1393  --enable-fussy          enable fussy warnings, default: no
1394  --enable-debug-glibcxx  enable enable boundary check, default: no
1395  --enable-shared         enable shared libs, default: yes
1396  --enable-dependency-tracking
1397                          enable dependency tracking, default: yes
1398  --enable-rpath          enable store rpath, default: no
1399  --enable-absolute-soname
1400                          enable store absolute soname (Linux only - this is
1401                          the default behavior on OSX). Only enable for
1402                          testing!, default: no
1403  --enable-absolute-install-name
1404                          enable store absolute relative (OSX only - disable
1405                          to have a behavior similar to Linux). Only disable
1406                          for testing!, default: yes
1407  --enable-loader-path    enable use @loader_path to find
1408                          libplumedKernel.dylib (OSX only), default: yes
1409  --enable-bsymbolic      enable use -Bsymbolic flag in making shared
1410                          libraries (Linux only), default: yes
1411  --enable-ld-r           enable group object files, default: yes
1412  --enable-ar-cr          enable use ar to build libplumedWrapper.a, default:
1413                          yes
1414  --enable-static-archive enable try to build libplumed.a for static linking,
1415                          default: yes
1416  --enable-asmjit         enable enable embedded asmjit, default: no
1417  --enable-mpi            enable search for mpi, default: yes
1418  --enable-external-lapack
1419                          enable search for external lapack, default: yes
1420  --enable-external-blas  enable search for external blas, default: yes
1421  --enable-molfile-plugins
1422                          enable use molfile_plugins, default: yes
1423  --enable-external-molfile-plugins
1424                          enable search for external molfile_plugins, default:
1425                          yes
1426  --enable-zlib           enable search for zlib, default: yes
1427  --enable-readdir-r      enable search for readdir_r (threadsafe), default:
1428                          no
1429  --enable-cregex         enable search for C regular expression, default: yes
1430  --enable-dlopen         enable search for dlopen, default: yes
1431  --enable-rtld_default   enable search for RTLD_DEFAULT macro, default: yes
1432  --enable-chdir          enable search for chdir function, default: yes
1433  --enable-subprocess     enable search for functions needed to manage a
1434                          subprocess, default: yes
1435  --enable-getcwd         enable search for getcwd function, default: yes
1436  --enable-execinfo       enable search for execinfo, default: yes
1437  --enable-gsl            enable search for gsl, default: yes
1438  --enable-xdrfile        enable search for xdrfile, default: yes
1439  --enable-boost_graph    enable search for boost graph, default: no
1440  --enable-boost_serialization
1441                          enable search for boost serialization, default: no
1442  --enable-fftw           enable search for fftw, default: yes
1443  --enable-python         enable search for python, default: yes
1444  --enable-af_ocl         enable search for arrayfire_ocl, default: no
1445  --enable-af_cuda        enable search for arrayfire_cuda, default: no
1446  --enable-af_cpu         enable search for arrayfire_cpu, default: no
1447  --disable-openmp        do not use OpenMP
1448
1449Some influential environment variables:
1450  SOEXT       extension of dynamic libraries (so/dylib)
1451  STATIC_LIBS variables that should be linked statically directly to MD code -
1452              configure will add here -ldl if necessary
1453  LDSHARED    command for linking shared library - configure will use CXX plus
1454              the proper flags
1455  PYTHON_BIN  python executable (e.g. python2.7 or /opt/local/bin/python2.7) -
1456              default: search for a python executable
1457  BASH_COMPLETION_DIR
1458              path where bash completion will be installed - default: search
1459              with pkg-config
1460  MPIEXEC     command to run mpi programs in tests - default not specified,
1461              which means use PLUMED_MPIRUN env var at runtime for backward
1462              compatibility
1463  CXX         C++ compiler command
1464  CXXFLAGS    C++ compiler flags
1465  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466              nonstandard directory <lib dir>
1467  LIBS        libraries to pass to the linker, e.g. -l<library>
1468  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469              you have headers in a nonstandard directory <include dir>
1470  CC          C compiler command
1471  CFLAGS      C compiler flags
1472  FC          Fortran compiler command
1473  FCFLAGS     Fortran compiler flags
1474  CXXCPP      C++ preprocessor
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to the package provider.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485  # If there are subdirs, report their specific --help.
1486  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487    test -d "$ac_dir" ||
1488      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489      continue
1490    ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496  # A ".." for each directory in $ac_dir_suffix.
1497  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498  case $ac_top_builddir_sub in
1499  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501  esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509  .)  # We are building in place.
1510    ac_srcdir=.
1511    ac_top_srcdir=$ac_top_builddir_sub
1512    ac_abs_top_srcdir=$ac_pwd ;;
1513  [\\/]* | ?:[\\/]* )  # Absolute name.
1514    ac_srcdir=$srcdir$ac_dir_suffix;
1515    ac_top_srcdir=$srcdir
1516    ac_abs_top_srcdir=$srcdir ;;
1517  *) # Relative name.
1518    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524    cd "$ac_dir" || { ac_status=$?; continue; }
1525    # Check for guested configure.
1526    if test -f "$ac_srcdir/configure.gnu"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529    elif test -f "$ac_srcdir/configure"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure" --help=recursive
1532    else
1533      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534    fi || ac_status=$?
1535    cd "$ac_pwd" || { ac_status=$?; break; }
1536  done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541  cat <<\_ACEOF
1542PLUMED configure 2
1543generated by GNU Autoconf 2.69
1544
1545Copyright (C) 2012 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549  exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_cxx_try_compile LINENO
1557# ----------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_cxx_try_compile ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  rm -f conftest.$ac_objext
1563  if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570  (eval "$ac_compile") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && {
1579	 test -z "$ac_cxx_werror_flag" ||
1580	 test ! -s conftest.err
1581       } && test -s conftest.$ac_objext; then :
1582  ac_retval=0
1583else
1584  $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587	ac_retval=1
1588fi
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590  as_fn_set_status $ac_retval
1591
1592} # ac_fn_cxx_try_compile
1593
1594# ac_fn_c_try_compile LINENO
1595# --------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_compile ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  rm -f conftest.$ac_objext
1601  if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608  (eval "$ac_compile") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && {
1617	 test -z "$ac_c_werror_flag" ||
1618	 test ! -s conftest.err
1619       } && test -s conftest.$ac_objext; then :
1620  ac_retval=0
1621else
1622  $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625	ac_retval=1
1626fi
1627  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_compile
1631
1632# ac_fn_fc_try_compile LINENO
1633# ---------------------------
1634# Try to compile conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_fc_try_compile ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  rm -f conftest.$ac_objext
1639  if { { ac_try="$ac_compile"
1640case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_compile") 2>conftest.err
1647  ac_status=$?
1648  if test -s conftest.err; then
1649    grep -v '^ *+' conftest.err >conftest.er1
1650    cat conftest.er1 >&5
1651    mv -f conftest.er1 conftest.err
1652  fi
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } && {
1655	 test -z "$ac_fc_werror_flag" ||
1656	 test ! -s conftest.err
1657       } && test -s conftest.$ac_objext; then :
1658  ac_retval=0
1659else
1660  $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663	ac_retval=1
1664fi
1665  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666  as_fn_set_status $ac_retval
1667
1668} # ac_fn_fc_try_compile
1669
1670# ac_fn_cxx_try_link LINENO
1671# -------------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded.
1673ac_fn_cxx_try_link ()
1674{
1675  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676  rm -f conftest.$ac_objext conftest$ac_exeext
1677  if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_link") 2>conftest.err
1685  ac_status=$?
1686  if test -s conftest.err; then
1687    grep -v '^ *+' conftest.err >conftest.er1
1688    cat conftest.er1 >&5
1689    mv -f conftest.er1 conftest.err
1690  fi
1691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692  test $ac_status = 0; } && {
1693	 test -z "$ac_cxx_werror_flag" ||
1694	 test ! -s conftest.err
1695       } && test -s conftest$ac_exeext && {
1696	 test "$cross_compiling" = yes ||
1697	 test -x conftest$ac_exeext
1698       }; then :
1699  ac_retval=0
1700else
1701  $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704	ac_retval=1
1705fi
1706  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708  # interfere with the next link command; also delete a directory that is
1709  # left behind by Apple's compiler.  We do this before executing the actions.
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_cxx_try_link
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  rm -f conftest.$ac_objext conftest$ac_exeext
1723  if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726  *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730  (eval "$ac_link") 2>conftest.err
1731  ac_status=$?
1732  if test -s conftest.err; then
1733    grep -v '^ *+' conftest.err >conftest.er1
1734    cat conftest.er1 >&5
1735    mv -f conftest.er1 conftest.err
1736  fi
1737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738  test $ac_status = 0; } && {
1739	 test -z "$ac_c_werror_flag" ||
1740	 test ! -s conftest.err
1741       } && test -s conftest$ac_exeext && {
1742	 test "$cross_compiling" = yes ||
1743	 test -x conftest$ac_exeext
1744       }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750	ac_retval=1
1751fi
1752  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754  # interfere with the next link command; also delete a directory that is
1755  # left behind by Apple's compiler.  We do this before executing the actions.
1756  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_cxx_try_cpp LINENO
1763# ------------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_cxx_try_cpp ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771  *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776  ac_status=$?
1777  if test -s conftest.err; then
1778    grep -v '^ *+' conftest.err >conftest.er1
1779    cat conftest.er1 >&5
1780    mv -f conftest.er1 conftest.err
1781  fi
1782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783  test $ac_status = 0; } > conftest.i && {
1784	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1785	 test ! -s conftest.err
1786       }; then :
1787  ac_retval=0
1788else
1789  $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792    ac_retval=1
1793fi
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_cxx_try_cpp
1798
1799# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1800# ---------------------------------------------------------
1801# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802# the include files in INCLUDES and setting the cache variable VAR
1803# accordingly.
1804ac_fn_cxx_check_header_mongrel ()
1805{
1806  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807  if eval \${$3+:} false; then :
1808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if eval \${$3+:} false; then :
1811  $as_echo_n "(cached) " >&6
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816else
1817  # Is the header compilable?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819$as_echo_n "checking $2 usability... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h.  */
1822$4
1823#include <$2>
1824_ACEOF
1825if ac_fn_cxx_try_compile "$LINENO"; then :
1826  ac_header_compiler=yes
1827else
1828  ac_header_compiler=no
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832$as_echo "$ac_header_compiler" >&6; }
1833
1834# Is the header present?
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836$as_echo_n "checking $2 presence... " >&6; }
1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839#include <$2>
1840_ACEOF
1841if ac_fn_cxx_try_cpp "$LINENO"; then :
1842  ac_header_preproc=yes
1843else
1844  ac_header_preproc=no
1845fi
1846rm -f conftest.err conftest.i conftest.$ac_ext
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848$as_echo "$ac_header_preproc" >&6; }
1849
1850# So?  What about this header?
1851case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1852  yes:no: )
1853    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857    ;;
1858  no:yes:* )
1859    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1862$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1863    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1866$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1867    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869    ;;
1870esac
1871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
1873if eval \${$3+:} false; then :
1874  $as_echo_n "(cached) " >&6
1875else
1876  eval "$3=\$ac_header_compiler"
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881fi
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884} # ac_fn_cxx_check_header_mongrel
1885
1886# ac_fn_cxx_try_run LINENO
1887# ------------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889# that executables *can* be run.
1890ac_fn_cxx_try_run ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896  *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900  (eval "$ac_link") 2>&5
1901  ac_status=$?
1902  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904  { { case "(($ac_try" in
1905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906  *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910  (eval "$ac_try") 2>&5
1911  ac_status=$?
1912  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913  test $ac_status = 0; }; }; then :
1914  ac_retval=0
1915else
1916  $as_echo "$as_me: program exited with status $ac_status" >&5
1917       $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920       ac_retval=$ac_status
1921fi
1922  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924  as_fn_set_status $ac_retval
1925
1926} # ac_fn_cxx_try_run
1927
1928# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1929# ---------------------------------------------------------
1930# Tests whether HEADER exists and can be compiled using the include files in
1931# INCLUDES, setting the cache variable VAR accordingly.
1932ac_fn_cxx_check_header_compile ()
1933{
1934  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943#include <$2>
1944_ACEOF
1945if ac_fn_cxx_try_compile "$LINENO"; then :
1946  eval "$3=yes"
1947else
1948  eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_cxx_check_header_compile
1958
1959# ac_fn_cxx_check_func LINENO FUNC VAR
1960# ------------------------------------
1961# Tests whether FUNC exists, setting the cache variable VAR accordingly
1962ac_fn_cxx_check_func ()
1963{
1964  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966$as_echo_n "checking for $2... " >&6; }
1967if eval \${$3+:} false; then :
1968  $as_echo_n "(cached) " >&6
1969else
1970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971/* end confdefs.h.  */
1972/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1974#define $2 innocuous_$2
1975
1976/* System header to define __stub macros and hopefully few prototypes,
1977    which can conflict with char $2 (); below.
1978    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979    <limits.h> exists even on freestanding compilers.  */
1980
1981#ifdef __STDC__
1982# include <limits.h>
1983#else
1984# include <assert.h>
1985#endif
1986
1987#undef $2
1988
1989/* Override any GCC internal prototype to avoid an error.
1990   Use char because int might match the return type of a GCC
1991   builtin and then its argument prototype would still apply.  */
1992#ifdef __cplusplus
1993extern "C"
1994#endif
1995char $2 ();
1996/* The GNU C library defines this for functions which it implements
1997    to always fail with ENOSYS.  Some functions are actually named
1998    something starting with __ and the normal name is an alias.  */
1999#if defined __stub_$2 || defined __stub___$2
2000choke me
2001#endif
2002
2003int
2004main ()
2005{
2006return $2 ();
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_cxx_try_link "$LINENO"; then :
2012  eval "$3=yes"
2013else
2014  eval "$3=no"
2015fi
2016rm -f core conftest.err conftest.$ac_objext \
2017    conftest$ac_exeext conftest.$ac_ext
2018fi
2019eval ac_res=\$$3
2020	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024} # ac_fn_cxx_check_func
2025cat >config.log <<_ACEOF
2026This file contains any messages produced by compilers while
2027running configure, to aid debugging if configure makes a mistake.
2028
2029It was created by PLUMED $as_me 2, which was
2030generated by GNU Autoconf 2.69.  Invocation command line was
2031
2032  $ $0 $@
2033
2034_ACEOF
2035exec 5>>config.log
2036{
2037cat <<_ASUNAME
2038## --------- ##
2039## Platform. ##
2040## --------- ##
2041
2042hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2043uname -m = `(uname -m) 2>/dev/null || echo unknown`
2044uname -r = `(uname -r) 2>/dev/null || echo unknown`
2045uname -s = `(uname -s) 2>/dev/null || echo unknown`
2046uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047
2048/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2049/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2050
2051/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2052/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2053/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2054/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2055/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2056/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2057/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2058
2059_ASUNAME
2060
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066    $as_echo "PATH: $as_dir"
2067  done
2068IFS=$as_save_IFS
2069
2070} >&5
2071
2072cat >&5 <<_ACEOF
2073
2074
2075## ----------- ##
2076## Core tests. ##
2077## ----------- ##
2078
2079_ACEOF
2080
2081
2082# Keep a trace of the command line.
2083# Strip out --no-create and --no-recursion so they do not pile up.
2084# Strip out --silent because we don't want to record it for future runs.
2085# Also quote any args containing shell meta-characters.
2086# Make two passes to allow for proper duplicate-argument suppression.
2087ac_configure_args=
2088ac_configure_args0=
2089ac_configure_args1=
2090ac_must_keep_next=false
2091for ac_pass in 1 2
2092do
2093  for ac_arg
2094  do
2095    case $ac_arg in
2096    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2097    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2098    | -silent | --silent | --silen | --sile | --sil)
2099      continue ;;
2100    *\'*)
2101      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2102    esac
2103    case $ac_pass in
2104    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2105    2)
2106      as_fn_append ac_configure_args1 " '$ac_arg'"
2107      if test $ac_must_keep_next = true; then
2108	ac_must_keep_next=false # Got value, back to normal.
2109      else
2110	case $ac_arg in
2111	  *=* | --config-cache | -C | -disable-* | --disable-* \
2112	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2113	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2114	  | -with-* | --with-* | -without-* | --without-* | --x)
2115	    case "$ac_configure_args0 " in
2116	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2117	    esac
2118	    ;;
2119	  -* ) ac_must_keep_next=true ;;
2120	esac
2121      fi
2122      as_fn_append ac_configure_args " '$ac_arg'"
2123      ;;
2124    esac
2125  done
2126done
2127{ ac_configure_args0=; unset ac_configure_args0;}
2128{ ac_configure_args1=; unset ac_configure_args1;}
2129
2130# When interrupted or exit'd, cleanup temporary files, and complete
2131# config.log.  We remove comments because anyway the quotes in there
2132# would cause problems or look ugly.
2133# WARNING: Use '\'' to represent an apostrophe within the trap.
2134# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2135trap 'exit_status=$?
2136  # Save into config.log some information that might help in debugging.
2137  {
2138    echo
2139
2140    $as_echo "## ---------------- ##
2141## Cache variables. ##
2142## ---------------- ##"
2143    echo
2144    # The following way of writing the cache mishandles newlines in values,
2145(
2146  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147    eval ac_val=\$$ac_var
2148    case $ac_val in #(
2149    *${as_nl}*)
2150      case $ac_var in #(
2151      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2153      esac
2154      case $ac_var in #(
2155      _ | IFS | as_nl) ;; #(
2156      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2157      *) { eval $ac_var=; unset $ac_var;} ;;
2158      esac ;;
2159    esac
2160  done
2161  (set) 2>&1 |
2162    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163    *${as_nl}ac_space=\ *)
2164      sed -n \
2165	"s/'\''/'\''\\\\'\'''\''/g;
2166	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2167      ;; #(
2168    *)
2169      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170      ;;
2171    esac |
2172    sort
2173)
2174    echo
2175
2176    $as_echo "## ----------------- ##
2177## Output variables. ##
2178## ----------------- ##"
2179    echo
2180    for ac_var in $ac_subst_vars
2181    do
2182      eval ac_val=\$$ac_var
2183      case $ac_val in
2184      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2185      esac
2186      $as_echo "$ac_var='\''$ac_val'\''"
2187    done | sort
2188    echo
2189
2190    if test -n "$ac_subst_files"; then
2191      $as_echo "## ------------------- ##
2192## File substitutions. ##
2193## ------------------- ##"
2194      echo
2195      for ac_var in $ac_subst_files
2196      do
2197	eval ac_val=\$$ac_var
2198	case $ac_val in
2199	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200	esac
2201	$as_echo "$ac_var='\''$ac_val'\''"
2202      done | sort
2203      echo
2204    fi
2205
2206    if test -s confdefs.h; then
2207      $as_echo "## ----------- ##
2208## confdefs.h. ##
2209## ----------- ##"
2210      echo
2211      cat confdefs.h
2212      echo
2213    fi
2214    test "$ac_signal" != 0 &&
2215      $as_echo "$as_me: caught signal $ac_signal"
2216    $as_echo "$as_me: exit $exit_status"
2217  } >&5
2218  rm -f core *.core core.conftest.* &&
2219    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2220    exit $exit_status
2221' 0
2222for ac_signal in 1 2 13 15; do
2223  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2224done
2225ac_signal=0
2226
2227# confdefs.h avoids OS command line length limits that DEFS can exceed.
2228rm -f -r conftest* confdefs.h
2229
2230$as_echo "/* confdefs.h */" > confdefs.h
2231
2232# Predefined preprocessor variables.
2233
2234cat >>confdefs.h <<_ACEOF
2235#define PACKAGE_NAME "$PACKAGE_NAME"
2236_ACEOF
2237
2238cat >>confdefs.h <<_ACEOF
2239#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2240_ACEOF
2241
2242cat >>confdefs.h <<_ACEOF
2243#define PACKAGE_VERSION "$PACKAGE_VERSION"
2244_ACEOF
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_STRING "$PACKAGE_STRING"
2248_ACEOF
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2252_ACEOF
2253
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_URL "$PACKAGE_URL"
2256_ACEOF
2257
2258
2259# Let the site file select an alternate cache file if it wants to.
2260# Prefer an explicitly selected file to automatically selected ones.
2261ac_site_file1=NONE
2262ac_site_file2=NONE
2263if test -n "$CONFIG_SITE"; then
2264  # We do not want a PATH search for config.site.
2265  case $CONFIG_SITE in #((
2266    -*)  ac_site_file1=./$CONFIG_SITE;;
2267    */*) ac_site_file1=$CONFIG_SITE;;
2268    *)   ac_site_file1=./$CONFIG_SITE;;
2269  esac
2270elif test "x$prefix" != xNONE; then
2271  ac_site_file1=$prefix/share/config.site
2272  ac_site_file2=$prefix/etc/config.site
2273else
2274  ac_site_file1=$ac_default_prefix/share/config.site
2275  ac_site_file2=$ac_default_prefix/etc/config.site
2276fi
2277for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2278do
2279  test "x$ac_site_file" = xNONE && continue
2280  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2281    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2282$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2283    sed 's/^/| /' "$ac_site_file" >&5
2284    . "$ac_site_file" \
2285      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287as_fn_error $? "failed to load site script $ac_site_file
2288See \`config.log' for more details" "$LINENO" 5; }
2289  fi
2290done
2291
2292if test -r "$cache_file"; then
2293  # Some versions of bash will fail to source /dev/null (special files
2294  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2295  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2296    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2297$as_echo "$as_me: loading cache $cache_file" >&6;}
2298    case $cache_file in
2299      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2300      *)                      . "./$cache_file";;
2301    esac
2302  fi
2303else
2304  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2305$as_echo "$as_me: creating cache $cache_file" >&6;}
2306  >$cache_file
2307fi
2308
2309# Check that the precious variables saved in the cache have kept the same
2310# value.
2311ac_cache_corrupted=false
2312for ac_var in $ac_precious_vars; do
2313  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2314  eval ac_new_set=\$ac_env_${ac_var}_set
2315  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2316  eval ac_new_val=\$ac_env_${ac_var}_value
2317  case $ac_old_set,$ac_new_set in
2318    set,)
2319      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2320$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2321      ac_cache_corrupted=: ;;
2322    ,set)
2323      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2324$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2325      ac_cache_corrupted=: ;;
2326    ,);;
2327    *)
2328      if test "x$ac_old_val" != "x$ac_new_val"; then
2329	# differences in whitespace do not lead to failure.
2330	ac_old_val_w=`echo x $ac_old_val`
2331	ac_new_val_w=`echo x $ac_new_val`
2332	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2333	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2334$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2335	  ac_cache_corrupted=:
2336	else
2337	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2338$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2339	  eval $ac_var=\$ac_old_val
2340	fi
2341	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2342$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2343	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2344$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2345      fi;;
2346  esac
2347  # Pass precious variables to config.status.
2348  if test "$ac_new_set" = set; then
2349    case $ac_new_val in
2350    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2351    *) ac_arg=$ac_var=$ac_new_val ;;
2352    esac
2353    case " $ac_configure_args " in
2354      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2355      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2356    esac
2357  fi
2358done
2359if $ac_cache_corrupted; then
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2362  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2363$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2364  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2365fi
2366## -------------------- ##
2367## Main body of script. ##
2368## -------------------- ##
2369
2370ac_ext=c
2371ac_cpp='$CPP $CPPFLAGS'
2372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378##################################################################
2379# In order to add m4 macros, put then in a m4 directory and include them here.
2380# E.g.:
2381# m4_include([./m4/m4_ax_openmp.m4])
2382
2383##################################################################
2384# Here we define a few useful macros
2385
2386# PLUMED_CONFIG_ENABLE(variablename,optionname,doc,default)
2387# notice that variablename and optionname are likely identical,
2388# they just need to be different with optionname contains a "-"
2389# (not allowed in shell variable names)
2390
2391
2392# PLUMED_CHECK_CXXFLAG(flag)
2393# use it to check if a flag is available on this compiler
2394
2395
2396# PLUMED_CHECK_CFLAG(flag)
2397# use it to check if a flag is available on this compiler
2398
2399
2400# PLUMED_CHECK_LDFLAGS(flag)
2401# use it to check if a flag is available on this compiler
2402
2403
2404# PLUMED_SEARCH_LIBS(function,search-libs[,action-if-found][,action-if-not-found][,other-libraries])
2405# same as AC_SEARCH_LIBS, but does not try any library unless $libsearch==true
2406# Should be used instead of AC_SEARCH_LIBS in order to make --disable-libsearch work correctly
2407
2408
2409# PLUMED_CHECK_PACKAGE(header,function,define[,library])
2410# first we check if the header is present. if so, we check if the given function can be found.
2411# if it cannot be found and the fourth argument (library) has been supplied, we look for it
2412# in the library. finally, we set the define flag
2413
2414
2415# PLUMED_CHECK_CXX_PACKAGE(name,program,define[,library])
2416# Similar to PLUMED_CHECK_PACKAGE but suitable for checking C++ libraries.
2417# Name is just a string used in the configure log
2418# program is a string containing a short C++ program that should compiled.
2419# If present and necessary, library is also linked.
2420
2421
2422##################################################################
2423
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: Optional modules are disabled by default" >&5
2425$as_echo "$as_me: Optional modules are disabled by default" >&6;}
2426rm -f src/*.on src/*.off
2427
2428# Check whether --enable-modules was given.
2429if test "${enable_modules+set}" = set; then :
2430  enableval=$enable_modules;
2431   rm -f src/*.on src/*.off
2432   if test "${enableval}" == yes ; then
2433     enableval=reset
2434   fi
2435   if test "${enableval}" == no ; then
2436     enableval=none
2437   fi
2438   for modules_mod in `echo "${enableval}" | sed 's/:/ /g' | sed 's/+/ +/g' | sed 's/-/ -/g'`
2439   do
2440     case "$modules_mod" in
2441     (none)
2442       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling all optional modules" >&5
2443$as_echo "$as_me: Disabling all optional modules" >&6;}
2444       rm -f src/*.off src/*.on
2445       touch $(grep default-on src/*/module.type | sed "s|/module.type:.*|.off|") ;;
2446     (all)
2447       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling all optional modules" >&5
2448$as_echo "$as_me: Enabling all optional modules" >&6;}
2449       rm -f src/*.off src/*.off
2450       touch $(grep default-off src/*/module.type | sed "s|/module.type:.*|.on|") ;;
2451     (reset)
2452        { $as_echo "$as_me:${as_lineno-$LINENO}: Resetting modules to default" >&5
2453$as_echo "$as_me: Resetting modules to default" >&6;}
2454        rm -f src/*.on src/*.off ;;
2455     (-*)
2456       modules_mod=`echo "${modules_mod}" | sed "s|-||"`
2457       if test ! -f src/$modules_mod/module.type ; then
2458         as_fn_error $? "trying to remove module $modules_mod which does not exist" "$LINENO" 5
2459       fi
2460       { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling module ${modules_mod}" >&5
2461$as_echo "$as_me: Disabling module ${modules_mod}" >&6;}
2462       rm -f src/$modules_mod.on
2463       touch src/$modules_mod.off ;;
2464     (+*)
2465       modules_mod=`echo "${modules_mod}" | sed "s|+||"`
2466       if test ! -f src/$modules_mod/module.type ; then
2467         as_fn_error $? "trying to add module $modules_mod which does not exist" "$LINENO" 5
2468       fi
2469       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling module ${modules_mod}" >&5
2470$as_echo "$as_me: Enabling module ${modules_mod}" >&6;}
2471       rm -f src/$modules_mod.off
2472       touch src/$modules_mod.on ;;
2473     (*)
2474       if test ! -f src/$modules_mod/module.type ; then
2475         as_fn_error $? "trying to add module $modules_mod which does not exist" "$LINENO" 5
2476       fi
2477       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling module ${modules_mod}" >&5
2478$as_echo "$as_me: Enabling module ${modules_mod}" >&6;}
2479       rm -f src/$modules_mod.off
2480       touch src/$modules_mod.on ;;
2481     esac
2482   done
2483
2484
2485fi
2486
2487
2488
2489# set enable flags for ./configure
2490
2491# This can be disabled when configuring within a package manager
2492# such as macports to make sure that only libraries explicitly
2493# listed in LDFLAGS are linked
2494
2495libsearch=
2496# Check whether --enable-libsearch was given.
2497if test "${enable_libsearch+set}" = set; then :
2498  enableval=$enable_libsearch; case "${enableval}" in
2499             (yes) libsearch=true ;;
2500             (no)  libsearch=false ;;
2501             (*)   as_fn_error $? "wrong argument to --enable-libsearch" "$LINENO" 5 ;;
2502  esac
2503else
2504  case "yes" in
2505             (yes) libsearch=true ;;
2506             (no)  libsearch=false ;;
2507  esac
2508
2509fi
2510
2511
2512
2513# This can be disabled to avoid the extra tests for static patching.
2514# In the future, when this is disabled, we could disable the "--static" flag
2515# of "plumed patch"
2516
2517static_patch=
2518# Check whether --enable-static-patch was given.
2519if test "${enable_static_patch+set}" = set; then :
2520  enableval=$enable_static_patch; case "${enableval}" in
2521             (yes) static_patch=true ;;
2522             (no)  static_patch=false ;;
2523             (*)   as_fn_error $? "wrong argument to --enable-static-patch" "$LINENO" 5 ;;
2524  esac
2525else
2526  case "yes" in
2527             (yes) static_patch=true ;;
2528             (no)  static_patch=false ;;
2529  esac
2530
2531fi
2532
2533
2534
2535
2536doc=
2537# Check whether --enable-doc was given.
2538if test "${enable_doc+set}" = set; then :
2539  enableval=$enable_doc; case "${enableval}" in
2540             (yes) doc=true ;;
2541             (no)  doc=false ;;
2542             (*)   as_fn_error $? "wrong argument to --enable-doc" "$LINENO" 5 ;;
2543  esac
2544else
2545  case "yes" in
2546             (yes) doc=true ;;
2547             (no)  doc=false ;;
2548  esac
2549
2550fi
2551
2552
2553
2554pdfdoc=
2555# Check whether --enable-pdfdoc was given.
2556if test "${enable_pdfdoc+set}" = set; then :
2557  enableval=$enable_pdfdoc; case "${enableval}" in
2558             (yes) pdfdoc=true ;;
2559             (no)  pdfdoc=false ;;
2560             (*)   as_fn_error $? "wrong argument to --enable-pdfdoc" "$LINENO" 5 ;;
2561  esac
2562else
2563  case "no" in
2564             (yes) pdfdoc=true ;;
2565             (no)  pdfdoc=false ;;
2566  esac
2567
2568fi
2569
2570
2571
2572debug=
2573# Check whether --enable-debug was given.
2574if test "${enable_debug+set}" = set; then :
2575  enableval=$enable_debug; case "${enableval}" in
2576             (yes) debug=true ;;
2577             (no)  debug=false ;;
2578             (*)   as_fn_error $? "wrong argument to --enable-debug" "$LINENO" 5 ;;
2579  esac
2580else
2581  case "no" in
2582             (yes) debug=true ;;
2583             (no)  debug=false ;;
2584  esac
2585
2586fi
2587
2588
2589
2590gcov=
2591# Check whether --enable-gcov was given.
2592if test "${enable_gcov+set}" = set; then :
2593  enableval=$enable_gcov; case "${enableval}" in
2594             (yes) gcov=true ;;
2595             (no)  gcov=false ;;
2596             (*)   as_fn_error $? "wrong argument to --enable-gcov" "$LINENO" 5 ;;
2597  esac
2598else
2599  case "no" in
2600             (yes) gcov=true ;;
2601             (no)  gcov=false ;;
2602  esac
2603
2604fi
2605
2606
2607
2608basic_warnings=
2609# Check whether --enable-basic-warnings was given.
2610if test "${enable_basic_warnings+set}" = set; then :
2611  enableval=$enable_basic_warnings; case "${enableval}" in
2612             (yes) basic_warnings=true ;;
2613             (no)  basic_warnings=false ;;
2614             (*)   as_fn_error $? "wrong argument to --enable-basic-warnings" "$LINENO" 5 ;;
2615  esac
2616else
2617  case "yes" in
2618             (yes) basic_warnings=true ;;
2619             (no)  basic_warnings=false ;;
2620  esac
2621
2622fi
2623
2624
2625
2626fussy=
2627# Check whether --enable-fussy was given.
2628if test "${enable_fussy+set}" = set; then :
2629  enableval=$enable_fussy; case "${enableval}" in
2630             (yes) fussy=true ;;
2631             (no)  fussy=false ;;
2632             (*)   as_fn_error $? "wrong argument to --enable-fussy" "$LINENO" 5 ;;
2633  esac
2634else
2635  case "no" in
2636             (yes) fussy=true ;;
2637             (no)  fussy=false ;;
2638  esac
2639
2640fi
2641
2642
2643
2644debug_glibcxx=
2645# Check whether --enable-debug-glibcxx was given.
2646if test "${enable_debug_glibcxx+set}" = set; then :
2647  enableval=$enable_debug_glibcxx; case "${enableval}" in
2648             (yes) debug_glibcxx=true ;;
2649             (no)  debug_glibcxx=false ;;
2650             (*)   as_fn_error $? "wrong argument to --enable-debug-glibcxx" "$LINENO" 5 ;;
2651  esac
2652else
2653  case "no" in
2654             (yes) debug_glibcxx=true ;;
2655             (no)  debug_glibcxx=false ;;
2656  esac
2657
2658fi
2659
2660
2661
2662shared=
2663# Check whether --enable-shared was given.
2664if test "${enable_shared+set}" = set; then :
2665  enableval=$enable_shared; case "${enableval}" in
2666             (yes) shared=true ;;
2667             (no)  shared=false ;;
2668             (*)   as_fn_error $? "wrong argument to --enable-shared" "$LINENO" 5 ;;
2669  esac
2670else
2671  case "yes" in
2672             (yes) shared=true ;;
2673             (no)  shared=false ;;
2674  esac
2675
2676fi
2677
2678
2679
2680dependency_tracking=
2681# Check whether --enable-dependency-tracking was given.
2682if test "${enable_dependency_tracking+set}" = set; then :
2683  enableval=$enable_dependency_tracking; case "${enableval}" in
2684             (yes) dependency_tracking=true ;;
2685             (no)  dependency_tracking=false ;;
2686             (*)   as_fn_error $? "wrong argument to --enable-dependency-tracking" "$LINENO" 5 ;;
2687  esac
2688else
2689  case "yes" in
2690             (yes) dependency_tracking=true ;;
2691             (no)  dependency_tracking=false ;;
2692  esac
2693
2694fi
2695
2696
2697
2698rpath=
2699# Check whether --enable-rpath was given.
2700if test "${enable_rpath+set}" = set; then :
2701  enableval=$enable_rpath; case "${enableval}" in
2702             (yes) rpath=true ;;
2703             (no)  rpath=false ;;
2704             (*)   as_fn_error $? "wrong argument to --enable-rpath" "$LINENO" 5 ;;
2705  esac
2706else
2707  case "no" in
2708             (yes) rpath=true ;;
2709             (no)  rpath=false ;;
2710  esac
2711
2712fi
2713
2714
2715
2716absolute_soname=
2717# Check whether --enable-absolute-soname was given.
2718if test "${enable_absolute_soname+set}" = set; then :
2719  enableval=$enable_absolute_soname; case "${enableval}" in
2720             (yes) absolute_soname=true ;;
2721             (no)  absolute_soname=false ;;
2722             (*)   as_fn_error $? "wrong argument to --enable-absolute-soname" "$LINENO" 5 ;;
2723  esac
2724else
2725  case "no" in
2726             (yes) absolute_soname=true ;;
2727             (no)  absolute_soname=false ;;
2728  esac
2729
2730fi
2731
2732
2733
2734absolute_install_name=
2735# Check whether --enable-absolute-install-name was given.
2736if test "${enable_absolute_install_name+set}" = set; then :
2737  enableval=$enable_absolute_install_name; case "${enableval}" in
2738             (yes) absolute_install_name=true ;;
2739             (no)  absolute_install_name=false ;;
2740             (*)   as_fn_error $? "wrong argument to --enable-absolute-install-name" "$LINENO" 5 ;;
2741  esac
2742else
2743  case "yes" in
2744             (yes) absolute_install_name=true ;;
2745             (no)  absolute_install_name=false ;;
2746  esac
2747
2748fi
2749
2750
2751
2752loader_path=
2753# Check whether --enable-loader-path was given.
2754if test "${enable_loader_path+set}" = set; then :
2755  enableval=$enable_loader_path; case "${enableval}" in
2756             (yes) loader_path=true ;;
2757             (no)  loader_path=false ;;
2758             (*)   as_fn_error $? "wrong argument to --enable-loader-path" "$LINENO" 5 ;;
2759  esac
2760else
2761  case "yes" in
2762             (yes) loader_path=true ;;
2763             (no)  loader_path=false ;;
2764  esac
2765
2766fi
2767
2768
2769
2770bsymbolic=
2771# Check whether --enable-bsymbolic was given.
2772if test "${enable_bsymbolic+set}" = set; then :
2773  enableval=$enable_bsymbolic; case "${enableval}" in
2774             (yes) bsymbolic=true ;;
2775             (no)  bsymbolic=false ;;
2776             (*)   as_fn_error $? "wrong argument to --enable-bsymbolic" "$LINENO" 5 ;;
2777  esac
2778else
2779  case "yes" in
2780             (yes) bsymbolic=true ;;
2781             (no)  bsymbolic=false ;;
2782  esac
2783
2784fi
2785
2786
2787
2788ld_r=
2789# Check whether --enable-ld-r was given.
2790if test "${enable_ld_r+set}" = set; then :
2791  enableval=$enable_ld_r; case "${enableval}" in
2792             (yes) ld_r=true ;;
2793             (no)  ld_r=false ;;
2794             (*)   as_fn_error $? "wrong argument to --enable-ld-r" "$LINENO" 5 ;;
2795  esac
2796else
2797  case "yes" in
2798             (yes) ld_r=true ;;
2799             (no)  ld_r=false ;;
2800  esac
2801
2802fi
2803
2804
2805
2806ar_cr=
2807# Check whether --enable-ar-cr was given.
2808if test "${enable_ar_cr+set}" = set; then :
2809  enableval=$enable_ar_cr; case "${enableval}" in
2810             (yes) ar_cr=true ;;
2811             (no)  ar_cr=false ;;
2812             (*)   as_fn_error $? "wrong argument to --enable-ar-cr" "$LINENO" 5 ;;
2813  esac
2814else
2815  case "yes" in
2816             (yes) ar_cr=true ;;
2817             (no)  ar_cr=false ;;
2818  esac
2819
2820fi
2821
2822
2823
2824static_archive=
2825# Check whether --enable-static-archive was given.
2826if test "${enable_static_archive+set}" = set; then :
2827  enableval=$enable_static_archive; case "${enableval}" in
2828             (yes) static_archive=true ;;
2829             (no)  static_archive=false ;;
2830             (*)   as_fn_error $? "wrong argument to --enable-static-archive" "$LINENO" 5 ;;
2831  esac
2832else
2833  case "yes" in
2834             (yes) static_archive=true ;;
2835             (no)  static_archive=false ;;
2836  esac
2837
2838fi
2839
2840
2841
2842asmjit=
2843# Check whether --enable-asmjit was given.
2844if test "${enable_asmjit+set}" = set; then :
2845  enableval=$enable_asmjit; case "${enableval}" in
2846             (yes) asmjit=true ;;
2847             (no)  asmjit=false ;;
2848             (*)   as_fn_error $? "wrong argument to --enable-asmjit" "$LINENO" 5 ;;
2849  esac
2850else
2851  case "no" in
2852             (yes) asmjit=true ;;
2853             (no)  asmjit=false ;;
2854  esac
2855
2856fi
2857
2858
2859
2860mpi=
2861# Check whether --enable-mpi was given.
2862if test "${enable_mpi+set}" = set; then :
2863  enableval=$enable_mpi; case "${enableval}" in
2864             (yes) mpi=true ;;
2865             (no)  mpi=false ;;
2866             (*)   as_fn_error $? "wrong argument to --enable-mpi" "$LINENO" 5 ;;
2867  esac
2868else
2869  case "yes" in
2870             (yes) mpi=true ;;
2871             (no)  mpi=false ;;
2872  esac
2873
2874fi
2875
2876
2877
2878external_lapack=
2879# Check whether --enable-external-lapack was given.
2880if test "${enable_external_lapack+set}" = set; then :
2881  enableval=$enable_external_lapack; case "${enableval}" in
2882             (yes) external_lapack=true ;;
2883             (no)  external_lapack=false ;;
2884             (*)   as_fn_error $? "wrong argument to --enable-external-lapack" "$LINENO" 5 ;;
2885  esac
2886else
2887  case "yes" in
2888             (yes) external_lapack=true ;;
2889             (no)  external_lapack=false ;;
2890  esac
2891
2892fi
2893
2894
2895
2896external_blas=
2897# Check whether --enable-external-blas was given.
2898if test "${enable_external_blas+set}" = set; then :
2899  enableval=$enable_external_blas; case "${enableval}" in
2900             (yes) external_blas=true ;;
2901             (no)  external_blas=false ;;
2902             (*)   as_fn_error $? "wrong argument to --enable-external-blas" "$LINENO" 5 ;;
2903  esac
2904else
2905  case "yes" in
2906             (yes) external_blas=true ;;
2907             (no)  external_blas=false ;;
2908  esac
2909
2910fi
2911
2912
2913
2914molfile_plugins=
2915# Check whether --enable-molfile-plugins was given.
2916if test "${enable_molfile_plugins+set}" = set; then :
2917  enableval=$enable_molfile_plugins; case "${enableval}" in
2918             (yes) molfile_plugins=true ;;
2919             (no)  molfile_plugins=false ;;
2920             (*)   as_fn_error $? "wrong argument to --enable-molfile-plugins" "$LINENO" 5 ;;
2921  esac
2922else
2923  case "yes" in
2924             (yes) molfile_plugins=true ;;
2925             (no)  molfile_plugins=false ;;
2926  esac
2927
2928fi
2929
2930
2931
2932external_molfile_plugins=
2933# Check whether --enable-external-molfile-plugins was given.
2934if test "${enable_external_molfile_plugins+set}" = set; then :
2935  enableval=$enable_external_molfile_plugins; case "${enableval}" in
2936             (yes) external_molfile_plugins=true ;;
2937             (no)  external_molfile_plugins=false ;;
2938             (*)   as_fn_error $? "wrong argument to --enable-external-molfile-plugins" "$LINENO" 5 ;;
2939  esac
2940else
2941  case "yes" in
2942             (yes) external_molfile_plugins=true ;;
2943             (no)  external_molfile_plugins=false ;;
2944  esac
2945
2946fi
2947
2948
2949
2950zlib=
2951# Check whether --enable-zlib was given.
2952if test "${enable_zlib+set}" = set; then :
2953  enableval=$enable_zlib; case "${enableval}" in
2954             (yes) zlib=true ;;
2955             (no)  zlib=false ;;
2956             (*)   as_fn_error $? "wrong argument to --enable-zlib" "$LINENO" 5 ;;
2957  esac
2958else
2959  case "yes" in
2960             (yes) zlib=true ;;
2961             (no)  zlib=false ;;
2962  esac
2963
2964fi
2965
2966
2967
2968readdir_r=
2969# Check whether --enable-readdir-r was given.
2970if test "${enable_readdir_r+set}" = set; then :
2971  enableval=$enable_readdir_r; case "${enableval}" in
2972             (yes) readdir_r=true ;;
2973             (no)  readdir_r=false ;;
2974             (*)   as_fn_error $? "wrong argument to --enable-readdir-r" "$LINENO" 5 ;;
2975  esac
2976else
2977  case "no" in
2978             (yes) readdir_r=true ;;
2979             (no)  readdir_r=false ;;
2980  esac
2981
2982fi
2983
2984
2985
2986cregex=
2987# Check whether --enable-cregex was given.
2988if test "${enable_cregex+set}" = set; then :
2989  enableval=$enable_cregex; case "${enableval}" in
2990             (yes) cregex=true ;;
2991             (no)  cregex=false ;;
2992             (*)   as_fn_error $? "wrong argument to --enable-cregex" "$LINENO" 5 ;;
2993  esac
2994else
2995  case "yes" in
2996             (yes) cregex=true ;;
2997             (no)  cregex=false ;;
2998  esac
2999
3000fi
3001
3002
3003
3004dlopen=
3005# Check whether --enable-dlopen was given.
3006if test "${enable_dlopen+set}" = set; then :
3007  enableval=$enable_dlopen; case "${enableval}" in
3008             (yes) dlopen=true ;;
3009             (no)  dlopen=false ;;
3010             (*)   as_fn_error $? "wrong argument to --enable-dlopen" "$LINENO" 5 ;;
3011  esac
3012else
3013  case "yes" in
3014             (yes) dlopen=true ;;
3015             (no)  dlopen=false ;;
3016  esac
3017
3018fi
3019
3020
3021
3022rtld_default=
3023# Check whether --enable-rtld_default was given.
3024if test "${enable_rtld_default+set}" = set; then :
3025  enableval=$enable_rtld_default; case "${enableval}" in
3026             (yes) rtld_default=true ;;
3027             (no)  rtld_default=false ;;
3028             (*)   as_fn_error $? "wrong argument to --enable-rtld_default" "$LINENO" 5 ;;
3029  esac
3030else
3031  case "yes" in
3032             (yes) rtld_default=true ;;
3033             (no)  rtld_default=false ;;
3034  esac
3035
3036fi
3037
3038
3039
3040chdir=
3041# Check whether --enable-chdir was given.
3042if test "${enable_chdir+set}" = set; then :
3043  enableval=$enable_chdir; case "${enableval}" in
3044             (yes) chdir=true ;;
3045             (no)  chdir=false ;;
3046             (*)   as_fn_error $? "wrong argument to --enable-chdir" "$LINENO" 5 ;;
3047  esac
3048else
3049  case "yes" in
3050             (yes) chdir=true ;;
3051             (no)  chdir=false ;;
3052  esac
3053
3054fi
3055
3056
3057
3058subprocess=
3059# Check whether --enable-subprocess was given.
3060if test "${enable_subprocess+set}" = set; then :
3061  enableval=$enable_subprocess; case "${enableval}" in
3062             (yes) subprocess=true ;;
3063             (no)  subprocess=false ;;
3064             (*)   as_fn_error $? "wrong argument to --enable-subprocess" "$LINENO" 5 ;;
3065  esac
3066else
3067  case "yes" in
3068             (yes) subprocess=true ;;
3069             (no)  subprocess=false ;;
3070  esac
3071
3072fi
3073
3074
3075
3076getcwd=
3077# Check whether --enable-getcwd was given.
3078if test "${enable_getcwd+set}" = set; then :
3079  enableval=$enable_getcwd; case "${enableval}" in
3080             (yes) getcwd=true ;;
3081             (no)  getcwd=false ;;
3082             (*)   as_fn_error $? "wrong argument to --enable-getcwd" "$LINENO" 5 ;;
3083  esac
3084else
3085  case "yes" in
3086             (yes) getcwd=true ;;
3087             (no)  getcwd=false ;;
3088  esac
3089
3090fi
3091
3092
3093
3094execinfo=
3095# Check whether --enable-execinfo was given.
3096if test "${enable_execinfo+set}" = set; then :
3097  enableval=$enable_execinfo; case "${enableval}" in
3098             (yes) execinfo=true ;;
3099             (no)  execinfo=false ;;
3100             (*)   as_fn_error $? "wrong argument to --enable-execinfo" "$LINENO" 5 ;;
3101  esac
3102else
3103  case "yes" in
3104             (yes) execinfo=true ;;
3105             (no)  execinfo=false ;;
3106  esac
3107
3108fi
3109
3110
3111
3112gsl=
3113# Check whether --enable-gsl was given.
3114if test "${enable_gsl+set}" = set; then :
3115  enableval=$enable_gsl; case "${enableval}" in
3116             (yes) gsl=true ;;
3117             (no)  gsl=false ;;
3118             (*)   as_fn_error $? "wrong argument to --enable-gsl" "$LINENO" 5 ;;
3119  esac
3120else
3121  case "yes" in
3122             (yes) gsl=true ;;
3123             (no)  gsl=false ;;
3124  esac
3125
3126fi
3127
3128
3129
3130xdrfile=
3131# Check whether --enable-xdrfile was given.
3132if test "${enable_xdrfile+set}" = set; then :
3133  enableval=$enable_xdrfile; case "${enableval}" in
3134             (yes) xdrfile=true ;;
3135             (no)  xdrfile=false ;;
3136             (*)   as_fn_error $? "wrong argument to --enable-xdrfile" "$LINENO" 5 ;;
3137  esac
3138else
3139  case "yes" in
3140             (yes) xdrfile=true ;;
3141             (no)  xdrfile=false ;;
3142  esac
3143
3144fi
3145
3146
3147
3148boost_graph=
3149# Check whether --enable-boost_graph was given.
3150if test "${enable_boost_graph+set}" = set; then :
3151  enableval=$enable_boost_graph; case "${enableval}" in
3152             (yes) boost_graph=true ;;
3153             (no)  boost_graph=false ;;
3154             (*)   as_fn_error $? "wrong argument to --enable-boost_graph" "$LINENO" 5 ;;
3155  esac
3156else
3157  case "no" in
3158             (yes) boost_graph=true ;;
3159             (no)  boost_graph=false ;;
3160  esac
3161
3162fi
3163
3164
3165
3166boost_serialization=
3167# Check whether --enable-boost_serialization was given.
3168if test "${enable_boost_serialization+set}" = set; then :
3169  enableval=$enable_boost_serialization; case "${enableval}" in
3170             (yes) boost_serialization=true ;;
3171             (no)  boost_serialization=false ;;
3172             (*)   as_fn_error $? "wrong argument to --enable-boost_serialization" "$LINENO" 5 ;;
3173  esac
3174else
3175  case "no" in
3176             (yes) boost_serialization=true ;;
3177             (no)  boost_serialization=false ;;
3178  esac
3179
3180fi
3181
3182
3183
3184fftw=
3185# Check whether --enable-fftw was given.
3186if test "${enable_fftw+set}" = set; then :
3187  enableval=$enable_fftw; case "${enableval}" in
3188             (yes) fftw=true ;;
3189             (no)  fftw=false ;;
3190             (*)   as_fn_error $? "wrong argument to --enable-fftw" "$LINENO" 5 ;;
3191  esac
3192else
3193  case "yes" in
3194             (yes) fftw=true ;;
3195             (no)  fftw=false ;;
3196  esac
3197
3198fi
3199
3200
3201
3202python=
3203# Check whether --enable-python was given.
3204if test "${enable_python+set}" = set; then :
3205  enableval=$enable_python; case "${enableval}" in
3206             (yes) python=true ;;
3207             (no)  python=false ;;
3208             (*)   as_fn_error $? "wrong argument to --enable-python" "$LINENO" 5 ;;
3209  esac
3210else
3211  case "yes" in
3212             (yes) python=true ;;
3213             (no)  python=false ;;
3214  esac
3215
3216fi
3217
3218
3219
3220af_ocl=
3221# Check whether --enable-af_ocl was given.
3222if test "${enable_af_ocl+set}" = set; then :
3223  enableval=$enable_af_ocl; case "${enableval}" in
3224             (yes) af_ocl=true ;;
3225             (no)  af_ocl=false ;;
3226             (*)   as_fn_error $? "wrong argument to --enable-af_ocl" "$LINENO" 5 ;;
3227  esac
3228else
3229  case "no" in
3230             (yes) af_ocl=true ;;
3231             (no)  af_ocl=false ;;
3232  esac
3233
3234fi
3235
3236
3237
3238af_cuda=
3239# Check whether --enable-af_cuda was given.
3240if test "${enable_af_cuda+set}" = set; then :
3241  enableval=$enable_af_cuda; case "${enableval}" in
3242             (yes) af_cuda=true ;;
3243             (no)  af_cuda=false ;;
3244             (*)   as_fn_error $? "wrong argument to --enable-af_cuda" "$LINENO" 5 ;;
3245  esac
3246else
3247  case "no" in
3248             (yes) af_cuda=true ;;
3249             (no)  af_cuda=false ;;
3250  esac
3251
3252fi
3253
3254
3255
3256af_cpu=
3257# Check whether --enable-af_cpu was given.
3258if test "${enable_af_cpu+set}" = set; then :
3259  enableval=$enable_af_cpu; case "${enableval}" in
3260             (yes) af_cpu=true ;;
3261             (no)  af_cpu=false ;;
3262             (*)   as_fn_error $? "wrong argument to --enable-af_cpu" "$LINENO" 5 ;;
3263  esac
3264else
3265  case "no" in
3266             (yes) af_cpu=true ;;
3267             (no)  af_cpu=false ;;
3268  esac
3269
3270fi
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282# by default use -O flag
3283# we override the autoconf default (-g) because in release build we do not want to
3284# include symbol information (obj files are huge)
3285if test -z "$CXXFLAGS"
3286then
3287  CXXFLAGS=-O3
3288fi
3289
3290# this is a list of common compilers
3291compilers="g++ c++ cxx icpc"
3292c_compilers="gcc cc icc"
3293
3294# on OSX, prefer clang++
3295case `(uname)` in
3296  (Darwin)
3297    compilers="clang++ $compilers"
3298    c_compilers="clang $c_compilers"
3299  ;;
3300esac
3301
3302# if searching for MPI, try first mpi-like compilers
3303if test $mpi == true ; then
3304compilers="mpic++ mpicxx mpiicpc openmpic++ openmpicxx $compilers"
3305fi
3306
3307# do the actual search
3308ac_ext=cpp
3309ac_cpp='$CXXCPP $CPPFLAGS'
3310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3313if test -z "$CXX"; then
3314  if test -n "$CCC"; then
3315    CXX=$CCC
3316  else
3317    if test -n "$ac_tool_prefix"; then
3318  for ac_prog in $compilers
3319  do
3320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if ${ac_cv_prog_CXX+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if test -n "$CXX"; then
3328  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333  IFS=$as_save_IFS
3334  test -z "$as_dir" && as_dir=.
3335    for ac_exec_ext in '' $ac_executable_extensions; do
3336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339    break 2
3340  fi
3341done
3342  done
3343IFS=$as_save_IFS
3344
3345fi
3346fi
3347CXX=$ac_cv_prog_CXX
3348if test -n "$CXX"; then
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3350$as_echo "$CXX" >&6; }
3351else
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356
3357    test -n "$CXX" && break
3358  done
3359fi
3360if test -z "$CXX"; then
3361  ac_ct_CXX=$CXX
3362  for ac_prog in $compilers
3363do
3364  # Extract the first word of "$ac_prog", so it can be a program name with args.
3365set dummy $ac_prog; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$ac_ct_CXX"; then
3372  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_ac_ct_CXX="$ac_prog"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3392if test -n "$ac_ct_CXX"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3394$as_echo "$ac_ct_CXX" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401  test -n "$ac_ct_CXX" && break
3402done
3403
3404  if test "x$ac_ct_CXX" = x; then
3405    CXX="g++"
3406  else
3407    case $cross_compiling:$ac_tool_warned in
3408yes:)
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411ac_tool_warned=yes ;;
3412esac
3413    CXX=$ac_ct_CXX
3414  fi
3415fi
3416
3417  fi
3418fi
3419# Provide some information about the compiler.
3420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3421set X $ac_compile
3422ac_compiler=$2
3423for ac_option in --version -v -V -qversion; do
3424  { { ac_try="$ac_compiler $ac_option >&5"
3425case "(($ac_try" in
3426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427  *) ac_try_echo=$ac_try;;
3428esac
3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430$as_echo "$ac_try_echo"; } >&5
3431  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432  ac_status=$?
3433  if test -s conftest.err; then
3434    sed '10a\
3435... rest of stderr output deleted ...
3436         10q' conftest.err >conftest.er1
3437    cat conftest.er1 >&5
3438  fi
3439  rm -f conftest.er1 conftest.err
3440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441  test $ac_status = 0; }
3442done
3443
3444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455ac_clean_files_save=$ac_clean_files
3456ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3457# Try to create an executable without -o first, disregard a.out.
3458# It will help us diagnose broken compilers, and finding out an intuition
3459# of exeext.
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3461$as_echo_n "checking whether the C++ compiler works... " >&6; }
3462ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3463
3464# The possible output files:
3465ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3466
3467ac_rmfiles=
3468for ac_file in $ac_files
3469do
3470  case $ac_file in
3471    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3472    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3473  esac
3474done
3475rm -f $ac_rmfiles
3476
3477if { { ac_try="$ac_link_default"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483$as_echo "$ac_try_echo"; } >&5
3484  (eval "$ac_link_default") 2>&5
3485  ac_status=$?
3486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }; then :
3488  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3489# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3490# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3491# so that the user can short-circuit this test for compilers unknown to
3492# Autoconf.
3493for ac_file in $ac_files ''
3494do
3495  test -f "$ac_file" || continue
3496  case $ac_file in
3497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3498	;;
3499    [ab].out )
3500	# We found the default executable, but exeext='' is most
3501	# certainly right.
3502	break;;
3503    *.* )
3504	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3505	then :; else
3506	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3507	fi
3508	# We set ac_cv_exeext here because the later test for it is not
3509	# safe: cross compilers may not add the suffix if given an `-o'
3510	# argument, so we may need to know it at that point already.
3511	# Even if this section looks crufty: it has the advantage of
3512	# actually working.
3513	break;;
3514    * )
3515	break;;
3516  esac
3517done
3518test "$ac_cv_exeext" = no && ac_cv_exeext=
3519
3520else
3521  ac_file=''
3522fi
3523if test -z "$ac_file"; then :
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526$as_echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
3529{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error 77 "C++ compiler cannot create executables
3532See \`config.log' for more details" "$LINENO" 5; }
3533else
3534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535$as_echo "yes" >&6; }
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3538$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3540$as_echo "$ac_file" >&6; }
3541ac_exeext=$ac_cv_exeext
3542
3543rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3544ac_clean_files=$ac_clean_files_save
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3546$as_echo_n "checking for suffix of executables... " >&6; }
3547if { { ac_try="$ac_link"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554  (eval "$ac_link") 2>&5
3555  ac_status=$?
3556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557  test $ac_status = 0; }; then :
3558  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3559# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3560# work properly (i.e., refer to `conftest.exe'), while it won't with
3561# `rm'.
3562for ac_file in conftest.exe conftest conftest.*; do
3563  test -f "$ac_file" || continue
3564  case $ac_file in
3565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567	  break;;
3568    * ) break;;
3569  esac
3570done
3571else
3572  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3575See \`config.log' for more details" "$LINENO" 5; }
3576fi
3577rm -f conftest conftest$ac_cv_exeext
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3579$as_echo "$ac_cv_exeext" >&6; }
3580
3581rm -f conftest.$ac_ext
3582EXEEXT=$ac_cv_exeext
3583ac_exeext=$EXEEXT
3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h.  */
3586#include <stdio.h>
3587int
3588main ()
3589{
3590FILE *f = fopen ("conftest.out", "w");
3591 return ferror (f) || fclose (f) != 0;
3592
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597ac_clean_files="$ac_clean_files conftest.out"
3598# Check that the compiler produces executables we can run.  If not, either
3599# the compiler is broken, or we cross compile.
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601$as_echo_n "checking whether we are cross compiling... " >&6; }
3602if test "$cross_compiling" != yes; then
3603  { { ac_try="$ac_link"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609$as_echo "$ac_try_echo"; } >&5
3610  (eval "$ac_link") 2>&5
3611  ac_status=$?
3612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613  test $ac_status = 0; }
3614  if { ac_try='./conftest$ac_cv_exeext'
3615  { { case "(($ac_try" in
3616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617  *) ac_try_echo=$ac_try;;
3618esac
3619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620$as_echo "$ac_try_echo"; } >&5
3621  (eval "$ac_try") 2>&5
3622  ac_status=$?
3623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624  test $ac_status = 0; }; }; then
3625    cross_compiling=no
3626  else
3627    if test "$cross_compiling" = maybe; then
3628	cross_compiling=yes
3629    else
3630	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632as_fn_error $? "cannot run C++ compiled programs.
3633If you meant to cross compile, use \`--host'.
3634See \`config.log' for more details" "$LINENO" 5; }
3635    fi
3636  fi
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3639$as_echo "$cross_compiling" >&6; }
3640
3641rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3642ac_clean_files=$ac_clean_files_save
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3644$as_echo_n "checking for suffix of object files... " >&6; }
3645if ${ac_cv_objext+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659rm -f conftest.o conftest.obj
3660if { { ac_try="$ac_compile"
3661case "(($ac_try" in
3662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663  *) ac_try_echo=$ac_try;;
3664esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5
3667  (eval "$ac_compile") 2>&5
3668  ac_status=$?
3669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670  test $ac_status = 0; }; then :
3671  for ac_file in conftest.o conftest.obj conftest.*; do
3672  test -f "$ac_file" || continue;
3673  case $ac_file in
3674    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3675    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3676       break;;
3677  esac
3678done
3679else
3680  $as_echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685as_fn_error $? "cannot compute suffix of object files: cannot compile
3686See \`config.log' for more details" "$LINENO" 5; }
3687fi
3688rm -f conftest.$ac_cv_objext conftest.$ac_ext
3689fi
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3691$as_echo "$ac_cv_objext" >&6; }
3692OBJEXT=$ac_cv_objext
3693ac_objext=$OBJEXT
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3695$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3696if ${ac_cv_cxx_compiler_gnu+:} false; then :
3697  $as_echo_n "(cached) " >&6
3698else
3699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h.  */
3701
3702int
3703main ()
3704{
3705#ifndef __GNUC__
3706       choke me
3707#endif
3708
3709  ;
3710  return 0;
3711}
3712_ACEOF
3713if ac_fn_cxx_try_compile "$LINENO"; then :
3714  ac_compiler_gnu=yes
3715else
3716  ac_compiler_gnu=no
3717fi
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3720
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3723$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3724if test $ac_compiler_gnu = yes; then
3725  GXX=yes
3726else
3727  GXX=
3728fi
3729ac_test_CXXFLAGS=${CXXFLAGS+set}
3730ac_save_CXXFLAGS=$CXXFLAGS
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3732$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3733if ${ac_cv_prog_cxx_g+:} false; then :
3734  $as_echo_n "(cached) " >&6
3735else
3736  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3737   ac_cxx_werror_flag=yes
3738   ac_cv_prog_cxx_g=no
3739   CXXFLAGS="-g"
3740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741/* end confdefs.h.  */
3742
3743int
3744main ()
3745{
3746
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751if ac_fn_cxx_try_compile "$LINENO"; then :
3752  ac_cv_prog_cxx_g=yes
3753else
3754  CXXFLAGS=""
3755      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766if ac_fn_cxx_try_compile "$LINENO"; then :
3767
3768else
3769  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3770	 CXXFLAGS="-g"
3771	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782if ac_fn_cxx_try_compile "$LINENO"; then :
3783  ac_cv_prog_cxx_g=yes
3784fi
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3793$as_echo "$ac_cv_prog_cxx_g" >&6; }
3794if test "$ac_test_CXXFLAGS" = set; then
3795  CXXFLAGS=$ac_save_CXXFLAGS
3796elif test $ac_cv_prog_cxx_g = yes; then
3797  if test "$GXX" = yes; then
3798    CXXFLAGS="-g -O2"
3799  else
3800    CXXFLAGS="-g"
3801  fi
3802else
3803  if test "$GXX" = yes; then
3804    CXXFLAGS="-O2"
3805  else
3806    CXXFLAGS=
3807  fi
3808fi
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814
3815ac_ext=c
3816ac_cpp='$CPP $CPPFLAGS'
3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820if test -n "$ac_tool_prefix"; then
3821  for ac_prog in $c_compilers
3822  do
3823    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826$as_echo_n "checking for $ac_word... " >&6; }
3827if ${ac_cv_prog_CC+:} false; then :
3828  $as_echo_n "(cached) " >&6
3829else
3830  if test -n "$CC"; then
3831  ac_cv_prog_CC="$CC" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836  IFS=$as_save_IFS
3837  test -z "$as_dir" && as_dir=.
3838    for ac_exec_ext in '' $ac_executable_extensions; do
3839  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3841    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3842    break 2
3843  fi
3844done
3845  done
3846IFS=$as_save_IFS
3847
3848fi
3849fi
3850CC=$ac_cv_prog_CC
3851if test -n "$CC"; then
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853$as_echo "$CC" >&6; }
3854else
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856$as_echo "no" >&6; }
3857fi
3858
3859
3860    test -n "$CC" && break
3861  done
3862fi
3863if test -z "$CC"; then
3864  ac_ct_CC=$CC
3865  for ac_prog in $c_compilers
3866do
3867  # Extract the first word of "$ac_prog", so it can be a program name with args.
3868set dummy $ac_prog; ac_word=$2
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if ${ac_cv_prog_ac_ct_CC+:} false; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -n "$ac_ct_CC"; then
3875  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880  IFS=$as_save_IFS
3881  test -z "$as_dir" && as_dir=.
3882    for ac_exec_ext in '' $ac_executable_extensions; do
3883  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3884    ac_cv_prog_ac_ct_CC="$ac_prog"
3885    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886    break 2
3887  fi
3888done
3889  done
3890IFS=$as_save_IFS
3891
3892fi
3893fi
3894ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895if test -n "$ac_ct_CC"; then
3896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897$as_echo "$ac_ct_CC" >&6; }
3898else
3899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901fi
3902
3903
3904  test -n "$ac_ct_CC" && break
3905done
3906
3907  if test "x$ac_ct_CC" = x; then
3908    CC=""
3909  else
3910    case $cross_compiling:$ac_tool_warned in
3911yes:)
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3914ac_tool_warned=yes ;;
3915esac
3916    CC=$ac_ct_CC
3917  fi
3918fi
3919
3920
3921test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923as_fn_error $? "no acceptable C compiler found in \$PATH
3924See \`config.log' for more details" "$LINENO" 5; }
3925
3926# Provide some information about the compiler.
3927$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3928set X $ac_compile
3929ac_compiler=$2
3930for ac_option in --version -v -V -qversion; do
3931  { { ac_try="$ac_compiler $ac_option >&5"
3932case "(($ac_try" in
3933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934  *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937$as_echo "$ac_try_echo"; } >&5
3938  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3939  ac_status=$?
3940  if test -s conftest.err; then
3941    sed '10a\
3942... rest of stderr output deleted ...
3943         10q' conftest.err >conftest.er1
3944    cat conftest.er1 >&5
3945  fi
3946  rm -f conftest.er1 conftest.err
3947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948  test $ac_status = 0; }
3949done
3950
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3952$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3953if ${ac_cv_c_compiler_gnu+:} false; then :
3954  $as_echo_n "(cached) " >&6
3955else
3956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h.  */
3958
3959int
3960main ()
3961{
3962#ifndef __GNUC__
3963       choke me
3964#endif
3965
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"; then :
3971  ac_compiler_gnu=yes
3972else
3973  ac_compiler_gnu=no
3974fi
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977
3978fi
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3980$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981if test $ac_compiler_gnu = yes; then
3982  GCC=yes
3983else
3984  GCC=
3985fi
3986ac_test_CFLAGS=${CFLAGS+set}
3987ac_save_CFLAGS=$CFLAGS
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3989$as_echo_n "checking whether $CC accepts -g... " >&6; }
3990if ${ac_cv_prog_cc_g+:} false; then :
3991  $as_echo_n "(cached) " >&6
3992else
3993  ac_save_c_werror_flag=$ac_c_werror_flag
3994   ac_c_werror_flag=yes
3995   ac_cv_prog_cc_g=no
3996   CFLAGS="-g"
3997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h.  */
3999
4000int
4001main ()
4002{
4003
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008if ac_fn_c_try_compile "$LINENO"; then :
4009  ac_cv_prog_cc_g=yes
4010else
4011  CFLAGS=""
4012      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h.  */
4014
4015int
4016main ()
4017{
4018
4019  ;
4020  return 0;
4021}
4022_ACEOF
4023if ac_fn_c_try_compile "$LINENO"; then :
4024
4025else
4026  ac_c_werror_flag=$ac_save_c_werror_flag
4027	 CFLAGS="-g"
4028	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030
4031int
4032main ()
4033{
4034
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039if ac_fn_c_try_compile "$LINENO"; then :
4040  ac_cv_prog_cc_g=yes
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043fi
4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045fi
4046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047   ac_c_werror_flag=$ac_save_c_werror_flag
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4050$as_echo "$ac_cv_prog_cc_g" >&6; }
4051if test "$ac_test_CFLAGS" = set; then
4052  CFLAGS=$ac_save_CFLAGS
4053elif test $ac_cv_prog_cc_g = yes; then
4054  if test "$GCC" = yes; then
4055    CFLAGS="-g -O2"
4056  else
4057    CFLAGS="-g"
4058  fi
4059else
4060  if test "$GCC" = yes; then
4061    CFLAGS="-O2"
4062  else
4063    CFLAGS=
4064  fi
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4067$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4068if ${ac_cv_prog_cc_c89+:} false; then :
4069  $as_echo_n "(cached) " >&6
4070else
4071  ac_cv_prog_cc_c89=no
4072ac_save_CC=$CC
4073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074/* end confdefs.h.  */
4075#include <stdarg.h>
4076#include <stdio.h>
4077struct stat;
4078/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4079struct buf { int x; };
4080FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081static char *e (p, i)
4082     char **p;
4083     int i;
4084{
4085  return p[i];
4086}
4087static char *f (char * (*g) (char **, int), char **p, ...)
4088{
4089  char *s;
4090  va_list v;
4091  va_start (v,p);
4092  s = g (p, va_arg (v,int));
4093  va_end (v);
4094  return s;
4095}
4096
4097/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4098   function prototypes and stuff, but not '\xHH' hex character constants.
4099   These don't provoke an error unfortunately, instead are silently treated
4100   as 'x'.  The following induces an error, until -std is added to get
4101   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4102   array size at least.  It's necessary to write '\x00'==0 to get something
4103   that's true only with -std.  */
4104int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105
4106/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107   inside strings and character constants.  */
4108#define FOO(x) 'x'
4109int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110
4111int test (int i, double x);
4112struct s1 {int (*f) (int a);};
4113struct s2 {int (*f) (double a);};
4114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4115int argc;
4116char **argv;
4117int
4118main ()
4119{
4120return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4121  ;
4122  return 0;
4123}
4124_ACEOF
4125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127do
4128  CC="$ac_save_CC $ac_arg"
4129  if ac_fn_c_try_compile "$LINENO"; then :
4130  ac_cv_prog_cc_c89=$ac_arg
4131fi
4132rm -f core conftest.err conftest.$ac_objext
4133  test "x$ac_cv_prog_cc_c89" != "xno" && break
4134done
4135rm -f conftest.$ac_ext
4136CC=$ac_save_CC
4137
4138fi
4139# AC_CACHE_VAL
4140case "x$ac_cv_prog_cc_c89" in
4141  x)
4142    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143$as_echo "none needed" >&6; } ;;
4144  xno)
4145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146$as_echo "unsupported" >&6; } ;;
4147  *)
4148    CC="$CC $ac_cv_prog_cc_c89"
4149    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151esac
4152if test "x$ac_cv_prog_cc_c89" != xno; then :
4153
4154fi
4155
4156ac_ext=c
4157ac_cpp='$CPP $CPPFLAGS'
4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162
4163# also setup Fortran compiler
4164# this is optional, and can be used in the late part of this
4165# script to verify that fortran can indeed link properly the
4166# a c++ library
4167ac_ext=${ac_fc_srcext-f}
4168ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4169ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4170ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4171if test -n "$ac_tool_prefix"; then
4172  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
4173  do
4174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177$as_echo_n "checking for $ac_word... " >&6; }
4178if ${ac_cv_prog_FC+:} false; then :
4179  $as_echo_n "(cached) " >&6
4180else
4181  if test -n "$FC"; then
4182  ac_cv_prog_FC="$FC" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189    for ac_exec_ext in '' $ac_executable_extensions; do
4190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196  done
4197IFS=$as_save_IFS
4198
4199fi
4200fi
4201FC=$ac_cv_prog_FC
4202if test -n "$FC"; then
4203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4204$as_echo "$FC" >&6; }
4205else
4206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207$as_echo "no" >&6; }
4208fi
4209
4210
4211    test -n "$FC" && break
4212  done
4213fi
4214if test -z "$FC"; then
4215  ac_ct_FC=$FC
4216  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
4217do
4218  # Extract the first word of "$ac_prog", so it can be a program name with args.
4219set dummy $ac_prog; ac_word=$2
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221$as_echo_n "checking for $ac_word... " >&6; }
4222if ${ac_cv_prog_ac_ct_FC+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  if test -n "$ac_ct_FC"; then
4226  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4227else
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233    for ac_exec_ext in '' $ac_executable_extensions; do
4234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235    ac_cv_prog_ac_ct_FC="$ac_prog"
4236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240  done
4241IFS=$as_save_IFS
4242
4243fi
4244fi
4245ac_ct_FC=$ac_cv_prog_ac_ct_FC
4246if test -n "$ac_ct_FC"; then
4247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4248$as_echo "$ac_ct_FC" >&6; }
4249else
4250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
4252fi
4253
4254
4255  test -n "$ac_ct_FC" && break
4256done
4257
4258  if test "x$ac_ct_FC" = x; then
4259    FC=""
4260  else
4261    case $cross_compiling:$ac_tool_warned in
4262yes:)
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265ac_tool_warned=yes ;;
4266esac
4267    FC=$ac_ct_FC
4268  fi
4269fi
4270
4271
4272# Provide some information about the compiler.
4273$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4274set X $ac_compile
4275ac_compiler=$2
4276for ac_option in --version -v -V -qversion; do
4277  { { ac_try="$ac_compiler $ac_option >&5"
4278case "(($ac_try" in
4279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280  *) ac_try_echo=$ac_try;;
4281esac
4282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283$as_echo "$ac_try_echo"; } >&5
4284  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4285  ac_status=$?
4286  if test -s conftest.err; then
4287    sed '10a\
4288... rest of stderr output deleted ...
4289         10q' conftest.err >conftest.er1
4290    cat conftest.er1 >&5
4291  fi
4292  rm -f conftest.er1 conftest.err
4293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294  test $ac_status = 0; }
4295done
4296rm -f a.out
4297
4298# If we don't use `.F' as extension, the preprocessor is not run on the
4299# input file.  (Note that this only needs to work for GNU compilers.)
4300ac_save_ext=$ac_ext
4301ac_ext=F
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4303$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4304if ${ac_cv_fc_compiler_gnu+:} false; then :
4305  $as_echo_n "(cached) " >&6
4306else
4307  cat > conftest.$ac_ext <<_ACEOF
4308      program main
4309#ifndef __GNUC__
4310       choke me
4311#endif
4312
4313      end
4314_ACEOF
4315if ac_fn_fc_try_compile "$LINENO"; then :
4316  ac_compiler_gnu=yes
4317else
4318  ac_compiler_gnu=no
4319fi
4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4322
4323fi
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4325$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4326ac_ext=$ac_save_ext
4327ac_test_FCFLAGS=${FCFLAGS+set}
4328ac_save_FCFLAGS=$FCFLAGS
4329FCFLAGS=
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4331$as_echo_n "checking whether $FC accepts -g... " >&6; }
4332if ${ac_cv_prog_fc_g+:} false; then :
4333  $as_echo_n "(cached) " >&6
4334else
4335  FCFLAGS=-g
4336cat > conftest.$ac_ext <<_ACEOF
4337      program main
4338
4339      end
4340_ACEOF
4341if ac_fn_fc_try_compile "$LINENO"; then :
4342  ac_cv_prog_fc_g=yes
4343else
4344  ac_cv_prog_fc_g=no
4345fi
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347
4348fi
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4350$as_echo "$ac_cv_prog_fc_g" >&6; }
4351if test "$ac_test_FCFLAGS" = set; then
4352  FCFLAGS=$ac_save_FCFLAGS
4353elif test $ac_cv_prog_fc_g = yes; then
4354  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4355    FCFLAGS="-g -O2"
4356  else
4357    FCFLAGS="-g"
4358  fi
4359else
4360  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4361    FCFLAGS="-O2"
4362  else
4363    FCFLAGS=
4364  fi
4365fi
4366
4367if test $ac_compiler_gnu = yes; then
4368  GFC=yes
4369else
4370  GFC=
4371fi
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378
4379# we use C++ for all the autoconf tests
4380ac_ext=cpp
4381ac_cpp='$CXXCPP $CPPFLAGS'
4382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4385
4386
4387if test -z "$LDSHARED" ; then
4388  LDSHARED="$CXX"
4389fi
4390
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial CXX:         $CXX" >&5
4392$as_echo "$as_me: Initial CXX:         $CXX" >&6;}
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial CXXFLAGS:    $CXXFLAGS" >&5
4394$as_echo "$as_me: Initial CXXFLAGS:    $CXXFLAGS" >&6;}
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial CPPFLAGS:    $CPPFLAGS" >&5
4396$as_echo "$as_me: Initial CPPFLAGS:    $CPPFLAGS" >&6;}
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial CFLAGS:      $CFLAGS" >&5
4398$as_echo "$as_me: Initial CFLAGS:      $CFLAGS" >&6;}
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial LDFLAGS:     $LDFLAGS" >&5
4400$as_echo "$as_me: Initial LDFLAGS:     $LDFLAGS" >&6;}
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial LIBS:        $LIBS" >&5
4402$as_echo "$as_me: Initial LIBS:        $LIBS" >&6;}
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial STATIC_LIBS: $STATIC_LIBS" >&5
4404$as_echo "$as_me: Initial STATIC_LIBS: $STATIC_LIBS" >&6;}
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial LD:          $LD" >&5
4406$as_echo "$as_me: Initial LD:          $LD" >&6;}
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial LDSHARED:    $LDSHARED" >&5
4408$as_echo "$as_me: Initial LDSHARED:    $LDSHARED" >&6;}
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: Initial SOEXT:       $SOEXT" >&5
4410$as_echo "$as_me: Initial SOEXT:       $SOEXT" >&6;}
4411
4412# check C++ flags
4413if test $shared == true
4414then
4415
4416
4417  save_CXXFLAGS="$CXXFLAGS"
4418  CXXFLAGS="$CXXFLAGS -fPIC"
4419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fPIC" >&5
4420$as_echo_n "checking whether $CXX accepts -fPIC... " >&6; }
4421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h.  */
4423
4424int
4425main ()
4426{
4427
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_cxx_try_compile "$LINENO"; then :
4433
4434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h.  */
4436
4437int
4438main ()
4439{
4440
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445if ac_fn_cxx_try_link "$LINENO"; then :
4446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4447$as_echo "yes" >&6; }
4448else
4449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4450$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4451fi
4452rm -f core conftest.err conftest.$ac_objext \
4453    conftest$ac_exeext conftest.$ac_ext
4454
4455else
4456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4458
4459fi
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461
4462
4463
4464  ac_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  save_CFLAGS="$CFLAGS"
4471  CFLAGS="$CFLAGS -fPIC"
4472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fPIC" >&5
4473$as_echo_n "checking whether $CC accepts -fPIC... " >&6; }
4474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475/* end confdefs.h.  */
4476
4477int
4478main ()
4479{
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485if ac_fn_c_try_compile "$LINENO"; then :
4486
4487      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488/* end confdefs.h.  */
4489
4490int
4491main ()
4492{
4493
4494  ;
4495  return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_link "$LINENO"; then :
4499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500$as_echo "yes" >&6; }
4501else
4502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4503$as_echo "not linking" >&6; }; CCFLAGS="$save_CCFLAGS"
4504fi
4505rm -f core conftest.err conftest.$ac_objext \
4506    conftest$ac_exeext conftest.$ac_ext
4507
4508else
4509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510$as_echo "no" >&6; }; CCFLAGS="$save_CCFLAGS"
4511
4512fi
4513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514  ac_ext=cpp
4515ac_cpp='$CXXCPP $CPPFLAGS'
4516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519
4520
4521fi
4522
4523if test $basic_warnings == true
4524then
4525
4526  save_CXXFLAGS="$CXXFLAGS"
4527  CXXFLAGS="$CXXFLAGS -Wall"
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wall" >&5
4529$as_echo_n "checking whether $CXX accepts -Wall... " >&6; }
4530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h.  */
4532
4533int
4534main ()
4535{
4536
4537  ;
4538  return 0;
4539}
4540_ACEOF
4541if ac_fn_cxx_try_compile "$LINENO"; then :
4542
4543      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544/* end confdefs.h.  */
4545
4546int
4547main ()
4548{
4549
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554if ac_fn_cxx_try_link "$LINENO"; then :
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556$as_echo "yes" >&6; }
4557else
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4559$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4560fi
4561rm -f core conftest.err conftest.$ac_objext \
4562    conftest$ac_exeext conftest.$ac_ext
4563
4564else
4565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4567
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570
4571
4572  save_CXXFLAGS="$CXXFLAGS"
4573  CXXFLAGS="$CXXFLAGS -pedantic"
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -pedantic" >&5
4575$as_echo_n "checking whether $CXX accepts -pedantic... " >&6; }
4576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577/* end confdefs.h.  */
4578
4579int
4580main ()
4581{
4582
4583  ;
4584  return 0;
4585}
4586_ACEOF
4587if ac_fn_cxx_try_compile "$LINENO"; then :
4588
4589      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591
4592int
4593main ()
4594{
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600if ac_fn_cxx_try_link "$LINENO"; then :
4601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602$as_echo "yes" >&6; }
4603else
4604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4605$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4606fi
4607rm -f core conftest.err conftest.$ac_objext \
4608    conftest$ac_exeext conftest.$ac_ext
4609
4610else
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4613
4614fi
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616
4617
4618  save_CXXFLAGS="$CXXFLAGS"
4619  CXXFLAGS="$CXXFLAGS -std=c++11"
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -std=c++11" >&5
4621$as_echo_n "checking whether $CXX accepts -std=c++11... " >&6; }
4622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h.  */
4624
4625int
4626main ()
4627{
4628
4629  ;
4630  return 0;
4631}
4632_ACEOF
4633if ac_fn_cxx_try_compile "$LINENO"; then :
4634
4635      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h.  */
4637
4638int
4639main ()
4640{
4641
4642  ;
4643  return 0;
4644}
4645_ACEOF
4646if ac_fn_cxx_try_link "$LINENO"; then :
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4648$as_echo "yes" >&6; }
4649else
4650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4651$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4652fi
4653rm -f core conftest.err conftest.$ac_objext \
4654    conftest$ac_exeext conftest.$ac_ext
4655
4656else
4657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4659
4660fi
4661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662
4663fi
4664
4665if test $debug == true
4666then
4667
4668  save_CXXFLAGS="$CXXFLAGS"
4669  CXXFLAGS="$CXXFLAGS -g"
4670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4671$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674
4675int
4676main ()
4677{
4678
4679  ;
4680  return 0;
4681}
4682_ACEOF
4683if ac_fn_cxx_try_compile "$LINENO"; then :
4684
4685      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h.  */
4687
4688int
4689main ()
4690{
4691
4692  ;
4693  return 0;
4694}
4695_ACEOF
4696if ac_fn_cxx_try_link "$LINENO"; then :
4697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4698$as_echo "yes" >&6; }
4699else
4700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4701$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4702fi
4703rm -f core conftest.err conftest.$ac_objext \
4704    conftest$ac_exeext conftest.$ac_ext
4705
4706else
4707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4709
4710fi
4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712
4713fi
4714
4715if test $gcov == true
4716then
4717  CXX="$CXX --coverage"
4718  LDSHARED="$LDSHARED --coverage"
4719  CFLAGS="$CFLAGS --coverage"
4720
4721  save_LDFLAGS="$LDFLAGS"
4722  LDFLAGS="$LDFLAGS --coverage"
4723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDFLAGS can contain --coverage" >&5
4724$as_echo_n "checking whether LDFLAGS can contain --coverage... " >&6; }
4725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726/* end confdefs.h.  */
4727
4728int
4729main ()
4730{
4731
4732  ;
4733  return 0;
4734}
4735_ACEOF
4736if ac_fn_cxx_try_link "$LINENO"; then :
4737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738$as_echo "yes" >&6; }
4739else
4740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }; LDFLAGS="$save_LDFLAGS"
4742fi
4743rm -f core conftest.err conftest.$ac_objext \
4744    conftest$ac_exeext conftest.$ac_ext
4745
4746  STATIC_LIBS="$STATIC_LIBS --coverage"
4747fi
4748
4749if test $fussy == true
4750then
4751
4752  save_CXXFLAGS="$CXXFLAGS"
4753  CXXFLAGS="$CXXFLAGS -Wextra"
4754  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wextra" >&5
4755$as_echo_n "checking whether $CXX accepts -Wextra... " >&6; }
4756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h.  */
4758
4759int
4760main ()
4761{
4762
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767if ac_fn_cxx_try_compile "$LINENO"; then :
4768
4769      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770/* end confdefs.h.  */
4771
4772int
4773main ()
4774{
4775
4776  ;
4777  return 0;
4778}
4779_ACEOF
4780if ac_fn_cxx_try_link "$LINENO"; then :
4781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782$as_echo "yes" >&6; }
4783else
4784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4785$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4786fi
4787rm -f core conftest.err conftest.$ac_objext \
4788    conftest$ac_exeext conftest.$ac_ext
4789
4790else
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4793
4794fi
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796
4797
4798  save_CXXFLAGS="$CXXFLAGS"
4799  CXXFLAGS="$CXXFLAGS -Wfloat-equal"
4800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wfloat-equal" >&5
4801$as_echo_n "checking whether $CXX accepts -Wfloat-equal... " >&6; }
4802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h.  */
4804
4805int
4806main ()
4807{
4808
4809  ;
4810  return 0;
4811}
4812_ACEOF
4813if ac_fn_cxx_try_compile "$LINENO"; then :
4814
4815      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816/* end confdefs.h.  */
4817
4818int
4819main ()
4820{
4821
4822  ;
4823  return 0;
4824}
4825_ACEOF
4826if ac_fn_cxx_try_link "$LINENO"; then :
4827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828$as_echo "yes" >&6; }
4829else
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4831$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4832fi
4833rm -f core conftest.err conftest.$ac_objext \
4834    conftest$ac_exeext conftest.$ac_ext
4835
4836else
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4839
4840fi
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842
4843
4844  save_CXXFLAGS="$CXXFLAGS"
4845  CXXFLAGS="$CXXFLAGS -Wwrite-strings"
4846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wwrite-strings" >&5
4847$as_echo_n "checking whether $CXX accepts -Wwrite-strings... " >&6; }
4848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h.  */
4850
4851int
4852main ()
4853{
4854
4855  ;
4856  return 0;
4857}
4858_ACEOF
4859if ac_fn_cxx_try_compile "$LINENO"; then :
4860
4861      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h.  */
4863
4864int
4865main ()
4866{
4867
4868  ;
4869  return 0;
4870}
4871_ACEOF
4872if ac_fn_cxx_try_link "$LINENO"; then :
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4874$as_echo "yes" >&6; }
4875else
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4877$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4878fi
4879rm -f core conftest.err conftest.$ac_objext \
4880    conftest$ac_exeext conftest.$ac_ext
4881
4882else
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4885
4886fi
4887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888
4889
4890  save_CXXFLAGS="$CXXFLAGS"
4891  CXXFLAGS="$CXXFLAGS -Wpointer-arith"
4892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wpointer-arith" >&5
4893$as_echo_n "checking whether $CXX accepts -Wpointer-arith... " >&6; }
4894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895/* end confdefs.h.  */
4896
4897int
4898main ()
4899{
4900
4901  ;
4902  return 0;
4903}
4904_ACEOF
4905if ac_fn_cxx_try_compile "$LINENO"; then :
4906
4907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909
4910int
4911main ()
4912{
4913
4914  ;
4915  return 0;
4916}
4917_ACEOF
4918if ac_fn_cxx_try_link "$LINENO"; then :
4919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4920$as_echo "yes" >&6; }
4921else
4922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4923$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4924fi
4925rm -f core conftest.err conftest.$ac_objext \
4926    conftest$ac_exeext conftest.$ac_ext
4927
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4931
4932fi
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934
4935
4936  save_CXXFLAGS="$CXXFLAGS"
4937  CXXFLAGS="$CXXFLAGS -Wcast-qual"
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wcast-qual" >&5
4939$as_echo_n "checking whether $CXX accepts -Wcast-qual... " >&6; }
4940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941/* end confdefs.h.  */
4942
4943int
4944main ()
4945{
4946
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951if ac_fn_cxx_try_compile "$LINENO"; then :
4952
4953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955
4956int
4957main ()
4958{
4959
4960  ;
4961  return 0;
4962}
4963_ACEOF
4964if ac_fn_cxx_try_link "$LINENO"; then :
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966$as_echo "yes" >&6; }
4967else
4968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
4969$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4970fi
4971rm -f core conftest.err conftest.$ac_objext \
4972    conftest$ac_exeext conftest.$ac_ext
4973
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
4977
4978fi
4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980
4981
4982  save_CXXFLAGS="$CXXFLAGS"
4983  CXXFLAGS="$CXXFLAGS -Wcast-align"
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wcast-align" >&5
4985$as_echo_n "checking whether $CXX accepts -Wcast-align... " >&6; }
4986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h.  */
4988
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_cxx_try_compile "$LINENO"; then :
4998
4999      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001
5002int
5003main ()
5004{
5005
5006  ;
5007  return 0;
5008}
5009_ACEOF
5010if ac_fn_cxx_try_link "$LINENO"; then :
5011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012$as_echo "yes" >&6; }
5013else
5014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
5015$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5016fi
5017rm -f core conftest.err conftest.$ac_objext \
5018    conftest$ac_exeext conftest.$ac_ext
5019
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5023
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026
5027
5028  save_CXXFLAGS="$CXXFLAGS"
5029  CXXFLAGS="$CXXFLAGS -Wconversion"
5030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wconversion" >&5
5031$as_echo_n "checking whether $CXX accepts -Wconversion... " >&6; }
5032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033/* end confdefs.h.  */
5034
5035int
5036main ()
5037{
5038
5039  ;
5040  return 0;
5041}
5042_ACEOF
5043if ac_fn_cxx_try_compile "$LINENO"; then :
5044
5045      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047
5048int
5049main ()
5050{
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_cxx_try_link "$LINENO"; then :
5057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5058$as_echo "yes" >&6; }
5059else
5060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
5061$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5062fi
5063rm -f core conftest.err conftest.$ac_objext \
5064    conftest$ac_exeext conftest.$ac_ext
5065
5066else
5067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5069
5070fi
5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072
5073
5074  save_CXXFLAGS="$CXXFLAGS"
5075  CXXFLAGS="$CXXFLAGS -Wredundant-delcs"
5076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wredundant-delcs" >&5
5077$as_echo_n "checking whether $CXX accepts -Wredundant-delcs... " >&6; }
5078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h.  */
5080
5081int
5082main ()
5083{
5084
5085  ;
5086  return 0;
5087}
5088_ACEOF
5089if ac_fn_cxx_try_compile "$LINENO"; then :
5090
5091      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093
5094int
5095main ()
5096{
5097
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102if ac_fn_cxx_try_link "$LINENO"; then :
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104$as_echo "yes" >&6; }
5105else
5106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
5107$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5108fi
5109rm -f core conftest.err conftest.$ac_objext \
5110    conftest$ac_exeext conftest.$ac_ext
5111
5112else
5113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5115
5116fi
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118
5119
5120  save_CXXFLAGS="$CXXFLAGS"
5121  CXXFLAGS="$CXXFLAGS -Wvariadic-macros"
5122  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wvariadic-macros" >&5
5123$as_echo_n "checking whether $CXX accepts -Wvariadic-macros... " >&6; }
5124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125/* end confdefs.h.  */
5126
5127int
5128main ()
5129{
5130
5131  ;
5132  return 0;
5133}
5134_ACEOF
5135if ac_fn_cxx_try_compile "$LINENO"; then :
5136
5137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139
5140int
5141main ()
5142{
5143
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148if ac_fn_cxx_try_link "$LINENO"; then :
5149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5150$as_echo "yes" >&6; }
5151else
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
5153$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5154fi
5155rm -f core conftest.err conftest.$ac_objext \
5156    conftest$ac_exeext conftest.$ac_ext
5157
5158else
5159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5161
5162fi
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164
5165
5166  save_CXXFLAGS="$CXXFLAGS"
5167  CXXFLAGS="$CXXFLAGS -Wold-style-cast"
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wold-style-cast" >&5
5169$as_echo_n "checking whether $CXX accepts -Wold-style-cast... " >&6; }
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172
5173int
5174main ()
5175{
5176
5177  ;
5178  return 0;
5179}
5180_ACEOF
5181if ac_fn_cxx_try_compile "$LINENO"; then :
5182
5183      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184/* end confdefs.h.  */
5185
5186int
5187main ()
5188{
5189
5190  ;
5191  return 0;
5192}
5193_ACEOF
5194if ac_fn_cxx_try_link "$LINENO"; then :
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196$as_echo "yes" >&6; }
5197else
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not linking" >&5
5199$as_echo "not linking" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5200fi
5201rm -f core conftest.err conftest.$ac_objext \
5202    conftest$ac_exeext conftest.$ac_ext
5203
5204else
5205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }; CXXFLAGS="$save_CXXFLAGS"
5207
5208fi
5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210
5211fi
5212
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX declares c++11 support" >&5
5214$as_echo_n "checking whether $CXX declares c++11 support... " >&6; }
5215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216/* end confdefs.h.  */
5217
5218#if __cplusplus <= 199711L
5219this_compiler_does_not_support_cxx11
5220#endif
5221
5222int
5223main ()
5224{
5225
5226  ;
5227  return 0;
5228}
5229_ACEOF
5230if ac_fn_cxx_try_compile "$LINENO"; then :
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232$as_echo "yes" >&6; };
5233  support_cxx11=true
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; } ;
5237  support_cxx11=false
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240
5241if test "$support_cxx11" = false
5242then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++11 support is required as of PLUMED 2.4" >&5
5244$as_echo "$as_me: WARNING: C++11 support is required as of PLUMED 2.4" >&2;}
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler appears not to support C++11" >&5
5246$as_echo "$as_me: WARNING: Your compiler appears not to support C++11" >&2;}
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please change compiler or make sure that everything works correctly" >&5
5248$as_echo "$as_me: WARNING: Please change compiler or make sure that everything works correctly" >&2;}
5249fi
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ library supports C++11 exceptions" >&5
5252$as_echo_n "checking whether C++ library supports C++11 exceptions... " >&6; }
5253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255
5256#include <new>
5257#include <functional>
5258#include <memory>
5259#include <system_error>
5260#include <ios>
5261#include <future>
5262// capable to catch:
5263void func(void) {
5264  try{
5265  } catch(std::bad_array_new_length &) {
5266  } catch(std::bad_function_call &) {
5267  } catch(std::bad_weak_ptr &) {
5268  } catch(std::ios_base::failure &e) {
5269    if(e.code().category()==std::generic_category()) {}
5270    else if(e.code().category()==std::system_category()) {}
5271    else if(e.code().category()==std::iostream_category()) {}
5272    else if(e.code().category()==std::future_category()) {}
5273  } catch(std::system_error &e) {
5274    if(e.code().category()==std::generic_category()) {}
5275    else if(e.code().category()==std::system_category()) {}
5276    else if(e.code().category()==std::iostream_category()) {}
5277    else if(e.code().category()==std::future_category()) {}
5278  }
5279// capable to throw:
5280  auto a=std::bad_array_new_length();
5281  auto b=std::bad_function_call();
5282  auto c=std::bad_weak_ptr();
5283  auto d=std::system_error(10,std::generic_category(),"msg");
5284  auto e=std::system_error(10,std::system_category(),"msg");
5285  auto f=std::system_error(10,std::iostream_category(),"msg");
5286  auto g=std::system_error(10,std::future_category(),"msg");
5287  auto h=std::ios_base::failure("msg",std::error_code(10,std::generic_category()));
5288  auto i=std::ios_base::failure("msg",std::error_code(10,std::system_category()));
5289  auto j=std::ios_base::failure("msg",std::error_code(10,std::iostream_category()));
5290  auto k=std::ios_base::failure("msg",std::error_code(10,std::future_category()));
5291}
5292
5293int
5294main ()
5295{
5296
5297  ;
5298  return 0;
5299}
5300_ACEOF
5301if ac_fn_cxx_try_compile "$LINENO"; then :
5302
5303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5304$as_echo "yes" >&6; };
5305  $as_echo "#define __PLUMED_LIBCXX11 1" >>confdefs.h
5306
5307
5308else
5309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5311
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314
5315
5316
5317if test "$dependency_tracking" = true
5318then
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can generate dependency file with -MM -MF" >&5
5320$as_echo_n "checking whether $CXX can generate dependency file with -MM -MF... " >&6; }
5321  dependency=ko
5322  echo "#include \"conftest1.h\"" > conftest.cpp
5323  echo "#include \"conftest2.h\"" > conftest1.h
5324  echo "/* */" > conftest2.h
5325  $CXX $CXXFLAGS -c -MM -MFconftest.d conftest.cpp 1> /dev/null 2> /dev/null
5326  grep conftest2 conftest.d 1> /dev/null 2>/dev/null && dependency=ok
5327  if test "$dependency" = ok ; then
5328    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329$as_echo "yes" >&6; }
5330    disable_dependency_tracking=no
5331  else
5332    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }
5334    disable_dependency_tracking=yes
5335  fi
5336else
5337  disable_dependency_tracking=yes
5338fi
5339
5340if test "$disable_dependency_tracking" = yes ; then
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dependencies tracking disabled - always make clean before make" >&5
5342$as_echo "$as_me: WARNING: dependencies tracking disabled - always make clean before make" >&2;}
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: dependency tracking enabled" >&5
5345$as_echo "$as_me: dependency tracking enabled" >&6;}
5346fi
5347
5348
5349
5350
5351#### Compulsory libraries ####
5352# some of them might be made optional if we find that are not available in some system
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: Now we will check compulsory headers and libraries" >&5
5354$as_echo "$as_me: Now we will check compulsory headers and libraries" >&6;}
5355ac_ext=cpp
5356ac_cpp='$CXXCPP $CPPFLAGS'
5357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5361$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5362if test -z "$CXXCPP"; then
5363  if ${ac_cv_prog_CXXCPP+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366      # Double quotes because CXXCPP needs to be expanded
5367    for CXXCPP in "$CXX -E" "/lib/cpp"
5368    do
5369      ac_preproc_ok=false
5370for ac_cxx_preproc_warn_flag in '' yes
5371do
5372  # Use a header file that comes with gcc, so configuring glibc
5373  # with a fresh cross-compiler works.
5374  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375  # <limits.h> exists even on freestanding compilers.
5376  # On the NeXT, cc -E runs the code through the compiler's parser,
5377  # not just through cpp. "Syntax error" is here to catch this case.
5378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380#ifdef __STDC__
5381# include <limits.h>
5382#else
5383# include <assert.h>
5384#endif
5385		     Syntax error
5386_ACEOF
5387if ac_fn_cxx_try_cpp "$LINENO"; then :
5388
5389else
5390  # Broken: fails on valid input.
5391continue
5392fi
5393rm -f conftest.err conftest.i conftest.$ac_ext
5394
5395  # OK, works on sane cases.  Now check whether nonexistent headers
5396  # can be detected and how.
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399#include <ac_nonexistent.h>
5400_ACEOF
5401if ac_fn_cxx_try_cpp "$LINENO"; then :
5402  # Broken: success on invalid input.
5403continue
5404else
5405  # Passes both tests.
5406ac_preproc_ok=:
5407break
5408fi
5409rm -f conftest.err conftest.i conftest.$ac_ext
5410
5411done
5412# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5413rm -f conftest.i conftest.err conftest.$ac_ext
5414if $ac_preproc_ok; then :
5415  break
5416fi
5417
5418    done
5419    ac_cv_prog_CXXCPP=$CXXCPP
5420
5421fi
5422  CXXCPP=$ac_cv_prog_CXXCPP
5423else
5424  ac_cv_prog_CXXCPP=$CXXCPP
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5427$as_echo "$CXXCPP" >&6; }
5428ac_preproc_ok=false
5429for ac_cxx_preproc_warn_flag in '' yes
5430do
5431  # Use a header file that comes with gcc, so configuring glibc
5432  # with a fresh cross-compiler works.
5433  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5434  # <limits.h> exists even on freestanding compilers.
5435  # On the NeXT, cc -E runs the code through the compiler's parser,
5436  # not just through cpp. "Syntax error" is here to catch this case.
5437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439#ifdef __STDC__
5440# include <limits.h>
5441#else
5442# include <assert.h>
5443#endif
5444		     Syntax error
5445_ACEOF
5446if ac_fn_cxx_try_cpp "$LINENO"; then :
5447
5448else
5449  # Broken: fails on valid input.
5450continue
5451fi
5452rm -f conftest.err conftest.i conftest.$ac_ext
5453
5454  # OK, works on sane cases.  Now check whether nonexistent headers
5455  # can be detected and how.
5456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457/* end confdefs.h.  */
5458#include <ac_nonexistent.h>
5459_ACEOF
5460if ac_fn_cxx_try_cpp "$LINENO"; then :
5461  # Broken: success on invalid input.
5462continue
5463else
5464  # Passes both tests.
5465ac_preproc_ok=:
5466break
5467fi
5468rm -f conftest.err conftest.i conftest.$ac_ext
5469
5470done
5471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5472rm -f conftest.i conftest.err conftest.$ac_ext
5473if $ac_preproc_ok; then :
5474
5475else
5476  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5478as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5479See \`config.log' for more details" "$LINENO" 5; }
5480fi
5481
5482ac_ext=cpp
5483ac_cpp='$CXXCPP $CPPFLAGS'
5484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5487
5488
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5490$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5491if ${ac_cv_path_GREP+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  if test -z "$GREP"; then
5495  ac_path_GREP_found=false
5496  # Loop through the user's path and test for each of PROGNAME-LIST
5497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5499do
5500  IFS=$as_save_IFS
5501  test -z "$as_dir" && as_dir=.
5502    for ac_prog in grep ggrep; do
5503    for ac_exec_ext in '' $ac_executable_extensions; do
5504      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5505      as_fn_executable_p "$ac_path_GREP" || continue
5506# Check for GNU ac_path_GREP and select it if it is found.
5507  # Check for GNU $ac_path_GREP
5508case `"$ac_path_GREP" --version 2>&1` in
5509*GNU*)
5510  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5511*)
5512  ac_count=0
5513  $as_echo_n 0123456789 >"conftest.in"
5514  while :
5515  do
5516    cat "conftest.in" "conftest.in" >"conftest.tmp"
5517    mv "conftest.tmp" "conftest.in"
5518    cp "conftest.in" "conftest.nl"
5519    $as_echo 'GREP' >> "conftest.nl"
5520    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522    as_fn_arith $ac_count + 1 && ac_count=$as_val
5523    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5524      # Best one so far, save it but keep looking for a better one
5525      ac_cv_path_GREP="$ac_path_GREP"
5526      ac_path_GREP_max=$ac_count
5527    fi
5528    # 10*(2^10) chars as input seems more than enough
5529    test $ac_count -gt 10 && break
5530  done
5531  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532esac
5533
5534      $ac_path_GREP_found && break 3
5535    done
5536  done
5537  done
5538IFS=$as_save_IFS
5539  if test -z "$ac_cv_path_GREP"; then
5540    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5541  fi
5542else
5543  ac_cv_path_GREP=$GREP
5544fi
5545
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5548$as_echo "$ac_cv_path_GREP" >&6; }
5549 GREP="$ac_cv_path_GREP"
5550
5551
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5553$as_echo_n "checking for egrep... " >&6; }
5554if ${ac_cv_path_EGREP+:} false; then :
5555  $as_echo_n "(cached) " >&6
5556else
5557  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5558   then ac_cv_path_EGREP="$GREP -E"
5559   else
5560     if test -z "$EGREP"; then
5561  ac_path_EGREP_found=false
5562  # Loop through the user's path and test for each of PROGNAME-LIST
5563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5565do
5566  IFS=$as_save_IFS
5567  test -z "$as_dir" && as_dir=.
5568    for ac_prog in egrep; do
5569    for ac_exec_ext in '' $ac_executable_extensions; do
5570      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5571      as_fn_executable_p "$ac_path_EGREP" || continue
5572# Check for GNU ac_path_EGREP and select it if it is found.
5573  # Check for GNU $ac_path_EGREP
5574case `"$ac_path_EGREP" --version 2>&1` in
5575*GNU*)
5576  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5577*)
5578  ac_count=0
5579  $as_echo_n 0123456789 >"conftest.in"
5580  while :
5581  do
5582    cat "conftest.in" "conftest.in" >"conftest.tmp"
5583    mv "conftest.tmp" "conftest.in"
5584    cp "conftest.in" "conftest.nl"
5585    $as_echo 'EGREP' >> "conftest.nl"
5586    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5587    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5588    as_fn_arith $ac_count + 1 && ac_count=$as_val
5589    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5590      # Best one so far, save it but keep looking for a better one
5591      ac_cv_path_EGREP="$ac_path_EGREP"
5592      ac_path_EGREP_max=$ac_count
5593    fi
5594    # 10*(2^10) chars as input seems more than enough
5595    test $ac_count -gt 10 && break
5596  done
5597  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5598esac
5599
5600      $ac_path_EGREP_found && break 3
5601    done
5602  done
5603  done
5604IFS=$as_save_IFS
5605  if test -z "$ac_cv_path_EGREP"; then
5606    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5607  fi
5608else
5609  ac_cv_path_EGREP=$EGREP
5610fi
5611
5612   fi
5613fi
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5615$as_echo "$ac_cv_path_EGREP" >&6; }
5616 EGREP="$ac_cv_path_EGREP"
5617
5618
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5620$as_echo_n "checking for ANSI C header files... " >&6; }
5621if ${ac_cv_header_stdc+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626#include <stdlib.h>
5627#include <stdarg.h>
5628#include <string.h>
5629#include <float.h>
5630
5631int
5632main ()
5633{
5634
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639if ac_fn_cxx_try_compile "$LINENO"; then :
5640  ac_cv_header_stdc=yes
5641else
5642  ac_cv_header_stdc=no
5643fi
5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645
5646if test $ac_cv_header_stdc = yes; then
5647  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649/* end confdefs.h.  */
5650#include <string.h>
5651
5652_ACEOF
5653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654  $EGREP "memchr" >/dev/null 2>&1; then :
5655
5656else
5657  ac_cv_header_stdc=no
5658fi
5659rm -f conftest*
5660
5661fi
5662
5663if test $ac_cv_header_stdc = yes; then
5664  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666/* end confdefs.h.  */
5667#include <stdlib.h>
5668
5669_ACEOF
5670if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5671  $EGREP "free" >/dev/null 2>&1; then :
5672
5673else
5674  ac_cv_header_stdc=no
5675fi
5676rm -f conftest*
5677
5678fi
5679
5680if test $ac_cv_header_stdc = yes; then
5681  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5682  if test "$cross_compiling" = yes; then :
5683  :
5684else
5685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687#include <ctype.h>
5688#include <stdlib.h>
5689#if ((' ' & 0x0FF) == 0x020)
5690# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5691# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5692#else
5693# define ISLOWER(c) \
5694		   (('a' <= (c) && (c) <= 'i') \
5695		     || ('j' <= (c) && (c) <= 'r') \
5696		     || ('s' <= (c) && (c) <= 'z'))
5697# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5698#endif
5699
5700#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5701int
5702main ()
5703{
5704  int i;
5705  for (i = 0; i < 256; i++)
5706    if (XOR (islower (i), ISLOWER (i))
5707	|| toupper (i) != TOUPPER (i))
5708      return 2;
5709  return 0;
5710}
5711_ACEOF
5712if ac_fn_cxx_try_run "$LINENO"; then :
5713
5714else
5715  ac_cv_header_stdc=no
5716fi
5717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5718  conftest.$ac_objext conftest.beam conftest.$ac_ext
5719fi
5720
5721fi
5722fi
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5724$as_echo "$ac_cv_header_stdc" >&6; }
5725if test $ac_cv_header_stdc = yes; then
5726
5727$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5728
5729fi
5730
5731# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5732for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5733		  inttypes.h stdint.h unistd.h
5734do :
5735  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5736ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5737"
5738if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5739  cat >>confdefs.h <<_ACEOF
5740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5741_ACEOF
5742
5743fi
5744
5745done
5746
5747
5748ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5749if test "x$ac_cv_header_dirent_h" = xyes; then :
5750
5751else
5752  as_fn_error $? "compulsory header not found" "$LINENO" 5
5753fi
5754
5755
5756ac_fn_cxx_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
5757if test "x$ac_cv_func_readdir" = xyes; then :
5758
5759else
5760  as_fn_error $? "compulsory function not found" "$LINENO" 5
5761fi
5762
5763
5764# Then check for blas. This is a bit complicated because we want to allow
5765# either the version with underscore or the one without
5766blas_found=
5767lapack_found=
5768
5769# external lapack can only work with external blas
5770# thus, if external blas are disabled also external lapack should be disabled
5771if test "$external_blas" == false && test "$external_lapack" == true ; then
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: Internal blas can only be used with internal lapack" >&5
5773$as_echo "$as_me: Internal blas can only be used with internal lapack" >&6;}
5774  { $as_echo "$as_me:${as_lineno-$LINENO}: Will not search for external lapack" >&5
5775$as_echo "$as_me: Will not search for external lapack" >&6;}
5776  external_lapack=false
5777fi
5778
5779# first look for blas
5780if test "$external_blas" == true ; then
5781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dgemv can be linked with no library" >&5
5782$as_echo_n "checking whether dgemv can be linked with no library... " >&6; }
5783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784/* end confdefs.h.  */
5785
5786/* Override any GCC internal prototype to avoid an error.
5787   Use char because int might match the return type of a GCC
5788   builtin and then its argument prototype would still apply.  */
5789#ifdef __cplusplus
5790extern "C"
5791#endif
5792char dgemv ();
5793int
5794main ()
5795{
5796return dgemv ();
5797  ;
5798  return 0;
5799}
5800_ACEOF
5801if ac_fn_cxx_try_link "$LINENO"; then :
5802
5803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5804$as_echo "yes" >&6; }
5805    blas_found=nounderscore
5806
5807else
5808
5809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5810$as_echo "no" >&6; }
5811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dgemv_ can be linked with no library" >&5
5812$as_echo_n "checking whether dgemv_ can be linked with no library... " >&6; }
5813    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815
5816/* Override any GCC internal prototype to avoid an error.
5817   Use char because int might match the return type of a GCC
5818   builtin and then its argument prototype would still apply.  */
5819#ifdef __cplusplus
5820extern "C"
5821#endif
5822char dgemv_ ();
5823int
5824main ()
5825{
5826return dgemv_ ();
5827  ;
5828  return 0;
5829}
5830_ACEOF
5831if ac_fn_cxx_try_link "$LINENO"; then :
5832
5833      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5834$as_echo "yes" >&6; }
5835      blas_found=underscore
5836
5837else
5838
5839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840$as_echo "no" >&6; }
5841
5842  if test "${libsearch}" == true ; then
5843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgemv" >&5
5844$as_echo_n "checking for library containing dgemv... " >&6; }
5845if ${ac_cv_search_dgemv+:} false; then :
5846  $as_echo_n "(cached) " >&6
5847else
5848  ac_func_search_save_LIBS=$LIBS
5849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h.  */
5851
5852/* Override any GCC internal prototype to avoid an error.
5853   Use char because int might match the return type of a GCC
5854   builtin and then its argument prototype would still apply.  */
5855#ifdef __cplusplus
5856extern "C"
5857#endif
5858char dgemv ();
5859int
5860main ()
5861{
5862return dgemv ();
5863  ;
5864  return 0;
5865}
5866_ACEOF
5867for ac_lib in '' blas; do
5868  if test -z "$ac_lib"; then
5869    ac_res="none required"
5870  else
5871    ac_res=-l$ac_lib
5872    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5873  fi
5874  if ac_fn_cxx_try_link "$LINENO"; then :
5875  ac_cv_search_dgemv=$ac_res
5876fi
5877rm -f core conftest.err conftest.$ac_objext \
5878    conftest$ac_exeext
5879  if ${ac_cv_search_dgemv+:} false; then :
5880  break
5881fi
5882done
5883if ${ac_cv_search_dgemv+:} false; then :
5884
5885else
5886  ac_cv_search_dgemv=no
5887fi
5888rm conftest.$ac_ext
5889LIBS=$ac_func_search_save_LIBS
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgemv" >&5
5892$as_echo "$ac_cv_search_dgemv" >&6; }
5893ac_res=$ac_cv_search_dgemv
5894if test "$ac_res" != no; then :
5895  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5896  blas_found=nounderscore
5897else
5898
5899
5900  if test "${libsearch}" == true ; then
5901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgemv_" >&5
5902$as_echo_n "checking for library containing dgemv_... " >&6; }
5903if ${ac_cv_search_dgemv_+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  ac_func_search_save_LIBS=$LIBS
5907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908/* end confdefs.h.  */
5909
5910/* Override any GCC internal prototype to avoid an error.
5911   Use char because int might match the return type of a GCC
5912   builtin and then its argument prototype would still apply.  */
5913#ifdef __cplusplus
5914extern "C"
5915#endif
5916char dgemv_ ();
5917int
5918main ()
5919{
5920return dgemv_ ();
5921  ;
5922  return 0;
5923}
5924_ACEOF
5925for ac_lib in '' blas; do
5926  if test -z "$ac_lib"; then
5927    ac_res="none required"
5928  else
5929    ac_res=-l$ac_lib
5930    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5931  fi
5932  if ac_fn_cxx_try_link "$LINENO"; then :
5933  ac_cv_search_dgemv_=$ac_res
5934fi
5935rm -f core conftest.err conftest.$ac_objext \
5936    conftest$ac_exeext
5937  if ${ac_cv_search_dgemv_+:} false; then :
5938  break
5939fi
5940done
5941if ${ac_cv_search_dgemv_+:} false; then :
5942
5943else
5944  ac_cv_search_dgemv_=no
5945fi
5946rm conftest.$ac_ext
5947LIBS=$ac_func_search_save_LIBS
5948fi
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgemv_" >&5
5950$as_echo "$ac_cv_search_dgemv_" >&6; }
5951ac_res=$ac_cv_search_dgemv_
5952if test "$ac_res" != no; then :
5953  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5954  blas_found=underscore
5955fi
5956
5957  else
5958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgemv_" >&5
5959$as_echo_n "checking for library containing dgemv_... " >&6; }
5960if ${ac_cv_search_dgemv_+:} false; then :
5961  $as_echo_n "(cached) " >&6
5962else
5963  ac_func_search_save_LIBS=$LIBS
5964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h.  */
5966
5967/* Override any GCC internal prototype to avoid an error.
5968   Use char because int might match the return type of a GCC
5969   builtin and then its argument prototype would still apply.  */
5970#ifdef __cplusplus
5971extern "C"
5972#endif
5973char dgemv_ ();
5974int
5975main ()
5976{
5977return dgemv_ ();
5978  ;
5979  return 0;
5980}
5981_ACEOF
5982for ac_lib in '' ; do
5983  if test -z "$ac_lib"; then
5984    ac_res="none required"
5985  else
5986    ac_res=-l$ac_lib
5987    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5988  fi
5989  if ac_fn_cxx_try_link "$LINENO"; then :
5990  ac_cv_search_dgemv_=$ac_res
5991fi
5992rm -f core conftest.err conftest.$ac_objext \
5993    conftest$ac_exeext
5994  if ${ac_cv_search_dgemv_+:} false; then :
5995  break
5996fi
5997done
5998if ${ac_cv_search_dgemv_+:} false; then :
5999
6000else
6001  ac_cv_search_dgemv_=no
6002fi
6003rm conftest.$ac_ext
6004LIBS=$ac_func_search_save_LIBS
6005fi
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgemv_" >&5
6007$as_echo "$ac_cv_search_dgemv_" >&6; }
6008ac_res=$ac_cv_search_dgemv_
6009if test "$ac_res" != no; then :
6010  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6011  blas_found=underscore
6012fi
6013
6014  fi
6015
6016
6017fi
6018
6019  else
6020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgemv" >&5
6021$as_echo_n "checking for library containing dgemv... " >&6; }
6022if ${ac_cv_search_dgemv+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  ac_func_search_save_LIBS=$LIBS
6026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027/* end confdefs.h.  */
6028
6029/* Override any GCC internal prototype to avoid an error.
6030   Use char because int might match the return type of a GCC
6031   builtin and then its argument prototype would still apply.  */
6032#ifdef __cplusplus
6033extern "C"
6034#endif
6035char dgemv ();
6036int
6037main ()
6038{
6039return dgemv ();
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044for ac_lib in '' ; do
6045  if test -z "$ac_lib"; then
6046    ac_res="none required"
6047  else
6048    ac_res=-l$ac_lib
6049    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6050  fi
6051  if ac_fn_cxx_try_link "$LINENO"; then :
6052  ac_cv_search_dgemv=$ac_res
6053fi
6054rm -f core conftest.err conftest.$ac_objext \
6055    conftest$ac_exeext
6056  if ${ac_cv_search_dgemv+:} false; then :
6057  break
6058fi
6059done
6060if ${ac_cv_search_dgemv+:} false; then :
6061
6062else
6063  ac_cv_search_dgemv=no
6064fi
6065rm conftest.$ac_ext
6066LIBS=$ac_func_search_save_LIBS
6067fi
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgemv" >&5
6069$as_echo "$ac_cv_search_dgemv" >&6; }
6070ac_res=$ac_cv_search_dgemv
6071if test "$ac_res" != no; then :
6072  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6073  blas_found=nounderscore
6074else
6075
6076
6077  if test "${libsearch}" == true ; then
6078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgemv_" >&5
6079$as_echo_n "checking for library containing dgemv_... " >&6; }
6080if ${ac_cv_search_dgemv_+:} false; then :
6081  $as_echo_n "(cached) " >&6
6082else
6083  ac_func_search_save_LIBS=$LIBS
6084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h.  */
6086
6087/* Override any GCC internal prototype to avoid an error.
6088   Use char because int might match the return type of a GCC
6089   builtin and then its argument prototype would still apply.  */
6090#ifdef __cplusplus
6091extern "C"
6092#endif
6093char dgemv_ ();
6094int
6095main ()
6096{
6097return dgemv_ ();
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102for ac_lib in '' blas; do
6103  if test -z "$ac_lib"; then
6104    ac_res="none required"
6105  else
6106    ac_res=-l$ac_lib
6107    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6108  fi
6109  if ac_fn_cxx_try_link "$LINENO"; then :
6110  ac_cv_search_dgemv_=$ac_res
6111fi
6112rm -f core conftest.err conftest.$ac_objext \
6113    conftest$ac_exeext
6114  if ${ac_cv_search_dgemv_+:} false; then :
6115  break
6116fi
6117done
6118if ${ac_cv_search_dgemv_+:} false; then :
6119
6120else
6121  ac_cv_search_dgemv_=no
6122fi
6123rm conftest.$ac_ext
6124LIBS=$ac_func_search_save_LIBS
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgemv_" >&5
6127$as_echo "$ac_cv_search_dgemv_" >&6; }
6128ac_res=$ac_cv_search_dgemv_
6129if test "$ac_res" != no; then :
6130  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6131  blas_found=underscore
6132fi
6133
6134  else
6135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dgemv_" >&5
6136$as_echo_n "checking for library containing dgemv_... " >&6; }
6137if ${ac_cv_search_dgemv_+:} false; then :
6138  $as_echo_n "(cached) " >&6
6139else
6140  ac_func_search_save_LIBS=$LIBS
6141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143
6144/* Override any GCC internal prototype to avoid an error.
6145   Use char because int might match the return type of a GCC
6146   builtin and then its argument prototype would still apply.  */
6147#ifdef __cplusplus
6148extern "C"
6149#endif
6150char dgemv_ ();
6151int
6152main ()
6153{
6154return dgemv_ ();
6155  ;
6156  return 0;
6157}
6158_ACEOF
6159for ac_lib in '' ; do
6160  if test -z "$ac_lib"; then
6161    ac_res="none required"
6162  else
6163    ac_res=-l$ac_lib
6164    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6165  fi
6166  if ac_fn_cxx_try_link "$LINENO"; then :
6167  ac_cv_search_dgemv_=$ac_res
6168fi
6169rm -f core conftest.err conftest.$ac_objext \
6170    conftest$ac_exeext
6171  if ${ac_cv_search_dgemv_+:} false; then :
6172  break
6173fi
6174done
6175if ${ac_cv_search_dgemv_+:} false; then :
6176
6177else
6178  ac_cv_search_dgemv_=no
6179fi
6180rm conftest.$ac_ext
6181LIBS=$ac_func_search_save_LIBS
6182fi
6183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dgemv_" >&5
6184$as_echo "$ac_cv_search_dgemv_" >&6; }
6185ac_res=$ac_cv_search_dgemv_
6186if test "$ac_res" != no; then :
6187  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6188  blas_found=underscore
6189fi
6190
6191  fi
6192
6193
6194fi
6195
6196  fi
6197
6198
6199fi
6200rm -f core conftest.err conftest.$ac_objext \
6201    conftest$ac_exeext conftest.$ac_ext
6202
6203fi
6204rm -f core conftest.err conftest.$ac_objext \
6205    conftest$ac_exeext conftest.$ac_ext
6206fi
6207
6208# if not found, then use internal lapack and blas
6209if test -z "$blas_found" ; then
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal lapack and blas, could be inefficient" >&5
6211$as_echo "$as_me: WARNING: using internal lapack and blas, could be inefficient" >&2;}
6212fi
6213
6214# if found, also look for external lapack
6215if test -n "$blas_found" ; then
6216
6217$as_echo "#define __PLUMED_HAS_EXTERNAL_BLAS 1" >>confdefs.h
6218
6219
6220if test "$external_lapack" == true ; then
6221# Then we look for lapack using same underscoring
6222case "$blas_found" in
6223(underscore) search_for=dsyevr_ ;;
6224(nounderscore) search_for=dsyevr ;;
6225esac
6226
6227  if test "${libsearch}" == true ; then
6228    as_ac_Search=`$as_echo "ac_cv_search_$search_for" | $as_tr_sh`
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $search_for" >&5
6230$as_echo_n "checking for library containing $search_for... " >&6; }
6231if eval \${$as_ac_Search+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  ac_func_search_save_LIBS=$LIBS
6235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h.  */
6237
6238/* Override any GCC internal prototype to avoid an error.
6239   Use char because int might match the return type of a GCC
6240   builtin and then its argument prototype would still apply.  */
6241#ifdef __cplusplus
6242extern "C"
6243#endif
6244char $search_for ();
6245int
6246main ()
6247{
6248return $search_for ();
6249  ;
6250  return 0;
6251}
6252_ACEOF
6253for ac_lib in '' lapack; do
6254  if test -z "$ac_lib"; then
6255    ac_res="none required"
6256  else
6257    ac_res=-l$ac_lib
6258    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6259  fi
6260  if ac_fn_cxx_try_link "$LINENO"; then :
6261  eval "$as_ac_Search=\$ac_res"
6262fi
6263rm -f core conftest.err conftest.$ac_objext \
6264    conftest$ac_exeext
6265  if eval \${$as_ac_Search+:} false; then :
6266  break
6267fi
6268done
6269if eval \${$as_ac_Search+:} false; then :
6270
6271else
6272  eval "$as_ac_Search=no"
6273fi
6274rm conftest.$ac_ext
6275LIBS=$ac_func_search_save_LIBS
6276fi
6277eval ac_res=\$$as_ac_Search
6278	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6279$as_echo "$ac_res" >&6; }
6280eval ac_res=\$$as_ac_Search
6281if test "$ac_res" != no; then :
6282  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6283  lapack_found=yes
6284fi
6285
6286  else
6287    as_ac_Search=`$as_echo "ac_cv_search_$search_for" | $as_tr_sh`
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $search_for" >&5
6289$as_echo_n "checking for library containing $search_for... " >&6; }
6290if eval \${$as_ac_Search+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  ac_func_search_save_LIBS=$LIBS
6294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h.  */
6296
6297/* Override any GCC internal prototype to avoid an error.
6298   Use char because int might match the return type of a GCC
6299   builtin and then its argument prototype would still apply.  */
6300#ifdef __cplusplus
6301extern "C"
6302#endif
6303char $search_for ();
6304int
6305main ()
6306{
6307return $search_for ();
6308  ;
6309  return 0;
6310}
6311_ACEOF
6312for ac_lib in '' ; do
6313  if test -z "$ac_lib"; then
6314    ac_res="none required"
6315  else
6316    ac_res=-l$ac_lib
6317    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6318  fi
6319  if ac_fn_cxx_try_link "$LINENO"; then :
6320  eval "$as_ac_Search=\$ac_res"
6321fi
6322rm -f core conftest.err conftest.$ac_objext \
6323    conftest$ac_exeext
6324  if eval \${$as_ac_Search+:} false; then :
6325  break
6326fi
6327done
6328if eval \${$as_ac_Search+:} false; then :
6329
6330else
6331  eval "$as_ac_Search=no"
6332fi
6333rm conftest.$ac_ext
6334LIBS=$ac_func_search_save_LIBS
6335fi
6336eval ac_res=\$$as_ac_Search
6337	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338$as_echo "$ac_res" >&6; }
6339eval ac_res=\$$as_ac_Search
6340if test "$ac_res" != no; then :
6341  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6342  lapack_found=yes
6343fi
6344
6345  fi
6346
6347fi
6348
6349# if not found, then use internal lapack with external blas
6350if test -z "$lapack_found" ; then
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal lapack, could be inefficient" >&5
6352$as_echo "$as_me: WARNING: using internal lapack, could be inefficient" >&2;}
6353else
6354$as_echo "#define __PLUMED_HAS_EXTERNAL_LAPACK 1" >>confdefs.h
6355
6356fi
6357
6358fi
6359
6360# in case external blas have been found, take note of their underscoring
6361# notice that this applies also when external blas are used with internal lapack
6362# in the latter case, also (internal) lapack names will be underscored consistently
6363if test "$blas_found" == nounderscore
6364then
6365  $as_echo "#define F77_NO_UNDERSCORE 1" >>confdefs.h
6366
6367fi
6368
6369if test -n "$blas_found" ; then
6370
6371
6372
6373
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sdot returns float" >&5
6375$as_echo_n "checking whether sdot returns float... " >&6; }
6376if test "$cross_compiling" = yes; then :
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not checked (cross compiling)" >&5
6378$as_echo "not checked (cross compiling)" >&6; }
6379
6380else
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383
6384#if ! defined(F77_NO_UNDERSCORE)
6385#define sdot sdot_
6386#endif
6387extern "C"{
6388float sdot(int *n, float *dx, int *incx, float *dy, int *incy);
6389}
6390
6391int main(){
6392  int size=5;
6393// notice that [] is required to cheat autoconf
6394  float af[5],bf[5];
6395  for(unsigned i=0;i<size;i++){
6396    af[i]=size;
6397    bf[i]=size-i;
6398  }
6399  int inca=1;
6400  int incb=1;
6401  float f=sdot(&size,af,&inca,bf,&incb)-75;
6402  if(f*f<1e-10) return 0;
6403  else return 1;
6404}
6405
6406_ACEOF
6407if ac_fn_cxx_try_run "$LINENO"; then :
6408   sdot_returns_float=yes ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6409$as_echo "yes" >&6; }
6410else
6411   sdot_returns_float=no ;  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412$as_echo "no" >&6; }
6413fi
6414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6415  conftest.$ac_objext conftest.beam conftest.$ac_ext
6416fi
6417
6418
6419if test "$sdot_returns_float" == no ;
6420then
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sdot returns double" >&5
6423$as_echo_n "checking whether sdot returns double... " >&6; }
6424if test "$cross_compiling" = yes; then :
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not checked (cross compiling)" >&5
6426$as_echo "not checked (cross compiling)" >&6; }
6427
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431
6432#if ! defined(F77_NO_UNDERSCORE)
6433#define sdot sdot_
6434#endif
6435extern "C"{
6436double sdot(int *n, float *dx, int *incx, float *dy, int *incy);
6437}
6438
6439int main(){
6440  int size=5;
6441// notice that [] is required to cheat autoconf
6442  float af[5],bf[5];
6443  for(unsigned i=0;i<size;i++){
6444    af[i]=size;
6445    bf[i]=size-i;
6446  }
6447  int inca=1;
6448  int incb=1;
6449  double f=sdot(&size,af,&inca,bf,&incb)-75;
6450  if(f*f<1e-10) return 0;
6451  else return 1;
6452}
6453
6454_ACEOF
6455if ac_fn_cxx_try_run "$LINENO"; then :
6456   sdot_returns_double=yes ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6457$as_echo "yes" >&6; }
6458else
6459   sdot_returns_double=no ;  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460$as_echo "no" >&6; }
6461fi
6462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6463  conftest.$ac_objext conftest.beam conftest.$ac_ext
6464fi
6465
6466
6467fi
6468
6469if test "$sdot_returns_double" = yes ; then
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: Setting workaround for blas float functions returning double" >&5
6471$as_echo "$as_me: Setting workaround for blas float functions returning double" >&6;}
6472  $as_echo "#define __PLUMED_BLAS_RETURNS_FLOAT double" >>confdefs.h
6473
6474  if test -n "$lapack_found" ; then
6475    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting workaround for lapack float functions returning double" >&5
6476$as_echo "$as_me: Setting workaround for lapack float functions returning double" >&6;}
6477    $as_echo "#define __PLUMED_LAPACK_RETURNS_FLOAT double" >>confdefs.h
6478
6479  fi
6480else if test "$sdot_returns_float" = no && test "$sdot_returns_double" = no ;
6481then
6482  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: There is a problem with your blas implementation" >&5
6483$as_echo "$as_me: WARNING: There is a problem with your blas implementation" >&2;}
6484fi
6485
6486fi
6487
6488fi
6489
6490#### End of compulsory libraries ####
6491
6492#### Optional libraries ####
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: Now we will check for optional headers and libraries" >&5
6494$as_echo "$as_me: Now we will check for optional headers and libraries" >&6;}
6495
6496#############################################################
6497# I add the possibility to completely remove molfile_plugins
6498# I would like to be 100% that the molfile module compiles
6499# correctly on all machines
6500# In case of problem, it is sufficient to configure with
6501# ./configure --disable-molfile-plugins
6502# GB
6503#############################################################
6504
6505if test $molfile_plugins == true ; then
6506
6507# Check for molfile_plugins and use internal fallback if not found. TG
6508
6509# We always have molfile, now
6510$as_echo "#define __PLUMED_HAS_MOLFILE_PLUGINS 1" >>confdefs.h
6511
6512
6513  if test "$external_molfile_plugins" == true ; then
6514
6515    found=ko
6516    __PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS=no
6517    ac_fn_cxx_check_header_mongrel "$LINENO" "libmolfile_plugin.h" "ac_cv_header_libmolfile_plugin_h" "$ac_includes_default"
6518if test "x$ac_cv_header_libmolfile_plugin_h" = xyes; then :
6519
6520
6521  if test "${libsearch}" == true ; then
6522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing molfile_dcdplugin_init" >&5
6523$as_echo_n "checking for library containing molfile_dcdplugin_init... " >&6; }
6524if ${ac_cv_search_molfile_dcdplugin_init+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  ac_func_search_save_LIBS=$LIBS
6528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530
6531/* Override any GCC internal prototype to avoid an error.
6532   Use char because int might match the return type of a GCC
6533   builtin and then its argument prototype would still apply.  */
6534#ifdef __cplusplus
6535extern "C"
6536#endif
6537char molfile_dcdplugin_init ();
6538int
6539main ()
6540{
6541return molfile_dcdplugin_init ();
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546for ac_lib in '' molfile_plugin; do
6547  if test -z "$ac_lib"; then
6548    ac_res="none required"
6549  else
6550    ac_res=-l$ac_lib
6551    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6552  fi
6553  if ac_fn_cxx_try_link "$LINENO"; then :
6554  ac_cv_search_molfile_dcdplugin_init=$ac_res
6555fi
6556rm -f core conftest.err conftest.$ac_objext \
6557    conftest$ac_exeext
6558  if ${ac_cv_search_molfile_dcdplugin_init+:} false; then :
6559  break
6560fi
6561done
6562if ${ac_cv_search_molfile_dcdplugin_init+:} false; then :
6563
6564else
6565  ac_cv_search_molfile_dcdplugin_init=no
6566fi
6567rm conftest.$ac_ext
6568LIBS=$ac_func_search_save_LIBS
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_molfile_dcdplugin_init" >&5
6571$as_echo "$ac_cv_search_molfile_dcdplugin_init" >&6; }
6572ac_res=$ac_cv_search_molfile_dcdplugin_init
6573if test "$ac_res" != no; then :
6574  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6575  found=ok
6576fi
6577
6578  else
6579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing molfile_dcdplugin_init" >&5
6580$as_echo_n "checking for library containing molfile_dcdplugin_init... " >&6; }
6581if ${ac_cv_search_molfile_dcdplugin_init+:} false; then :
6582  $as_echo_n "(cached) " >&6
6583else
6584  ac_func_search_save_LIBS=$LIBS
6585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h.  */
6587
6588/* Override any GCC internal prototype to avoid an error.
6589   Use char because int might match the return type of a GCC
6590   builtin and then its argument prototype would still apply.  */
6591#ifdef __cplusplus
6592extern "C"
6593#endif
6594char molfile_dcdplugin_init ();
6595int
6596main ()
6597{
6598return molfile_dcdplugin_init ();
6599  ;
6600  return 0;
6601}
6602_ACEOF
6603for ac_lib in '' ; do
6604  if test -z "$ac_lib"; then
6605    ac_res="none required"
6606  else
6607    ac_res=-l$ac_lib
6608    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6609  fi
6610  if ac_fn_cxx_try_link "$LINENO"; then :
6611  ac_cv_search_molfile_dcdplugin_init=$ac_res
6612fi
6613rm -f core conftest.err conftest.$ac_objext \
6614    conftest$ac_exeext
6615  if ${ac_cv_search_molfile_dcdplugin_init+:} false; then :
6616  break
6617fi
6618done
6619if ${ac_cv_search_molfile_dcdplugin_init+:} false; then :
6620
6621else
6622  ac_cv_search_molfile_dcdplugin_init=no
6623fi
6624rm conftest.$ac_ext
6625LIBS=$ac_func_search_save_LIBS
6626fi
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_molfile_dcdplugin_init" >&5
6628$as_echo "$ac_cv_search_molfile_dcdplugin_init" >&6; }
6629ac_res=$ac_cv_search_molfile_dcdplugin_init
6630if test "$ac_res" != no; then :
6631  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6632  found=ok
6633fi
6634
6635  fi
6636
6637
6638fi
6639
6640
6641    if test $found == ok ; then
6642       $as_echo "#define __PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS 1" >>confdefs.h
6643
6644       __PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS=yes
6645    else
6646       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS" >&5
6647$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS" >&2;}
6648    fi
6649
6650    if test "$__PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS" != yes ; then
6651      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using internal molfile_plugins, which only support dcd/xtc/trr/trj/crd files" >&5
6652$as_echo "$as_me: WARNING: using internal molfile_plugins, which only support dcd/xtc/trr/trj/crd files" >&2;}
6653    else
6654      $as_echo "#define __PLUMED_HAS_EXTERNAL_MOLFILE_PLUGINS 1" >>confdefs.h
6655
6656    fi
6657  fi
6658fi
6659
6660# this is special and is also attached to STATIC_LIBS
6661# this flag should be used also when linking MD engines to allow plumed
6662# to be loaded later
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6664$as_echo_n "checking for dlopen in -ldl... " >&6; }
6665if ${ac_cv_lib_dl_dlopen+:} false; then :
6666  $as_echo_n "(cached) " >&6
6667else
6668  ac_check_lib_save_LIBS=$LIBS
6669LIBS="-ldl  $LIBS"
6670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672
6673/* Override any GCC internal prototype to avoid an error.
6674   Use char because int might match the return type of a GCC
6675   builtin and then its argument prototype would still apply.  */
6676#ifdef __cplusplus
6677extern "C"
6678#endif
6679char dlopen ();
6680int
6681main ()
6682{
6683return dlopen ();
6684  ;
6685  return 0;
6686}
6687_ACEOF
6688if ac_fn_cxx_try_link "$LINENO"; then :
6689  ac_cv_lib_dl_dlopen=yes
6690else
6691  ac_cv_lib_dl_dlopen=no
6692fi
6693rm -f core conftest.err conftest.$ac_objext \
6694    conftest$ac_exeext conftest.$ac_ext
6695LIBS=$ac_check_lib_save_LIBS
6696fi
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6698$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6699if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6700  STATIC_LIBS="-ldl $STATIC_LIBS" LIBS="-ldl $LIBS"
6701fi
6702
6703
6704mpi_found=ko
6705# optional libraries follow
6706if test $mpi == true ; then
6707
6708    found=ko
6709    __PLUMED_HAS_MPI=no
6710    ac_fn_cxx_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
6711if test "x$ac_cv_header_mpi_h" = xyes; then :
6712
6713
6714  if test "${libsearch}" == true ; then
6715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MPI_Init" >&5
6716$as_echo_n "checking for library containing MPI_Init... " >&6; }
6717if ${ac_cv_search_MPI_Init+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  ac_func_search_save_LIBS=$LIBS
6721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723
6724/* Override any GCC internal prototype to avoid an error.
6725   Use char because int might match the return type of a GCC
6726   builtin and then its argument prototype would still apply.  */
6727#ifdef __cplusplus
6728extern "C"
6729#endif
6730char MPI_Init ();
6731int
6732main ()
6733{
6734return MPI_Init ();
6735  ;
6736  return 0;
6737}
6738_ACEOF
6739for ac_lib in '' ; do
6740  if test -z "$ac_lib"; then
6741    ac_res="none required"
6742  else
6743    ac_res=-l$ac_lib
6744    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6745  fi
6746  if ac_fn_cxx_try_link "$LINENO"; then :
6747  ac_cv_search_MPI_Init=$ac_res
6748fi
6749rm -f core conftest.err conftest.$ac_objext \
6750    conftest$ac_exeext
6751  if ${ac_cv_search_MPI_Init+:} false; then :
6752  break
6753fi
6754done
6755if ${ac_cv_search_MPI_Init+:} false; then :
6756
6757else
6758  ac_cv_search_MPI_Init=no
6759fi
6760rm conftest.$ac_ext
6761LIBS=$ac_func_search_save_LIBS
6762fi
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MPI_Init" >&5
6764$as_echo "$ac_cv_search_MPI_Init" >&6; }
6765ac_res=$ac_cv_search_MPI_Init
6766if test "$ac_res" != no; then :
6767  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6768  found=ok
6769fi
6770
6771  else
6772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MPI_Init" >&5
6773$as_echo_n "checking for library containing MPI_Init... " >&6; }
6774if ${ac_cv_search_MPI_Init+:} false; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  ac_func_search_save_LIBS=$LIBS
6778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779/* end confdefs.h.  */
6780
6781/* Override any GCC internal prototype to avoid an error.
6782   Use char because int might match the return type of a GCC
6783   builtin and then its argument prototype would still apply.  */
6784#ifdef __cplusplus
6785extern "C"
6786#endif
6787char MPI_Init ();
6788int
6789main ()
6790{
6791return MPI_Init ();
6792  ;
6793  return 0;
6794}
6795_ACEOF
6796for ac_lib in '' ; do
6797  if test -z "$ac_lib"; then
6798    ac_res="none required"
6799  else
6800    ac_res=-l$ac_lib
6801    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6802  fi
6803  if ac_fn_cxx_try_link "$LINENO"; then :
6804  ac_cv_search_MPI_Init=$ac_res
6805fi
6806rm -f core conftest.err conftest.$ac_objext \
6807    conftest$ac_exeext
6808  if ${ac_cv_search_MPI_Init+:} false; then :
6809  break
6810fi
6811done
6812if ${ac_cv_search_MPI_Init+:} false; then :
6813
6814else
6815  ac_cv_search_MPI_Init=no
6816fi
6817rm conftest.$ac_ext
6818LIBS=$ac_func_search_save_LIBS
6819fi
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MPI_Init" >&5
6821$as_echo "$ac_cv_search_MPI_Init" >&6; }
6822ac_res=$ac_cv_search_MPI_Init
6823if test "$ac_res" != no; then :
6824  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6825  found=ok
6826fi
6827
6828  fi
6829
6830
6831fi
6832
6833
6834    if test $found == ok ; then
6835       $as_echo "#define __PLUMED_HAS_MPI 1" >>confdefs.h
6836
6837       __PLUMED_HAS_MPI=yes
6838    else
6839       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_MPI" >&5
6840$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_MPI" >&2;}
6841    fi
6842
6843  if test "$__PLUMED_HAS_MPI" = yes; then
6844    mpi_found=ok
6845  fi
6846else
6847  mpi_found=ko
6848fi
6849
6850# search for openmp is automatically disabled by autoconf
6851# when configuring with --disable-openmp
6852
6853  OPENMP_CXXFLAGS=
6854  # Check whether --enable-openmp was given.
6855if test "${enable_openmp+set}" = set; then :
6856  enableval=$enable_openmp;
6857fi
6858
6859  if test "$enable_openmp" != no; then
6860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
6861$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
6862if ${ac_cv_prog_cxx_openmp+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h.  */
6867
6868#ifndef _OPENMP
6869 choke me
6870#endif
6871#include <omp.h>
6872int main () { return omp_get_num_threads (); }
6873
6874_ACEOF
6875if ac_fn_cxx_try_link "$LINENO"; then :
6876  ac_cv_prog_cxx_openmp='none needed'
6877else
6878  ac_cv_prog_cxx_openmp='unsupported'
6879	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
6880                           -Popenmp --openmp; do
6881	    ac_save_CXXFLAGS=$CXXFLAGS
6882	    CXXFLAGS="$CXXFLAGS $ac_option"
6883	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885
6886#ifndef _OPENMP
6887 choke me
6888#endif
6889#include <omp.h>
6890int main () { return omp_get_num_threads (); }
6891
6892_ACEOF
6893if ac_fn_cxx_try_link "$LINENO"; then :
6894  ac_cv_prog_cxx_openmp=$ac_option
6895fi
6896rm -f core conftest.err conftest.$ac_objext \
6897    conftest$ac_exeext conftest.$ac_ext
6898	    CXXFLAGS=$ac_save_CXXFLAGS
6899	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
6900	      break
6901	    fi
6902	  done
6903fi
6904rm -f core conftest.err conftest.$ac_objext \
6905    conftest$ac_exeext conftest.$ac_ext
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
6908$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
6909    case $ac_cv_prog_cxx_openmp in #(
6910      "none needed" | unsupported)
6911	;; #(
6912      *)
6913	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
6914    esac
6915  fi
6916
6917
6918
6919if test $asmjit == true ; then
6920  found=ko
6921# asmjit calls clock_gettime and thus should be linked to rt on Linux
6922  if test `(uname)` = Linux ; then
6923
6924  if test "${libsearch}" == true ; then
6925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6926$as_echo_n "checking for library containing clock_gettime... " >&6; }
6927if ${ac_cv_search_clock_gettime+:} false; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930  ac_func_search_save_LIBS=$LIBS
6931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933
6934/* Override any GCC internal prototype to avoid an error.
6935   Use char because int might match the return type of a GCC
6936   builtin and then its argument prototype would still apply.  */
6937#ifdef __cplusplus
6938extern "C"
6939#endif
6940char clock_gettime ();
6941int
6942main ()
6943{
6944return clock_gettime ();
6945  ;
6946  return 0;
6947}
6948_ACEOF
6949for ac_lib in '' rt; do
6950  if test -z "$ac_lib"; then
6951    ac_res="none required"
6952  else
6953    ac_res=-l$ac_lib
6954    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6955  fi
6956  if ac_fn_cxx_try_link "$LINENO"; then :
6957  ac_cv_search_clock_gettime=$ac_res
6958fi
6959rm -f core conftest.err conftest.$ac_objext \
6960    conftest$ac_exeext
6961  if ${ac_cv_search_clock_gettime+:} false; then :
6962  break
6963fi
6964done
6965if ${ac_cv_search_clock_gettime+:} false; then :
6966
6967else
6968  ac_cv_search_clock_gettime=no
6969fi
6970rm conftest.$ac_ext
6971LIBS=$ac_func_search_save_LIBS
6972fi
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6974$as_echo "$ac_cv_search_clock_gettime" >&6; }
6975ac_res=$ac_cv_search_clock_gettime
6976if test "$ac_res" != no; then :
6977  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6978  found=ok
6979fi
6980
6981  else
6982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6983$as_echo_n "checking for library containing clock_gettime... " >&6; }
6984if ${ac_cv_search_clock_gettime+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  ac_func_search_save_LIBS=$LIBS
6988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990
6991/* Override any GCC internal prototype to avoid an error.
6992   Use char because int might match the return type of a GCC
6993   builtin and then its argument prototype would still apply.  */
6994#ifdef __cplusplus
6995extern "C"
6996#endif
6997char clock_gettime ();
6998int
6999main ()
7000{
7001return clock_gettime ();
7002  ;
7003  return 0;
7004}
7005_ACEOF
7006for ac_lib in '' ; do
7007  if test -z "$ac_lib"; then
7008    ac_res="none required"
7009  else
7010    ac_res=-l$ac_lib
7011    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7012  fi
7013  if ac_fn_cxx_try_link "$LINENO"; then :
7014  ac_cv_search_clock_gettime=$ac_res
7015fi
7016rm -f core conftest.err conftest.$ac_objext \
7017    conftest$ac_exeext
7018  if ${ac_cv_search_clock_gettime+:} false; then :
7019  break
7020fi
7021done
7022if ${ac_cv_search_clock_gettime+:} false; then :
7023
7024else
7025  ac_cv_search_clock_gettime=no
7026fi
7027rm conftest.$ac_ext
7028LIBS=$ac_func_search_save_LIBS
7029fi
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7031$as_echo "$ac_cv_search_clock_gettime" >&6; }
7032ac_res=$ac_cv_search_clock_gettime
7033if test "$ac_res" != no; then :
7034  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7035  found=ok
7036fi
7037
7038  fi
7039
7040  else
7041    found=ok
7042  fi
7043  if test "$found" = ok ; then
7044    { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling embedded asmjit" >&5
7045$as_echo "$as_me: Enabling embedded asmjit" >&6;}
7046    $as_echo "#define __PLUMED_HAS_ASMJIT 1" >>confdefs.h
7047
7048  else
7049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot link clock_gettime on this Linux, asmjit will not be enabled" >&5
7050$as_echo "$as_me: WARNING: cannot link clock_gettime on this Linux, asmjit will not be enabled" >&2;}
7051  fi
7052fi
7053
7054
7055if test $readdir_r == true ; then
7056
7057    found=ko
7058    __PLUMED_HAS_READDIR_R=no
7059    ac_fn_cxx_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7060if test "x$ac_cv_header_dirent_h" = xyes; then :
7061
7062
7063  if test "${libsearch}" == true ; then
7064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readdir_r" >&5
7065$as_echo_n "checking for library containing readdir_r... " >&6; }
7066if ${ac_cv_search_readdir_r+:} false; then :
7067  $as_echo_n "(cached) " >&6
7068else
7069  ac_func_search_save_LIBS=$LIBS
7070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072
7073/* Override any GCC internal prototype to avoid an error.
7074   Use char because int might match the return type of a GCC
7075   builtin and then its argument prototype would still apply.  */
7076#ifdef __cplusplus
7077extern "C"
7078#endif
7079char readdir_r ();
7080int
7081main ()
7082{
7083return readdir_r ();
7084  ;
7085  return 0;
7086}
7087_ACEOF
7088for ac_lib in '' ; do
7089  if test -z "$ac_lib"; then
7090    ac_res="none required"
7091  else
7092    ac_res=-l$ac_lib
7093    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7094  fi
7095  if ac_fn_cxx_try_link "$LINENO"; then :
7096  ac_cv_search_readdir_r=$ac_res
7097fi
7098rm -f core conftest.err conftest.$ac_objext \
7099    conftest$ac_exeext
7100  if ${ac_cv_search_readdir_r+:} false; then :
7101  break
7102fi
7103done
7104if ${ac_cv_search_readdir_r+:} false; then :
7105
7106else
7107  ac_cv_search_readdir_r=no
7108fi
7109rm conftest.$ac_ext
7110LIBS=$ac_func_search_save_LIBS
7111fi
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readdir_r" >&5
7113$as_echo "$ac_cv_search_readdir_r" >&6; }
7114ac_res=$ac_cv_search_readdir_r
7115if test "$ac_res" != no; then :
7116  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7117  found=ok
7118fi
7119
7120  else
7121    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readdir_r" >&5
7122$as_echo_n "checking for library containing readdir_r... " >&6; }
7123if ${ac_cv_search_readdir_r+:} false; then :
7124  $as_echo_n "(cached) " >&6
7125else
7126  ac_func_search_save_LIBS=$LIBS
7127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h.  */
7129
7130/* Override any GCC internal prototype to avoid an error.
7131   Use char because int might match the return type of a GCC
7132   builtin and then its argument prototype would still apply.  */
7133#ifdef __cplusplus
7134extern "C"
7135#endif
7136char readdir_r ();
7137int
7138main ()
7139{
7140return readdir_r ();
7141  ;
7142  return 0;
7143}
7144_ACEOF
7145for ac_lib in '' ; do
7146  if test -z "$ac_lib"; then
7147    ac_res="none required"
7148  else
7149    ac_res=-l$ac_lib
7150    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7151  fi
7152  if ac_fn_cxx_try_link "$LINENO"; then :
7153  ac_cv_search_readdir_r=$ac_res
7154fi
7155rm -f core conftest.err conftest.$ac_objext \
7156    conftest$ac_exeext
7157  if ${ac_cv_search_readdir_r+:} false; then :
7158  break
7159fi
7160done
7161if ${ac_cv_search_readdir_r+:} false; then :
7162
7163else
7164  ac_cv_search_readdir_r=no
7165fi
7166rm conftest.$ac_ext
7167LIBS=$ac_func_search_save_LIBS
7168fi
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readdir_r" >&5
7170$as_echo "$ac_cv_search_readdir_r" >&6; }
7171ac_res=$ac_cv_search_readdir_r
7172if test "$ac_res" != no; then :
7173  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7174  found=ok
7175fi
7176
7177  fi
7178
7179
7180fi
7181
7182
7183    if test $found == ok ; then
7184       $as_echo "#define __PLUMED_HAS_READDIR_R 1" >>confdefs.h
7185
7186       __PLUMED_HAS_READDIR_R=yes
7187    else
7188       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_READDIR_R" >&5
7189$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_READDIR_R" >&2;}
7190    fi
7191
7192fi
7193if test $cregex == true ; then
7194
7195    found=ko
7196    __PLUMED_HAS_CREGEX=no
7197    ac_fn_cxx_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
7198if test "x$ac_cv_header_regex_h" = xyes; then :
7199
7200
7201  if test "${libsearch}" == true ; then
7202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
7203$as_echo_n "checking for library containing regcomp... " >&6; }
7204if ${ac_cv_search_regcomp+:} false; then :
7205  $as_echo_n "(cached) " >&6
7206else
7207  ac_func_search_save_LIBS=$LIBS
7208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209/* end confdefs.h.  */
7210
7211/* Override any GCC internal prototype to avoid an error.
7212   Use char because int might match the return type of a GCC
7213   builtin and then its argument prototype would still apply.  */
7214#ifdef __cplusplus
7215extern "C"
7216#endif
7217char regcomp ();
7218int
7219main ()
7220{
7221return regcomp ();
7222  ;
7223  return 0;
7224}
7225_ACEOF
7226for ac_lib in '' ; do
7227  if test -z "$ac_lib"; then
7228    ac_res="none required"
7229  else
7230    ac_res=-l$ac_lib
7231    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7232  fi
7233  if ac_fn_cxx_try_link "$LINENO"; then :
7234  ac_cv_search_regcomp=$ac_res
7235fi
7236rm -f core conftest.err conftest.$ac_objext \
7237    conftest$ac_exeext
7238  if ${ac_cv_search_regcomp+:} false; then :
7239  break
7240fi
7241done
7242if ${ac_cv_search_regcomp+:} false; then :
7243
7244else
7245  ac_cv_search_regcomp=no
7246fi
7247rm conftest.$ac_ext
7248LIBS=$ac_func_search_save_LIBS
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
7251$as_echo "$ac_cv_search_regcomp" >&6; }
7252ac_res=$ac_cv_search_regcomp
7253if test "$ac_res" != no; then :
7254  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7255  found=ok
7256fi
7257
7258  else
7259    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
7260$as_echo_n "checking for library containing regcomp... " >&6; }
7261if ${ac_cv_search_regcomp+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  ac_func_search_save_LIBS=$LIBS
7265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266/* end confdefs.h.  */
7267
7268/* Override any GCC internal prototype to avoid an error.
7269   Use char because int might match the return type of a GCC
7270   builtin and then its argument prototype would still apply.  */
7271#ifdef __cplusplus
7272extern "C"
7273#endif
7274char regcomp ();
7275int
7276main ()
7277{
7278return regcomp ();
7279  ;
7280  return 0;
7281}
7282_ACEOF
7283for ac_lib in '' ; do
7284  if test -z "$ac_lib"; then
7285    ac_res="none required"
7286  else
7287    ac_res=-l$ac_lib
7288    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7289  fi
7290  if ac_fn_cxx_try_link "$LINENO"; then :
7291  ac_cv_search_regcomp=$ac_res
7292fi
7293rm -f core conftest.err conftest.$ac_objext \
7294    conftest$ac_exeext
7295  if ${ac_cv_search_regcomp+:} false; then :
7296  break
7297fi
7298done
7299if ${ac_cv_search_regcomp+:} false; then :
7300
7301else
7302  ac_cv_search_regcomp=no
7303fi
7304rm conftest.$ac_ext
7305LIBS=$ac_func_search_save_LIBS
7306fi
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
7308$as_echo "$ac_cv_search_regcomp" >&6; }
7309ac_res=$ac_cv_search_regcomp
7310if test "$ac_res" != no; then :
7311  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7312  found=ok
7313fi
7314
7315  fi
7316
7317
7318fi
7319
7320
7321    if test $found == ok ; then
7322       $as_echo "#define __PLUMED_HAS_CREGEX 1" >>confdefs.h
7323
7324       __PLUMED_HAS_CREGEX=yes
7325    else
7326       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_CREGEX" >&5
7327$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_CREGEX" >&2;}
7328    fi
7329
7330fi
7331if test $dlopen == true ; then
7332
7333    found=ko
7334    __PLUMED_HAS_DLOPEN=no
7335    ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7336if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7337
7338
7339  if test "${libsearch}" == true ; then
7340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7341$as_echo_n "checking for library containing dlopen... " >&6; }
7342if ${ac_cv_search_dlopen+:} false; then :
7343  $as_echo_n "(cached) " >&6
7344else
7345  ac_func_search_save_LIBS=$LIBS
7346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347/* end confdefs.h.  */
7348
7349/* Override any GCC internal prototype to avoid an error.
7350   Use char because int might match the return type of a GCC
7351   builtin and then its argument prototype would still apply.  */
7352#ifdef __cplusplus
7353extern "C"
7354#endif
7355char dlopen ();
7356int
7357main ()
7358{
7359return dlopen ();
7360  ;
7361  return 0;
7362}
7363_ACEOF
7364for ac_lib in '' ; do
7365  if test -z "$ac_lib"; then
7366    ac_res="none required"
7367  else
7368    ac_res=-l$ac_lib
7369    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7370  fi
7371  if ac_fn_cxx_try_link "$LINENO"; then :
7372  ac_cv_search_dlopen=$ac_res
7373fi
7374rm -f core conftest.err conftest.$ac_objext \
7375    conftest$ac_exeext
7376  if ${ac_cv_search_dlopen+:} false; then :
7377  break
7378fi
7379done
7380if ${ac_cv_search_dlopen+:} false; then :
7381
7382else
7383  ac_cv_search_dlopen=no
7384fi
7385rm conftest.$ac_ext
7386LIBS=$ac_func_search_save_LIBS
7387fi
7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7389$as_echo "$ac_cv_search_dlopen" >&6; }
7390ac_res=$ac_cv_search_dlopen
7391if test "$ac_res" != no; then :
7392  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7393  found=ok
7394fi
7395
7396  else
7397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7398$as_echo_n "checking for library containing dlopen... " >&6; }
7399if ${ac_cv_search_dlopen+:} false; then :
7400  $as_echo_n "(cached) " >&6
7401else
7402  ac_func_search_save_LIBS=$LIBS
7403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405
7406/* Override any GCC internal prototype to avoid an error.
7407   Use char because int might match the return type of a GCC
7408   builtin and then its argument prototype would still apply.  */
7409#ifdef __cplusplus
7410extern "C"
7411#endif
7412char dlopen ();
7413int
7414main ()
7415{
7416return dlopen ();
7417  ;
7418  return 0;
7419}
7420_ACEOF
7421for ac_lib in '' ; do
7422  if test -z "$ac_lib"; then
7423    ac_res="none required"
7424  else
7425    ac_res=-l$ac_lib
7426    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7427  fi
7428  if ac_fn_cxx_try_link "$LINENO"; then :
7429  ac_cv_search_dlopen=$ac_res
7430fi
7431rm -f core conftest.err conftest.$ac_objext \
7432    conftest$ac_exeext
7433  if ${ac_cv_search_dlopen+:} false; then :
7434  break
7435fi
7436done
7437if ${ac_cv_search_dlopen+:} false; then :
7438
7439else
7440  ac_cv_search_dlopen=no
7441fi
7442rm conftest.$ac_ext
7443LIBS=$ac_func_search_save_LIBS
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7446$as_echo "$ac_cv_search_dlopen" >&6; }
7447ac_res=$ac_cv_search_dlopen
7448if test "$ac_res" != no; then :
7449  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7450  found=ok
7451fi
7452
7453  fi
7454
7455
7456fi
7457
7458
7459    if test $found == ok ; then
7460       $as_echo "#define __PLUMED_HAS_DLOPEN 1" >>confdefs.h
7461
7462       __PLUMED_HAS_DLOPEN=yes
7463    else
7464       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_DLOPEN" >&5
7465$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_DLOPEN" >&2;}
7466    fi
7467
7468fi
7469
7470if test $rtld_default == true ; then
7471
7472    found=ko
7473    __PLUMED_HAS_RTLD_DEFAULT=no
7474    if test "${libsearch}" == true ; then
7475      testlibs=""
7476    else
7477      testlibs=""
7478    fi
7479    for testlib in "" $testlibs
7480    do
7481      save_LIBS="$LIBS"
7482      if test -n "$testlib" ; then
7483        { $as_echo "$as_me:${as_lineno-$LINENO}: checking RTLD_DEFAULT with -l$testlib" >&5
7484$as_echo_n "checking RTLD_DEFAULT with -l$testlib... " >&6; }
7485        LIBS="-l$testlib $LIBS"
7486      else
7487        { $as_echo "$as_me:${as_lineno-$LINENO}: checking RTLD_DEFAULT without extra libs" >&5
7488$as_echo_n "checking RTLD_DEFAULT without extra libs... " >&6; }
7489      fi
7490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491/* end confdefs.h.  */
7492
7493#include <dlfcn.h>
7494int
7495main ()
7496{
7497  void* f=dlsym(RTLD_DEFAULT,"path");
7498  return 0;
7499}
7500
7501_ACEOF
7502if ac_fn_cxx_try_link "$LINENO"; then :
7503  found=ok
7504          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505$as_echo "yes" >&6; }
7506else
7507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508$as_echo "no" >&6; }
7509
7510fi
7511rm -f core conftest.err conftest.$ac_objext \
7512    conftest$ac_exeext conftest.$ac_ext
7513      if test $found == ok ; then
7514        break
7515      fi
7516      LIBS="$save_LIBS"
7517    done
7518    if test $found == ok ; then
7519      $as_echo "#define __PLUMED_HAS_RTLD_DEFAULT 1" >>confdefs.h
7520
7521      __PLUMED_HAS_RTLD_DEFAULT=yes
7522    else
7523      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_RTLD_DEFAULT" >&5
7524$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_RTLD_DEFAULT" >&2;}
7525      LIBS="$save_LIBS"
7526    fi
7527
7528fi
7529
7530if test $chdir == true ; then
7531
7532    found=ko
7533    __PLUMED_HAS_CHDIR=no
7534    ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7535if test "x$ac_cv_header_unistd_h" = xyes; then :
7536
7537
7538  if test "${libsearch}" == true ; then
7539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing chdir" >&5
7540$as_echo_n "checking for library containing chdir... " >&6; }
7541if ${ac_cv_search_chdir+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  ac_func_search_save_LIBS=$LIBS
7545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546/* end confdefs.h.  */
7547
7548/* Override any GCC internal prototype to avoid an error.
7549   Use char because int might match the return type of a GCC
7550   builtin and then its argument prototype would still apply.  */
7551#ifdef __cplusplus
7552extern "C"
7553#endif
7554char chdir ();
7555int
7556main ()
7557{
7558return chdir ();
7559  ;
7560  return 0;
7561}
7562_ACEOF
7563for ac_lib in '' ; do
7564  if test -z "$ac_lib"; then
7565    ac_res="none required"
7566  else
7567    ac_res=-l$ac_lib
7568    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7569  fi
7570  if ac_fn_cxx_try_link "$LINENO"; then :
7571  ac_cv_search_chdir=$ac_res
7572fi
7573rm -f core conftest.err conftest.$ac_objext \
7574    conftest$ac_exeext
7575  if ${ac_cv_search_chdir+:} false; then :
7576  break
7577fi
7578done
7579if ${ac_cv_search_chdir+:} false; then :
7580
7581else
7582  ac_cv_search_chdir=no
7583fi
7584rm conftest.$ac_ext
7585LIBS=$ac_func_search_save_LIBS
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_chdir" >&5
7588$as_echo "$ac_cv_search_chdir" >&6; }
7589ac_res=$ac_cv_search_chdir
7590if test "$ac_res" != no; then :
7591  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7592  found=ok
7593fi
7594
7595  else
7596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing chdir" >&5
7597$as_echo_n "checking for library containing chdir... " >&6; }
7598if ${ac_cv_search_chdir+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  ac_func_search_save_LIBS=$LIBS
7602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h.  */
7604
7605/* Override any GCC internal prototype to avoid an error.
7606   Use char because int might match the return type of a GCC
7607   builtin and then its argument prototype would still apply.  */
7608#ifdef __cplusplus
7609extern "C"
7610#endif
7611char chdir ();
7612int
7613main ()
7614{
7615return chdir ();
7616  ;
7617  return 0;
7618}
7619_ACEOF
7620for ac_lib in '' ; do
7621  if test -z "$ac_lib"; then
7622    ac_res="none required"
7623  else
7624    ac_res=-l$ac_lib
7625    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7626  fi
7627  if ac_fn_cxx_try_link "$LINENO"; then :
7628  ac_cv_search_chdir=$ac_res
7629fi
7630rm -f core conftest.err conftest.$ac_objext \
7631    conftest$ac_exeext
7632  if ${ac_cv_search_chdir+:} false; then :
7633  break
7634fi
7635done
7636if ${ac_cv_search_chdir+:} false; then :
7637
7638else
7639  ac_cv_search_chdir=no
7640fi
7641rm conftest.$ac_ext
7642LIBS=$ac_func_search_save_LIBS
7643fi
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_chdir" >&5
7645$as_echo "$ac_cv_search_chdir" >&6; }
7646ac_res=$ac_cv_search_chdir
7647if test "$ac_res" != no; then :
7648  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7649  found=ok
7650fi
7651
7652  fi
7653
7654
7655fi
7656
7657
7658    if test $found == ok ; then
7659       $as_echo "#define __PLUMED_HAS_CHDIR 1" >>confdefs.h
7660
7661       __PLUMED_HAS_CHDIR=yes
7662    else
7663       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_CHDIR" >&5
7664$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_CHDIR" >&2;}
7665    fi
7666
7667fi
7668
7669if test $subprocess == true ; then
7670
7671    found=ko
7672    __PLUMED_HAS_SUBPROCESS=no
7673    if test "${libsearch}" == true ; then
7674      testlibs=""
7675    else
7676      testlibs=""
7677    fi
7678    for testlib in "" $testlibs
7679    do
7680      save_LIBS="$LIBS"
7681      if test -n "$testlib" ; then
7682        { $as_echo "$as_me:${as_lineno-$LINENO}: checking subprocess with -l$testlib" >&5
7683$as_echo_n "checking subprocess with -l$testlib... " >&6; }
7684        LIBS="-l$testlib $LIBS"
7685      else
7686        { $as_echo "$as_me:${as_lineno-$LINENO}: checking subprocess without extra libs" >&5
7687$as_echo_n "checking subprocess without extra libs... " >&6; }
7688      fi
7689      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691
7692/* random program calling all the functions needed to manage a subprocess */
7693#include <cstdio>
7694#include <unistd.h>
7695#include <csignal>
7696
7697int
7698main ()
7699{
7700// notice that [] is required to cheat autoconf
7701  int cp[2];
7702  FILE* fp;
7703  char* arr[3];
7704  arr[0]=NULL;
7705  arr[1]=NULL;
7706  arr[2]=NULL;
7707  arr[3]=NULL;
7708  if(pipe(cp)>=0)
7709  if(fork()>=0)
7710  if(close(1)>=0)
7711  if(dup(cp[1])>=0) {
7712    fp=fdopen(cp[0],"w");
7713    execv(arr[0],arr);
7714  }
7715  auto p=fork();
7716  kill(p,SIGINT);
7717  kill(p,SIGCONT);
7718  kill(p,SIGSTOP);
7719  return 0;
7720}
7721
7722
7723_ACEOF
7724if ac_fn_cxx_try_link "$LINENO"; then :
7725  found=ok
7726          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7727$as_echo "yes" >&6; }
7728else
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731
7732fi
7733rm -f core conftest.err conftest.$ac_objext \
7734    conftest$ac_exeext conftest.$ac_ext
7735      if test $found == ok ; then
7736        break
7737      fi
7738      LIBS="$save_LIBS"
7739    done
7740    if test $found == ok ; then
7741      $as_echo "#define __PLUMED_HAS_SUBPROCESS 1" >>confdefs.h
7742
7743      __PLUMED_HAS_SUBPROCESS=yes
7744    else
7745      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_SUBPROCESS" >&5
7746$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_SUBPROCESS" >&2;}
7747      LIBS="$save_LIBS"
7748    fi
7749
7750fi
7751
7752if test $getcwd == true ; then
7753
7754    found=ko
7755    __PLUMED_HAS_GETCWD=no
7756    ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7757if test "x$ac_cv_header_unistd_h" = xyes; then :
7758
7759
7760  if test "${libsearch}" == true ; then
7761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getcwd" >&5
7762$as_echo_n "checking for library containing getcwd... " >&6; }
7763if ${ac_cv_search_getcwd+:} false; then :
7764  $as_echo_n "(cached) " >&6
7765else
7766  ac_func_search_save_LIBS=$LIBS
7767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768/* end confdefs.h.  */
7769
7770/* Override any GCC internal prototype to avoid an error.
7771   Use char because int might match the return type of a GCC
7772   builtin and then its argument prototype would still apply.  */
7773#ifdef __cplusplus
7774extern "C"
7775#endif
7776char getcwd ();
7777int
7778main ()
7779{
7780return getcwd ();
7781  ;
7782  return 0;
7783}
7784_ACEOF
7785for ac_lib in '' ; do
7786  if test -z "$ac_lib"; then
7787    ac_res="none required"
7788  else
7789    ac_res=-l$ac_lib
7790    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7791  fi
7792  if ac_fn_cxx_try_link "$LINENO"; then :
7793  ac_cv_search_getcwd=$ac_res
7794fi
7795rm -f core conftest.err conftest.$ac_objext \
7796    conftest$ac_exeext
7797  if ${ac_cv_search_getcwd+:} false; then :
7798  break
7799fi
7800done
7801if ${ac_cv_search_getcwd+:} false; then :
7802
7803else
7804  ac_cv_search_getcwd=no
7805fi
7806rm conftest.$ac_ext
7807LIBS=$ac_func_search_save_LIBS
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getcwd" >&5
7810$as_echo "$ac_cv_search_getcwd" >&6; }
7811ac_res=$ac_cv_search_getcwd
7812if test "$ac_res" != no; then :
7813  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7814  found=ok
7815fi
7816
7817  else
7818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getcwd" >&5
7819$as_echo_n "checking for library containing getcwd... " >&6; }
7820if ${ac_cv_search_getcwd+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  ac_func_search_save_LIBS=$LIBS
7824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826
7827/* Override any GCC internal prototype to avoid an error.
7828   Use char because int might match the return type of a GCC
7829   builtin and then its argument prototype would still apply.  */
7830#ifdef __cplusplus
7831extern "C"
7832#endif
7833char getcwd ();
7834int
7835main ()
7836{
7837return getcwd ();
7838  ;
7839  return 0;
7840}
7841_ACEOF
7842for ac_lib in '' ; do
7843  if test -z "$ac_lib"; then
7844    ac_res="none required"
7845  else
7846    ac_res=-l$ac_lib
7847    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7848  fi
7849  if ac_fn_cxx_try_link "$LINENO"; then :
7850  ac_cv_search_getcwd=$ac_res
7851fi
7852rm -f core conftest.err conftest.$ac_objext \
7853    conftest$ac_exeext
7854  if ${ac_cv_search_getcwd+:} false; then :
7855  break
7856fi
7857done
7858if ${ac_cv_search_getcwd+:} false; then :
7859
7860else
7861  ac_cv_search_getcwd=no
7862fi
7863rm conftest.$ac_ext
7864LIBS=$ac_func_search_save_LIBS
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getcwd" >&5
7867$as_echo "$ac_cv_search_getcwd" >&6; }
7868ac_res=$ac_cv_search_getcwd
7869if test "$ac_res" != no; then :
7870  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7871  found=ok
7872fi
7873
7874  fi
7875
7876
7877fi
7878
7879
7880    if test $found == ok ; then
7881       $as_echo "#define __PLUMED_HAS_GETCWD 1" >>confdefs.h
7882
7883       __PLUMED_HAS_GETCWD=yes
7884    else
7885       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_GETCWD" >&5
7886$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_GETCWD" >&2;}
7887    fi
7888
7889fi
7890
7891if test $execinfo == true ; then
7892
7893    found=ko
7894    __PLUMED_HAS_EXECINFO=no
7895    ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
7896if test "x$ac_cv_header_execinfo_h" = xyes; then :
7897
7898
7899  if test "${libsearch}" == true ; then
7900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
7901$as_echo_n "checking for library containing backtrace... " >&6; }
7902if ${ac_cv_search_backtrace+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  ac_func_search_save_LIBS=$LIBS
7906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907/* end confdefs.h.  */
7908
7909/* Override any GCC internal prototype to avoid an error.
7910   Use char because int might match the return type of a GCC
7911   builtin and then its argument prototype would still apply.  */
7912#ifdef __cplusplus
7913extern "C"
7914#endif
7915char backtrace ();
7916int
7917main ()
7918{
7919return backtrace ();
7920  ;
7921  return 0;
7922}
7923_ACEOF
7924for ac_lib in '' ; do
7925  if test -z "$ac_lib"; then
7926    ac_res="none required"
7927  else
7928    ac_res=-l$ac_lib
7929    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7930  fi
7931  if ac_fn_cxx_try_link "$LINENO"; then :
7932  ac_cv_search_backtrace=$ac_res
7933fi
7934rm -f core conftest.err conftest.$ac_objext \
7935    conftest$ac_exeext
7936  if ${ac_cv_search_backtrace+:} false; then :
7937  break
7938fi
7939done
7940if ${ac_cv_search_backtrace+:} false; then :
7941
7942else
7943  ac_cv_search_backtrace=no
7944fi
7945rm conftest.$ac_ext
7946LIBS=$ac_func_search_save_LIBS
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
7949$as_echo "$ac_cv_search_backtrace" >&6; }
7950ac_res=$ac_cv_search_backtrace
7951if test "$ac_res" != no; then :
7952  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7953  found=ok
7954fi
7955
7956  else
7957    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
7958$as_echo_n "checking for library containing backtrace... " >&6; }
7959if ${ac_cv_search_backtrace+:} false; then :
7960  $as_echo_n "(cached) " >&6
7961else
7962  ac_func_search_save_LIBS=$LIBS
7963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964/* end confdefs.h.  */
7965
7966/* Override any GCC internal prototype to avoid an error.
7967   Use char because int might match the return type of a GCC
7968   builtin and then its argument prototype would still apply.  */
7969#ifdef __cplusplus
7970extern "C"
7971#endif
7972char backtrace ();
7973int
7974main ()
7975{
7976return backtrace ();
7977  ;
7978  return 0;
7979}
7980_ACEOF
7981for ac_lib in '' ; do
7982  if test -z "$ac_lib"; then
7983    ac_res="none required"
7984  else
7985    ac_res=-l$ac_lib
7986    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7987  fi
7988  if ac_fn_cxx_try_link "$LINENO"; then :
7989  ac_cv_search_backtrace=$ac_res
7990fi
7991rm -f core conftest.err conftest.$ac_objext \
7992    conftest$ac_exeext
7993  if ${ac_cv_search_backtrace+:} false; then :
7994  break
7995fi
7996done
7997if ${ac_cv_search_backtrace+:} false; then :
7998
7999else
8000  ac_cv_search_backtrace=no
8001fi
8002rm conftest.$ac_ext
8003LIBS=$ac_func_search_save_LIBS
8004fi
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
8006$as_echo "$ac_cv_search_backtrace" >&6; }
8007ac_res=$ac_cv_search_backtrace
8008if test "$ac_res" != no; then :
8009  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8010  found=ok
8011fi
8012
8013  fi
8014
8015
8016fi
8017
8018
8019    if test $found == ok ; then
8020       $as_echo "#define __PLUMED_HAS_EXECINFO 1" >>confdefs.h
8021
8022       __PLUMED_HAS_EXECINFO=yes
8023    else
8024       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_EXECINFO" >&5
8025$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_EXECINFO" >&2;}
8026    fi
8027
8028fi
8029if test $zlib == true ; then
8030
8031    found=ko
8032    __PLUMED_HAS_ZLIB=no
8033    ac_fn_cxx_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8034if test "x$ac_cv_header_zlib_h" = xyes; then :
8035
8036
8037  if test "${libsearch}" == true ; then
8038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
8039$as_echo_n "checking for library containing gzopen... " >&6; }
8040if ${ac_cv_search_gzopen+:} false; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043  ac_func_search_save_LIBS=$LIBS
8044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045/* end confdefs.h.  */
8046
8047/* Override any GCC internal prototype to avoid an error.
8048   Use char because int might match the return type of a GCC
8049   builtin and then its argument prototype would still apply.  */
8050#ifdef __cplusplus
8051extern "C"
8052#endif
8053char gzopen ();
8054int
8055main ()
8056{
8057return gzopen ();
8058  ;
8059  return 0;
8060}
8061_ACEOF
8062for ac_lib in '' z; do
8063  if test -z "$ac_lib"; then
8064    ac_res="none required"
8065  else
8066    ac_res=-l$ac_lib
8067    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8068  fi
8069  if ac_fn_cxx_try_link "$LINENO"; then :
8070  ac_cv_search_gzopen=$ac_res
8071fi
8072rm -f core conftest.err conftest.$ac_objext \
8073    conftest$ac_exeext
8074  if ${ac_cv_search_gzopen+:} false; then :
8075  break
8076fi
8077done
8078if ${ac_cv_search_gzopen+:} false; then :
8079
8080else
8081  ac_cv_search_gzopen=no
8082fi
8083rm conftest.$ac_ext
8084LIBS=$ac_func_search_save_LIBS
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
8087$as_echo "$ac_cv_search_gzopen" >&6; }
8088ac_res=$ac_cv_search_gzopen
8089if test "$ac_res" != no; then :
8090  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8091  found=ok
8092fi
8093
8094  else
8095    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5
8096$as_echo_n "checking for library containing gzopen... " >&6; }
8097if ${ac_cv_search_gzopen+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  ac_func_search_save_LIBS=$LIBS
8101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102/* end confdefs.h.  */
8103
8104/* Override any GCC internal prototype to avoid an error.
8105   Use char because int might match the return type of a GCC
8106   builtin and then its argument prototype would still apply.  */
8107#ifdef __cplusplus
8108extern "C"
8109#endif
8110char gzopen ();
8111int
8112main ()
8113{
8114return gzopen ();
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119for ac_lib in '' ; do
8120  if test -z "$ac_lib"; then
8121    ac_res="none required"
8122  else
8123    ac_res=-l$ac_lib
8124    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8125  fi
8126  if ac_fn_cxx_try_link "$LINENO"; then :
8127  ac_cv_search_gzopen=$ac_res
8128fi
8129rm -f core conftest.err conftest.$ac_objext \
8130    conftest$ac_exeext
8131  if ${ac_cv_search_gzopen+:} false; then :
8132  break
8133fi
8134done
8135if ${ac_cv_search_gzopen+:} false; then :
8136
8137else
8138  ac_cv_search_gzopen=no
8139fi
8140rm conftest.$ac_ext
8141LIBS=$ac_func_search_save_LIBS
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5
8144$as_echo "$ac_cv_search_gzopen" >&6; }
8145ac_res=$ac_cv_search_gzopen
8146if test "$ac_res" != no; then :
8147  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8148  found=ok
8149fi
8150
8151  fi
8152
8153
8154fi
8155
8156
8157    if test $found == ok ; then
8158       $as_echo "#define __PLUMED_HAS_ZLIB 1" >>confdefs.h
8159
8160       __PLUMED_HAS_ZLIB=yes
8161    else
8162       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_ZLIB" >&5
8163$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_ZLIB" >&2;}
8164    fi
8165
8166fi
8167
8168if test $gsl == true ; then
8169  found=ko
8170
8171  if test "${libsearch}" == true ; then
8172    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cblas_dgemv" >&5
8173$as_echo_n "checking for library containing cblas_dgemv... " >&6; }
8174if ${ac_cv_search_cblas_dgemv+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  ac_func_search_save_LIBS=$LIBS
8178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179/* end confdefs.h.  */
8180
8181/* Override any GCC internal prototype to avoid an error.
8182   Use char because int might match the return type of a GCC
8183   builtin and then its argument prototype would still apply.  */
8184#ifdef __cplusplus
8185extern "C"
8186#endif
8187char cblas_dgemv ();
8188int
8189main ()
8190{
8191return cblas_dgemv ();
8192  ;
8193  return 0;
8194}
8195_ACEOF
8196for ac_lib in '' gslcblas; do
8197  if test -z "$ac_lib"; then
8198    ac_res="none required"
8199  else
8200    ac_res=-l$ac_lib
8201    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8202  fi
8203  if ac_fn_cxx_try_link "$LINENO"; then :
8204  ac_cv_search_cblas_dgemv=$ac_res
8205fi
8206rm -f core conftest.err conftest.$ac_objext \
8207    conftest$ac_exeext
8208  if ${ac_cv_search_cblas_dgemv+:} false; then :
8209  break
8210fi
8211done
8212if ${ac_cv_search_cblas_dgemv+:} false; then :
8213
8214else
8215  ac_cv_search_cblas_dgemv=no
8216fi
8217rm conftest.$ac_ext
8218LIBS=$ac_func_search_save_LIBS
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cblas_dgemv" >&5
8221$as_echo "$ac_cv_search_cblas_dgemv" >&6; }
8222ac_res=$ac_cv_search_cblas_dgemv
8223if test "$ac_res" != no; then :
8224  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8225
8226    ac_fn_cxx_check_header_mongrel "$LINENO" "gsl/gsl_vector.h" "ac_cv_header_gsl_gsl_vector_h" "$ac_includes_default"
8227if test "x$ac_cv_header_gsl_gsl_vector_h" = xyes; then :
8228
8229
8230  if test "${libsearch}" == true ; then
8231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gsl_vector_alloc" >&5
8232$as_echo_n "checking for library containing gsl_vector_alloc... " >&6; }
8233if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  ac_func_search_save_LIBS=$LIBS
8237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239
8240/* Override any GCC internal prototype to avoid an error.
8241   Use char because int might match the return type of a GCC
8242   builtin and then its argument prototype would still apply.  */
8243#ifdef __cplusplus
8244extern "C"
8245#endif
8246char gsl_vector_alloc ();
8247int
8248main ()
8249{
8250return gsl_vector_alloc ();
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255for ac_lib in '' gsl; do
8256  if test -z "$ac_lib"; then
8257    ac_res="none required"
8258  else
8259    ac_res=-l$ac_lib
8260    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8261  fi
8262  if ac_fn_cxx_try_link "$LINENO"; then :
8263  ac_cv_search_gsl_vector_alloc=$ac_res
8264fi
8265rm -f core conftest.err conftest.$ac_objext \
8266    conftest$ac_exeext
8267  if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8268  break
8269fi
8270done
8271if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8272
8273else
8274  ac_cv_search_gsl_vector_alloc=no
8275fi
8276rm conftest.$ac_ext
8277LIBS=$ac_func_search_save_LIBS
8278fi
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsl_vector_alloc" >&5
8280$as_echo "$ac_cv_search_gsl_vector_alloc" >&6; }
8281ac_res=$ac_cv_search_gsl_vector_alloc
8282if test "$ac_res" != no; then :
8283  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8284  found=ok
8285fi
8286
8287  else
8288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gsl_vector_alloc" >&5
8289$as_echo_n "checking for library containing gsl_vector_alloc... " >&6; }
8290if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8291  $as_echo_n "(cached) " >&6
8292else
8293  ac_func_search_save_LIBS=$LIBS
8294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296
8297/* Override any GCC internal prototype to avoid an error.
8298   Use char because int might match the return type of a GCC
8299   builtin and then its argument prototype would still apply.  */
8300#ifdef __cplusplus
8301extern "C"
8302#endif
8303char gsl_vector_alloc ();
8304int
8305main ()
8306{
8307return gsl_vector_alloc ();
8308  ;
8309  return 0;
8310}
8311_ACEOF
8312for ac_lib in '' ; do
8313  if test -z "$ac_lib"; then
8314    ac_res="none required"
8315  else
8316    ac_res=-l$ac_lib
8317    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8318  fi
8319  if ac_fn_cxx_try_link "$LINENO"; then :
8320  ac_cv_search_gsl_vector_alloc=$ac_res
8321fi
8322rm -f core conftest.err conftest.$ac_objext \
8323    conftest$ac_exeext
8324  if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8325  break
8326fi
8327done
8328if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8329
8330else
8331  ac_cv_search_gsl_vector_alloc=no
8332fi
8333rm conftest.$ac_ext
8334LIBS=$ac_func_search_save_LIBS
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsl_vector_alloc" >&5
8337$as_echo "$ac_cv_search_gsl_vector_alloc" >&6; }
8338ac_res=$ac_cv_search_gsl_vector_alloc
8339if test "$ac_res" != no; then :
8340  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8341  found=ok
8342fi
8343
8344  fi
8345
8346
8347fi
8348
8349
8350
8351fi
8352
8353  else
8354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cblas_dgemv" >&5
8355$as_echo_n "checking for library containing cblas_dgemv... " >&6; }
8356if ${ac_cv_search_cblas_dgemv+:} false; then :
8357  $as_echo_n "(cached) " >&6
8358else
8359  ac_func_search_save_LIBS=$LIBS
8360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h.  */
8362
8363/* Override any GCC internal prototype to avoid an error.
8364   Use char because int might match the return type of a GCC
8365   builtin and then its argument prototype would still apply.  */
8366#ifdef __cplusplus
8367extern "C"
8368#endif
8369char cblas_dgemv ();
8370int
8371main ()
8372{
8373return cblas_dgemv ();
8374  ;
8375  return 0;
8376}
8377_ACEOF
8378for ac_lib in '' ; do
8379  if test -z "$ac_lib"; then
8380    ac_res="none required"
8381  else
8382    ac_res=-l$ac_lib
8383    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8384  fi
8385  if ac_fn_cxx_try_link "$LINENO"; then :
8386  ac_cv_search_cblas_dgemv=$ac_res
8387fi
8388rm -f core conftest.err conftest.$ac_objext \
8389    conftest$ac_exeext
8390  if ${ac_cv_search_cblas_dgemv+:} false; then :
8391  break
8392fi
8393done
8394if ${ac_cv_search_cblas_dgemv+:} false; then :
8395
8396else
8397  ac_cv_search_cblas_dgemv=no
8398fi
8399rm conftest.$ac_ext
8400LIBS=$ac_func_search_save_LIBS
8401fi
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cblas_dgemv" >&5
8403$as_echo "$ac_cv_search_cblas_dgemv" >&6; }
8404ac_res=$ac_cv_search_cblas_dgemv
8405if test "$ac_res" != no; then :
8406  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8407
8408    ac_fn_cxx_check_header_mongrel "$LINENO" "gsl/gsl_vector.h" "ac_cv_header_gsl_gsl_vector_h" "$ac_includes_default"
8409if test "x$ac_cv_header_gsl_gsl_vector_h" = xyes; then :
8410
8411
8412  if test "${libsearch}" == true ; then
8413    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gsl_vector_alloc" >&5
8414$as_echo_n "checking for library containing gsl_vector_alloc... " >&6; }
8415if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8416  $as_echo_n "(cached) " >&6
8417else
8418  ac_func_search_save_LIBS=$LIBS
8419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421
8422/* Override any GCC internal prototype to avoid an error.
8423   Use char because int might match the return type of a GCC
8424   builtin and then its argument prototype would still apply.  */
8425#ifdef __cplusplus
8426extern "C"
8427#endif
8428char gsl_vector_alloc ();
8429int
8430main ()
8431{
8432return gsl_vector_alloc ();
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437for ac_lib in '' gsl; do
8438  if test -z "$ac_lib"; then
8439    ac_res="none required"
8440  else
8441    ac_res=-l$ac_lib
8442    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8443  fi
8444  if ac_fn_cxx_try_link "$LINENO"; then :
8445  ac_cv_search_gsl_vector_alloc=$ac_res
8446fi
8447rm -f core conftest.err conftest.$ac_objext \
8448    conftest$ac_exeext
8449  if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8450  break
8451fi
8452done
8453if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8454
8455else
8456  ac_cv_search_gsl_vector_alloc=no
8457fi
8458rm conftest.$ac_ext
8459LIBS=$ac_func_search_save_LIBS
8460fi
8461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsl_vector_alloc" >&5
8462$as_echo "$ac_cv_search_gsl_vector_alloc" >&6; }
8463ac_res=$ac_cv_search_gsl_vector_alloc
8464if test "$ac_res" != no; then :
8465  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8466  found=ok
8467fi
8468
8469  else
8470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gsl_vector_alloc" >&5
8471$as_echo_n "checking for library containing gsl_vector_alloc... " >&6; }
8472if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  ac_func_search_save_LIBS=$LIBS
8476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478
8479/* Override any GCC internal prototype to avoid an error.
8480   Use char because int might match the return type of a GCC
8481   builtin and then its argument prototype would still apply.  */
8482#ifdef __cplusplus
8483extern "C"
8484#endif
8485char gsl_vector_alloc ();
8486int
8487main ()
8488{
8489return gsl_vector_alloc ();
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494for ac_lib in '' ; do
8495  if test -z "$ac_lib"; then
8496    ac_res="none required"
8497  else
8498    ac_res=-l$ac_lib
8499    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8500  fi
8501  if ac_fn_cxx_try_link "$LINENO"; then :
8502  ac_cv_search_gsl_vector_alloc=$ac_res
8503fi
8504rm -f core conftest.err conftest.$ac_objext \
8505    conftest$ac_exeext
8506  if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8507  break
8508fi
8509done
8510if ${ac_cv_search_gsl_vector_alloc+:} false; then :
8511
8512else
8513  ac_cv_search_gsl_vector_alloc=no
8514fi
8515rm conftest.$ac_ext
8516LIBS=$ac_func_search_save_LIBS
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsl_vector_alloc" >&5
8519$as_echo "$ac_cv_search_gsl_vector_alloc" >&6; }
8520ac_res=$ac_cv_search_gsl_vector_alloc
8521if test "$ac_res" != no; then :
8522  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8523  found=ok
8524fi
8525
8526  fi
8527
8528
8529fi
8530
8531
8532
8533fi
8534
8535  fi
8536
8537  if test $found == ok ; then
8538    $as_echo "#define __PLUMED_HAS_GSL 1" >>confdefs.h
8539
8540  else
8541    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_GSL" >&5
8542$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_GSL" >&2;}
8543  fi
8544fi
8545
8546if test $xdrfile == true ; then
8547
8548    found=ko
8549    __PLUMED_HAS_XDRFILE=no
8550    ac_fn_cxx_check_header_mongrel "$LINENO" "xdrfile/xdrfile_xtc.h" "ac_cv_header_xdrfile_xdrfile_xtc_h" "$ac_includes_default"
8551if test "x$ac_cv_header_xdrfile_xdrfile_xtc_h" = xyes; then :
8552
8553
8554  if test "${libsearch}" == true ; then
8555    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing write_xtc" >&5
8556$as_echo_n "checking for library containing write_xtc... " >&6; }
8557if ${ac_cv_search_write_xtc+:} false; then :
8558  $as_echo_n "(cached) " >&6
8559else
8560  ac_func_search_save_LIBS=$LIBS
8561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563
8564/* Override any GCC internal prototype to avoid an error.
8565   Use char because int might match the return type of a GCC
8566   builtin and then its argument prototype would still apply.  */
8567#ifdef __cplusplus
8568extern "C"
8569#endif
8570char write_xtc ();
8571int
8572main ()
8573{
8574return write_xtc ();
8575  ;
8576  return 0;
8577}
8578_ACEOF
8579for ac_lib in '' xdrfile; do
8580  if test -z "$ac_lib"; then
8581    ac_res="none required"
8582  else
8583    ac_res=-l$ac_lib
8584    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8585  fi
8586  if ac_fn_cxx_try_link "$LINENO"; then :
8587  ac_cv_search_write_xtc=$ac_res
8588fi
8589rm -f core conftest.err conftest.$ac_objext \
8590    conftest$ac_exeext
8591  if ${ac_cv_search_write_xtc+:} false; then :
8592  break
8593fi
8594done
8595if ${ac_cv_search_write_xtc+:} false; then :
8596
8597else
8598  ac_cv_search_write_xtc=no
8599fi
8600rm conftest.$ac_ext
8601LIBS=$ac_func_search_save_LIBS
8602fi
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_write_xtc" >&5
8604$as_echo "$ac_cv_search_write_xtc" >&6; }
8605ac_res=$ac_cv_search_write_xtc
8606if test "$ac_res" != no; then :
8607  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8608  found=ok
8609fi
8610
8611  else
8612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing write_xtc" >&5
8613$as_echo_n "checking for library containing write_xtc... " >&6; }
8614if ${ac_cv_search_write_xtc+:} false; then :
8615  $as_echo_n "(cached) " >&6
8616else
8617  ac_func_search_save_LIBS=$LIBS
8618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620
8621/* Override any GCC internal prototype to avoid an error.
8622   Use char because int might match the return type of a GCC
8623   builtin and then its argument prototype would still apply.  */
8624#ifdef __cplusplus
8625extern "C"
8626#endif
8627char write_xtc ();
8628int
8629main ()
8630{
8631return write_xtc ();
8632  ;
8633  return 0;
8634}
8635_ACEOF
8636for ac_lib in '' ; do
8637  if test -z "$ac_lib"; then
8638    ac_res="none required"
8639  else
8640    ac_res=-l$ac_lib
8641    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8642  fi
8643  if ac_fn_cxx_try_link "$LINENO"; then :
8644  ac_cv_search_write_xtc=$ac_res
8645fi
8646rm -f core conftest.err conftest.$ac_objext \
8647    conftest$ac_exeext
8648  if ${ac_cv_search_write_xtc+:} false; then :
8649  break
8650fi
8651done
8652if ${ac_cv_search_write_xtc+:} false; then :
8653
8654else
8655  ac_cv_search_write_xtc=no
8656fi
8657rm conftest.$ac_ext
8658LIBS=$ac_func_search_save_LIBS
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_write_xtc" >&5
8661$as_echo "$ac_cv_search_write_xtc" >&6; }
8662ac_res=$ac_cv_search_write_xtc
8663if test "$ac_res" != no; then :
8664  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8665  found=ok
8666fi
8667
8668  fi
8669
8670
8671fi
8672
8673
8674    if test $found == ok ; then
8675       $as_echo "#define __PLUMED_HAS_XDRFILE 1" >>confdefs.h
8676
8677       __PLUMED_HAS_XDRFILE=yes
8678    else
8679       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_XDRFILE" >&5
8680$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_XDRFILE" >&2;}
8681    fi
8682
8683fi
8684
8685if test $boost_graph == true ; then
8686
8687    found=ko
8688    __PLUMED_HAS_BOOST_GRAPH=no
8689    if test "${libsearch}" == true ; then
8690      testlibs=""
8691    else
8692      testlibs=""
8693    fi
8694    for testlib in "" $testlibs
8695    do
8696      save_LIBS="$LIBS"
8697      if test -n "$testlib" ; then
8698        { $as_echo "$as_me:${as_lineno-$LINENO}: checking boost graph with -l$testlib" >&5
8699$as_echo_n "checking boost graph with -l$testlib... " >&6; }
8700        LIBS="-l$testlib $LIBS"
8701      else
8702        { $as_echo "$as_me:${as_lineno-$LINENO}: checking boost graph without extra libs" >&5
8703$as_echo_n "checking boost graph without extra libs... " >&6; }
8704      fi
8705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706/* end confdefs.h.  */
8707
8708#include <boost/graph/graph_utility.hpp>
8709#include <boost/graph/adjacency_matrix.hpp>
8710int
8711main ()
8712{
8713  boost::adjacency_matrix<boost::directedS> a(1);
8714  ;
8715  return 0;
8716}
8717
8718_ACEOF
8719if ac_fn_cxx_try_link "$LINENO"; then :
8720  found=ok
8721          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8722$as_echo "yes" >&6; }
8723else
8724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725$as_echo "no" >&6; }
8726
8727fi
8728rm -f core conftest.err conftest.$ac_objext \
8729    conftest$ac_exeext conftest.$ac_ext
8730      if test $found == ok ; then
8731        break
8732      fi
8733      LIBS="$save_LIBS"
8734    done
8735    if test $found == ok ; then
8736      $as_echo "#define __PLUMED_HAS_BOOST_GRAPH 1" >>confdefs.h
8737
8738      __PLUMED_HAS_BOOST_GRAPH=yes
8739    else
8740      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_BOOST_GRAPH" >&5
8741$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_BOOST_GRAPH" >&2;}
8742      LIBS="$save_LIBS"
8743    fi
8744
8745fi
8746
8747if test $boost_serialization == true ; then
8748
8749    found=ko
8750    __PLUMED_HAS_BOOST_SERIALIZATION=no
8751    if test "${libsearch}" == true ; then
8752      testlibs="boost_serialization boost_serialization-mt"
8753    else
8754      testlibs=""
8755    fi
8756    for testlib in "" $testlibs
8757    do
8758      save_LIBS="$LIBS"
8759      if test -n "$testlib" ; then
8760        { $as_echo "$as_me:${as_lineno-$LINENO}: checking boost serialization with -l$testlib" >&5
8761$as_echo_n "checking boost serialization with -l$testlib... " >&6; }
8762        LIBS="-l$testlib $LIBS"
8763      else
8764        { $as_echo "$as_me:${as_lineno-$LINENO}: checking boost serialization without extra libs" >&5
8765$as_echo_n "checking boost serialization without extra libs... " >&6; }
8766      fi
8767      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769
8770#include <fstream>
8771#include <boost/archive/text_oarchive.hpp>
8772int main() {
8773    std::ofstream ofs("filename");
8774    boost::archive::text_oarchive oa(ofs);
8775    return 0;
8776}
8777
8778_ACEOF
8779if ac_fn_cxx_try_link "$LINENO"; then :
8780  found=ok
8781          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8782$as_echo "yes" >&6; }
8783else
8784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
8786
8787fi
8788rm -f core conftest.err conftest.$ac_objext \
8789    conftest$ac_exeext conftest.$ac_ext
8790      if test $found == ok ; then
8791        break
8792      fi
8793      LIBS="$save_LIBS"
8794    done
8795    if test $found == ok ; then
8796      $as_echo "#define __PLUMED_HAS_BOOST_SERIALIZATION 1" >>confdefs.h
8797
8798      __PLUMED_HAS_BOOST_SERIALIZATION=yes
8799    else
8800      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_BOOST_SERIALIZATION" >&5
8801$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_BOOST_SERIALIZATION" >&2;}
8802      LIBS="$save_LIBS"
8803    fi
8804
8805# notice: macports install libraries with -mt suffix
8806fi
8807
8808if test $fftw == true ; then
8809
8810    found=ko
8811    __PLUMED_HAS_FFTW=no
8812    ac_fn_cxx_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
8813if test "x$ac_cv_header_fftw3_h" = xyes; then :
8814
8815
8816  if test "${libsearch}" == true ; then
8817    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fftw_execute" >&5
8818$as_echo_n "checking for library containing fftw_execute... " >&6; }
8819if ${ac_cv_search_fftw_execute+:} false; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  ac_func_search_save_LIBS=$LIBS
8823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824/* end confdefs.h.  */
8825
8826/* Override any GCC internal prototype to avoid an error.
8827   Use char because int might match the return type of a GCC
8828   builtin and then its argument prototype would still apply.  */
8829#ifdef __cplusplus
8830extern "C"
8831#endif
8832char fftw_execute ();
8833int
8834main ()
8835{
8836return fftw_execute ();
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841for ac_lib in '' fftw3; do
8842  if test -z "$ac_lib"; then
8843    ac_res="none required"
8844  else
8845    ac_res=-l$ac_lib
8846    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8847  fi
8848  if ac_fn_cxx_try_link "$LINENO"; then :
8849  ac_cv_search_fftw_execute=$ac_res
8850fi
8851rm -f core conftest.err conftest.$ac_objext \
8852    conftest$ac_exeext
8853  if ${ac_cv_search_fftw_execute+:} false; then :
8854  break
8855fi
8856done
8857if ${ac_cv_search_fftw_execute+:} false; then :
8858
8859else
8860  ac_cv_search_fftw_execute=no
8861fi
8862rm conftest.$ac_ext
8863LIBS=$ac_func_search_save_LIBS
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fftw_execute" >&5
8866$as_echo "$ac_cv_search_fftw_execute" >&6; }
8867ac_res=$ac_cv_search_fftw_execute
8868if test "$ac_res" != no; then :
8869  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8870  found=ok
8871fi
8872
8873  else
8874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fftw_execute" >&5
8875$as_echo_n "checking for library containing fftw_execute... " >&6; }
8876if ${ac_cv_search_fftw_execute+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  ac_func_search_save_LIBS=$LIBS
8880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h.  */
8882
8883/* Override any GCC internal prototype to avoid an error.
8884   Use char because int might match the return type of a GCC
8885   builtin and then its argument prototype would still apply.  */
8886#ifdef __cplusplus
8887extern "C"
8888#endif
8889char fftw_execute ();
8890int
8891main ()
8892{
8893return fftw_execute ();
8894  ;
8895  return 0;
8896}
8897_ACEOF
8898for ac_lib in '' ; do
8899  if test -z "$ac_lib"; then
8900    ac_res="none required"
8901  else
8902    ac_res=-l$ac_lib
8903    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8904  fi
8905  if ac_fn_cxx_try_link "$LINENO"; then :
8906  ac_cv_search_fftw_execute=$ac_res
8907fi
8908rm -f core conftest.err conftest.$ac_objext \
8909    conftest$ac_exeext
8910  if ${ac_cv_search_fftw_execute+:} false; then :
8911  break
8912fi
8913done
8914if ${ac_cv_search_fftw_execute+:} false; then :
8915
8916else
8917  ac_cv_search_fftw_execute=no
8918fi
8919rm conftest.$ac_ext
8920LIBS=$ac_func_search_save_LIBS
8921fi
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fftw_execute" >&5
8923$as_echo "$ac_cv_search_fftw_execute" >&6; }
8924ac_res=$ac_cv_search_fftw_execute
8925if test "$ac_res" != no; then :
8926  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8927  found=ok
8928fi
8929
8930  fi
8931
8932
8933fi
8934
8935
8936    if test $found == ok ; then
8937       $as_echo "#define __PLUMED_HAS_FFTW 1" >>confdefs.h
8938
8939       __PLUMED_HAS_FFTW=yes
8940    else
8941       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_FFTW" >&5
8942$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_FFTW" >&2;}
8943    fi
8944
8945fi
8946
8947if test $python == true  ; then
8948# if PYTHON_BIN is defined, it is expected to be the full path to python
8949# Otherwise, search from a list of names:
8950  if test -z "$PYTHON_BIN" ; then
8951    for ac_prog in python
8952do
8953  # Extract the first word of "$ac_prog", so it can be a program name with args.
8954set dummy $ac_prog; ac_word=$2
8955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956$as_echo_n "checking for $ac_word... " >&6; }
8957if ${ac_cv_prog_PYTHON_BIN+:} false; then :
8958  $as_echo_n "(cached) " >&6
8959else
8960  if test -n "$PYTHON_BIN"; then
8961  ac_cv_prog_PYTHON_BIN="$PYTHON_BIN" # Let the user override the test.
8962else
8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964for as_dir in $PATH
8965do
8966  IFS=$as_save_IFS
8967  test -z "$as_dir" && as_dir=.
8968    for ac_exec_ext in '' $ac_executable_extensions; do
8969  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8970    ac_cv_prog_PYTHON_BIN="$ac_prog"
8971    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8972    break 2
8973  fi
8974done
8975  done
8976IFS=$as_save_IFS
8977
8978fi
8979fi
8980PYTHON_BIN=$ac_cv_prog_PYTHON_BIN
8981if test -n "$PYTHON_BIN"; then
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_BIN" >&5
8983$as_echo "$PYTHON_BIN" >&6; }
8984else
8985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986$as_echo "no" >&6; }
8987fi
8988
8989
8990  test -n "$PYTHON_BIN" && break
8991done
8992
8993  fi
8994  if test -n "$PYTHON_BIN"
8995  then
8996    { $as_echo "$as_me:${as_lineno-$LINENO}: Python executable is $PYTHON_BIN" >&5
8997$as_echo "$as_me: Python executable is $PYTHON_BIN" >&6;}
8998    { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for required python modules (python3, setuptools, cython, subprocess, os, shutil)" >&5
8999$as_echo_n "checking support for required python modules (python3, setuptools, cython, subprocess, os, shutil)... " >&6; }
9000testimport="
9001from setuptools import setup
9002from setuptools import Extension
9003import subprocess
9004import os
9005import os.path
9006import sys
9007from shutil import copyfile
9008from Cython.Build import cythonize
9009if sys.version_info < (3,):
9010    raise ImportError('PLUMED 2.6 only supports Python 3')
9011"
9012    if echo "$testimport" | "$PYTHON_BIN" 1>/dev/null 2>/dev/null;  then
9013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014$as_echo "yes" >&6; }
9015       $as_echo "#define __PLUMED_HAS_PYTHON 1" >>confdefs.h
9016
9017    else
9018       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019$as_echo "no" >&6; }
9020       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable python interface" >&5
9021$as_echo "$as_me: WARNING: cannot enable python interface" >&2;}
9022       PYTHON_BIN=
9023    fi
9024  else
9025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable python interface" >&5
9026$as_echo "$as_me: WARNING: cannot enable python interface" >&2;}
9027  fi
9028fi
9029
9030if test "$af_ocl" == true ; then
9031
9032    found=ko
9033    __PLUMED_HAS_ARRAYFIRE=no
9034    ac_fn_cxx_check_header_mongrel "$LINENO" "arrayfire.h" "ac_cv_header_arrayfire_h" "$ac_includes_default"
9035if test "x$ac_cv_header_arrayfire_h" = xyes; then :
9036
9037
9038  if test "${libsearch}" == true ; then
9039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing af_is_double" >&5
9040$as_echo_n "checking for library containing af_is_double... " >&6; }
9041if ${ac_cv_search_af_is_double+:} false; then :
9042  $as_echo_n "(cached) " >&6
9043else
9044  ac_func_search_save_LIBS=$LIBS
9045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h.  */
9047
9048/* Override any GCC internal prototype to avoid an error.
9049   Use char because int might match the return type of a GCC
9050   builtin and then its argument prototype would still apply.  */
9051#ifdef __cplusplus
9052extern "C"
9053#endif
9054char af_is_double ();
9055int
9056main ()
9057{
9058return af_is_double ();
9059  ;
9060  return 0;
9061}
9062_ACEOF
9063for ac_lib in '' afopencl; do
9064  if test -z "$ac_lib"; then
9065    ac_res="none required"
9066  else
9067    ac_res=-l$ac_lib
9068    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9069  fi
9070  if ac_fn_cxx_try_link "$LINENO"; then :
9071  ac_cv_search_af_is_double=$ac_res
9072fi
9073rm -f core conftest.err conftest.$ac_objext \
9074    conftest$ac_exeext
9075  if ${ac_cv_search_af_is_double+:} false; then :
9076  break
9077fi
9078done
9079if ${ac_cv_search_af_is_double+:} false; then :
9080
9081else
9082  ac_cv_search_af_is_double=no
9083fi
9084rm conftest.$ac_ext
9085LIBS=$ac_func_search_save_LIBS
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_af_is_double" >&5
9088$as_echo "$ac_cv_search_af_is_double" >&6; }
9089ac_res=$ac_cv_search_af_is_double
9090if test "$ac_res" != no; then :
9091  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9092  found=ok
9093fi
9094
9095  else
9096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing af_is_double" >&5
9097$as_echo_n "checking for library containing af_is_double... " >&6; }
9098if ${ac_cv_search_af_is_double+:} false; then :
9099  $as_echo_n "(cached) " >&6
9100else
9101  ac_func_search_save_LIBS=$LIBS
9102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104
9105/* Override any GCC internal prototype to avoid an error.
9106   Use char because int might match the return type of a GCC
9107   builtin and then its argument prototype would still apply.  */
9108#ifdef __cplusplus
9109extern "C"
9110#endif
9111char af_is_double ();
9112int
9113main ()
9114{
9115return af_is_double ();
9116  ;
9117  return 0;
9118}
9119_ACEOF
9120for ac_lib in '' ; do
9121  if test -z "$ac_lib"; then
9122    ac_res="none required"
9123  else
9124    ac_res=-l$ac_lib
9125    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9126  fi
9127  if ac_fn_cxx_try_link "$LINENO"; then :
9128  ac_cv_search_af_is_double=$ac_res
9129fi
9130rm -f core conftest.err conftest.$ac_objext \
9131    conftest$ac_exeext
9132  if ${ac_cv_search_af_is_double+:} false; then :
9133  break
9134fi
9135done
9136if ${ac_cv_search_af_is_double+:} false; then :
9137
9138else
9139  ac_cv_search_af_is_double=no
9140fi
9141rm conftest.$ac_ext
9142LIBS=$ac_func_search_save_LIBS
9143fi
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_af_is_double" >&5
9145$as_echo "$ac_cv_search_af_is_double" >&6; }
9146ac_res=$ac_cv_search_af_is_double
9147if test "$ac_res" != no; then :
9148  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9149  found=ok
9150fi
9151
9152  fi
9153
9154
9155fi
9156
9157
9158    if test $found == ok ; then
9159       $as_echo "#define __PLUMED_HAS_ARRAYFIRE 1" >>confdefs.h
9160
9161       __PLUMED_HAS_ARRAYFIRE=yes
9162    else
9163       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_ARRAYFIRE" >&5
9164$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_ARRAYFIRE" >&2;}
9165    fi
9166
9167fi
9168if test "$af_cuda" == true ; then
9169
9170    found=ko
9171    __PLUMED_HAS_ARRAYFIRE=no
9172    ac_fn_cxx_check_header_mongrel "$LINENO" "arrayfire.h" "ac_cv_header_arrayfire_h" "$ac_includes_default"
9173if test "x$ac_cv_header_arrayfire_h" = xyes; then :
9174
9175
9176  if test "${libsearch}" == true ; then
9177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing af_is_double" >&5
9178$as_echo_n "checking for library containing af_is_double... " >&6; }
9179if ${ac_cv_search_af_is_double+:} false; then :
9180  $as_echo_n "(cached) " >&6
9181else
9182  ac_func_search_save_LIBS=$LIBS
9183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h.  */
9185
9186/* Override any GCC internal prototype to avoid an error.
9187   Use char because int might match the return type of a GCC
9188   builtin and then its argument prototype would still apply.  */
9189#ifdef __cplusplus
9190extern "C"
9191#endif
9192char af_is_double ();
9193int
9194main ()
9195{
9196return af_is_double ();
9197  ;
9198  return 0;
9199}
9200_ACEOF
9201for ac_lib in '' afcuda; do
9202  if test -z "$ac_lib"; then
9203    ac_res="none required"
9204  else
9205    ac_res=-l$ac_lib
9206    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9207  fi
9208  if ac_fn_cxx_try_link "$LINENO"; then :
9209  ac_cv_search_af_is_double=$ac_res
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212    conftest$ac_exeext
9213  if ${ac_cv_search_af_is_double+:} false; then :
9214  break
9215fi
9216done
9217if ${ac_cv_search_af_is_double+:} false; then :
9218
9219else
9220  ac_cv_search_af_is_double=no
9221fi
9222rm conftest.$ac_ext
9223LIBS=$ac_func_search_save_LIBS
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_af_is_double" >&5
9226$as_echo "$ac_cv_search_af_is_double" >&6; }
9227ac_res=$ac_cv_search_af_is_double
9228if test "$ac_res" != no; then :
9229  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9230  found=ok
9231fi
9232
9233  else
9234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing af_is_double" >&5
9235$as_echo_n "checking for library containing af_is_double... " >&6; }
9236if ${ac_cv_search_af_is_double+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  ac_func_search_save_LIBS=$LIBS
9240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241/* end confdefs.h.  */
9242
9243/* Override any GCC internal prototype to avoid an error.
9244   Use char because int might match the return type of a GCC
9245   builtin and then its argument prototype would still apply.  */
9246#ifdef __cplusplus
9247extern "C"
9248#endif
9249char af_is_double ();
9250int
9251main ()
9252{
9253return af_is_double ();
9254  ;
9255  return 0;
9256}
9257_ACEOF
9258for ac_lib in '' ; do
9259  if test -z "$ac_lib"; then
9260    ac_res="none required"
9261  else
9262    ac_res=-l$ac_lib
9263    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9264  fi
9265  if ac_fn_cxx_try_link "$LINENO"; then :
9266  ac_cv_search_af_is_double=$ac_res
9267fi
9268rm -f core conftest.err conftest.$ac_objext \
9269    conftest$ac_exeext
9270  if ${ac_cv_search_af_is_double+:} false; then :
9271  break
9272fi
9273done
9274if ${ac_cv_search_af_is_double+:} false; then :
9275
9276else
9277  ac_cv_search_af_is_double=no
9278fi
9279rm conftest.$ac_ext
9280LIBS=$ac_func_search_save_LIBS
9281fi
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_af_is_double" >&5
9283$as_echo "$ac_cv_search_af_is_double" >&6; }
9284ac_res=$ac_cv_search_af_is_double
9285if test "$ac_res" != no; then :
9286  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9287  found=ok
9288fi
9289
9290  fi
9291
9292
9293fi
9294
9295
9296    if test $found == ok ; then
9297       $as_echo "#define __PLUMED_HAS_ARRAYFIRE 1" >>confdefs.h
9298
9299       __PLUMED_HAS_ARRAYFIRE=yes
9300    else
9301       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_ARRAYFIRE" >&5
9302$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_ARRAYFIRE" >&2;}
9303    fi
9304
9305fi
9306if test "$af_cpu" == true ; then
9307
9308    found=ko
9309    __PLUMED_HAS_ARRAYFIRE=no
9310    ac_fn_cxx_check_header_mongrel "$LINENO" "arrayfire.h" "ac_cv_header_arrayfire_h" "$ac_includes_default"
9311if test "x$ac_cv_header_arrayfire_h" = xyes; then :
9312
9313
9314  if test "${libsearch}" == true ; then
9315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing af_is_double" >&5
9316$as_echo_n "checking for library containing af_is_double... " >&6; }
9317if ${ac_cv_search_af_is_double+:} false; then :
9318  $as_echo_n "(cached) " >&6
9319else
9320  ac_func_search_save_LIBS=$LIBS
9321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323
9324/* Override any GCC internal prototype to avoid an error.
9325   Use char because int might match the return type of a GCC
9326   builtin and then its argument prototype would still apply.  */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330char af_is_double ();
9331int
9332main ()
9333{
9334return af_is_double ();
9335  ;
9336  return 0;
9337}
9338_ACEOF
9339for ac_lib in '' afcpu; do
9340  if test -z "$ac_lib"; then
9341    ac_res="none required"
9342  else
9343    ac_res=-l$ac_lib
9344    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9345  fi
9346  if ac_fn_cxx_try_link "$LINENO"; then :
9347  ac_cv_search_af_is_double=$ac_res
9348fi
9349rm -f core conftest.err conftest.$ac_objext \
9350    conftest$ac_exeext
9351  if ${ac_cv_search_af_is_double+:} false; then :
9352  break
9353fi
9354done
9355if ${ac_cv_search_af_is_double+:} false; then :
9356
9357else
9358  ac_cv_search_af_is_double=no
9359fi
9360rm conftest.$ac_ext
9361LIBS=$ac_func_search_save_LIBS
9362fi
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_af_is_double" >&5
9364$as_echo "$ac_cv_search_af_is_double" >&6; }
9365ac_res=$ac_cv_search_af_is_double
9366if test "$ac_res" != no; then :
9367  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9368  found=ok
9369fi
9370
9371  else
9372    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing af_is_double" >&5
9373$as_echo_n "checking for library containing af_is_double... " >&6; }
9374if ${ac_cv_search_af_is_double+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  ac_func_search_save_LIBS=$LIBS
9378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h.  */
9380
9381/* Override any GCC internal prototype to avoid an error.
9382   Use char because int might match the return type of a GCC
9383   builtin and then its argument prototype would still apply.  */
9384#ifdef __cplusplus
9385extern "C"
9386#endif
9387char af_is_double ();
9388int
9389main ()
9390{
9391return af_is_double ();
9392  ;
9393  return 0;
9394}
9395_ACEOF
9396for ac_lib in '' ; do
9397  if test -z "$ac_lib"; then
9398    ac_res="none required"
9399  else
9400    ac_res=-l$ac_lib
9401    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9402  fi
9403  if ac_fn_cxx_try_link "$LINENO"; then :
9404  ac_cv_search_af_is_double=$ac_res
9405fi
9406rm -f core conftest.err conftest.$ac_objext \
9407    conftest$ac_exeext
9408  if ${ac_cv_search_af_is_double+:} false; then :
9409  break
9410fi
9411done
9412if ${ac_cv_search_af_is_double+:} false; then :
9413
9414else
9415  ac_cv_search_af_is_double=no
9416fi
9417rm conftest.$ac_ext
9418LIBS=$ac_func_search_save_LIBS
9419fi
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_af_is_double" >&5
9421$as_echo "$ac_cv_search_af_is_double" >&6; }
9422ac_res=$ac_cv_search_af_is_double
9423if test "$ac_res" != no; then :
9424  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9425  found=ok
9426fi
9427
9428  fi
9429
9430
9431fi
9432
9433
9434    if test $found == ok ; then
9435       $as_echo "#define __PLUMED_HAS_ARRAYFIRE 1" >>confdefs.h
9436
9437       __PLUMED_HAS_ARRAYFIRE=yes
9438    else
9439       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable __PLUMED_HAS_ARRAYFIRE" >&5
9440$as_echo "$as_me: WARNING: cannot enable __PLUMED_HAS_ARRAYFIRE" >&2;}
9441    fi
9442
9443fi
9444
9445# in non-debug mode, add -DNDEBUG
9446if test "$debug" == false ; then
9447  { $as_echo "$as_me:${as_lineno-$LINENO}: Release mode, adding -DNDEBUG" >&5
9448$as_echo "$as_me: Release mode, adding -DNDEBUG" >&6;}
9449  $as_echo "#define NDEBUG 1" >>confdefs.h
9450
9451fi
9452
9453# in debug-glibcxx mode, add -D_GLIBCXX_DEBUG
9454if test "$debug_glibcxx" == true ; then
9455  { $as_echo "$as_me:${as_lineno-$LINENO}: Check boundaries, adding -D_GLIBCXX_DEBUG" >&5
9456$as_echo "$as_me: Check boundaries, adding -D_GLIBCXX_DEBUG" >&6;}
9457  $as_echo "#define _GLIBCXX_DEBUG 1" >>confdefs.h
9458
9459fi
9460
9461# this is necessary in many MPI implementations
9462# I leave it by default, since it seems harmless
9463$as_echo "#define _REENTRANT 1" >>confdefs.h
9464
9465
9466#### Options for dynamic library to work properly ####
9467
9468
9469# these are libraries that should be linked also to MD engines
9470
9471# python executable
9472
9473
9474
9475
9476if test "$shared" == true ; then
9477  case `(uname)` in
9478  (Darwin)
9479    { $as_echo "$as_me:${as_lineno-$LINENO}: *** Special settings for dynamic libraries on OSX ***" >&5
9480$as_echo "$as_me: *** Special settings for dynamic libraries on OSX ***" >&6;}
9481    { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic library extension is 'dylib'" >&5
9482$as_echo "$as_me: Dynamic library extension is 'dylib'" >&6;}
9483    { $as_echo "$as_me:${as_lineno-$LINENO}: LDSHARED needs special flags" >&5
9484$as_echo "$as_me: LDSHARED needs special flags" >&6;}
9485    SOEXT=dylib
9486    LDSHARED="$LDSHARED -dynamiclib -Wl,-headerpad_max_install_names"
9487    if test "$rpath" = true ; then
9488      { $as_echo "$as_me:${as_lineno-$LINENO}: Switching off rpath on OSX" >&5
9489$as_echo "$as_me: Switching off rpath on OSX" >&6;}
9490      rpath=false
9491    fi
9492  ;;
9493  (Linux)
9494    { $as_echo "$as_me:${as_lineno-$LINENO}: *** Special settings for dynamic libraries on Linux ***" >&5
9495$as_echo "$as_me: *** Special settings for dynamic libraries on Linux ***" >&6;}
9496    { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic library extension is 'so'" >&5
9497$as_echo "$as_me: Dynamic library extension is 'so'" >&6;}
9498    { $as_echo "$as_me:${as_lineno-$LINENO}: LDSHARED and LDFLAGS need special flags" >&5
9499$as_echo "$as_me: LDSHARED and LDFLAGS need special flags" >&6;}
9500    SOEXT=so
9501    LDSHARED="$LDSHARED -shared"
9502
9503  save_LDFLAGS="$LDFLAGS"
9504  LDFLAGS="$LDFLAGS -rdynamic"
9505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDFLAGS can contain -rdynamic" >&5
9506$as_echo_n "checking whether LDFLAGS can contain -rdynamic... " >&6; }
9507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h.  */
9509
9510int
9511main ()
9512{
9513
9514  ;
9515  return 0;
9516}
9517_ACEOF
9518if ac_fn_cxx_try_link "$LINENO"; then :
9519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9520$as_echo "yes" >&6; }
9521else
9522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; }; LDFLAGS="$save_LDFLAGS"
9524fi
9525rm -f core conftest.err conftest.$ac_objext \
9526    conftest$ac_exeext conftest.$ac_ext
9527
9528    if test "$bsymbolic" == true ; then
9529
9530  save_LDFLAGS="$LDFLAGS"
9531  LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDFLAGS can contain -Wl,-Bsymbolic" >&5
9533$as_echo_n "checking whether LDFLAGS can contain -Wl,-Bsymbolic... " >&6; }
9534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536
9537int
9538main ()
9539{
9540
9541  ;
9542  return 0;
9543}
9544_ACEOF
9545if ac_fn_cxx_try_link "$LINENO"; then :
9546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9547$as_echo "yes" >&6; }
9548else
9549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550$as_echo "no" >&6; }; LDFLAGS="$save_LDFLAGS"
9551fi
9552rm -f core conftest.err conftest.$ac_objext \
9553    conftest$ac_exeext conftest.$ac_ext
9554
9555    fi
9556  ;;
9557  (*)
9558    { $as_echo "$as_me:${as_lineno-$LINENO}: *** Dynamic library only enabled on OSX and Linux ***" >&5
9559$as_echo "$as_me: *** Dynamic library only enabled on OSX and Linux ***" >&6;}
9560  esac
9561fi
9562
9563# check linking of runtime library
9564if test -n "$SOEXT"
9565then
9566  { $as_echo "$as_me:${as_lineno-$LINENO}: Using LDSHARED='$LDSHARED'" >&5
9567$as_echo "$as_me: Using LDSHARED='$LDSHARED'" >&6;}
9568  { $as_echo "$as_me:${as_lineno-$LINENO}: Using LDFLAGS='$LDFLAGS'" >&5
9569$as_echo "$as_me: Using LDFLAGS='$LDFLAGS'" >&6;}
9570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDSHARED can create dynamic libraries" >&5
9571$as_echo_n "checking whether LDSHARED can create dynamic libraries... " >&6; }
9572  rm -f conftest.*
9573  echo "void f(void){ return;}" > conftest.cpp
9574  $CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp 1>/dev/null 2>/dev/null
9575  $LDSHARED $LDFLAGS conftest.o -o conftest.$SOEXT 1>/dev/null 2>/dev/null
9576  if test -f conftest.$SOEXT
9577  then
9578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9579$as_echo "yes" >&6; }
9580  else
9581    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
9583    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dynamic library will be disabled" >&5
9584$as_echo "$as_me: WARNING: dynamic library will be disabled" >&2;}
9585    SOEXT=
9586  fi
9587  if test -n "$SOEXT" && test "$rpath" = true ; then
9588    rm -f conftest.$SOEXT
9589    readelf=""
9590    # Extract the first word of "readelf", so it can be a program name with args.
9591set dummy readelf; ac_word=$2
9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593$as_echo_n "checking for $ac_word... " >&6; }
9594if ${ac_cv_prog_readelf+:} false; then :
9595  $as_echo_n "(cached) " >&6
9596else
9597  if test -n "$readelf"; then
9598  ac_cv_prog_readelf="$readelf" # Let the user override the test.
9599else
9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601for as_dir in $PATH
9602do
9603  IFS=$as_save_IFS
9604  test -z "$as_dir" && as_dir=.
9605    for ac_exec_ext in '' $ac_executable_extensions; do
9606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9607    ac_cv_prog_readelf="found"
9608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609    break 2
9610  fi
9611done
9612  done
9613IFS=$as_save_IFS
9614
9615fi
9616fi
9617readelf=$ac_cv_prog_readelf
9618if test -n "$readelf"; then
9619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $readelf" >&5
9620$as_echo "$readelf" >&6; }
9621else
9622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623$as_echo "no" >&6; }
9624fi
9625
9626
9627    if test "$readelf" == found ; then
9628      test_LDSHARED="$LDSHARED -Wl,-R -Wl,/some/random/dir/"
9629      $test_LDSHARED $LDFLAGS conftest.o -o conftest.$SOEXT 1>/dev/null 2>/dev/null
9630      if readelf -d conftest.$SOEXT | grep RPATH | grep -q /some/random/dir ; then
9631        LDSHARED="$LDSHARED -Wl,-R -Wl,\"$LIBRARY_PATH\""
9632      else
9633        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -R option seems not working, disabling rpath" >&5
9634$as_echo "$as_me: WARNING: -R option seems not working, disabling rpath" >&2;}
9635      fi
9636    else
9637      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: readelf not available, no way to set rpath" >&5
9638$as_echo "$as_me: WARNING: readelf not available, no way to set rpath" >&2;}
9639    fi
9640  fi
9641  rm -f conftest.*
9642fi
9643#### Options for dynamic library to work properly ####
9644
9645
9646make_doc=no
9647if test "$doc" == true
9648then
9649
9650make_doc=yes
9651
9652### Look for doxygen
9653# Extract the first word of "doxygen", so it can be a program name with args.
9654set dummy doxygen; ac_word=$2
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656$as_echo_n "checking for $ac_word... " >&6; }
9657if ${ac_cv_prog_doxygen+:} false; then :
9658  $as_echo_n "(cached) " >&6
9659else
9660  if test -n "$doxygen"; then
9661  ac_cv_prog_doxygen="$doxygen" # Let the user override the test.
9662else
9663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664for as_dir in $PATH
9665do
9666  IFS=$as_save_IFS
9667  test -z "$as_dir" && as_dir=.
9668    for ac_exec_ext in '' $ac_executable_extensions; do
9669  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670    ac_cv_prog_doxygen="found"
9671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672    break 2
9673  fi
9674done
9675  done
9676IFS=$as_save_IFS
9677
9678fi
9679fi
9680doxygen=$ac_cv_prog_doxygen
9681if test -n "$doxygen"; then
9682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen" >&5
9683$as_echo "$doxygen" >&6; }
9684else
9685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686$as_echo "no" >&6; }
9687fi
9688
9689
9690if test "$doxygen" == found
9691then
9692  doxygen_version=`doxygen --version | awk 'BEGIN{FS="."}{if($1>1 || ($1==1 && $2>=8)) print "ok"}'`
9693  if test "$doxygen_version" == ok
9694  then
9695    { $as_echo "$as_me:${as_lineno-$LINENO}: Doxygen version is fine" >&5
9696$as_echo "$as_me: Doxygen version is fine" >&6;}
9697  else
9698    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen version is <1.8" >&5
9699$as_echo "$as_me: WARNING: Doxygen version is <1.8" >&2;}
9700    make_doc=no
9701  fi
9702  # Extract the first word of "dot", so it can be a program name with args.
9703set dummy dot; ac_word=$2
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705$as_echo_n "checking for $ac_word... " >&6; }
9706if ${ac_cv_prog_dot+:} false; then :
9707  $as_echo_n "(cached) " >&6
9708else
9709  if test -n "$dot"; then
9710  ac_cv_prog_dot="$dot" # Let the user override the test.
9711else
9712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9713for as_dir in $PATH
9714do
9715  IFS=$as_save_IFS
9716  test -z "$as_dir" && as_dir=.
9717    for ac_exec_ext in '' $ac_executable_extensions; do
9718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9719    ac_cv_prog_dot="found"
9720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9721    break 2
9722  fi
9723done
9724  done
9725IFS=$as_save_IFS
9726
9727fi
9728fi
9729dot=$ac_cv_prog_dot
9730if test -n "$dot"; then
9731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dot" >&5
9732$as_echo "$dot" >&6; }
9733else
9734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735$as_echo "no" >&6; }
9736fi
9737
9738
9739  if test "$dot" != found
9740  then
9741    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will not be able to see diagrams in the manual" >&5
9742$as_echo "$as_me: WARNING: You will not be able to see diagrams in the manual" >&2;}
9743  fi
9744else
9745  make_doc=no
9746fi
9747fi
9748
9749if test "$make_doc" = yes
9750then
9751  { $as_echo "$as_me:${as_lineno-$LINENO}: Manuals will be generated" >&5
9752$as_echo "$as_me: Manuals will be generated" >&6;}
9753else
9754  { $as_echo "$as_me:${as_lineno-$LINENO}: Manuals will not be generated" >&5
9755$as_echo "$as_me: Manuals will not be generated" >&6;}
9756fi
9757
9758
9759make_pdfdoc=""
9760if test "$pdfdoc" == true && test "$make_doc" == yes
9761then
9762  { $as_echo "$as_me:${as_lineno-$LINENO}: A PDF version of the manual will be generated" >&5
9763$as_echo "$as_me: A PDF version of the manual will be generated" >&6;}
9764  make_pdfdoc=yes
9765else
9766  { $as_echo "$as_me:${as_lineno-$LINENO}: A PDF version of the manual will not be generated" >&5
9767$as_echo "$as_me: A PDF version of the manual will not be generated" >&6;}
9768  make_pdfdoc=no
9769fi
9770
9771### Look for xxd
9772# Extract the first word of "xxd", so it can be a program name with args.
9773set dummy xxd; ac_word=$2
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775$as_echo_n "checking for $ac_word... " >&6; }
9776if ${ac_cv_prog_xxd+:} false; then :
9777  $as_echo_n "(cached) " >&6
9778else
9779  if test -n "$xxd"; then
9780  ac_cv_prog_xxd="$xxd" # Let the user override the test.
9781else
9782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783for as_dir in $PATH
9784do
9785  IFS=$as_save_IFS
9786  test -z "$as_dir" && as_dir=.
9787    for ac_exec_ext in '' $ac_executable_extensions; do
9788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9789    ac_cv_prog_xxd="found"
9790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791    break 2
9792  fi
9793done
9794  done
9795IFS=$as_save_IFS
9796
9797fi
9798fi
9799xxd=$ac_cv_prog_xxd
9800if test -n "$xxd"; then
9801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xxd" >&5
9802$as_echo "$xxd" >&6; }
9803else
9804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805$as_echo "no" >&6; }
9806fi
9807
9808
9809if test "$xxd" != found
9810then
9811  as_fn_error $? "xxd should be installed for PLUMED to compile properly" "$LINENO" 5
9812fi
9813
9814
9815program_can_run=""
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can be run on this machine" >&5
9817$as_echo_n "checking whether a program can be run on this machine... " >&6; }
9818if test "$cross_compiling" = yes; then :
9819   program_can_run=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross compiling)" >&5
9820$as_echo "no (cross compiling)" >&6; }
9821
9822else
9823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824/* end confdefs.h.  */
9825
9826#ifdef __PLUMED_HAS_MPI
9827#include <mpi.h>
9828#endif
9829// notice that [] is required to cheat autoconf
9830int main(int argc,char*argv[]){
9831#ifdef __PLUMED_HAS_MPI
9832// this emulates what happens when plumed
9833// is compiled with mpi and invoked with --no-mpi
9834  if(argc==10){
9835    MPI_Init(&argc,&argv);
9836    return MPI_Finalize();
9837  }
9838#endif
9839  return 0;
9840}
9841
9842_ACEOF
9843if ac_fn_cxx_try_run "$LINENO"; then :
9844   program_can_run=yes ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9845$as_echo "yes" >&6; }
9846else
9847   program_can_run=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
9849fi
9850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9851  conftest.$ac_objext conftest.beam conftest.$ac_ext
9852fi
9853
9854
9855if test $mpi_found == ok ; then
9856
9857program_can_run_mpi=""
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program compiled with mpi can be run on this machine" >&5
9859$as_echo_n "checking whether a program compiled with mpi can be run on this machine... " >&6; }
9860if test "$cross_compiling" = yes; then :
9861   program_can_run_mpi=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross compiling)" >&5
9862$as_echo "no (cross compiling)" >&6; }
9863
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867
9868#ifdef __PLUMED_HAS_MPI
9869#include <mpi.h>
9870#endif
9871// notice that [] is required to cheat autoconf
9872int main(int argc,char*argv[]){
9873#ifdef __PLUMED_HAS_MPI
9874  MPI_Init(&argc,&argv);
9875  return MPI_Finalize();
9876#endif
9877  return 0;
9878}
9879
9880_ACEOF
9881if ac_fn_cxx_try_run "$LINENO"; then :
9882   program_can_run_mpi=yes ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9883$as_echo "yes" >&6; }
9884else
9885   program_can_run_mpi=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
9887fi
9888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9889  conftest.$ac_objext conftest.beam conftest.$ac_ext
9890fi
9891
9892fi
9893
9894if test $mpi_found == ok ; then
9895  if test -n "$MPIEXEC" ; then
9896    { $as_echo "$as_me:${as_lineno-$LINENO}: Regtest suite will use $MPIEXEC command to run MPI tests" >&5
9897$as_echo "$as_me: Regtest suite will use $MPIEXEC command to run MPI tests" >&6;}
9898  else
9899    { $as_echo "$as_me:${as_lineno-$LINENO}: Regtest suite will use env var PLUMED_MPIRUN to run MPI tests (default: mpirun)" >&5
9900$as_echo "$as_me: Regtest suite will use env var PLUMED_MPIRUN to run MPI tests (default: mpirun)" >&6;}
9901  fi
9902fi
9903
9904if test "$SOEXT" == "dylib" ; then
9905  use_absolute_soname=yes
9906else
9907  use_absolute_soname=no
9908fi
9909
9910
9911if test "$absolute_soname" == true ; then
9912  if test "$SOEXT" == "dylib" ; then
9913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-absolute-soname has no effect on OSX" >&5
9914$as_echo "$as_me: WARNING: --enable-absolute-soname has no effect on OSX" >&2;}
9915  else
9916    { $as_echo "$as_me:${as_lineno-$LINENO}: enabling absolute soname. Full path will be hardcoded in plumed library soname" >&5
9917$as_echo "$as_me: enabling absolute soname. Full path will be hardcoded in plumed library soname" >&6;}
9918    use_absolute_soname=yes
9919  fi
9920fi
9921
9922if test "$absolute_install_name" == false ; then
9923  if test "$SOEXT" == "so" ; then
9924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --disable-absolute-install-name has no effect on Linux" >&5
9925$as_echo "$as_me: WARNING: --disable-absolute-install-name has no effect on Linux" >&2;}
9926  else
9927    { $as_echo "$as_me:${as_lineno-$LINENO}: enabling relative install_name. You will have to set DYLD_LIBRARY_PATH yor plumed libraries to be found at runtime" >&5
9928$as_echo "$as_me: enabling relative install_name. You will have to set DYLD_LIBRARY_PATH yor plumed libraries to be found at runtime" >&6;}
9929    use_absolute_soname=no
9930  fi
9931fi
9932
9933
9934if test "$SOEXT" == "dylib" ; then
9935  if test "$loader_path" == true ; then
9936    use_loader_path=yes
9937  else
9938    use_loader_path=no
9939  fi
9940else
9941  use_loader_path=no
9942fi
9943
9944#### This further tests are required to allow linking with non c++ compiler
9945{ $as_echo "$as_me:${as_lineno-$LINENO}: PLUMED seems to be configured properly!" >&5
9946$as_echo "$as_me: PLUMED seems to be configured properly!" >&6;}
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: **************************" >&5
9948$as_echo "$as_me: **************************" >&6;}
9949
9950LD_RO=
9951if test "$ld_r" == true ; then
9952for test_LD_RO in "$($CXX --print-prog-name=ld) -r -o" "$CXX -Wl,-r -o" "ld -r -o"
9953do
9954  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ objects can be grouped with $test_LD_RO" >&5
9955$as_echo_n "checking whether C++ objects can be grouped with $test_LD_RO... " >&6; }
9956
9957  rm -f conftest-*
9958
9959  cat << EOF > conftest-main.cpp
9960  void f(void);
9961  int main(int argc,char**argv){ f(); return 0; }
9962EOF
9963  cat << EOF > conftest-f.cpp
9964  void g(void);
9965  void f(void){ g(); }
9966EOF
9967  cat << EOF > conftest-g.cpp
9968  void g(void){ return; }
9969EOF
9970
9971  $CXX $CXXFLAGS -c conftest-main.cpp 1> /dev/null 2> /dev/null
9972  $CXX $CXXFLAGS -c conftest-f.cpp 1> /dev/null 2> /dev/null
9973  $CXX $CXXFLAGS -c conftest-g.cpp 1> /dev/null 2> /dev/null
9974
9975  $test_LD_RO conftest-both.o conftest-f.o conftest-g.o 1> /dev/null 2> /dev/null
9976
9977  $CXX $CXXFLAGS -o conftest.exe conftest-main.o conftest-both.o 1> /dev/null 2> /dev/null
9978
9979  if test -f conftest.exe
9980  then
9981    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9982$as_echo "yes" >&6; }
9983    LD_RO="$test_LD_RO"
9984    break
9985  else
9986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987$as_echo "no" >&6; }
9988  fi
9989done
9990
9991fi
9992
9993
9994AR_CR=
9995if test "$ar_cr" == true ; then
9996for test_AR_CR in "$($CXX --print-prog-name=ar) cr" "ar cr"
9997do
9998  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static libraries can be created with $test_AR_CR" >&5
9999$as_echo_n "checking whether static libraries can be created with $test_AR_CR... " >&6; }
10000
10001  rm -f conftest-*
10002
10003  cat << EOF > conftest-main.cpp
10004  void f(void);
10005  int main(int argc,char**argv){ f(); return 0; }
10006EOF
10007  cat << EOF > conftest-f.cpp
10008  void g(void);
10009  void f(void){ g(); }
10010EOF
10011  cat << EOF > conftest-g.cpp
10012  void g(void){ return; }
10013EOF
10014
10015  $CXX $CXXFLAGS -c conftest-main.cpp 1> /dev/null 2> /dev/null
10016  $CXX $CXXFLAGS -c conftest-f.cpp 1> /dev/null 2> /dev/null
10017  $CXX $CXXFLAGS -c conftest-g.cpp 1> /dev/null 2> /dev/null
10018
10019  $test_AR_CR conftest-both.a conftest-f.o conftest-g.o 1> /dev/null 2> /dev/null
10020
10021  $CXX $CXXFLAGS -o conftest.exe conftest-main.o conftest-both.a 1> /dev/null 2> /dev/null
10022
10023  if test -f conftest.exe
10024  then
10025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10026$as_echo "yes" >&6; }
10027    AR_CR="$test_AR_CR"
10028    break
10029  else
10030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031$as_echo "no" >&6; }
10032  fi
10033done
10034
10035fi
10036
10037make_static_archive=no
10038
10039
10040if test "${static_archive}" == true ; then
10041  if test -z "$LD_RO" || test -z "$AR_CR" ; then
10042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no way to create a static archive if ld -ro or ar cr do not work" >&5
10043$as_echo "$as_me: WARNING: no way to create a static archive if ld -ro or ar cr do not work" >&2;}
10044    static_archive=false
10045  fi
10046fi
10047
10048if test "${static_archive}" == true ; then
10049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static-object constructors can be linked from a static archive" >&5
10050$as_echo_n "checking whether static-object constructors can be linked from a static archive... " >&6; }
10051
10052  magic_token=c1bc476d093a3a5c67b4530e6c54c633593fe9aa
10053  rm -f conftest-*
10054
10055  cat << EOF > conftest-main.cpp
10056  void f(void);
10057  int main(int argc,char**argv){ f(); return 0; }
10058EOF
10059  cat << EOF > conftest-f.cpp
10060  void f(void){ return; }
10061EOF
10062  cat << EOF > conftest-g.cpp
10063#include <iostream>
10064  class g{
10065    public:
10066    g(){ std::cout<<"$magic_token\n"; }
10067  } init;
10068EOF
10069
10070  $CXX $CXXFLAGS -c conftest-main.cpp 1> /dev/null 2> /dev/null
10071  $CXX $CXXFLAGS -c conftest-f.cpp 1> /dev/null 2> /dev/null
10072  $CXX $CXXFLAGS -c conftest-g.cpp 1> /dev/null 2> /dev/null
10073
10074  $LD_RO conftest-both.o conftest-f.o conftest-g.o 1> /dev/null 2> /dev/null
10075# linking the previously merged objects should work:
10076  $AR_CR conftest-both.a conftest-both.o 1> /dev/null 2> /dev/null
10077# something like the following, instead, should not work:
10078#  $AR_CR conftest-both.a conftest-f.o conftest-g.o 1> /dev/null 2> /dev/null
10079#
10080  $CXX $CXXFLAGS -o conftest.exe conftest-main.o conftest-both.a 1> /dev/null 2> /dev/null
10081  if grep -q $magic_token ./conftest.exe ; then
10082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10083$as_echo "yes" >&6; }
10084    make_static_archive=yes
10085  else
10086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087$as_echo "no" >&6; }
10088  fi
10089fi
10090
10091if test "${static_patch}" == true ; then
10092
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: I will now check if C++ objects can be linked by C/Fortran compilers" >&5
10094$as_echo "$as_me: I will now check if C++ objects can be linked by C/Fortran compilers" >&6;}
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: This is relevant if you want to use plumed patch --static on a non-C++ code" >&5
10096$as_echo "$as_me: This is relevant if you want to use plumed patch --static on a non-C++ code" >&6;}
10097
10098for compiler in CC FC
10099do
10100  rm -f conftest.* conftest-main.*
10101  eval compexe=\$$compiler
10102  if test -n "$compexe" ; then
10103    case $compiler in
10104    (CC)
10105      name=C
10106      cat << EOF > conftest-main.c
10107int main(int argc,char**argv){
10108  return 0;
10109}
10110EOF
10111      $CC -c conftest-main.c
10112    ;;
10113    (FC)
10114      name=FORTRAN
10115      cat << EOF > conftest-main.f90
10116       program main
10117       integer i
10118       end program main
10119EOF
10120      $FC -c conftest-main.f90
10121    ;;
10122    esac
10123    cat << EOF > conftest.cpp
10124#include <iostream>
10125void f(void){
10126  std::cout<<"ciao";return;
10127}
10128EOF
10129    $CXX $CXXFLAGS -c conftest.cpp
10130# start search:
10131    found=
10132    if test "${libsearch}" == true ; then
10133      testlibs="-lstdc++ -lc++ -lmpi_cxx"
10134    else
10135      testlibs=""
10136    fi
10137    for testlib in "" $testlibs ; do
10138      comment=
10139      test -n "$testlib" && comment=" with library $testlib"
10140      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $name can link a C++ object$comment" >&5
10141$as_echo_n "checking whether $name can link a C++ object$comment... " >&6; }
10142      $compexe conftest.o conftest-main.o $LDFLAGS $testlib $LIBS -o conftest.exe 1>/dev/null 2>/dev/null
10143      if test -f conftest.exe
10144      then
10145        found=yes
10146        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10147$as_echo "yes" >&6; }
10148        LIBS="$testlib $LIBS"
10149        break
10150      else
10151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153      fi
10154    done
10155    if test -z "$found" ; then
10156      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You might have problems linking $name programs." >&5
10157$as_echo "$as_me: WARNING: You might have problems linking $name programs." >&2;}
10158      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please add c++ library to LIBS" >&5
10159$as_echo "$as_me: WARNING: Please add c++ library to LIBS" >&2;}
10160    fi
10161  else
10162    { $as_echo "$as_me:${as_lineno-$LINENO}: $compiler compiler not configured" >&5
10163$as_echo "$as_me: $compiler compiler not configured" >&6;}
10164  fi
10165  rm -f conftest.* conftest-main.*
10166done
10167
10168else
10169{ $as_echo "$as_me:${as_lineno-$LINENO}: Static patching is disabled, thus tests required for static patching will be skipped" >&5
10170$as_echo "$as_me: Static patching is disabled, thus tests required for static patching will be skipped" >&6;}
10171fi
10172
10173if test "$prefix" == NONE
10174then
10175  prefix=/usr/local
10176fi
10177
10178pkgconfig_bin=""
10179
10180for ac_prog in pkg-config
10181do
10182  # Extract the first word of "$ac_prog", so it can be a program name with args.
10183set dummy $ac_prog; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
10186if ${ac_cv_path_pkgconfig_bin+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  case $pkgconfig_bin in
10190  [\\/]* | ?:[\\/]*)
10191  ac_cv_path_pkgconfig_bin="$pkgconfig_bin" # Let the user override the test with a path.
10192  ;;
10193  *)
10194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195for as_dir in $PATH
10196do
10197  IFS=$as_save_IFS
10198  test -z "$as_dir" && as_dir=.
10199    for ac_exec_ext in '' $ac_executable_extensions; do
10200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201    ac_cv_path_pkgconfig_bin="$as_dir/$ac_word$ac_exec_ext"
10202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10203    break 2
10204  fi
10205done
10206  done
10207IFS=$as_save_IFS
10208
10209  ;;
10210esac
10211fi
10212pkgconfig_bin=$ac_cv_path_pkgconfig_bin
10213if test -n "$pkgconfig_bin"; then
10214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_bin" >&5
10215$as_echo "$pkgconfig_bin" >&6; }
10216else
10217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10218$as_echo "no" >&6; }
10219fi
10220
10221
10222  test -n "$pkgconfig_bin" && break
10223done
10224
10225
10226if test -z "$BASH_COMPLETION_DIR" && test -n "$pkgconfig_bin"; then
10227  if test "$prefix" == "$(pkg-config --variable=prefix bash-completion 2>/dev/null)"
10228  then
10229    { $as_echo "$as_me:${as_lineno-$LINENO}: bash-completion is installed on the same prefix where plumed will be installed" >&5
10230$as_echo "$as_me: bash-completion is installed on the same prefix where plumed will be installed" >&6;}
10231    if pkg-config --variable=completionsdir bash-completion 2>/dev/null >/dev/null ; then
10232      BASH_COMPLETION_DIR="$(pkg-config --variable=completionsdir  bash-completion 2>/dev/null)"
10233    fi
10234  else
10235    { $as_echo "$as_me:${as_lineno-$LINENO}: bash-completion is not installed or it is installed on a different prefix" >&5
10236$as_echo "$as_me: bash-completion is not installed or it is installed on a different prefix" >&6;}
10237    pkgconfig_bin=""
10238  fi
10239fi
10240
10241if test -n "$BASH_COMPLETION_DIR"
10242then
10243  { $as_echo "$as_me:${as_lineno-$LINENO}: bash completion for plumed will be installed in $BASH_COMPLETION_DIR" >&5
10244$as_echo "$as_me: bash completion for plumed will be installed in $BASH_COMPLETION_DIR" >&6;}
10245else
10246  { $as_echo "$as_me:${as_lineno-$LINENO}: bash completion for plumed will not be installed" >&5
10247$as_echo "$as_me: bash completion for plumed will not be installed" >&6;}
10248fi
10249
10250
10251
10252test "$program_prefix" != NONE &&
10253  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10254# Use a double $ so make ignores it.
10255test "$program_suffix" != NONE &&
10256  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10257# Double any \ or $.
10258# By default was `s,x,x', remove it if useless.
10259ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10260program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10261
10262
10263
10264# version modified to work in shell script instead of makefile:
10265program_transform_name_sh=$(echo "${program_transform_name}" | sed 's:\$\$:$:g')
10266program_name=$(echo plumed | sed "$program_transform_name_sh")
10267
10268
10269if test "$(echo "$program_name" | tr 'A-Z' 'a-z')" != "$(echo "$program_name" | tr 'A-Z' 'a-z' | sed 's/wrapper$//')" ; then
10270  as_fn_error $? "$program_name is not a valid program name (should not terminate with Wrapper)" "$LINENO" 5
10271fi
10272if test "$(echo "$program_name" | tr 'A-Z' 'a-z')" != "$(echo "$program_name" | tr 'A-Z' 'a-z' | sed 's/kernel$//')" ; then
10273  as_fn_error $? "$program_name is not a valid program name (should not terminate with Kernel)" "$LINENO" 5
10274fi
10275if test "$(echo "$program_name" | tr 'A-Z' 'a-z')" != "$(echo "$program_name" | tr 'A-Z' 'a-z' | sed 's/-patch$//')" ; then
10276  as_fn_error $? "$program_name is not a valid program name (should not terminate with -patch)" "$LINENO" 5
10277fi
10278if test "$(echo "$program_name" | tr 'A-Z' 'a-z')" != "$(echo "$program_name" | tr 'A-Z' 'a-z' | sed 's/-config$//')" ; then
10279  as_fn_error $? "$program_name is not a valid program name (should not terminate with -config)" "$LINENO" 5
10280fi
10281
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: **** PLUMED will be installed using the following paths:" >&5
10283$as_echo "$as_me: **** PLUMED will be installed using the following paths:" >&6;}
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: **** prefix: $prefix" >&5
10285$as_echo "$as_me: **** prefix: $prefix" >&6;}
10286if test "$exec_prefix" = NONE ; then
10287  exec_prefix_='${prefix}'
10288else
10289  exec_prefix_="${exec_prefix}"
10290fi
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: **** exec_prefix: $exec_prefix_" >&5
10292$as_echo "$as_me: **** exec_prefix: $exec_prefix_" >&6;}
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: **** bindir: $bindir" >&5
10294$as_echo "$as_me: **** bindir: $bindir" >&6;}
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: **** libdir: $libdir" >&5
10296$as_echo "$as_me: **** libdir: $libdir" >&6;}
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: **** includedir: $includedir" >&5
10298$as_echo "$as_me: **** includedir: $includedir" >&6;}
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: **** datarootdir: $datarootdir" >&5
10300$as_echo "$as_me: **** datarootdir: $datarootdir" >&6;}
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: **** datadir: $datadir" >&5
10302$as_echo "$as_me: **** datadir: $datadir" >&6;}
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: **** docdir: ${datarootdir}/doc/$program_name" >&5
10304$as_echo "$as_me: **** docdir: ${datarootdir}/doc/$program_name" >&6;}
10305{ $as_echo "$as_me:${as_lineno-$LINENO}: **** htmldir: $htmldir" >&5
10306$as_echo "$as_me: **** htmldir: $htmldir" >&6;}
10307{ $as_echo "$as_me:${as_lineno-$LINENO}: **** Executable will be named $program_name" >&5
10308$as_echo "$as_me: **** Executable will be named $program_name" >&6;}
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: **** As of PLUMED 2.5, you cannot change paths anymore during \"make install\"" >&5
10310$as_echo "$as_me: **** As of PLUMED 2.5, you cannot change paths anymore during \"make install\"" >&6;}
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: **** Please configure and make clean to change the prefix" >&5
10312$as_echo "$as_me: **** Please configure and make clean to change the prefix" >&6;}
10313
10314if test -z "$BASH_COMPLETION_DIR" ; then
10315  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **** Bash completion for plumed will not be installed, please add the following two lines to your bashrc" >&5
10316$as_echo "$as_me: WARNING: **** Bash completion for plumed will not be installed, please add the following two lines to your bashrc" >&2;}
10317  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **** _$program_name() { eval \"\$($program_name --no-mpi completion 2>/dev/null)\";}" >&5
10318$as_echo "$as_me: WARNING: **** _$program_name() { eval \"\$($program_name --no-mpi completion 2>/dev/null)\";}" >&2;}
10319  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **** complete -F _$program_name -o default $program_name" >&5
10320$as_echo "$as_me: WARNING: **** complete -F _$program_name -o default $program_name" >&2;}
10321fi
10322
10323if test $mpi == true; then
10324  if test $mpi_found == ok; then
10325    { $as_echo "$as_me:${as_lineno-$LINENO}: **** PLUMED will be compiled using MPI" >&5
10326$as_echo "$as_me: **** PLUMED will be compiled using MPI" >&6;}
10327  else
10328    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: **** PLUMED will NOT be compiled using MPI because MPI have not been found!" >&5
10329$as_echo "$as_me: WARNING: **** PLUMED will NOT be compiled using MPI because MPI have not been found!" >&2;}
10330  fi
10331else
10332    { $as_echo "$as_me:${as_lineno-$LINENO}: **** PLUMED will be compiled without MPI" >&5
10333$as_echo "$as_me: **** PLUMED will be compiled without MPI" >&6;}
10334fi
10335
10336if test $program_can_run == no ; then
10337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plumed executable will not run on this machine" >&5
10338$as_echo "$as_me: WARNING: plumed executable will not run on this machine" >&2;}
10339  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to patch an MD code use 'plumed-patch'" >&5
10340$as_echo "$as_me: WARNING: to patch an MD code use 'plumed-patch'" >&2;}
10341elif test $mpi_found == ok ; then
10342  if test $program_can_run_mpi == no ; then
10343    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plumed executable will not run on this machine" >&5
10344$as_echo "$as_me: WARNING: plumed executable will not run on this machine" >&2;}
10345    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unless you invoke it as 'plumed --no-mpi'" >&5
10346$as_echo "$as_me: WARNING: unless you invoke it as 'plumed --no-mpi'" >&2;}
10347    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: all command line tools are thus available as 'plumed --no-mpi name-of-the-tool'" >&5
10348$as_echo "$as_me: WARNING: all command line tools are thus available as 'plumed --no-mpi name-of-the-tool'" >&2;}
10349    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: e.g. 'plumed --no-mpi driver'" >&5
10350$as_echo "$as_me: WARNING: e.g. 'plumed --no-mpi driver'" >&2;}
10351    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to patch an MD code use 'plumed --no-mpi patch'" >&5
10352$as_echo "$as_me: WARNING: to patch an MD code use 'plumed --no-mpi patch'" >&2;}
10353    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (notice that MPI will be available anyway in the patched code)" >&5
10354$as_echo "$as_me: WARNING: (notice that MPI will be available anyway in the patched code)" >&2;}
10355  fi
10356fi
10357
10358
10359build_dir=`pwd`
10360
10361
10362
10363# This is to replace tags in Makefile.conf.in
10364# saving the result to Makefile.conf
10365ac_config_files="$ac_config_files Makefile.conf sourceme.sh"
10366
10367# This is to have the stamp-h file up to date
10368# The date of this file keeps track of when Makefile.conf and sourceme.sh have been updated
10369ac_config_files="$ac_config_files stamp-h"
10370
10371cat >confcache <<\_ACEOF
10372# This file is a shell script that caches the results of configure
10373# tests run on this system so they can be shared between configure
10374# scripts and configure runs, see configure's option --config-cache.
10375# It is not useful on other systems.  If it contains results you don't
10376# want to keep, you may remove or edit it.
10377#
10378# config.status only pays attention to the cache file if you give it
10379# the --recheck option to rerun configure.
10380#
10381# `ac_cv_env_foo' variables (set or unset) will be overridden when
10382# loading this file, other *unset* `ac_cv_foo' will be assigned the
10383# following values.
10384
10385_ACEOF
10386
10387# The following way of writing the cache mishandles newlines in values,
10388# but we know of no workaround that is simple, portable, and efficient.
10389# So, we kill variables containing newlines.
10390# Ultrix sh set writes to stderr and can't be redirected directly,
10391# and sets the high bit in the cache file unless we assign to the vars.
10392(
10393  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10394    eval ac_val=\$$ac_var
10395    case $ac_val in #(
10396    *${as_nl}*)
10397      case $ac_var in #(
10398      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10399$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10400      esac
10401      case $ac_var in #(
10402      _ | IFS | as_nl) ;; #(
10403      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10404      *) { eval $ac_var=; unset $ac_var;} ;;
10405      esac ;;
10406    esac
10407  done
10408
10409  (set) 2>&1 |
10410    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10411    *${as_nl}ac_space=\ *)
10412      # `set' does not quote correctly, so add quotes: double-quote
10413      # substitution turns \\\\ into \\, and sed turns \\ into \.
10414      sed -n \
10415	"s/'/'\\\\''/g;
10416	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10417      ;; #(
10418    *)
10419      # `set' quotes correctly as required by POSIX, so do not add quotes.
10420      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10421      ;;
10422    esac |
10423    sort
10424) |
10425  sed '
10426     /^ac_cv_env_/b end
10427     t clear
10428     :clear
10429     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10430     t end
10431     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10432     :end' >>confcache
10433if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10434  if test -w "$cache_file"; then
10435    if test "x$cache_file" != "x/dev/null"; then
10436      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10437$as_echo "$as_me: updating cache $cache_file" >&6;}
10438      if test ! -f "$cache_file" || test -h "$cache_file"; then
10439	cat confcache >"$cache_file"
10440      else
10441        case $cache_file in #(
10442        */* | ?:*)
10443	  mv -f confcache "$cache_file"$$ &&
10444	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10445        *)
10446	  mv -f confcache "$cache_file" ;;
10447	esac
10448      fi
10449    fi
10450  else
10451    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10452$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10453  fi
10454fi
10455rm -f confcache
10456
10457test "x$prefix" = xNONE && prefix=$ac_default_prefix
10458# Let make expand exec_prefix.
10459test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10460
10461# Transform confdefs.h into DEFS.
10462# Protect against shell expansion while executing Makefile rules.
10463# Protect against Makefile macro expansion.
10464#
10465# If the first sed substitution is executed (which looks for macros that
10466# take arguments), then branch to the quote section.  Otherwise,
10467# look for a macro that doesn't take arguments.
10468ac_script='
10469:mline
10470/\\$/{
10471 N
10472 s,\\\n,,
10473 b mline
10474}
10475t clear
10476:clear
10477s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
10478t quote
10479s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
10480t quote
10481b any
10482:quote
10483s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10484s/\[/\\&/g
10485s/\]/\\&/g
10486s/\$/$$/g
10487H
10488:any
10489${
10490	g
10491	s/^\n//
10492	s/\n/ /g
10493	p
10494}
10495'
10496DEFS=`sed -n "$ac_script" confdefs.h`
10497
10498
10499ac_libobjs=
10500ac_ltlibobjs=
10501U=
10502for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10503  # 1. Remove the extension, and $U if already installed.
10504  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10505  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10506  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10507  #    will be set to the directory where LIBOBJS objects are built.
10508  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10509  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10510done
10511LIBOBJS=$ac_libobjs
10512
10513LTLIBOBJS=$ac_ltlibobjs
10514
10515
10516
10517: "${CONFIG_STATUS=./config.status}"
10518ac_write_fail=0
10519ac_clean_files_save=$ac_clean_files
10520ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10522$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10523as_write_fail=0
10524cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10525#! $SHELL
10526# Generated by $as_me.
10527# Run this file to recreate the current configuration.
10528# Compiler output produced by configure, useful for debugging
10529# configure, is in config.log if it exists.
10530
10531debug=false
10532ac_cs_recheck=false
10533ac_cs_silent=false
10534
10535SHELL=\${CONFIG_SHELL-$SHELL}
10536export SHELL
10537_ASEOF
10538cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10539## -------------------- ##
10540## M4sh Initialization. ##
10541## -------------------- ##
10542
10543# Be more Bourne compatible
10544DUALCASE=1; export DUALCASE # for MKS sh
10545if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10546  emulate sh
10547  NULLCMD=:
10548  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10549  # is contrary to our usage.  Disable this feature.
10550  alias -g '${1+"$@"}'='"$@"'
10551  setopt NO_GLOB_SUBST
10552else
10553  case `(set -o) 2>/dev/null` in #(
10554  *posix*) :
10555    set -o posix ;; #(
10556  *) :
10557     ;;
10558esac
10559fi
10560
10561
10562as_nl='
10563'
10564export as_nl
10565# Printing a long string crashes Solaris 7 /usr/bin/printf.
10566as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10567as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10568as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10569# Prefer a ksh shell builtin over an external printf program on Solaris,
10570# but without wasting forks for bash or zsh.
10571if test -z "$BASH_VERSION$ZSH_VERSION" \
10572    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10573  as_echo='print -r --'
10574  as_echo_n='print -rn --'
10575elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10576  as_echo='printf %s\n'
10577  as_echo_n='printf %s'
10578else
10579  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10580    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10581    as_echo_n='/usr/ucb/echo -n'
10582  else
10583    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10584    as_echo_n_body='eval
10585      arg=$1;
10586      case $arg in #(
10587      *"$as_nl"*)
10588	expr "X$arg" : "X\\(.*\\)$as_nl";
10589	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10590      esac;
10591      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10592    '
10593    export as_echo_n_body
10594    as_echo_n='sh -c $as_echo_n_body as_echo'
10595  fi
10596  export as_echo_body
10597  as_echo='sh -c $as_echo_body as_echo'
10598fi
10599
10600# The user is always right.
10601if test "${PATH_SEPARATOR+set}" != set; then
10602  PATH_SEPARATOR=:
10603  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10604    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10605      PATH_SEPARATOR=';'
10606  }
10607fi
10608
10609
10610# IFS
10611# We need space, tab and new line, in precisely that order.  Quoting is
10612# there to prevent editors from complaining about space-tab.
10613# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10614# splitting by setting IFS to empty value.)
10615IFS=" ""	$as_nl"
10616
10617# Find who we are.  Look in the path if we contain no directory separator.
10618as_myself=
10619case $0 in #((
10620  *[\\/]* ) as_myself=$0 ;;
10621  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622for as_dir in $PATH
10623do
10624  IFS=$as_save_IFS
10625  test -z "$as_dir" && as_dir=.
10626    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10627  done
10628IFS=$as_save_IFS
10629
10630     ;;
10631esac
10632# We did not find ourselves, most probably we were run as `sh COMMAND'
10633# in which case we are not to be found in the path.
10634if test "x$as_myself" = x; then
10635  as_myself=$0
10636fi
10637if test ! -f "$as_myself"; then
10638  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10639  exit 1
10640fi
10641
10642# Unset variables that we do not need and which cause bugs (e.g. in
10643# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10644# suppresses any "Segmentation fault" message there.  '((' could
10645# trigger a bug in pdksh 5.2.14.
10646for as_var in BASH_ENV ENV MAIL MAILPATH
10647do eval test x\${$as_var+set} = xset \
10648  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10649done
10650PS1='$ '
10651PS2='> '
10652PS4='+ '
10653
10654# NLS nuisances.
10655LC_ALL=C
10656export LC_ALL
10657LANGUAGE=C
10658export LANGUAGE
10659
10660# CDPATH.
10661(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10662
10663
10664# as_fn_error STATUS ERROR [LINENO LOG_FD]
10665# ----------------------------------------
10666# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10667# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10668# script with STATUS, using 1 if that was 0.
10669as_fn_error ()
10670{
10671  as_status=$1; test $as_status -eq 0 && as_status=1
10672  if test "$4"; then
10673    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10674    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10675  fi
10676  $as_echo "$as_me: error: $2" >&2
10677  as_fn_exit $as_status
10678} # as_fn_error
10679
10680
10681# as_fn_set_status STATUS
10682# -----------------------
10683# Set $? to STATUS, without forking.
10684as_fn_set_status ()
10685{
10686  return $1
10687} # as_fn_set_status
10688
10689# as_fn_exit STATUS
10690# -----------------
10691# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10692as_fn_exit ()
10693{
10694  set +e
10695  as_fn_set_status $1
10696  exit $1
10697} # as_fn_exit
10698
10699# as_fn_unset VAR
10700# ---------------
10701# Portably unset VAR.
10702as_fn_unset ()
10703{
10704  { eval $1=; unset $1;}
10705}
10706as_unset=as_fn_unset
10707# as_fn_append VAR VALUE
10708# ----------------------
10709# Append the text in VALUE to the end of the definition contained in VAR. Take
10710# advantage of any shell optimizations that allow amortized linear growth over
10711# repeated appends, instead of the typical quadratic growth present in naive
10712# implementations.
10713if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10714  eval 'as_fn_append ()
10715  {
10716    eval $1+=\$2
10717  }'
10718else
10719  as_fn_append ()
10720  {
10721    eval $1=\$$1\$2
10722  }
10723fi # as_fn_append
10724
10725# as_fn_arith ARG...
10726# ------------------
10727# Perform arithmetic evaluation on the ARGs, and store the result in the
10728# global $as_val. Take advantage of shells that can avoid forks. The arguments
10729# must be portable across $(()) and expr.
10730if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10731  eval 'as_fn_arith ()
10732  {
10733    as_val=$(( $* ))
10734  }'
10735else
10736  as_fn_arith ()
10737  {
10738    as_val=`expr "$@" || test $? -eq 1`
10739  }
10740fi # as_fn_arith
10741
10742
10743if expr a : '\(a\)' >/dev/null 2>&1 &&
10744   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10745  as_expr=expr
10746else
10747  as_expr=false
10748fi
10749
10750if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10751  as_basename=basename
10752else
10753  as_basename=false
10754fi
10755
10756if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10757  as_dirname=dirname
10758else
10759  as_dirname=false
10760fi
10761
10762as_me=`$as_basename -- "$0" ||
10763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10764	 X"$0" : 'X\(//\)$' \| \
10765	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10766$as_echo X/"$0" |
10767    sed '/^.*\/\([^/][^/]*\)\/*$/{
10768	    s//\1/
10769	    q
10770	  }
10771	  /^X\/\(\/\/\)$/{
10772	    s//\1/
10773	    q
10774	  }
10775	  /^X\/\(\/\).*/{
10776	    s//\1/
10777	    q
10778	  }
10779	  s/.*/./; q'`
10780
10781# Avoid depending upon Character Ranges.
10782as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10783as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10784as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10785as_cr_digits='0123456789'
10786as_cr_alnum=$as_cr_Letters$as_cr_digits
10787
10788ECHO_C= ECHO_N= ECHO_T=
10789case `echo -n x` in #(((((
10790-n*)
10791  case `echo 'xy\c'` in
10792  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10793  xy)  ECHO_C='\c';;
10794  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10795       ECHO_T='	';;
10796  esac;;
10797*)
10798  ECHO_N='-n';;
10799esac
10800
10801rm -f conf$$ conf$$.exe conf$$.file
10802if test -d conf$$.dir; then
10803  rm -f conf$$.dir/conf$$.file
10804else
10805  rm -f conf$$.dir
10806  mkdir conf$$.dir 2>/dev/null
10807fi
10808if (echo >conf$$.file) 2>/dev/null; then
10809  if ln -s conf$$.file conf$$ 2>/dev/null; then
10810    as_ln_s='ln -s'
10811    # ... but there are two gotchas:
10812    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10813    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10814    # In both cases, we have to default to `cp -pR'.
10815    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10816      as_ln_s='cp -pR'
10817  elif ln conf$$.file conf$$ 2>/dev/null; then
10818    as_ln_s=ln
10819  else
10820    as_ln_s='cp -pR'
10821  fi
10822else
10823  as_ln_s='cp -pR'
10824fi
10825rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10826rmdir conf$$.dir 2>/dev/null
10827
10828
10829# as_fn_mkdir_p
10830# -------------
10831# Create "$as_dir" as a directory, including parents if necessary.
10832as_fn_mkdir_p ()
10833{
10834
10835  case $as_dir in #(
10836  -*) as_dir=./$as_dir;;
10837  esac
10838  test -d "$as_dir" || eval $as_mkdir_p || {
10839    as_dirs=
10840    while :; do
10841      case $as_dir in #(
10842      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10843      *) as_qdir=$as_dir;;
10844      esac
10845      as_dirs="'$as_qdir' $as_dirs"
10846      as_dir=`$as_dirname -- "$as_dir" ||
10847$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10848	 X"$as_dir" : 'X\(//\)[^/]' \| \
10849	 X"$as_dir" : 'X\(//\)$' \| \
10850	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10851$as_echo X"$as_dir" |
10852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10853	    s//\1/
10854	    q
10855	  }
10856	  /^X\(\/\/\)[^/].*/{
10857	    s//\1/
10858	    q
10859	  }
10860	  /^X\(\/\/\)$/{
10861	    s//\1/
10862	    q
10863	  }
10864	  /^X\(\/\).*/{
10865	    s//\1/
10866	    q
10867	  }
10868	  s/.*/./; q'`
10869      test -d "$as_dir" && break
10870    done
10871    test -z "$as_dirs" || eval "mkdir $as_dirs"
10872  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10873
10874
10875} # as_fn_mkdir_p
10876if mkdir -p . 2>/dev/null; then
10877  as_mkdir_p='mkdir -p "$as_dir"'
10878else
10879  test -d ./-p && rmdir ./-p
10880  as_mkdir_p=false
10881fi
10882
10883
10884# as_fn_executable_p FILE
10885# -----------------------
10886# Test if FILE is an executable regular file.
10887as_fn_executable_p ()
10888{
10889  test -f "$1" && test -x "$1"
10890} # as_fn_executable_p
10891as_test_x='test -x'
10892as_executable_p=as_fn_executable_p
10893
10894# Sed expression to map a string onto a valid CPP name.
10895as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10896
10897# Sed expression to map a string onto a valid variable name.
10898as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10899
10900
10901exec 6>&1
10902## ----------------------------------- ##
10903## Main body of $CONFIG_STATUS script. ##
10904## ----------------------------------- ##
10905_ASEOF
10906test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10907
10908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10909# Save the log message, to keep $0 and so on meaningful, and to
10910# report actual input values of CONFIG_FILES etc. instead of their
10911# values after options handling.
10912ac_log="
10913This file was extended by PLUMED $as_me 2, which was
10914generated by GNU Autoconf 2.69.  Invocation command line was
10915
10916  CONFIG_FILES    = $CONFIG_FILES
10917  CONFIG_HEADERS  = $CONFIG_HEADERS
10918  CONFIG_LINKS    = $CONFIG_LINKS
10919  CONFIG_COMMANDS = $CONFIG_COMMANDS
10920  $ $0 $@
10921
10922on `(hostname || uname -n) 2>/dev/null | sed 1q`
10923"
10924
10925_ACEOF
10926
10927case $ac_config_files in *"
10928"*) set x $ac_config_files; shift; ac_config_files=$*;;
10929esac
10930
10931
10932
10933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10934# Files that config.status was made for.
10935config_files="$ac_config_files"
10936
10937_ACEOF
10938
10939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10940ac_cs_usage="\
10941\`$as_me' instantiates files and other configuration actions
10942from templates according to the current configuration.  Unless the files
10943and actions are specified as TAGs, all are instantiated by default.
10944
10945Usage: $0 [OPTION]... [TAG]...
10946
10947  -h, --help       print this help, then exit
10948  -V, --version    print version number and configuration settings, then exit
10949      --config     print configuration, then exit
10950  -q, --quiet, --silent
10951                   do not print progress messages
10952  -d, --debug      don't remove temporary files
10953      --recheck    update $as_me by reconfiguring in the same conditions
10954      --file=FILE[:TEMPLATE]
10955                   instantiate the configuration file FILE
10956
10957Configuration files:
10958$config_files
10959
10960Report bugs to the package provider."
10961
10962_ACEOF
10963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10964ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10965ac_cs_version="\\
10966PLUMED config.status 2
10967configured by $0, generated by GNU Autoconf 2.69,
10968  with options \\"\$ac_cs_config\\"
10969
10970Copyright (C) 2012 Free Software Foundation, Inc.
10971This config.status script is free software; the Free Software Foundation
10972gives unlimited permission to copy, distribute and modify it."
10973
10974ac_pwd='$ac_pwd'
10975srcdir='$srcdir'
10976test -n "\$AWK" || AWK=awk
10977_ACEOF
10978
10979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10980# The default lists apply if the user does not specify any file.
10981ac_need_defaults=:
10982while test $# != 0
10983do
10984  case $1 in
10985  --*=?*)
10986    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10987    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10988    ac_shift=:
10989    ;;
10990  --*=)
10991    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10992    ac_optarg=
10993    ac_shift=:
10994    ;;
10995  *)
10996    ac_option=$1
10997    ac_optarg=$2
10998    ac_shift=shift
10999    ;;
11000  esac
11001
11002  case $ac_option in
11003  # Handling of the options.
11004  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11005    ac_cs_recheck=: ;;
11006  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11007    $as_echo "$ac_cs_version"; exit ;;
11008  --config | --confi | --conf | --con | --co | --c )
11009    $as_echo "$ac_cs_config"; exit ;;
11010  --debug | --debu | --deb | --de | --d | -d )
11011    debug=: ;;
11012  --file | --fil | --fi | --f )
11013    $ac_shift
11014    case $ac_optarg in
11015    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11016    '') as_fn_error $? "missing file argument" ;;
11017    esac
11018    as_fn_append CONFIG_FILES " '$ac_optarg'"
11019    ac_need_defaults=false;;
11020  --he | --h |  --help | --hel | -h )
11021    $as_echo "$ac_cs_usage"; exit ;;
11022  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11023  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11024    ac_cs_silent=: ;;
11025
11026  # This is an error.
11027  -*) as_fn_error $? "unrecognized option: \`$1'
11028Try \`$0 --help' for more information." ;;
11029
11030  *) as_fn_append ac_config_targets " $1"
11031     ac_need_defaults=false ;;
11032
11033  esac
11034  shift
11035done
11036
11037ac_configure_extra_args=
11038
11039if $ac_cs_silent; then
11040  exec 6>/dev/null
11041  ac_configure_extra_args="$ac_configure_extra_args --silent"
11042fi
11043
11044_ACEOF
11045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11046if \$ac_cs_recheck; then
11047  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11048  shift
11049  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11050  CONFIG_SHELL='$SHELL'
11051  export CONFIG_SHELL
11052  exec "\$@"
11053fi
11054
11055_ACEOF
11056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11057exec 5>>config.log
11058{
11059  echo
11060  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11061## Running $as_me. ##
11062_ASBOX
11063  $as_echo "$ac_log"
11064} >&5
11065
11066_ACEOF
11067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11068_ACEOF
11069
11070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11071
11072# Handling of arguments.
11073for ac_config_target in $ac_config_targets
11074do
11075  case $ac_config_target in
11076    "Makefile.conf") CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;;
11077    "sourceme.sh") CONFIG_FILES="$CONFIG_FILES sourceme.sh" ;;
11078    "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
11079
11080  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11081  esac
11082done
11083
11084
11085# If the user did not use the arguments to specify the items to instantiate,
11086# then the envvar interface is used.  Set only those that are not.
11087# We use the long form for the default assignment because of an extremely
11088# bizarre bug on SunOS 4.1.3.
11089if $ac_need_defaults; then
11090  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11091fi
11092
11093# Have a temporary directory for convenience.  Make it in the build tree
11094# simply because there is no reason against having it here, and in addition,
11095# creating and moving files from /tmp can sometimes cause problems.
11096# Hook for its removal unless debugging.
11097# Note that there is a small window in which the directory will not be cleaned:
11098# after its creation but before its name has been assigned to `$tmp'.
11099$debug ||
11100{
11101  tmp= ac_tmp=
11102  trap 'exit_status=$?
11103  : "${ac_tmp:=$tmp}"
11104  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11105' 0
11106  trap 'as_fn_exit 1' 1 2 13 15
11107}
11108# Create a (secure) tmp directory for tmp files.
11109
11110{
11111  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11112  test -d "$tmp"
11113}  ||
11114{
11115  tmp=./conf$$-$RANDOM
11116  (umask 077 && mkdir "$tmp")
11117} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11118ac_tmp=$tmp
11119
11120# Set up the scripts for CONFIG_FILES section.
11121# No need to generate them if there are no CONFIG_FILES.
11122# This happens for instance with `./config.status config.h'.
11123if test -n "$CONFIG_FILES"; then
11124
11125
11126ac_cr=`echo X | tr X '\015'`
11127# On cygwin, bash can eat \r inside `` if the user requested igncr.
11128# But we know of no other shell where ac_cr would be empty at this
11129# point, so we can use a bashism as a fallback.
11130if test "x$ac_cr" = x; then
11131  eval ac_cr=\$\'\\r\'
11132fi
11133ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11134if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11135  ac_cs_awk_cr='\\r'
11136else
11137  ac_cs_awk_cr=$ac_cr
11138fi
11139
11140echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11141_ACEOF
11142
11143
11144{
11145  echo "cat >conf$$subs.awk <<_ACEOF" &&
11146  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11147  echo "_ACEOF"
11148} >conf$$subs.sh ||
11149  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11150ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11151ac_delim='%!_!# '
11152for ac_last_try in false false false false false :; do
11153  . ./conf$$subs.sh ||
11154    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11155
11156  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11157  if test $ac_delim_n = $ac_delim_num; then
11158    break
11159  elif $ac_last_try; then
11160    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11161  else
11162    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11163  fi
11164done
11165rm -f conf$$subs.sh
11166
11167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11168cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11169_ACEOF
11170sed -n '
11171h
11172s/^/S["/; s/!.*/"]=/
11173p
11174g
11175s/^[^!]*!//
11176:repl
11177t repl
11178s/'"$ac_delim"'$//
11179t delim
11180:nl
11181h
11182s/\(.\{148\}\)..*/\1/
11183t more1
11184s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11185p
11186n
11187b repl
11188:more1
11189s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11190p
11191g
11192s/.\{148\}//
11193t nl
11194:delim
11195h
11196s/\(.\{148\}\)..*/\1/
11197t more2
11198s/["\\]/\\&/g; s/^/"/; s/$/"/
11199p
11200b
11201:more2
11202s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11203p
11204g
11205s/.\{148\}//
11206t delim
11207' <conf$$subs.awk | sed '
11208/^[^""]/{
11209  N
11210  s/\n//
11211}
11212' >>$CONFIG_STATUS || ac_write_fail=1
11213rm -f conf$$subs.awk
11214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11215_ACAWK
11216cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11217  for (key in S) S_is_set[key] = 1
11218  FS = ""
11219
11220}
11221{
11222  line = $ 0
11223  nfields = split(line, field, "@")
11224  substed = 0
11225  len = length(field[1])
11226  for (i = 2; i < nfields; i++) {
11227    key = field[i]
11228    keylen = length(key)
11229    if (S_is_set[key]) {
11230      value = S[key]
11231      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11232      len += length(value) + length(field[++i])
11233      substed = 1
11234    } else
11235      len += 1 + keylen
11236  }
11237
11238  print line
11239}
11240
11241_ACAWK
11242_ACEOF
11243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11245  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11246else
11247  cat
11248fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11249  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11250_ACEOF
11251
11252# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11253# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11254# trailing colons and then remove the whole line if VPATH becomes empty
11255# (actually we leave an empty line to preserve line numbers).
11256if test "x$srcdir" = x.; then
11257  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11258h
11259s///
11260s/^/:/
11261s/[	 ]*$/:/
11262s/:\$(srcdir):/:/g
11263s/:\${srcdir}:/:/g
11264s/:@srcdir@:/:/g
11265s/^:*//
11266s/:*$//
11267x
11268s/\(=[	 ]*\).*/\1/
11269G
11270s/\n//
11271s/^[^=]*=[	 ]*$//
11272}'
11273fi
11274
11275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11276fi # test -n "$CONFIG_FILES"
11277
11278
11279eval set X "  :F $CONFIG_FILES      "
11280shift
11281for ac_tag
11282do
11283  case $ac_tag in
11284  :[FHLC]) ac_mode=$ac_tag; continue;;
11285  esac
11286  case $ac_mode$ac_tag in
11287  :[FHL]*:*);;
11288  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11289  :[FH]-) ac_tag=-:-;;
11290  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11291  esac
11292  ac_save_IFS=$IFS
11293  IFS=:
11294  set x $ac_tag
11295  IFS=$ac_save_IFS
11296  shift
11297  ac_file=$1
11298  shift
11299
11300  case $ac_mode in
11301  :L) ac_source=$1;;
11302  :[FH])
11303    ac_file_inputs=
11304    for ac_f
11305    do
11306      case $ac_f in
11307      -) ac_f="$ac_tmp/stdin";;
11308      *) # Look for the file first in the build tree, then in the source tree
11309	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11310	 # because $ac_f cannot contain `:'.
11311	 test -f "$ac_f" ||
11312	   case $ac_f in
11313	   [\\/$]*) false;;
11314	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11315	   esac ||
11316	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11317      esac
11318      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11319      as_fn_append ac_file_inputs " '$ac_f'"
11320    done
11321
11322    # Let's still pretend it is `configure' which instantiates (i.e., don't
11323    # use $as_me), people would be surprised to read:
11324    #    /* config.h.  Generated by config.status.  */
11325    configure_input='Generated from '`
11326	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11327	`' by configure.'
11328    if test x"$ac_file" != x-; then
11329      configure_input="$ac_file.  $configure_input"
11330      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11331$as_echo "$as_me: creating $ac_file" >&6;}
11332    fi
11333    # Neutralize special characters interpreted by sed in replacement strings.
11334    case $configure_input in #(
11335    *\&* | *\|* | *\\* )
11336       ac_sed_conf_input=`$as_echo "$configure_input" |
11337       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11338    *) ac_sed_conf_input=$configure_input;;
11339    esac
11340
11341    case $ac_tag in
11342    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11343      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11344    esac
11345    ;;
11346  esac
11347
11348  ac_dir=`$as_dirname -- "$ac_file" ||
11349$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11350	 X"$ac_file" : 'X\(//\)[^/]' \| \
11351	 X"$ac_file" : 'X\(//\)$' \| \
11352	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11353$as_echo X"$ac_file" |
11354    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11355	    s//\1/
11356	    q
11357	  }
11358	  /^X\(\/\/\)[^/].*/{
11359	    s//\1/
11360	    q
11361	  }
11362	  /^X\(\/\/\)$/{
11363	    s//\1/
11364	    q
11365	  }
11366	  /^X\(\/\).*/{
11367	    s//\1/
11368	    q
11369	  }
11370	  s/.*/./; q'`
11371  as_dir="$ac_dir"; as_fn_mkdir_p
11372  ac_builddir=.
11373
11374case "$ac_dir" in
11375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11376*)
11377  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11378  # A ".." for each directory in $ac_dir_suffix.
11379  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11380  case $ac_top_builddir_sub in
11381  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11382  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11383  esac ;;
11384esac
11385ac_abs_top_builddir=$ac_pwd
11386ac_abs_builddir=$ac_pwd$ac_dir_suffix
11387# for backward compatibility:
11388ac_top_builddir=$ac_top_build_prefix
11389
11390case $srcdir in
11391  .)  # We are building in place.
11392    ac_srcdir=.
11393    ac_top_srcdir=$ac_top_builddir_sub
11394    ac_abs_top_srcdir=$ac_pwd ;;
11395  [\\/]* | ?:[\\/]* )  # Absolute name.
11396    ac_srcdir=$srcdir$ac_dir_suffix;
11397    ac_top_srcdir=$srcdir
11398    ac_abs_top_srcdir=$srcdir ;;
11399  *) # Relative name.
11400    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11401    ac_top_srcdir=$ac_top_build_prefix$srcdir
11402    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11403esac
11404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11405
11406
11407  case $ac_mode in
11408  :F)
11409  #
11410  # CONFIG_FILE
11411  #
11412
11413_ACEOF
11414
11415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11416# If the template does not know about datarootdir, expand it.
11417# FIXME: This hack should be removed a few years after 2.60.
11418ac_datarootdir_hack=; ac_datarootdir_seen=
11419ac_sed_dataroot='
11420/datarootdir/ {
11421  p
11422  q
11423}
11424/@datadir@/p
11425/@docdir@/p
11426/@infodir@/p
11427/@localedir@/p
11428/@mandir@/p'
11429case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11430*datarootdir*) ac_datarootdir_seen=yes;;
11431*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11432  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11433$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11434_ACEOF
11435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11436  ac_datarootdir_hack='
11437  s&@datadir@&$datadir&g
11438  s&@docdir@&$docdir&g
11439  s&@infodir@&$infodir&g
11440  s&@localedir@&$localedir&g
11441  s&@mandir@&$mandir&g
11442  s&\\\${datarootdir}&$datarootdir&g' ;;
11443esac
11444_ACEOF
11445
11446# Neutralize VPATH when `$srcdir' = `.'.
11447# Shell code in configure.ac might set extrasub.
11448# FIXME: do we really want to maintain this feature?
11449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11450ac_sed_extra="$ac_vpsub
11451$extrasub
11452_ACEOF
11453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11454:t
11455/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11456s|@configure_input@|$ac_sed_conf_input|;t t
11457s&@top_builddir@&$ac_top_builddir_sub&;t t
11458s&@top_build_prefix@&$ac_top_build_prefix&;t t
11459s&@srcdir@&$ac_srcdir&;t t
11460s&@abs_srcdir@&$ac_abs_srcdir&;t t
11461s&@top_srcdir@&$ac_top_srcdir&;t t
11462s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11463s&@builddir@&$ac_builddir&;t t
11464s&@abs_builddir@&$ac_abs_builddir&;t t
11465s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11466$ac_datarootdir_hack
11467"
11468eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11469  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11470
11471test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11472  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11473  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11474      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11476which seems to be undefined.  Please make sure it is defined" >&5
11477$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11478which seems to be undefined.  Please make sure it is defined" >&2;}
11479
11480  rm -f "$ac_tmp/stdin"
11481  case $ac_file in
11482  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11483  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11484  esac \
11485  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11486 ;;
11487
11488
11489
11490  esac
11491
11492
11493  case $ac_file$ac_mode in
11494    "stamp-h":F) echo timestamp > stamp-h ;;
11495
11496  esac
11497done # for ac_tag
11498
11499
11500as_fn_exit 0
11501_ACEOF
11502ac_clean_files=$ac_clean_files_save
11503
11504test $ac_write_fail = 0 ||
11505  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11506
11507
11508# configure is writing to config.log, and then calls config.status.
11509# config.status does its own redirection, appending to config.log.
11510# Unfortunately, on DOS this fails, as config.log is still kept open
11511# by configure, so config.status won't be able to write to it; its
11512# output is simply discarded.  So we exec the FD to /dev/null,
11513# effectively closing config.log, so it can be properly (re)opened and
11514# appended to by config.status.  When coming back to configure, we
11515# need to make the FD available again.
11516if test "$no_create" != yes; then
11517  ac_cs_success=:
11518  ac_config_status_args=
11519  test "$silent" = yes &&
11520    ac_config_status_args="$ac_config_status_args --quiet"
11521  exec 5>/dev/null
11522  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11523  exec 5>>config.log
11524  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11525  # would make configure fail if this is the last instruction.
11526  $ac_cs_success || as_fn_exit 1
11527fi
11528if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11530$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11531fi
11532
11533
11534