forked from geodynamics/selen
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
40 lines (29 loc) · 980 Bytes
/
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
# Process this file with autoconf to produce a configure script.
AC_INIT([SELEN], [2.9.10.4], BUG-REPORT-ADDRESS)
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_LANG(Fortran)
AC_PROG_FC
# Check for OpenMP
AC_OPENMP
# Check for Fortran specific flags, etc
AC_FC_MODULE_OUTPUT_FLAG
# Compiler must support at least 132 character columns
AC_FC_LINE_LENGTH(132)
# Compiler must support 16-bit or 10-bit quad precision
AX_FORTRAN_QUAD_REAL
# Run script to guess compiler flags
export FC
flags_guess="$SHELL flags.guess"
AC_MSG_NOTICE([running $flags_guess])
flags=`$flags_guess` ||
AC_MSG_ERROR([$flags_guess failed])
eval $flags
AC_ARG_VAR(FCFLAGS_PLATFORM, [Fortran platform specific compiler flags])
AC_ARG_VAR(LDFLAGS_PLATFORM, [Fortran platform specific linker flags])
AC_ARG_VAR(RUN_COMMANDS, [Fortran runtime commands])
# Check for support programs
AX_PROG_GMT
ACLTX_PROG_PS2PDF([echo "WARNING: GMT scripts will fail"])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT