The code.ill.fr has been recreated and upgraded with the latest version this weekend, If you encounter any problem please inform the Helpdesk.

configure.ac 2.28 KB
Newer Older
legoc's avatar
legoc committed
1
2
3
4
# Copyright (C) 2006 Free Software Foundation, Inc.
# This configure.ac script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

5
AC_INIT([lstdataprocess128], [1.1.0])
legoc's avatar
legoc committed
6
LIBRARY_VERSION=1:0:3
legoc's avatar
legoc committed
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


AM_INIT_AUTOMAKE([subdir-objects])

AC_PROG_CC
AC_PROG_CXX
AC_LANG(C++)

AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])

AC_ARG_ENABLE(nomad,
             [  --enable-nomad compile Nomad applications],
             [case "${enableval}" in
             yes) nomad=true ;;
             no)  nomad=false ;;
             *) AC_MSG_ERROR(bad value ${enableval} for --enable-nomad) ;;
             esac],[nomad=false])
AM_CONDITIONAL([NOMAD], [test "$nomad" = true])


AC_ARG_ENABLE(root,
             [  --enable-root compile Root applications],
             [case "${enableval}" in
             yes) root=true ;;
             no)  root=false ;;
             *) AC_MSG_ERROR(bad value ${enableval} for --enable-root) ;;
             esac],[root=false])
AM_CONDITIONAL([ROOT], [test "$root" = true])


AC_ARG_ENABLE(cameo,
             [  --enable-cameo compile Cameo applications],
             [case "${enableval}" in
             yes) cameo=true ;;
             no)  cameo=false ;;
             *) AC_MSG_ERROR(bad value ${enableval} for --enable-cameo) ;;
             esac],[cameo=false])
AM_CONDITIONAL([CAMEO], [test "$cameo" = true])

AC_SUBST(LIBRARY_VERSION)

ROOT_LDFLAGS=`root-config --glibs`
AC_SUBST(ROOT_LDFLAGS)

ROOT_CFLAGS=`root-config --cflags`
AC_SUBST(ROOT_CFLAGS)

AX_BOOST_BASE([1.41],, [AC_MSG_ERROR([Boost 1.41 required])])
legoc's avatar
legoc committed
56
57

AM_COND_IF([CAMEO], [AC_CAMEO])
legoc's avatar
legoc committed
58
59
60
61
62
63
64
65
66
67
68

LST_CXXFLAGS="$BOOST_CPPFLAGS \
	$ZMQ_CFLAGS \
	$PROTOBUF_CFLAGS \
	$CAMEO_CFLAGS"
	
LST_LDFLAGS="$BOOST_LDFLAGS \
	$ZMQ_LDFLAGS \
	$PROTOBUF_LDFLAGS \
	$CAMEO_LDFLAGS"
 
legoc's avatar
legoc committed
69
70
LST_LIBS="$BOOST_SYSTEM_LIB \
	$BOOST_THREAD_LIB \
legoc's avatar
legoc committed
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
	$ZMQ_LIB \
	$PROTOBUF_LIB \
	$CAMEO_LIBS"

AC_SUBST(LST_CXXFLAGS)
AC_SUBST(LST_LDFLAGS)
AC_SUBST(LST_LIBS)

top_srcdir=.

AC_CONFIG_FILES([
	Makefile
	src/Makefile
	src/lstdpp128/Makefile
	src/lstdpp128/algorithms/Makefile
	src/lstdpp128/algorithms/nomad/Makefile
	src/lstdpp128/algorithms/root/Makefile
	src/lstdpp128/apps/Makefile
	src/lstdpp128/apps/common/Makefile
	src/lstdpp128/apps/nomad/Makefile
	src/lstdpp128/apps/root/Makefile
	src/lstdpp128/apps/cameo/Makefile
])
AC_OUTPUT