-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
69 lines (47 loc) · 1.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
#!/bin/bash
AC_PREREQ([2.68])
AC_INIT([empi], [0.1], [[email protected]])
AC_CONFIG_AUX_DIR([build_aux])
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
# prevent setting xFLAGS to default of -g -O2
# https://ubuntuforums.org/showthread.php?t=1556520
if test x"$CFLAGS" = x""; then
AC_SUBST(CFLAGS, [ ])
fi
if test x"$CXXFLAGS" = x""; then
AC_SUBST(CXXFLAGS, [ ])
fi
AC_CONFIG_MACRO_DIRS([m4])
AC_PROG_CC
AM_PROG_AR
AC_PROG_GO
LT_INIT
LT_LANG([C])
LT_LANG([Go])
AC_CONFIG_SRCDIR([src/replication/rep.c])
#AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
# https://stackoverflow.com/questions/32192031/makefile-am-configure-ac-conditional-environment-variable-check
AC_ARG_ENABLE(stack-protector,[AS_HELP_STRING([--disable-stack-protector], [Disable Stack Protector])])
AC_MSG_CHECKING([whether to disable stack protector])
AS_IF([test "x${enable_stack_protector}" = "xno" ], AC_MSG_RESULT([yes]), AC_MSG_RESULT([no]))
AM_CONDITIONAL([DISABLESPROT],[test "x${enable_stack_protector}" = "xno"])
if test "x${enable_stack_protector}" = "xno"; then
AC_SUBST([REP_CFLAGS], ['-fno-stack-protector'])
fi
# Checks for programs.
#CC=${CC-/usr/bin/mpicc}
AC_ARG_VAR([CC],[the 'diff' program to use for test output comparison])
AC_PATH_PROG([CC], [mpicc], [cc], [])
#AC_PROG_CC(MPICC)
#AX_MPI
#AX_PROG_CC_MPI()
#export CC = mpicc
#CC = "mpicc"
#set CC mpicc
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_OUTPUT