-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
62 lines (45 loc) · 1.25 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([dana],
[m4_esyscmd_s([git describe --always --abbrev=4 --dirty])],
AC_CONFIG_SRCDIR(src/)
AM_INIT_AUTOMAKE([subdir-objects foreign])
# Avoid make to rebuild configure
AM_MAINTAINER_MODE
# Set OpenMP flags
# : ${enable_openmp=no}
AC_OPENMP
# Set AR
AM_PROG_AR
# Set FCFLAGS and FC
: ${FCFLAGS=""} # Override default (i.e. "-g -O2")
AC_PROG_FC
# External software
# =================
# subtrees
# --------
AC_CONFIG_SUBDIRS([
lib/fpt
])
# other options
# =============
AM_CONDITIONAL([COMPILER_IS_IFORT], [test x"$FC" = xifort])
AM_CONDITIONAL([COMPILER_IS_GFORTRAN], [test x"$FC" = xgfortran])
# Debug
# -----
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],[Turn on debugging]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value "${enableval}" for --enable-debug]) ;;
esac],enable_debug=no)
AM_CONDITIONAL([DEBUG], [test "x$enable_debug" = "xyes"])
AC_CONFIG_FILES([
Makefile
src/Makefile
])
# A precompiler variable
# AC_DEFINE([MYDEFINE],[SOMEVALUE],[Description: Make #define MYDEFINE SOMEVALUE])
AC_OUTPUT