-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
70 lines (55 loc) · 1.64 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## configure.ac for libbeetroot
## Process this file with autoconf to produce a configure script.
## James Robinson <james.robinson@cern.ch>
AC_PREREQ(2.59)
AC_INIT( [beetroot], [1.0.0], [james.robinson@cern.ch])
# Setup config options
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/FileHandler.cxx])
AC_CONFIG_HEADERS([config/config.h])
AM_INIT_AUTOMAKE
## Checks for programs.
AC_LANG(C++)
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL
# Checks for boost
BOOST_REQUIRE
BOOST_FOREACH
BOOST_FORMAT
BOOST_UUID
# Check for ROOT
AC_SEARCH_ROOT([AC_MSG_NOTICE([Found Root])],
[AC_MSG_ERROR([ROOT is required and is not found. Please either set the path to Root using ROOTSYS or --with-root-config or --with-root])])
# Checks for YODA
AC_CHECK_YODA
# Checks for MathGL
AC_CHECK_MATHGL
## Checks for typedefs, structures, and compiler characteristics.
#AC_CHECK_HEADER_STDBOOL
## Checks for library functions.
#AC_CHECK_FUNCS([mkdir])
AM_CXXFLAGS="$AM_CXXFLAGS -O2 -Wall -Wextra -Wabi -Weffc++ -Wno-reorder"
AM_CPPFLAGS="$AM_CPPFLAGS -O2 -Wall -Wextra -Wabi -Weffc++ -Wno-reorder -I\$(top_builddir)"
AC_SUBST(AM_CXXFLAGS)
AC_SUBST(AM_CPPFLAGS)
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN(libbeetroot, doxygen.cfg, doc)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
cat <<EOF
************************************************************
BEETROOT CONFIGURED!
Now build and install (to the $prefix tree) with
make && make install
************************************************************
EOF