1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
# Copyright (C) 2001-2018 Quantum ESPRESSO group
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License. See the file `License' in the root directory
# of the present distribution.
AC_INIT(ESPRESSO, 6.6, , espresso)
AC_PREREQ(2.64)
AC_CONFIG_MACRO_DIR([m4/])
# Initialize variables, filling with one comes from the environment...
X_AC_QE_DEFAULT_ENV()
# configure for current directory by default
if test "$topdir" = "" ; then topdir="`pwd`" ; fi
# check system type (no cross-compilation for now)
AC_CANONICAL_BUILD
# Checking Architecture...
X_AC_QE_ARCH()
# Add all needed -D options to try_dflags
try_dflags=""
# Add needed include directories
try_iflags="-I\$(TOPDIR)/include -I\$(TOPDIR)/FoX/finclude "
# Checking archiver...
X_AC_QE_AR()
# Checking OpenMP...
X_AC_QE_OPENMP()
# Checking MPIF90...
X_AC_QE_MPIF90()
# Check environ...
X_AC_QE_ENVIRON()
# Checking CC...
X_AC_QE_CC()
# Checking F90...
X_AC_QE_F90()
# Checking preprocessor...
X_AC_QE_CPP()
# Checking linker...
X_AC_QE_LD()
# Checking CUDA...
X_AC_QE_CUDA()
# Checking F90 rule...
X_AC_QE_F90RULE()
AC_LANG_PUSH(Fortran 77)
F77=$f90 # use Fortran 90 actually
FFLAGS="$test_fflags"
LDFLAGS="$test_ldflags"
# Checking BLAS...
X_AC_QE_BLAS()
# Checking LAPACK...
X_AC_QE_LAPACK()
# Checking for FFT...
X_AC_QE_FFT()
# Setting libxc...
ACX_LIBXC()
# Checking for IBM MASS library...
X_AC_QE_MASS()
# check for MPI library...
X_AC_QE_MPI()
# Setting ScaLAPACK...
X_AC_QE_SCALAPACK()
# Setting ELPA...
X_AC_QE_ELPA()
# Setting BEEF...
X_AC_QE_BEEF()
# Setting HDF5...
X_AC_QE_HDF5()
# Checking SIGNAL...
X_AC_QE_SIGNAL()
# Checking for ranlib...
X_AC_QE_RANLIB()
# Checking wget or curl...
X_AC_QE_WGET()
# Show dflags before adding $(MANUAL_DFLAGS) and adapt to XLF (if needed)
if test "$dflags" = "" ; then dflags="$try_dflags" ; fi
echo setting DFLAGS... $try_dflags
# xlf compilers (AIX and powerpc) want comma-separated -D directives
X_AC_QE_AIX_DFLAGS()
if test "$iflags" = "" ; then iflags="$try_iflags" ; fi
echo setting IFLAGS... $iflags
# export additional settings to generated files
AC_SUBST(dflags)
AC_SUBST(fdflags)
AC_SUBST(iflags)
AC_SUBST(ld_libs)
AC_SUBST(topdir)
AC_SUBST(extlib_flags)
AC_CONFIG_HEADERS([include/qe_cdefs.h:include/qe_cdefs.h.in])
AC_CONFIG_FILES([include/configure.h:include/configure.h.in])
#AC_CONFIG_FILES(Makefile.cpu)
AC_CONFIG_FILES(make.inc)
AC_CONFIG_FILES(configure.msg)
AC_CONFIG_FILES(install/make_wannier90.inc)
AC_OUTPUT
# final messages
sed '/@delete@/d' configure.msg
echo configure: success
|