source: configure.ac@ 404d2b

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction Subpackage_JobMarket Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg ThirdParty_MPQC_rebuilt_buildsystem TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes stable
Last change on this file since 404d2b was 404d2b, checked in by Frederik Heber <heber@…>, 8 years ago

Squashed 'ThirdParty/JobMarket/' content from commit e194722

git-subtree-dir: ThirdParty/JobMarket
git-subtree-split: e19472277e62c493f6c10f1483fe21e64c1039e9

  • Property mode set to 100644
File size: 6.4 KB
Line 
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
5AC_INIT(JobMarket, 1.1.6, [foo@mastercontrolprogramm.de], [jobmarket], [https://www.molecuilder.com/])
6AC_CONFIG_AUX_DIR([build-aux])
7AC_CONFIG_SRCDIR([src/JobMarket/JobId.hpp])
8AC_CONFIG_HEADER([config.h libJobMarket_config.h])
9AC_CONFIG_MACRO_DIR([m4])
10
11# parallel-tests: use parallel test druver
12# color-tests: us coloring to indicate success/failure when available
13# tar-pax: use newer tar implementation with longer filename (>99 chars)
14AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests tar-pax subdir-objects])
15
16# Checks for programs.
17AM_PATH_CPPUNIT(1.9.6)
18AC_PROG_CXX
19AC_PROG_CC
20AC_PROG_MAKE_SET
21AC_PROG_INSTALL
22
23DX_HTML_FEATURE(ON)
24DX_PS_FEATURE(OFF)
25DX_PDF_FEATURE(OFF)
26DX_INIT_DOXYGEN(JobMarket, Doxyfile, ${docdir})
27
28LT_INIT([static])
29
30# Define these substitions here to keep all version information in one place.
31# For information on how to properly maintain the library version information,
32# refer to the libtool manual, section "Updating library version information":
33# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
34AC_SUBST([JOBMARKET_SO_VERSION], [5:0:0])
35AC_SUBST([JOBMARKET_API_VERSION], [1.1.6])
36
37dnl this macro is used to get the arguments supplied
38dnl to the configure script (./configure --enable-debug)
39dnl Check if we have enable debug support.
40AC_MSG_CHECKING(whether to enable debugging)
41have_debug="no"
42AC_ARG_ENABLE(
43 [debug],
44 AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),
45 enable_debug=$enableval,
46 enable_debug="no")
47AC_MSG_RESULT($enable_debug)
48AS_IF([test x"$enable_debug" = x"yes"],[
49 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
50 AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
51 have_debug="yes"
52],[
53 AS_IF([test x"$enable_debug" = x"full"],[
54 AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
55 AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
56 AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
57 AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
58 have_debug="full"
59 ],[
60 AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
61 AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
62 AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
63 have_debug="no"
64 ])
65])
66AC_SUBST(HAVE_DEBUG)
67
68dnl this macro is used to get the arguments supplied
69dnl to the configure script (./configure --enable-debug)
70dnl Check if we have enable debug support.
71AC_MSG_CHECKING(whether to enable internal caching/lazy evaluation)
72AC_ARG_ENABLE(
73 [cache],
74 AS_HELP_STRING([--enable-cache],[turn on internal lazy evaluation [default=yes]]),
75 enable_cache=$enableval,
76 enable_cache="yes")
77AC_MSG_RESULT($enable_cache)
78AS_IF([test x"$enable_cache" != x"no"],[
79 AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
80],[
81 AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
82 AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
83])
84AC_SUBST(HAVE_CACHE)
85
86# CodePatterns library (requires new global NotificationChannel functions)
87AM_PATH_CODEPATTERNS([1.3.0], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
88
89# boost
90BOOST_REQUIRE([1.40])
91
92# boost headers
93BOOST_BIND
94BOOST_FOREACH
95BOOST_EXCEPTION
96
97# boost libraries
98BOOST_ASIO
99BOOST_FILESYSTEM
100BOOST_IOSTREAMS
101BOOST_PROGRAM_OPTIONS
102BOOST_SERIALIZATION
103
104# Checks for header files.
105AC_HEADER_STDC
106AC_CHECK_HEADERS([unistd.h])
107
108
109# Checks for function
110AC_CHECK_FUNCS([atexit])
111AC_CHECK_FUNCS([gethostname])
112AC_CHECK_FUNCS([socket])
113AC_FUNC_MALLOC
114AC_FUNC_REALLOC
115AC_FUNC_ERROR_AT_LINE
116
117# Checks for typedefs, structures, and compiler characteristics.
118AC_HEADER_STDBOOL
119AC_TYPE_SIZE_T
120
121# use CppUnit TestRunner or not
122AC_MSG_CHECKING(whether to enable ECut TestRunnerClient)
123AC_ARG_ENABLE(
124 [ecut],
125 AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient [default=no]]),
126 enable_ecut=$disableval,
127 enable_ecut="no")
128AC_MSG_RESULT($enable_ecut)
129AS_IF([test x"$enable_ecut" = x"yes"],[
130 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
131 AC_SUBST(HAVE_ECUT)
132])
133AM_CONDITIONAL([CONDECUT], [test x"$enable_ecut" = x"yes"])
134
135# with valgrinding testsuite or not
136AC_MSG_CHECKING(whether to enable valgrind memory checking in testsuite)
137AC_ARG_ENABLE(
138 [valgrind],
139 AS_HELP_STRING([--enable-valgrind],[Use Valgrind on the testsuite [default=no]]),
140 enable_valgrind=$enableval,
141 enable_valgrind="no")
142AC_MSG_RESULT($enable_valgrind)
143AS_IF([test x"$enable_valgrind" = x"yes"], [
144 AC_CHECK_HEADER([valgrind/valgrind.h],
145 [
146 # check header
147 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
148 # check path
149 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
150 # set variables
151 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
152 AC_SUBST(VALGRIND)
153 ],
154 [
155 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
156 ]
157 )
158])
159
160# Check for "extern inline", using a modified version
161# of the test for AC_C_INLINE from acspecific.mt
162AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
163[ac_cv_c_extern_inline=no
164AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
165extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
166double foo (double x) { return x + 1.0; };],
167[ foo(1.0) ],
168[ac_cv_c_extern_inline="yes"])
169])
170
171if test "$ac_cv_c_inline" != no ; then
172 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
173 AC_SUBST(HAVE_INLINE)
174fi
175
176#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
177
178# test suite
179AC_CONFIG_FILES([tests/Makefile])
180
181AC_CONFIG_TESTDIR(tests/CodeChecks)
182AC_CONFIG_FILES([
183 tests/CodeChecks/atlocal
184 tests/CodeChecks/Makefile])
185
186AC_CONFIG_TESTDIR(tests/regression)
187AC_CONFIG_FILES([
188 tests/regression/atlocal
189 tests/regression/Makefile])
190
191AC_CONFIG_FILES([
192 JobMarket.pc:JobMarket.pc.in
193 JobMarket-debug.pc:JobMarket-debug.pc.in
194 JobMarketController.pc:JobMarketController.pc.in
195 JobMarketController-debug.pc:JobMarketController-debug.pc.in
196 JobMarketPoolWorker.pc:JobMarketPoolWorker.pc.in
197 JobMarketPoolWorker-debug.pc:JobMarketPoolWorker-debug.pc.in
198 JobMarketServer.pc:JobMarketServer.pc.in
199 JobMarketServer-debug.pc:JobMarketServer-debug.pc.in
200])
201
202AC_CONFIG_FILES([
203 Makefile
204 doc/Makefile
205 src/JobMarket/Makefile
206 src/unittests/Makefile
207])
208
209AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.