forked from NOAA-GFDL/FMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
98 lines (81 loc) · 2.54 KB
/
configure.ac
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
# This is the main configure file for the FMS package.
# Ed Hartnett 2/21/2019
AC_PREREQ([2.59])
# Initialize with name, version, and support email address.
AC_INIT([FMS], [2.0-development], [])
# Find out about the host we're building on.
AC_CANONICAL_HOST
# Find out about the target we're building for.
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([foreign dist-zip subdir-objects])
# Keep libtool macros in an m4 directory.
AC_CONFIG_MACRO_DIR([m4])
# Set up libtool.
LT_PREREQ([2.4])
LT_INIT()
# Find the C compiler.
AC_PROG_CC
AM_PROG_CC_C_O
AC_C_CONST
AC_PROG_CPP
# Find the Fortran compiler.
AC_PROG_FC
AC_PROG_F77
# Find the install program.
AC_PROG_INSTALL
# Check to see if any macros must be set to enable large (>2GB) files.
AC_SYS_LARGEFILE
# Require MPI.
AC_CHECK_FUNC([MPI_Init], [], [AC_MSG_ERROR([MPI C library required to build FMS])])
# Check for netCDF C library.
AC_SEARCH_LIBS([nc_create], [netcdf], [],
[AC_MSG_ERROR([Can't find or link to the netcdf C library, set CPPFLAGS/LDFLAGS.])])
# Check for netCDF Fortran library.
AC_LANG_PUSH(Fortran)
AC_SEARCH_LIBS([nf_create], [netcdff], [],
[AC_MSG_ERROR([Can't find or link to the netcdf Fortran library, set CPPFLAGS/LDFLAGS.])])
AC_LANG_POP(Fortran)
# Require netCDF.
#AC_CHECK_FUNC([nf_open], [], [AC_MSG_ERROR([NetCDF Fortran library required to build FMS])])
# These defines are required for the build.
AC_DEFINE([use_netCDF], [1])
AC_DEFINE([use_libMPI], [1])
# These files will be created when the configure script is run.
AC_CONFIG_FILES([Makefile
include/Makefile
amip_interp/Makefile
time_interp/Makefile
time_manager/Makefile
constants/Makefile
platform/Makefile
fms/Makefile
mpp/Makefile
mpp/include/Makefile
tridiagonal/Makefile
tracer_manager/Makefile
topography/Makefile
station_data/Makefile
oda_tools/Makefile
mosaic/Makefile
monin_obukhov/Makefile
memutils/Makefile
interpolator/Makefile
horiz_interp/Makefile
field_manager/Makefile
fft/Makefile
exchange/Makefile
drifters/Makefile
diag_manager/Makefile
diag_integral/Makefile
data_override/Makefile
column_diagnostics/Makefile
block_control/Makefile
axis_utils/Makefile
astronomy/Makefile
coupler/Makefile
sat_vapor_pres/Makefile
random_numbers/Makefile
libFMS/Makefile
test_fms/Makefile
])
AC_OUTPUT()