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.76 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


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])

legoc's avatar
legoc committed
47
48
49
50
51
52
53
54
55
56
57

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


legoc's avatar
legoc committed
58
59
60
61
62
63
64
65
66
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
67
68

AM_COND_IF([CAMEO], [AC_CAMEO])
legoc's avatar
legoc committed
69
AM_COND_IF([GNUPLOT], [AC_GNUPLOT])
legoc's avatar
legoc committed
70
71
72
73

LST_CXXFLAGS="$BOOST_CPPFLAGS \
	$ZMQ_CFLAGS \
	$PROTOBUF_CFLAGS \
legoc's avatar
legoc committed
74
75
	$CAMEO_CFLAGS \
	$GNUPLOT_CFLAGS"
legoc's avatar
legoc committed
76
77
78
79
	
LST_LDFLAGS="$BOOST_LDFLAGS \
	$ZMQ_LDFLAGS \
	$PROTOBUF_LDFLAGS \
legoc's avatar
legoc committed
80
81
	$CAMEO_LDFLAGS \
	$GNUPLOT_LDFLAGS"
legoc's avatar
legoc committed
82
 
legoc's avatar
legoc committed
83
84
LST_LIBS="$BOOST_SYSTEM_LIB \
	$BOOST_THREAD_LIB \
legoc's avatar
legoc committed
85
86
	$ZMQ_LIB \
	$PROTOBUF_LIB \
legoc's avatar
legoc committed
87
88
	$CAMEO_LIBS \
	$GNUPLOT_LIBS"
legoc's avatar
legoc committed
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107

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
legoc's avatar
legoc committed
108
	src/lstdpp128/apps/gnuplot/Makefile
legoc's avatar
legoc committed
109
110
])
AC_OUTPUT