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

Last change on this file since 10189 was 10189, checked in by tbretz, 10 years ago
Updated, removed obsolete AC_PROG_LIBTOOL, removed dist-tarZ option
File size: 7.0 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])
10AC_PROG_CXX([colorgcc g++])
11LT_INIT([disable-static])
12AC_LANG(C++)
13#AC_PATH_XTRA
14
15
16
17
18AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules])
19AM_SILENT_RULES([yes])
20AM_PROG_CC_C_O
21
22
23DX_INIT_DOXYGEN([FACT++])#, DOXYFILE-PATH, [OUTPUT-DIR])
24#DX_DOXYGEN_FEATURE(ON)
25#DX_DOT_FEATURE(ON)
26#DX_HTML_FEATURE(ON)
27#DX_CHM_FEATURE(ON|OFF)
28#DX_CHI_FEATURE(ON|OFF)
29DX_MAN_FEATURE(ON)
30#DX_RTF_FEATURE(ON|OFF)
31#DX_XML_FEATURE(ON|OFF)
32#DX_PDF_FEATURE(ON|OFF)
33DX_PS_FEATURE(OFF)
34DX_ENV_APPEND(EXTRACT_ALL, YES)
35DX_ENV_APPEND(RECURSIVE,   YES)
36DX_ENV_APPEND(ALL_GRAPHS,  NO)  # change to yet to switch on call(er) graphs
37
38#USE_HTAGS              = $(USE_HTAGS)
39
40AX_BOOST_BASE([1.42], [],
41   [
42      echo "Error! The boost C++ libraries are not properly installed."
43      exit -1
44   ]
45)
46
47AX_BOOST_ASIO
48AX_BOOST_DATE_TIME
49AX_BOOST_FILESYSTEM
50AX_BOOST_PROGRAM_OPTIONS
51AX_BOOST_REGEX
52AX_BOOST_SYSTEM
53AX_BOOST_THREAD
54#ax_boost_iostreams
55#ax_boost_python
56#ax_boost_serialization
57#ax_boost_signals
58#ax_boost_test_exec_monitor
59#ax_boost_unit_test_framework
60#ax_boost_wave
61#ax_boost_wserialization
62
63
64AC_LANG_PUSH(C)
65
66AC_CHECK_LIB(pthread,  pthread_create,
67   [],
68   [
69      echo "Error! libpthread not found in default libarary paths."
70      exit -1
71   ]
72)
73AC_CHECK_HEADERS(pthread.h, [],
74   [
75      echo "Error! pthread.h not properly installed in default include paths."
76      exit -1
77   ]
78)
79
80
81AC_CHECK_LIB(readline, readline, [],
82   [
83      echo "Error! libreadline not found in default libarary paths."
84      exit -1
85   ]
86)
87AC_CHECK_HEADERS(readline/readline.h, [],
88   [
89      echo "Error! readline/readline.h not properly installed in default include path (maybe readline-dev missing)."
90      exit -1
91   ]
92)
93
94
95AC_CHECK_HEADERS(panel.h, [],
96   [
97      echo "Error! Ncurses panel.h not properly installed in default include paths."
98      exit -1
99   ]
100)
101AC_CHECK_LIB(panel, update_panels, [],
102   [
103      echo "Error! Ncurses libpanel not properly installed in the default libarary paths."
104      exit -1
105   ]
106)
107
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#AC_CHECK_HEADERS(
126#   [\
127#      boost/bind.hpp \
128#      boost/lexical_cast.hpp \
129#      boost/filesystem.hpp \
130#      boost/thread.hpp \
131#      boost/function.hpp \
132#      boost/regex.hpp \
133#      boost/asio.hpp \
134#      boost/enable_shared_from_this.hpp \
135#      boost/asio/deadline_timer.hpp \
136#      boost/date_time/posix_time/posix_time.hpp \
137#      boost/date_time/local_time/local_time.hpp \
138#      boost/date_time/gregorian/gregorian.hpp
139#   ], [],
140#   [
141#      echo "Error! At least one needed header of the boost C++ libararies is missing."
142#      exit -1
143#   ]
144#)
145
146#AC_ARG_WITH([dim],
147#   [
148#      AS_HELP_STRING([--with-dim],
149#         [location of the Dim headers, defaults to dim_v19r15])
150#   ],
151#   [DIM_PATH="$withval"],
152#   [DIM_PATH="dim_v19r15"]
153#)
154#
155#AC_SUBST([DIM_PATH])
156#
157#CFLAGS="$CFLAGS -I$DIM_PATH/dim"
158#CPPFLAGS="$CPPFLAGS -I$DIM_PATH/dim"
159#INCLUDEPATH="$INCLUDEPATH -I$DIM_PATH/dim"
160#AC_CHECK_HEADERS([dis.hxx dic.hxx], [],
161#  [
162#      echo "Error! Dim headers (dis.hxx, dic.hxx) not found in $DIM_PATH/dim."
163#      exit -1
164#   ]
165#)
166
167## ============>   boost header and boost libraries
168
169##########################################################################
170#AC_ARG_WITH([dim-include-path],
171#   [
172#      AS_HELP_STRING([--with-dim-include-path],
173#         [location of the Dim headers, defaults to ${HOME}/FACT/dim_v19r11/dim])
174#   ],
175#   [DIM_INCLUDE_PATH="$withval"],
176#   [DIM_INCLUDE_PATH="${HOME}/Software/Dim/dim_v19r11/dim"]
177#)
178#DIM_CFLAGS="-I$DIM_INCLUDE_PATH"
179##AC_SUBST([DIM_CFLAGS])
180#
181#CFLAGS="$CFLAGS $DIM_CFLAGS"
182#CPPFLAGS="$CPPFLAGS $DIM_CFLAGS"
183##INCLUDEPATH="$INCLUDEPATH $DIM_INCLUDE_PATH"
184#AC_CHECK_HEADERS([dis.hxx dic.hxx], [],
185#   [
186#      echo "Error! Dim headers (dis.hxx, dic.hxx) not found in $DIM_INCLUDE_PATH."
187#      exit -1
188#   ]
189#)
190##########################################################################
191
192
193
194###########################################################################
195#AC_ARG_WITH([dim-lib-path],
196#  [
197#     AS_HELP_STRING([--with-dim-lib-path],
198#        [location of the Dim libraries, defaults to ${HOME}/FACT/dim_v19r11/linux])
199#  ],
200#  [DIM_LIB_PATH="$withval"],
201#  [DIM_LIB_PATH="${HOME}/Software/Dim/dim_v19r11/linux"]
202#)
203#DIM_LIBS="-L$DIM_LIB_PATH -ldim"
204##AC_SUBST([DIM_LIBS])
205#
206#LDFLAGS="$LDFLAGS $DIM_LIBS"
207#AC_CHECK_LIB(dim, [get_dns_port_number], [],
208#   [
209#      echo "Error! libdim.so file not found in $DIM_LIB_PATH."
210#      exit -1
211#   ]
212#)
213###########################################################################
214
215
216
217# Get MySQL++ library and include locations
218#AC_ARG_WITH([mysqlpp-include-path],
219#   [
220#      AS_HELP_STRING([--with-mysqlpp-include-path],
221#         [location of the MySQL++ librarary headers, defaults to /usr/include/mysql++])
222#   ],
223#   [MYSQLPP_INCLUDE_PATH="$withval"],
224#   [MYSQLPP_INCLUDE_PATH=""]
225##)
226#MYSQLPP_CFLAGS="-I$MYSQLPP_INCLUDE_PATH"
227##AC_SUBST([DIM_CFLAGS])
228#
229#CFLAGS="$CFLAGS $MYSQLPP_CFLAGS"
230#CPPFLAGS="$CPPFLAGS $MYSQLPP_CFLAGS"
231##INCLUDEPATH="$INCLUDEPATH $DIM_INCLUDE_PATH"
232#AC_CHECK_HEADERS([mysql++/mysql++.h],
233#   [],
234#   [
235#      echo "Error! mysql++/mysql++.h not found in default include path."
236#      exit -1
237#   ]
238#)
239#### LAST ARGUMENT IS "OTHER LIBRARIES"
240
241
242
243#AC_ARG_WITH([mysql-lib-path],
244#  [
245#     AS_HELP_STRING([--with-mysql-lib-path],
246#        [location of the MySQL library, defaults to /usr/lib])
247#  ],
248#  [MYSQL_LIB_PATH="$withval"],
249#  [MYSQL_LIB_PATH="/usr/lib"]
250#)
251#MYSQL_LIBS="-L$MYSQL_LIB_PATH -lmysql"
252##AC_SUBST([DIM_LIBS])
253#
254#LDFLAGS="$LDFLAGS $MYSQL_LIBS"
255#AC_CHECK_LIB(mysql, [mysql_errno],
256#   [],
257#   [
258#      echo "Error! mysql libarary file not found in $MYSQL_LIB_PATH."
259#      exit -1
260#   ]
261#)
262
263
264
265
266AC_ARG_WITH([mysqlpp-lib-path],
267  [
268     AS_HELP_STRING([--with-mysqlpp-lib-path],
269        [location of the MySQL++ library, defaults to /usr/lib])
270  ],
271  [MYSQLPP_LIB_PATH="$withval"],
272  [MYSQLPP_LIB_PATH="/usr/lib"]
273)
274MYSQLPP_LIBS="-L$MYSQLPP_LIB_PATH -lmysqlpp"
275#AC_SUBST([DIM_LIBS])
276
277#LDFLAGS="$LDFLAGS $MYSQLPP_LIBS"
278#AC_CHECK_LIB(mysql++, [mysql_errno],
279#   [],
280#   [
281#      echo "Error! mysql++ libarary file not found in $MYSQL_LIB_PATH."
282#      exit -1
283#   ]
284#)
285
286
287
288
289
290#CPPFLAGS="$CPPFLAGS -std=c++0x"
291
292CPPFLAGS="$CPPFLAGS -I/usr/include/mysql"
293
294
295
296
297#AC_CHECK_HEADERS_ONCE(dim.h)
298
299#AC_C_CONST
300#AC_TYPE_PID_T
301#AC_HEADER_STDC
302
303AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.