configure.in.in 1.52 KB
Newer Older
prudhomm's avatar
prudhomm committed
1
2
# -*- autoconf -*-
# 
prudhomm's avatar
prudhomm committed
3
4
#

prudhomm's avatar
prudhomm committed
5
6
7
8
9
10
11
LIFE_PACKAGE=life
LIFE_VERSION=0.1.0pre2
AC_SUBST(LIFE_PACKAGE)
AC_SUBST(LIFE_VERSION)

# AC_INIT(${LIFE_PACKAGE}, ${LIFE_VERSION}, christophe.prudhomme@epfl.ch)
AC_INIT(Makefile.am)
prudhomm's avatar
prudhomm committed
12
13
14
15
16
17
18
19

AC_CONFIG_AUX_DIR(admin)

dnl What the current system and host
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM


prudhomm's avatar
prudhomm committed
20
AM_INIT_AUTOMAKE(${LIFE_PACKAGE}, ${LIFE_VERSION} )
prudhomm's avatar
prudhomm committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
AM_CONFIG_HEADER(lifeconfig.h)



# check for a C compiler
AC_PROG_CC( gcc )
AC_PROG_CC_C_O
AC_PROG_CXX( g++ )
AC_PROG_F77( g77 )
AC_PROG_F77_C_O

# check for libtool
AC_PROG_LIBTOOL

# AZTEC check
prudhomm's avatar
prudhomm committed
36
AC_MSG_CHECKING([Aztec headers files presence])
prudhomm's avatar
prudhomm committed
37
38
ac_aztec_includedirs="$REPOSITORY/$ARCH/include/Aztec_LifeV/ /usr/include /usr/local/include"
AC_FIND_FILE("az_aztec.h",$ac_aztec_includedirs , ac_aztec_includedir)
prudhomm's avatar
prudhomm committed
39
AC_MSG_RESULT([$ac_aztec_includedir])
prudhomm's avatar
prudhomm committed
40
41
CXXFLAGS="-I$ac_aztec_includedir ${CXXFLAGS}"

prudhomm's avatar
prudhomm committed
42
AC_MSG_CHECKING([Aztec libraries presence])
prudhomm's avatar
prudhomm committed
43
44
ac_aztec_libdirs="$REPOSITORY/$ARCH/lib$AFFIX/Aztec_LifeV/ /usr/lib /usr/local/lib"
AC_FIND_FILE("libaztec.a", $ac_aztec_libdirs, ac_aztec_libdir)
prudhomm's avatar
prudhomm committed
45
# echo $ac_aztec_libdir
prudhomm's avatar
prudhomm committed
46
47
LDFLAGS="${LDFLAGS} -L${ac_aztec_libdir}"
aztec_libs="-laztec"
prudhomm's avatar
prudhomm committed
48
49
AC_SUBST(aztec_libs)
AC_MSG_RESULT([$aztec_libs])
prudhomm's avatar
prudhomm committed
50

prudhomm's avatar
prudhomm committed
51
52
CXXFLAGS="-I/usr/include/blitz ${CXXFLAGS}"
CXXFLAGS="-I\$(top_srcdir)/life/lifecore -I\$(top_srcdir)/life/lifemesh -I\$(top_srcdir)/life/lifefem ${CXXFLAGS}"
prudhomm's avatar
prudhomm committed
53
54
55
56
CXXFLAGS="-DTHREEDIM -Wall ${CXXFLAGS}"

life_libs="\$(top_builddir)/life/lifefem/liblifefem.la \$(top_builddir)/life/lifemesh/liblifemesh.la \$(top_builddir)/life/lifecore/liblifecore.la"
AC_SUBST(life_libs)