source: trunk/FACT++/configure.ac@ 10197

Last change on this file since 10197 was 10195, checked in by tbretz, 14 years ago
Added ACX_PTHREAD macro for pthread support needed with dim
File size: 6.7 KB
Line 
1# autoreconf --force --install
2
3AC_INIT([FACT++],[1.0],[thomas.bretz@epfl.ch],[FACTpp],[http://hello.example.com/])
4AC_PREREQ([2.67])
5AC_CONFIG_FILES([Makefile]) # causes x/Makefile.in to be created if x/Makefile.am exists
6#AC_CONFIG_HEADERS([config.h])
7AC_CONFIG_MACRO_DIR([.macro_dir])
8AC_CONFIG_AUX_DIR([.aux_dir])
9AC_PROG_CC([colorgcc gcc])
10 #If output variable CXXFLAGS was not already set, set it to -g -O2
11AC_PROG_CXX([colorgcc g++])
12LT_INIT([disable-static])
13AC_LANG(C++)
14#AC_PATH_XTRA
15
16
17
18
19AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules])
20AM_SILENT_RULES([yes])
21AM_PROG_CC_C_O
22
23######################################################################
24# DOXYGEN SUPPORT
25######################################################################
26
27### FIXME: Need a configure commandline switch
28DX_ENV_APPEND(EXTRACT_ALL, YES)
29DX_ENV_APPEND(RECURSIVE, YES)
30DX_ENV_APPEND(ALL_GRAPHS, NO) # change to yet to switch on call(er) graphs
31
32#DX_DOXYGEN_FEATURE(ON)
33#DX_DOT_FEATURE(ON) # sets HAVE_DOT
34#DX_HTML_FEATURE(ON) # sets GENERATE_HTML (default)
35#DX_CHM_FEATURE(ON|OFF) # sets GENERATE_HTMLHELP
36#DX_CHI_FEATURE(ON|OFF) # sets GENERATE_CHI
37#DX_MAN_FEATURE(ON) # sets GENERATE_MAN (segfaults)
38#DX_RTF_FEATURE(ON|OFF) # sets GENERATE_RTF
39#DX_XML_FEATURE(ON|OFF) # sets GENERATE_XML
40#DX_PDF_FEATURE(ON|OFF) # sets GENERATE_PDF (default)
41DX_PS_FEATURE(OFF) # sets GENERATE_PS (default)
42DX_INIT_DOXYGEN($PACKAGE_NAME)#, DOXYFILE-PATH, [OUTPUT-DIR])
43
44#USE_HTAGS = $(USE_HTAGS)
45
46######################################################################
47# pthread/Readline/NCurses (pthread needed by dim and boost)
48######################################################################
49
50AC_LANG_PUSH(C)
51
52ACX_PTHREAD
53
54AC_CHECK_LIB(readline, readline, [],
55 [
56 echo "Error! libreadline not found in default libarary paths."
57 exit -1
58 ]
59)
60AC_CHECK_HEADERS(readline/readline.h, [],
61 [
62 echo "Error! readline/readline.h not properly installed in default include path (maybe readline-dev missing)."
63 exit -1
64 ]
65)
66
67
68AC_CHECK_HEADERS(panel.h, [],
69 [
70 echo "Error! Ncurses panel.h not properly installed in default include paths."
71 exit -1
72 ]
73)
74AC_CHECK_LIB(panel, update_panels, [],
75 [
76 echo "Error! Ncurses libpanel not properly installed in the default libarary paths."
77 exit -1
78 ]
79)
80
81AC_LANG_POP
82
83######################################################################
84# pthread support
85######################################################################
86
87#AX_PTHREAD
88#
89#AC_CHECK_LIB(pthread, pthread_create,
90# [],
91# [
92# echo "Error! libpthread not found in default libarary paths."
93# exit -1
94# ]
95#)
96#AC_CHECK_HEADERS(pthread.h, [],
97# [
98# echo "Error! pthread.h not properly installed in default include paths."
99# exit -1
100# ]
101#)
102
103######################################################################
104# Xm.h (lesstif/motif)
105######################################################################
106
107AC_LANG_PUSH(C)
108
109AC_CHECK_HEADERS([Mrm/MrmAppl.h Xm/Xm.h], [],
110 [
111 echo "Error! Mrm/MrmAppl.h, Xm/Xm.h not properly installed, needed to compile did (you need most probably lesstif2-dev)."
112 exit -1
113 ]
114)
115
116AC_CHECK_LIB(Xm, XtToolkitInitialize, [],
117 [
118 echo "Error! libXm (lesstif2) not properly installed in the default library path (needed by dim to link did)."
119 exit -1
120 ]
121)
122
123AC_LANG_POP
124
125######################################################################
126# MySQL(++) SUPPORT
127######################################################################
128
129MYSQL_DEVEL
130MYSQLPP_DEVEL
131
132######################################################################
133# BOOST SUPPORT
134######################################################################
135
136AX_BOOST_BASE([1.42], [],
137 [
138 echo "Error! The boost C++ libraries are not properly installed."
139 exit -1
140 ]
141)
142
143AX_BOOST_ASIO
144AX_BOOST_DATE_TIME
145AX_BOOST_FILESYSTEM
146AX_BOOST_PROGRAM_OPTIONS
147AX_BOOST_REGEX
148AX_BOOST_SYSTEM
149AX_BOOST_THREAD
150#ax_boost_iostreams
151#ax_boost_python
152#ax_boost_serialization
153#ax_boost_signals
154#ax_boost_test_exec_monitor
155#ax_boost_unit_test_framework
156#ax_boost_wave
157#ax_boost_wserialization
158
159#AC_CHECK_HEADERS(
160# [\
161# boost/bind.hpp \
162# boost/lexical_cast.hpp \
163# boost/filesystem.hpp \
164# boost/thread.hpp \
165# boost/function.hpp \
166# boost/regex.hpp \
167# boost/asio.hpp \
168# boost/enable_shared_from_this.hpp \
169# boost/asio/deadline_timer.hpp \
170# boost/date_time/posix_time/posix_time.hpp \
171# boost/date_time/local_time/local_time.hpp \
172# boost/date_time/gregorian/gregorian.hpp
173# ], [],
174# [
175# echo "Error! At least one needed header of the boost C++ libararies is missing."
176# exit -1
177# ]
178#)
179
180######################################################################
181# ROOT SUPPORT
182######################################################################
183
184# ROOT_PATH([5.12/00, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]])
185# ROOT_PATH([5.12/00])
186# ROOT_PATH(3.03/05, , AC_MSG_ERROR(Your ROOT version is too old))
187# ROOT_PATH(, AC_DEFINE([HAVE_ROOT]))
188
189# ROOTCONF full path to root-config
190# ROOTEXEC full path to root
191# ROOTCINT full path to rootcint
192# ROOTLIBDIR Where the ROOT libraries are
193# ROOTINCDIR Where the ROOT headers are
194# ROOTETCDIR Where the ROOT configuration is
195# ROOTCFLAGS Extra compiler flags
196# ROOTLIBS ROOT basic libraries
197# ROOTGLIBS ROOT basic + GUI libraries
198# ROOTAUXLIBS Auxilary libraries and linker flags for ROOT
199# ROOTAUXCFLAGS Auxilary compiler flags
200# ROOTRPATH Same as ROOTLIBDIR
201
202
203###########################################################################
204
205
206#AC_C_CONST
207#AC_TYPE_PID_T
208#AC_HEADER_STDC
209
210##########################################################################
211# debug compilation support
212##########################################################################
213#
214#AC_MSG_CHECKING([whether to build with debug information])
215#AC_ARG_ENABLE([debug],
216# [AS_HELP_STRING([--enable-debug],
217# [enable debug data generation (def=no)])],
218# [debugit="$enableval"],
219# [debugit=no])
220#AC_MSG_RESULT([$debugit])
221#
222#if test x"$debugit" = x"yes"; then
223# AC_DEFINE([DEBUG],[],[Debug Mode])
224# AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Werror -Wno-uninitialized -O0"
225#else
226# AC_DEFINE([NDEBUG],[],[No-debug Mode])
227# AM_CXXFLAGS="$AM_CXXFLAGS -O3"
228#fi
229#
230###########################################################################
231#To get the changed compiler flags distributed among your final Makefiles you have to add the following line somewhere afterwards:
232#
233#AC_SUBST([AM_CXXFLAGS])
234
235
236
237AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.