1 | ######################################################################
|
---|
2 | # Autoconf initial setup
|
---|
3 | ######################################################################
|
---|
4 |
|
---|
5 | #[AC_]PACKAGE_NAME
|
---|
6 | #[AC_]PACKAGE_TARNAME
|
---|
7 | #[AC_]PACKAGE_VERSION
|
---|
8 | #[AC_]PACKAGE_STRING
|
---|
9 | #[AC_]PACKAGE_BUGREPORT
|
---|
10 | AC_INIT([FACT++],[1.0],[thomas.bretz@epfl.ch],[FACTpp],[http://fact.isdc.unige.ch/svn/trunk/FACT++/])
|
---|
11 | AC_PREREQ([2.65])
|
---|
12 | AC_CONFIG_FILES([Makefile]) # causes x/Makefile.in to be created if x/Makefile.am exists
|
---|
13 | #AC_CONFIG_HEADERS([config.h])
|
---|
14 | AC_CONFIG_MACRO_DIR([.macro_dir])
|
---|
15 | AC_CONFIG_AUX_DIR([.aux_dir])
|
---|
16 |
|
---|
17 | AC_PROG_CC([colorgcc gcc])
|
---|
18 | AC_PROG_CXX([colorgcc g++])
|
---|
19 |
|
---|
20 | ######################################################################
|
---|
21 | # GNUC extension support (needed for the evnt builder)
|
---|
22 | ######################################################################
|
---|
23 |
|
---|
24 | AC_USE_SYSTEM_EXTENSIONS(_GNU_SOURCE)
|
---|
25 |
|
---|
26 | ######################################################################
|
---|
27 | # Setup the libtool and the language
|
---|
28 | ######################################################################
|
---|
29 |
|
---|
30 | LT_INIT([disable-static])
|
---|
31 | AC_LANG(C++)
|
---|
32 | #AC_PATH_XTRA
|
---|
33 |
|
---|
34 | ######################################################################
|
---|
35 | # Automake initial setup
|
---|
36 | ######################################################################
|
---|
37 |
|
---|
38 | AM_INIT_AUTOMAKE([1.11 -Wall subdir-objects std-options no-define color-tests parallel-tests silent-rules])
|
---|
39 | AM_SILENT_RULES([yes])
|
---|
40 | AM_PROG_CC_C_O
|
---|
41 |
|
---|
42 | ######################################################################
|
---|
43 | # DOXYGEN SUPPORT
|
---|
44 | ######################################################################
|
---|
45 |
|
---|
46 | ### FIXME: Need a configure commandline switch
|
---|
47 | DX_ENV_APPEND(EXTRACT_ALL, YES)
|
---|
48 | DX_ENV_APPEND(RECURSIVE, YES)
|
---|
49 | DX_ENV_APPEND(ALL_GRAPHS, NO) # change to yes to switch on call(er) graphs
|
---|
50 |
|
---|
51 | #DX_DOXYGEN_FEATURE(ON)
|
---|
52 | #DX_DOT_FEATURE(ON) # sets HAVE_DOT
|
---|
53 | #DX_HTML_FEATURE(ON) # sets GENERATE_HTML (default)
|
---|
54 | #DX_CHM_FEATURE(ON|OFF) # sets GENERATE_HTMLHELP
|
---|
55 | #DX_CHI_FEATURE(ON|OFF) # sets GENERATE_CHI
|
---|
56 | #DX_MAN_FEATURE(ON) # sets GENERATE_MAN (segfaults)
|
---|
57 | #DX_RTF_FEATURE(ON|OFF) # sets GENERATE_RTF
|
---|
58 | #DX_XML_FEATURE(ON|OFF) # sets GENERATE_XML
|
---|
59 | #DX_PDF_FEATURE(ON|OFF) # sets GENERATE_PDF (default)
|
---|
60 | DX_PS_FEATURE(OFF) # sets GENERATE_PS (default)
|
---|
61 | DX_INIT_DOXYGEN($PACKAGE_NAME)#, DOXYFILE-PATH, [OUTPUT-DIR])
|
---|
62 |
|
---|
63 | #USE_HTAGS = $(USE_HTAGS)
|
---|
64 |
|
---|
65 | ######################################################################
|
---|
66 | # pthread/Readline/NCurses (pthread needed by dim and boost)
|
---|
67 | ######################################################################
|
---|
68 |
|
---|
69 | AC_LANG_PUSH(C)
|
---|
70 |
|
---|
71 | # Check for math library (some linux need this to compile cfitsio)
|
---|
72 | AC_CHECK_LIB([m],[cos])
|
---|
73 |
|
---|
74 | # Needed to compile dim
|
---|
75 | ACX_PTHREAD
|
---|
76 |
|
---|
77 | CPPFLAGS+=" "$PTHREAD_CFLAGS" "
|
---|
78 | LDFLAGS+=" "$PTHREAD_CFLAGS" "
|
---|
79 |
|
---|
80 |
|
---|
81 | # Needed to compile FACT++
|
---|
82 | AC_CHECK_READLINE
|
---|
83 |
|
---|
84 | if test "x$have_readline" != "xyes"; then
|
---|
85 | AC_MSG_ERROR([The readline library is not properly installed.])
|
---|
86 | fi
|
---|
87 |
|
---|
88 | CPPFLAGS+=" "$READLINE_INCLUDES" "
|
---|
89 | LDFLAGS+=" "$READLINE_LIBS" "
|
---|
90 |
|
---|
91 | # Needed to compile FACT++
|
---|
92 | AC_CHECK_HEADERS([panel.h],,
|
---|
93 | AC_MSG_ERROR([ncurses header not found]))
|
---|
94 |
|
---|
95 | # Needed to compile FACT++
|
---|
96 | AC_CHECK_LIB(panel, update_panels,,
|
---|
97 | AC_MSG_ERROR([ncurses panel library not found]))
|
---|
98 |
|
---|
99 | # Xm.h (lesstif/motif, needed to compile did)
|
---|
100 | AC_FIND_MOTIF
|
---|
101 |
|
---|
102 | CPPFLAGS+=" "$MOTIF_INCL" "
|
---|
103 | LDFLAGS+=" "$MOTIF_LDFLAGS" "
|
---|
104 |
|
---|
105 | AM_COND_IF(HAS_LIBXP,,
|
---|
106 | AC_MSG_WARN([ Motif/lesstif not found!])
|
---|
107 | )
|
---|
108 |
|
---|
109 | # Check for zlib and exit with error if not found (defines HAVE_LIBZ)
|
---|
110 | AC_CHECK_PACKAGE(zlib, inflateEnd, z, zlib.h,
|
---|
111 | HAVE_ZLIB=yes, HAVE_ZLIB=no)
|
---|
112 |
|
---|
113 | # Check for GL and GLU needed for the raw event viewer
|
---|
114 | AC_CHECK_PACKAGE(GL, glLoadIdentity, GL, GL/gl.h, HAVE_GL=yes, HAVE_GL=no)
|
---|
115 | AC_CHECK_PACKAGE(GLU, gluNewTess, GLU, GL/glu.h, HAVE_GLU=yes, HAVE_GLU=no)
|
---|
116 |
|
---|
117 | # Taken from http://code.google.com/p/autoconf-gl-macros/
|
---|
118 | #AX_CHECK_GL
|
---|
119 | #AX_CHECK_GLU
|
---|
120 | #AX_CHECK_GLUT
|
---|
121 |
|
---|
122 | # Check for the fits header and zstream support from MARS
|
---|
123 | AC_CHECK_FILE(gui/RawEventsViewer/izstream.h,
|
---|
124 | HAVE_IZSTREAM_H=yes, HAVE_IZSTREAM_H=no)
|
---|
125 | AC_CHECK_FILE(gui/RawEventsViewer/fits.h,
|
---|
126 | HAVE_FITS_H=yes, HAVE_FITS_H=no)
|
---|
127 |
|
---|
128 | # Needed to compile FACT++
|
---|
129 | AC_CHECK_PACKAGE(cfitsio, ffpss, cfitsio, fitsio.h,
|
---|
130 | HAVE_CFITSIO=yes, HAVE_CFITSIO=no)
|
---|
131 |
|
---|
132 | #AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([cfitsio headers not found]))
|
---|
133 | #AC_CHECK_LIB([cfitsio], main,,AC_MSG_ERROR([cfitsio library not found]))
|
---|
134 |
|
---|
135 | AC_LANG_POP
|
---|
136 |
|
---|
137 | # Needed to compile FACT++
|
---|
138 | AC_CHECK_PACKAGE(ccfits, main, CCfits, CCfits/CCfits,
|
---|
139 | HAVE_CCFITS=yes, HAVE_CCFITS=no)
|
---|
140 |
|
---|
141 | #AC_CHECK_HEADERS([CCfits/CCfits],,
|
---|
142 | # AC_MSG_ERROR(CCfits headers not found))
|
---|
143 | #AC_CHECK_LIB(CCfits, main,,
|
---|
144 | # AC_MSG_ERROR(CCfits library not found))
|
---|
145 |
|
---|
146 | ######################################################################
|
---|
147 | # MySQL(++) SUPPORT
|
---|
148 | ######################################################################
|
---|
149 |
|
---|
150 | # Needed to compile FACT++
|
---|
151 | MYSQL_DEVEL
|
---|
152 | MYSQLPP_DEVEL
|
---|
153 |
|
---|
154 | LDFLAGS+=" -lmysqlpp "
|
---|
155 |
|
---|
156 | ######################################################################
|
---|
157 | # BOOST SUPPORT
|
---|
158 | ######################################################################
|
---|
159 |
|
---|
160 | # Needed to compile FACT++
|
---|
161 | AX_BOOST_BASE([1.40], [],
|
---|
162 | AC_MSG_ERROR([The boost C++ libraries (>=1.40) are not properly installed.])
|
---|
163 | )
|
---|
164 |
|
---|
165 | AC_MSG_CHECKING([for BOOST_CPPFLAGS])
|
---|
166 | AC_MSG_RESULT([$BOOST_CPPFLAGS])
|
---|
167 |
|
---|
168 | AC_MSG_CHECKING([for BOOST_LDFLAGS])
|
---|
169 | AC_MSG_RESULT([$BOOST_LDFLAGS])
|
---|
170 |
|
---|
171 | # Keep this order AX_BOOST_FILESYSTEM needs AX_BOOST_SYSTEM_LIB
|
---|
172 | AX_BOOST_SYSTEM
|
---|
173 | AX_BOOST_ASIO
|
---|
174 | AX_BOOST_DATE_TIME
|
---|
175 | AX_BOOST_FILESYSTEM
|
---|
176 | AX_BOOST_PROGRAM_OPTIONS
|
---|
177 | AX_BOOST_REGEX
|
---|
178 | AX_BOOST_THREAD
|
---|
179 | #AX_BOOST_IOSTREAMS
|
---|
180 | #AX_BOOST_PYTHON
|
---|
181 | #AX_BOOST_SERIALIZATION
|
---|
182 | #AX_BOOST_SIGNALS
|
---|
183 | #AX_BOOST_TEST_EXEC_MONITOR
|
---|
184 | #AX_BOOST_UNIT_TEST_FRAMEWORK
|
---|
185 | #AX_BOOST_WAVE
|
---|
186 | #AX_BOOST_WSERIALIZATION
|
---|
187 |
|
---|
188 | LDFLAGS+=" "$BOOST_LDFLAGS
|
---|
189 | LDFLAGS+=" "$BOOST_SYSTEM_LIB
|
---|
190 | LDFLAGS+=" "$BOOST_ASIO_LIB
|
---|
191 | LDFLAGS+=" "$BOOST_DATE_TIME_LIB
|
---|
192 | LDFLAGS+=" "$BOOST_FILESYSTEM_LIB
|
---|
193 | LDFLAGS+=" "$BOOST_PROGRAM_OPTIONS_LIB
|
---|
194 | LDFLAGS+=" "$BOOST_REGEX_LIB
|
---|
195 | LDFLAGS+=" "$BOOST_THREAD_LIB" "
|
---|
196 |
|
---|
197 | CPPFLAGS+=" "$BOOST_CPPFLAGS" "
|
---|
198 |
|
---|
199 | #AC_CHECK_HEADERS(
|
---|
200 | # [\
|
---|
201 | # boost/bind.hpp \
|
---|
202 | # boost/lexical_cast.hpp \
|
---|
203 | # boost/filesystem.hpp \
|
---|
204 | # boost/thread.hpp \
|
---|
205 | # boost/function.hpp \
|
---|
206 | # boost/regex.hpp \
|
---|
207 | # boost/asio.hpp \
|
---|
208 | # boost/enable_shared_from_this.hpp \
|
---|
209 | # boost/asio/deadline_timer.hpp \
|
---|
210 | # boost/date_time/posix_time/posix_time.hpp \
|
---|
211 | # boost/date_time/local_time/local_time.hpp \
|
---|
212 | # boost/date_time/gregorian/gregorian.hpp
|
---|
213 | # ], [],
|
---|
214 | # [
|
---|
215 | # echo "Error! At least one needed header of the boost C++ libararies is missing."
|
---|
216 | # exit -1
|
---|
217 | # ]
|
---|
218 | #)
|
---|
219 |
|
---|
220 | ######################################################################
|
---|
221 | # QT4/GUI SUPPORT
|
---|
222 | ######################################################################
|
---|
223 |
|
---|
224 | AC_ARG_WITH([qt4],
|
---|
225 | [AS_HELP_STRING([--without-qt4], [Disable qt4, i.e. disable gui support.])],
|
---|
226 | [], [QT4_DO_IT_ALL])
|
---|
227 |
|
---|
228 | AC_CHECK_PACKAGE(QGL, main, QtOpenGL, QtOpenGL/QGlWidget)
|
---|
229 |
|
---|
230 |
|
---|
231 | ######################################################################
|
---|
232 | # ROOT SUPPORT
|
---|
233 | ######################################################################
|
---|
234 |
|
---|
235 | AC_ARG_WITH([root],
|
---|
236 | [AS_HELP_STRING([--without-root], [Disable root, i.e. disable gui support.])],
|
---|
237 | [], [ROOT_PATH([5.12/00])]
|
---|
238 | )
|
---|
239 |
|
---|
240 | if test "$ROOTEXEC" != no ;
|
---|
241 | then
|
---|
242 |
|
---|
243 | ROOTCPPFLAGS=$ROOTCFLAGS" "$ROOTAUXCFLAGS
|
---|
244 | ROOTLDFLAGS="-L"$ROOTLIBDIR" -lGQt "
|
---|
245 |
|
---|
246 | #AC_CHECK_PROG(HAVE_ROOT_QT, libGQt.so.$ROOTSOVERSION, yes, no, $ROOTLIBDIR)
|
---|
247 | #AC_CHECK_PROG(HAVE_GQT, libGQt.so.$ROOTSOVERSION, yes, no, $LD_LIBRARY_PATH)
|
---|
248 |
|
---|
249 | # It seems it dooesn't work on older root versions
|
---|
250 | ROOT_FEATURE([qt], [HAVE_ROOT_QT=yes])
|
---|
251 |
|
---|
252 | AC_SUBST(ROOTCPPFLAGS)
|
---|
253 | AC_SUBST(ROOTLDFLAGS)
|
---|
254 | fi
|
---|
255 |
|
---|
256 |
|
---|
257 | ######################################################################
|
---|
258 | # Check if we have colordiff to colorize 'svn diff'
|
---|
259 | ######################################################################
|
---|
260 |
|
---|
261 | # Nice to have to support colored diff
|
---|
262 | AC_CHECK_PROG(COLORDIFF, colordiff, colordiff, cat)
|
---|
263 | AC_CHECK_PROG(GROFF, groff, yes, no)
|
---|
264 | AC_CHECK_PROG(PS2PDF, ps2pdf, yes, no)
|
---|
265 | AC_CHECK_PROG(HELP2MAN, help2man, yes, no)
|
---|
266 |
|
---|
267 | ##########################################################################
|
---|
268 | # debug compilation support
|
---|
269 | ##########################################################################
|
---|
270 | #
|
---|
271 | #AC_MSG_CHECKING([whether to build with debug information])
|
---|
272 | #AC_ARG_ENABLE([debug],
|
---|
273 | # [AS_HELP_STRING([--enable-debug],
|
---|
274 | # [enable debug data generation (def=no)])],
|
---|
275 | # [debugit="$enableval"],
|
---|
276 | # [debugit=no])
|
---|
277 | #AC_MSG_RESULT([$debugit])
|
---|
278 | #
|
---|
279 | #if test x"$debugit" = x"yes"; then
|
---|
280 | # AC_DEFINE([DEBUG],[],[Debug Mode])
|
---|
281 | # AM_CXXFLAGS="$AM_CXXFLAGS -g -Wall -Werror -Wno-uninitialized -O0"
|
---|
282 | #else
|
---|
283 | # AC_DEFINE([NDEBUG],[],[No-debug Mode])
|
---|
284 | # AM_CXXFLAGS="$AM_CXXFLAGS -O3"
|
---|
285 | #fi
|
---|
286 | #
|
---|
287 |
|
---|
288 | ##########################################################################
|
---|
289 | # produce conditionals for Makefile.am and for summary
|
---|
290 | ##########################################################################
|
---|
291 |
|
---|
292 | AM_CONDITIONAL(HAS_COLORDIFF, [test "$COLORDIFF" = colordiff])
|
---|
293 | AM_CONDITIONAL(HAS_GROFF, [test "$GROFF" = yes])
|
---|
294 | AM_CONDITIONAL(HAS_PS2PDF, [test "$PS2PDF" = yes])
|
---|
295 | AM_CONDITIONAL(HAS_HELP2MAN, [test "$HELP2MAN" = yes])
|
---|
296 | AM_CONDITIONAL(HAS_DOXYGEN, [test -n "$DX_DOXYGEN"])
|
---|
297 | AM_CONDITIONAL(HAS_DOT, [test -n "$DX_DOT"])
|
---|
298 | AM_CONDITIONAL(HAS_COLORGCC, [test "$GCC" = colorgcc])
|
---|
299 | AM_CONDITIONAL(HAS_QT4, [test -n "$QT4_VERSION"])
|
---|
300 | AM_CONDITIONAL(HAS_ROOT, [test "$ROOTEXEC" != no])
|
---|
301 | AM_CONDITIONAL(HAS_ROOT_QT, [test "$HAVE_ROOT_QT" = yes])
|
---|
302 | AM_CONDITIONAL(HAS_GUI, [test "$QT4_VERSION" -a "$HAVE_ROOT_QT" = yes])
|
---|
303 | AM_CONDITIONAL(HAS_CFITSIO, [test "$HAVE_CFITSIO" = yes])
|
---|
304 | AM_CONDITIONAL(HAS_CCFITS, [test "$HAVE_CCFITS" = yes])
|
---|
305 | AM_CONDITIONAL(HAS_FITS, [test "$HAVE_CFITSIO" = yes -a "$HAVE_CCFITS" = yes])
|
---|
306 | AM_CONDITIONAL(HAS_ZLIB, [test "$HAVE_ZLIB" = yes])
|
---|
307 | AM_CONDITIONAL(HAS_IZSTREAM_H,[test "$HAVE_IZSTREAM_H" = yes])
|
---|
308 | AM_CONDITIONAL(HAS_FITS_H, [test "$HAVE_FITS_H" = yes])
|
---|
309 | AM_CONDITIONAL(HAS_GL, [test "$HAVE_GL" = yes])
|
---|
310 | AM_CONDITIONAL(HAS_GLU, [test "$HAVE_GLU" = yes])
|
---|
311 |
|
---|
312 | AM_CONDITIONAL(HAS_VIEWER, [test "$QT4_VERSION" -a "$HAVE_FITS_H" = yes -a "$HAVE_GL" = yes -a "$HAVE_GLU" = yes])
|
---|
313 |
|
---|
314 | AM_CONDITIONAL(IS_FALSE, [test "x" = "y"])
|
---|
315 | AM_CONDITIONAL(IS_TRUE, [test "x" = "x"])
|
---|
316 |
|
---|
317 | AM_COND_IF(HAS_FITS, [AC_DEFINE(HAVE_FITS)], )
|
---|
318 | AM_COND_IF(HAS_ROOT, [AC_DEFINE(HAVE_ROOT)], )
|
---|
319 |
|
---|
320 | AM_COND_IF(HAS_FITS_H, [
|
---|
321 | AM_COND_IF(HAS_IZSTREAM_H, [
|
---|
322 | AM_COND_IF(HAS_ZLIB, [AC_DEFINE(HAVE_ZLIB)], )
|
---|
323 | ])
|
---|
324 | ],)
|
---|
325 |
|
---|
326 |
|
---|
327 | ##########################################################################
|
---|
328 | # print summary
|
---|
329 | ##########################################################################
|
---|
330 |
|
---|
331 | AC_OUTPUT
|
---|
332 |
|
---|
333 | AC_MSG_NOTICE()
|
---|
334 | AC_MSG_NOTICE(============================== summary =============================)
|
---|
335 | AC_MSG_NOTICE()
|
---|
336 | AC_MSG_NOTICE([ CPPFLAGS = $CPPFLAGS])
|
---|
337 | AC_MSG_NOTICE()
|
---|
338 | AC_MSG_NOTICE([ LDFLAGS = $LDFLAGS])
|
---|
339 | AC_MSG_NOTICE()
|
---|
340 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
341 | AC_MSG_NOTICE()
|
---|
342 | AC_MSG_NOTICE([ BOOST_CPPFLAGS = $BOOST_CPPFLAGS])
|
---|
343 | AC_MSG_NOTICE([ BOOST_LDFLAGS = $BOOST_LDFLAGS])
|
---|
344 | AC_MSG_NOTICE()
|
---|
345 | AM_COND_IF(HAS_QT4, [
|
---|
346 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
347 | AC_MSG_NOTICE()
|
---|
348 | AC_MSG_NOTICE([ QT4_VERSION = $QT4_VERSION])
|
---|
349 | AC_MSG_NOTICE()
|
---|
350 | AC_MSG_NOTICE([ QT4_LIB = $QT4_LIB])
|
---|
351 | AC_MSG_NOTICE([ QT4_LDFLAGS = $QT4_LDFLAGS])
|
---|
352 | AC_MSG_NOTICE([ QT4_INCLUDES = $QT4_INCLUDES])
|
---|
353 | AC_MSG_NOTICE()
|
---|
354 | AC_MSG_NOTICE([ MOC4 = $MOC4])
|
---|
355 | AC_MSG_NOTICE([ UIC4 = $UIC4])
|
---|
356 | AC_MSG_NOTICE([ RCC4 = $RCC4])
|
---|
357 | AC_MSG_NOTICE()
|
---|
358 | ],[])
|
---|
359 | AM_COND_IF(HAS_ROOT, [
|
---|
360 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
361 | AC_MSG_NOTICE()
|
---|
362 | AC_MSG_NOTICE([ ROOTVERSION = $ROOTVERSION])
|
---|
363 | AC_MSG_NOTICE()
|
---|
364 | AC_MSG_NOTICE([ ROOTEXEC = $ROOTEXEC])
|
---|
365 | AC_MSG_NOTICE([ ROOTCONF = $ROOTCONF])
|
---|
366 | AC_MSG_NOTICE([ ROOTCINT = $ROOTCINT])
|
---|
367 | AC_MSG_NOTICE([ ROOTCPPFLAGS = $ROOTCPPFLAGS])
|
---|
368 | AC_MSG_NOTICE([ ROOTLDFLAGS = $ROOTLDFLAGS])
|
---|
369 | AC_MSG_NOTICE()
|
---|
370 | ],[])
|
---|
371 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
372 | AC_MSG_NOTICE()
|
---|
373 | AC_MSG_NOTICE([ zlib / 'zlib.h' found: $HAVE_ZLIB])
|
---|
374 | AC_MSG_NOTICE([ gui/RawEventsViewer/izstream.h found: $HAVE_IZSTREAM_H])
|
---|
375 | AC_MSG_NOTICE([ gui/RawEventsViewer/fits.h found: $HAVE_FITS_H])
|
---|
376 | AC_MSG_NOTICE([ GL / GL/gl.h found: $HAVE_GL])
|
---|
377 | AC_MSG_NOTICE([ GLU / GL/glu.h found: $HAVE_GLU])
|
---|
378 | AC_MSG_NOTICE([ cfitsio / 'fitsio.h' found: $HAVE_CFITSIO])
|
---|
379 | AC_MSG_NOTICE([ CCfits / 'CCfits/CCfits' found: $HAVE_CCFITS])
|
---|
380 | AM_COND_IF(HAS_LIBXP,
|
---|
381 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: yes]),
|
---|
382 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: no])
|
---|
383 | )
|
---|
384 |
|
---|
385 | AM_COND_IF(HAS_LIBXP,
|
---|
386 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: yes]),
|
---|
387 | AC_MSG_NOTICE([ Motif/lesstif / 'Xm/Xm.h' 'libXp' found: no])
|
---|
388 | )
|
---|
389 | AM_COND_IF(HAS_COLORDIFF,
|
---|
390 | AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: yes]),
|
---|
391 | AC_MSG_NOTICE([ colored svn diff / 'colordiff' found: no])
|
---|
392 | )
|
---|
393 | AM_COND_IF(HAS_HELP2MAN,[
|
---|
394 | AC_MSG_NOTICE([ man-pages enabled / 'help2man' found: $HELP2MAN])
|
---|
395 | AM_COND_IF(HAS_GROFF,
|
---|
396 | AC_MSG_NOTICE([ build of html enabled / 'groff' found: yes])
|
---|
397 | AC_MSG_NOTICE([ build of pdf enabled / 'ps2pdf' found: $PS2PDF]),
|
---|
398 | AC_MSG_NOTICE([ build of html and pdf / 'groff' found: no])
|
---|
399 | )
|
---|
400 | ],[
|
---|
401 | AC_MSG_NOTICE([ man, html, pdf enabled / 'help2man' found: no])
|
---|
402 | ])
|
---|
403 |
|
---|
404 | AM_COND_IF(HAS_DOXYGEN,
|
---|
405 | AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: $DX_DOXYGEN]),
|
---|
406 | AC_MSG_NOTICE([ doxygen docu enabled / 'doxygen' found: no])
|
---|
407 | )
|
---|
408 | AM_COND_IF(HAS_DOT,
|
---|
409 | AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: $DX_DOT]),
|
---|
410 | AC_MSG_NOTICE([ doxygen graphs enabled / 'dot' (graphviz) found: no])
|
---|
411 | )
|
---|
412 | AM_COND_IF(HAS_QT4,
|
---|
413 | AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: yes]),
|
---|
414 | AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: no])
|
---|
415 | )
|
---|
416 | AC_MSG_NOTICE([ ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC])
|
---|
417 | AM_COND_IF(HAS_ROOT_QT,
|
---|
418 | AC_MSG_NOTICE([ ROOT built with --with-qt found: yes]),
|
---|
419 | AC_MSG_NOTICE([ ROOT built with --with-qt found: no])
|
---|
420 | )
|
---|
421 | AC_MSG_NOTICE()
|
---|
422 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
423 | AC_MSG_NOTICE()
|
---|
424 | AC_MSG_NOTICE([Suggestions and hints:])
|
---|
425 | AC_MSG_NOTICE()
|
---|
426 | AC_MSG_NOTICE([ - Add 'V=1' to you make-call to switch on verbose output.])
|
---|
427 | AC_MSG_NOTICE([ - Do not try to create man-pages with doxygen,])
|
---|
428 | AC_MSG_NOTICE([ it does most probably not work.])
|
---|
429 | AM_COND_IF(HAS_COLORGCC,,
|
---|
430 | AC_MSG_NOTICE([ - Install colorgcc to get colored compiler output.])
|
---|
431 | )
|
---|
432 | AC_MSG_NOTICE([ - If you send me a bug report about:])
|
---|
433 | AC_MSG_NOTICE([ + configure: please attach the file config.log])
|
---|
434 | AC_MSG_NOTICE([ + make: please send me the output of 'make V=1'])
|
---|
435 | AC_MSG_NOTICE()
|
---|
436 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
437 | AC_MSG_NOTICE()
|
---|
438 | AC_MSG_NOTICE([Some interesting build targets:])
|
---|
439 | AC_MSG_NOTICE()
|
---|
440 | AC_MSG_NOTICE([ diff: colored 'svn diff' if colordiff is installed])
|
---|
441 | AM_COND_IF(HAS_HELP2MAN,[
|
---|
442 | AC_MSG_NOTICE([ program.man: build man-page from 'program --help'])
|
---|
443 | AC_MSG_NOTICE([ (display with 'man ./program.man')])
|
---|
444 | AM_COND_IF(HAS_GROFF,[
|
---|
445 | AC_MSG_NOTICE([ program.html: build html page from man-page])
|
---|
446 | AM_COND_IF(HAS_PS2PDF,
|
---|
447 | AC_MSG_NOTICE([ program.pdf: build pdf documentation from man page])
|
---|
448 | )
|
---|
449 | ])
|
---|
450 | ])
|
---|
451 | AM_COND_IF(HAS_DOXYGEN,
|
---|
452 | AC_MSG_NOTICE([ doxygen-run: build html documentation with doxygen])
|
---|
453 | AC_MSG_NOTICE([ doxygen-doc: build html and pdf documentation with doxygen])
|
---|
454 | )
|
---|
455 | AC_MSG_NOTICE([ man: build all buildable documentation])
|
---|
456 | AC_MSG_NOTICE()
|
---|
457 | AC_MSG_NOTICE(--------------------------------------------------------------------)
|
---|
458 | AC_MSG_NOTICE()
|
---|
459 | AM_COND_IF(HAS_FITS_H, [
|
---|
460 | AM_COND_IF(HAS_ZLIB,,
|
---|
461 | AC_MSG_WARN([ zlib not found. Support for .fits.gz in viewer disabled.])
|
---|
462 | )
|
---|
463 | AM_COND_IF(HAS_IZSTREAM_H,,
|
---|
464 | AC_MSG_WARN([ Mars izstream.h not found in gui/RawEventsViewer. Support for .fits.gz disabled.])
|
---|
465 | )
|
---|
466 | ],
|
---|
467 | AC_MSG_WARN([ Mars fits.h not found in gui/RawEventsViewer. Target 'viewer' disabled.])
|
---|
468 | )
|
---|
469 | AM_COND_IF(HAS_LIBXP,,
|
---|
470 | AC_MSG_WARN([ Motif/lesstif not found. The dim gui did will not be built!])
|
---|
471 | )
|
---|
472 | AM_COND_IF(HAS_FITS,,
|
---|
473 | AC_MSG_WARN([ FITS support disabled. cfitsio/CCfits missing!])
|
---|
474 | )
|
---|
475 | AM_COND_IF(HAS_ROOT,
|
---|
476 | [AM_COND_IF(HAS_ROOT_QT,,
|
---|
477 | AC_MSG_WARN([ root found but it was built without the --with-qt option])
|
---|
478 | )]
|
---|
479 | )
|
---|
480 | AM_COND_IF(HAS_GL,, AC_MSG_WARN([ GL not found - viewer will be disabled.]))
|
---|
481 | AM_COND_IF(HAS_GLU,, AC_MSG_WARN([ GLU not found - viewer will be disabled.]))
|
---|
482 |
|
---|
483 | AM_COND_IF(HAS_QT4, [],
|
---|
484 | AC_MSG_WARN([ QT4 missing: fact and viewer GUI disabled!])
|
---|
485 | )
|
---|
486 | AM_COND_IF(HAS_GUI, [],
|
---|
487 | AC_MSG_WARN([ Either QT4 or qt-root is missing: fact GUI disabled!])
|
---|
488 | )
|
---|
489 | AC_MSG_NOTICE()
|
---|