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

Last change on this file since 10206 was 10204, checked in by tbretz, 15 years ago
Replaced search for Xm.h by AC_FIND_MOTIF
File size: 6.4 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, needed by did)
105######################################################################
106
107AC_FIND_MOTIF
108
109######################################################################
110# MySQL(++) SUPPORT
111######################################################################
112
113MYSQL_DEVEL
114MYSQLPP_DEVEL
115
116######################################################################
117# BOOST SUPPORT
118######################################################################
119
120AX_BOOST_BASE([1.42], [],
121 [
122 echo "Error! The boost C++ libraries are not properly installed."
123 exit -1
124 ]
125)
126
127AX_BOOST_ASIO
128AX_BOOST_DATE_TIME
129AX_BOOST_FILESYSTEM
130AX_BOOST_PROGRAM_OPTIONS
131AX_BOOST_REGEX
132AX_BOOST_SYSTEM
133AX_BOOST_THREAD
134#ax_boost_iostreams
135#ax_boost_python
136#ax_boost_serialization
137#ax_boost_signals
138#ax_boost_test_exec_monitor
139#ax_boost_unit_test_framework
140#ax_boost_wave
141#ax_boost_wserialization
142
143#AC_CHECK_HEADERS(
144# [\
145# boost/bind.hpp \
146# boost/lexical_cast.hpp \
147# boost/filesystem.hpp \
148# boost/thread.hpp \
149# boost/function.hpp \
150# boost/regex.hpp \
151# boost/asio.hpp \
152# boost/enable_shared_from_this.hpp \
153# boost/asio/deadline_timer.hpp \
154# boost/date_time/posix_time/posix_time.hpp \
155# boost/date_time/local_time/local_time.hpp \
156# boost/date_time/gregorian/gregorian.hpp
157# ], [],
158# [
159# echo "Error! At least one needed header of the boost C++ libararies is missing."
160# exit -1
161# ]
162#)
163
164######################################################################
165# ROOT SUPPORT
166######################################################################
167
168# ROOT_PATH([5.12/00, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]])
169# ROOT_PATH([5.12/00])
170# ROOT_PATH(3.03/05, , AC_MSG_ERROR(Your ROOT version is too old))
171# ROOT_PATH(, AC_DEFINE([HAVE_ROOT]))
172
173# ROOTCONF full path to root-config
174# ROOTEXEC full path to root
175# ROOTCINT full path to rootcint
176# ROOTLIBDIR Where the ROOT libraries are
177# ROOTINCDIR Where the ROOT headers are
178# ROOTETCDIR Where the ROOT configuration is
179# ROOTCFLAGS Extra compiler flags
180# ROOTLIBS ROOT basic libraries
181# ROOTGLIBS ROOT basic + GUI libraries
182# ROOTAUXLIBS Auxilary libraries and linker flags for ROOT
183# ROOTAUXCFLAGS Auxilary compiler flags
184# ROOTRPATH Same as ROOTLIBDIR
185
186
187###########################################################################
188
189
190#AC_C_CONST
191#AC_TYPE_PID_T
192#AC_HEADER_STDC
193
194##########################################################################
195# debug compilation support
196##########################################################################
197#
198#AC_MSG_CHECKING([whether to build with debug information])
199#AC_ARG_ENABLE([debug],
200# [AS_HELP_STRING([--enable-debug],
201# [enable debug data generation (def=no)])],
202# [debugit="$enableval"],
203# [debugit=no])
204#AC_MSG_RESULT([$debugit])
205#
206#if test x"$debugit" = x"yes"; then
207# AC_DEFINE([DEBUG],[],[Debug Mode])
208# AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Werror -Wno-uninitialized -O0"
209#else
210# AC_DEFINE([NDEBUG],[],[No-debug Mode])
211# AM_CXXFLAGS="$AM_CXXFLAGS -O3"
212#fi
213#
214###########################################################################
215#To get the changed compiler flags distributed among your final Makefiles you have to add the following line somewhere afterwards:
216#
217#AC_SUBST([AM_CXXFLAGS])
218
219
220
221AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.