configure.in.in 1.52 KB
Newer Older
prudhomm's avatar
prudhomm committed
1
2
# -*- autoconf -*-
# 
prudhomm's avatar
prudhomm committed
3
#
prudhomm's avatar
prudhomm committed
4
AC_INIT(life, 0.1.0pre4, christophe.prudhomme@epfl.ch)
prudhomm's avatar
prudhomm committed
5
LIFE_PACKAGE=life
prudhomm's avatar
prudhomm committed
6
LIFE_VERSION=0.1.0pre4
7
8
9
10

PACKAGE=$LIFE_PACKAGE
VERSION=$LIFE_VERSION

prudhomm's avatar
prudhomm committed
11
12
13
AC_SUBST(LIFE_PACKAGE)
AC_SUBST(LIFE_VERSION)

prudhomm's avatar
prudhomm committed
14
15
16
17
18
19
20
AC_CONFIG_AUX_DIR(admin)

dnl What the current system and host
AC_CANONICAL_HOST
AC_CANONICAL_SYSTEM


prudhomm's avatar
prudhomm committed
21
AM_INIT_AUTOMAKE(${LIFE_PACKAGE}, ${LIFE_VERSION} )
prudhomm's avatar
prudhomm committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
37
AC_MSG_CHECKING([Aztec headers files presence])
prudhomm's avatar
prudhomm committed
38
39
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
40
AC_MSG_RESULT([$ac_aztec_includedir])
prudhomm's avatar
prudhomm committed
41
42
CXXFLAGS="-I$ac_aztec_includedir ${CXXFLAGS}"

prudhomm's avatar
prudhomm committed
43
AC_MSG_CHECKING([Aztec libraries presence])
prudhomm's avatar
prudhomm committed
44
45
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
46
# echo $ac_aztec_libdir
prudhomm's avatar
prudhomm committed
47
48
LDFLAGS="${LDFLAGS} -L${ac_aztec_libdir}"
aztec_libs="-laztec"
prudhomm's avatar
prudhomm committed
49
50
AC_SUBST(aztec_libs)
AC_MSG_RESULT([$aztec_libs])
prudhomm's avatar
prudhomm committed
51

prudhomm's avatar
prudhomm committed
52
53
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
54
55
56
57
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)