-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
68 lines (52 loc) · 2.56 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
# AC_PROG_CC
#AC_PROG_FC([mpiifort mpif90])
if [ [ -z "${FCFLAGS+set}" ] ]
then
FCFLAGS='-O4 -check nobounds -xAVX -qopt-report -ftz -assume buffered_io -assume byterecl -implicitnone -warn truncated_source -warn declarations -warn alignments -warn ignore_loc -warn usage -mcmodel=medium -shared-intel'
FCFLAGS='-O4 -check nobounds -qopt-report -ftz -assume buffered_io -assume byterecl -implicitnone -warn truncated_source -warn declarations -warn alignments -warn ignore_loc -warn usage -mcmodel=medium -shared-intel'
#FCFLAGS='-std=gnu -fimplicit-none -frange-check -O2 -pedantic -pedantic-errors -Waliasing -Wampersand -Wline-truncation -Wsurprising -Wunderflow -fbounds-check -assume byterecl'
fi
#AC_SUBST([ac_test_FCFLAGS],[set])
#AC_SUBST([ac_save_FCFLAGS],['-O4 -check nobounds -xAVX -qopt-report -ftz -assume buffered_io -assume byterecl -implicitnone -warn truncated_source -warn declarations -warn alignments -warn ignore_loc -warn usage -mcmodel=medium -shared-intel'])
AC_PROG_FC([mpiifort mpif90])
#AC_PROG_FC([mpif90 mpiifort])
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile
src/ModelDrawer/Makefile
src/ReadKernel/Makefile
src/SGTpsv/Makefile
src/SGTsh/Makefile
src/KernelMaker/Makefile
examples/global_kernels/database.inf
examples/global_kernels/kernel.inf
examples/innercorekernels/database.inf
examples/innercorekernels/kernel.inf
examples/multiple_kernels/database.inf
examples/multiple_kernels/kernel_config/ABC.20200101.Z.inf
examples/single_kernel/database.inf
examples/single_kernel/kernel.inf
])
AC_OUTPUT
#AC_CONFIG_FILES([Makefile
# examples/Makefile
# examples/multiple_kernels/Makefile
# src/KernelMaker/Makefile
# src/Makefile
# src/ModelDrawer/Makefile
# src/ReadKernel/Makefile
# src/SGTpsv/Makefile
# src/SGTsh/Makefile])
#AC_OUTPUT