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