forked from hpc/libcircle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
63 lines (49 loc) · 1.73 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
AC_INIT([LibCircle],[0.2.1-rc.1],[[email protected]],[libcircle],[http://github.com/hpc/libcircle])
# Keep artifacts in directories as much as possible.
AC_CONFIG_AUX_DIR(auxdir)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall no-define])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS([config.h])
# Check for compilers.
AC_PROG_CC
AM_PROG_CC_C_O
# Check for pkg-config
X_AC_LIBCIRCLE_PKG_CONFIG
# Needed for tests
X_AC_LIBCIRCLE_CHECK
# Needed for docs
X_AC_LIBCIRCLE_DOXYGEN
# Pull in libtool. We need to support ancient autotools, so don't use LT_INIT.
#LT_INIT
AC_PROG_LIBTOOL
# Checks for typedefs, structs, and compiler options.
AC_TYPE_SIZE_T
AC_C_INLINE
# Checks for library functs.
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
# Define the library version.
AC_SUBST([LIBCIRCLE_SO_VERSION], [2:0:0])
AC_SUBST([LIBCIRCLE_API_VERSION], [0.2.1])
# Check for MPI
LX_FIND_MPI
test "x$have_C_mpi" = xyes || \
AC_MSG_ERROR([You should check to see if MPI is setup properly.])
AM_CONDITIONAL(HAVE_MPI, [test "x$have_C_mpi" = xyes])
echo
echo "========================================================"
echo "== libcircle: final build configuration =="
echo "========================================================"
echo "External Library Support:"
echo " MPI ............................................ $have_C_mpi"
echo
echo "Build Options:"
echo " Unit tests ..................................... $x_ac_libcircle_check"
echo " Doxygen ........................................ $x_ac_libcircle_doxygen"
echo "========================================================"
echo
AC_OUTPUT([Makefile \
tests/Makefile \
doc/Makefile \
libcircle.pc:libcircle.pc.in])