source: configure.ac@ a0064e

Action_Thermostats Add_AtomRandomPerturbation Add_FitFragmentPartialChargesAction Add_RotateAroundBondAction Add_SelectAtomByNameAction Added_ParseSaveFragmentResults AddingActions_SaveParseParticleParameters Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_ParticleName_to_Atom Adding_StructOpt_integration_tests AtomFragments Automaking_mpqc_open AutomationFragmentation_failures Candidate_v1.5.4 Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator CombiningParticlePotentialParsing Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_BoundInBox_CenterInBox_MoleculeActions Fix_ChargeSampling_PBC Fix_ChronosMutex Fix_FitPartialCharges Fix_FitPotential_needs_atomicnumbers Fix_ForceAnnealing Fix_IndependentFragmentGrids Fix_ParseParticles Fix_ParseParticles_split_forward_backward_Actions Fix_PopActions Fix_QtFragmentList_sorted_selection Fix_Restrictedkeyset_FragmentMolecule Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns Fix_fitting_potentials Fixes ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion FragmentAction_writes_AtomFragments FragmentMolecule_checks_bonddegrees GeometryObjects Gui_Fixes Gui_displays_atomic_force_velocity ImplicitCharges IndependentFragmentGrids IndependentFragmentGrids_IndividualZeroInstances IndependentFragmentGrids_IntegrationTest IndependentFragmentGrids_Sole_NN_Calculation JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix MoreRobust_FragmentAutomation ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PdbParser_setsAtomName PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks Rewrite_FitPartialCharges RotateToPrincipalAxisSystem_UndoRedo SaturateAtoms_findBestMatching SaturateAtoms_singleDegree StoppableMakroAction Subpackage_CodePatterns Subpackage_JobMarket Subpackage_LinearAlgebra Subpackage_levmar Subpackage_mpqc_open Subpackage_vmg Switchable_LogView ThirdParty_MPQC_rebuilt_buildsystem TrajectoryDependenant_MaxOrder TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps TremoloParser_setsAtomName Ubuntu_1604_changes stable
Last change on this file since a0064e was a0064e, checked in by Frederik Heber <heber@…>, 14 years ago

Moved stuff in src/Helpers and src/Patterns out to stand-alone project CodePatterns.

Makefile.am's:

  • CodePatterns added to AM_LDFLAGS and AM_CFLAGS
  • libMoleCuilderHelpers removed

Helpers/...

  • defs.hpp include prefixed with Helpers/
  • helpers.?pp removed lots of old, unused functions: bound, ask_value, ...
  • fast_functions.hpp has lots of functions removed as well.
  • all other files and unit tests moved to project CodePatterns.

Patterns/...

  • added ax_codepatterns.m4 containing AM_PATH_CODEPATTERNS to configure.ac
  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[14de469]1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.59)
[a0064e]5AC_INIT(MoleCuilder, 1.0.0, [heber@ins.uni-bonn.de], [molecuilder], [http://trac.ins.uni-bonn.de/projects/molecuilder/])
[14de469]6AC_CONFIG_AUX_DIR(config)
7AC_CONFIG_SRCDIR([src/builder.cpp])
[861874]8AC_CONFIG_HEADER([config.h libmolecuilder_config.h])
9AC_CONFIG_MACRO_DIR([m4])
[14de469]10
[f30490]11AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests])
[14de469]12
13# Checks for programs.
[54a746]14AM_PATH_CPPUNIT(1.9.6)
[14de469]15AC_PROG_CXX
16AC_PROG_CC
[54a746]17AC_PROG_INSTALL
[570125]18AC_CHECK_PROG([LATEX],[latex],[latex],[:])
19AC_CHECK_PROG([BIBTEX],[bibtex],[bibtex],[:])
20AC_CHECK_PROG([DVIPS],[dvips],[dvips],[:])
21AC_CHECK_PROG([PDFLATEX],[pdflatex],[pdflatex],[:])
22AC_CHECK_PROG([XMLTO],[xmlto],[xmlto],[:])
[14de469]23AM_MISSING_PROG([DOXYGEN], [doxygen])
24
[a0064e]25LT_INIT([static])
[861874]26
27# Define these substitions here to keep all version information in one place.
28# For information on how to properly maintain the library version information,
29# refer to the libtool manual, section "Updating library version information":
30# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
31AC_SUBST([MOLECUILDER_SO_VERSION], [1:2:0])
32AC_SUBST([MOLECUILDER_API_VERSION], [1.0])
33
[14de469]34# Checks for libraries.
[861874]35AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found]))
[14de469]36
[fa861b]37# Boost libraries
[19c0e3]38AX_BOOST_BASE([1.40])
[c6efc1]39AX_BOOST_PROGRAM_OPTIONS
[d5240d]40AX_BOOST_SYSTEM
[94962c]41AX_BOOST_FILESYSTEM
[4d9c01]42AX_BOOST_THREAD
[fa861b]43#AX_BOOST_SERIALIZATION
44
[3027f8]45#QT4 libraries
46gw_CHECK_QT4
[cef1d7]47AX_CHECK_GLU
48AC_MSG_NOTICE(["GLU_CFLAGS: $GLU_CFLAGS, GLU_CXXFLAGS: $GLU_CXXFLAGS, GLU_LDFLAGS: $GLU_LDFLAGS, GLU_LIBS: $GLU_LIBS"])
49
[a0064e]50# CodePatterns library
51AM_PATH_CODEPATTERNS([1.0.0], ,[AC_MSG_ERROR([Missing CodePatterns library, please specify path.])])
52#PKG_CHECK_MODULES([CodePatterns], [CodePatterns >= 1.0.0], , [AC_MSG_ERROR([Missing CodePatterns library, please specify path.])])
53#AC_SUBST([CodePatterns_CFLAGS])
54#AC_SUBST([CodePatterns_LIBS])
[3027f8]55
[14de469]56# Checks for header files.
57AC_HEADER_STDC
58AC_CHECK_HEADERS([sys/time.h])
59AC_HEADER_STDBOOL
60
[d3a46d]61AC_FUNC_MALLOC
62AC_FUNC_REALLOC
63AC_CHECK_FUNCS([floor pow sqrt strchr])
64
[14de469]65# Checks for typedefs, structures, and compiler characteristics.
66AC_C_CONST
67AC_C_INLINE
68AC_C_RESTRICT
69AC_TYPE_SIZE_T
70
71# Checks for library functions.
72# check for GNU Scientific Library
[bd3e55]73AC_CHECK_HEADERS([gsl/gsl_blas.h])
74AC_SEARCH_LIBS(dnrm2, goto blas cblas gslblas gslcblas)
75AC_CHECK_LIB(gsl, main, [],
76 [AC_SEARCH_LIBS(cblas_dnrm2, blas cblas gslblas gslcblas)])
77AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
[14de469]78
79# add replacement/saturation hydrogen or not
80AC_ARG_ENABLE([hydrogen],AS_HELP_STRING([--enable-hydrogen],[Adding saturation hydrogen (default is yes)]),
81 [enable_hydrogen=$enableval], [enable_hydrogen=yes])
82if test x"$enable_hydrogen" = xyes; then
83 AC_DEFINE(ADDHYDROGEN,1, ["Adding saturation hydrogen"])
84 AC_SUBST(ADDHYDROGEN)
85fi
86
[490038]87# use CppUnit TestRunner or not
[6ac15b]88AC_ARG_ENABLE([ecut],AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient (default is no)]),
89 [enable_ecut=$enableval], [enable_ecut=no])
[9b6b2f]90if test x"$enable_ecut" = xyes; then
91 AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
92 AC_SUBST(HAVE_ECUT)
93fi
94
[490038]95# with valgrinding testsuite or not
96AC_ARG_WITH([valgrind],AS_HELP_STRING([--with-valgrind],[Use Valgrind on the testsuite (default is no)]),
97 [with_valgrind=$withval], [with_valgrind=no])
98if test x"$with_valgrind" = xyes; then
99 AC_CHECK_HEADER([valgrind/valgrind.h],
100 [
101 # check header
102 AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
103 # check path
104 AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
105 # set variables
106 AC_SUBST(HAVE_VALGRIND_TESTSUITE)
107 AC_SUBST(VALGRIND)
108 ],
109 [
110 AC_MSG_ERROR(["Valgrind support requested but headers not available."])
111 ]
112 )
113fi
114
[14de469]115# Check for "extern inline", using a modified version
116# of the test for AC_C_INLINE from acspecific.mt
117AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
118[ac_cv_c_extern_inline=no
119AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
120extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
121double foo (double x) { return x + 1.0; };],
122[ foo(1.0) ],
123[ac_cv_c_extern_inline="yes"])
124])
125
126if test "$ac_cv_c_inline" != no ; then
127 AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
128 AC_SUBST(HAVE_INLINE)
129fi
130
[bd3e55]131#AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
[a19da5d]132
[0ca39c]133# test suite
[b2b47f]134AC_CONFIG_TESTDIR(tests/regression)
[5079a0]135AC_CONFIG_FILES([
[b2b47f]136 tests/Makefile
137 tests/regression/atlocal
138 tests/regression/Makefile])
139AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder])
[d0a719]140AC_CONFIG_FILES([
141 tests/CodeChecks/atlocal
142 tests/CodeChecks/Makefile])
[5079a0]143AC_CONFIG_FILES([
144 tests/Tesselations/Makefile
145 tests/Tesselations/defs])
146AC_CONFIG_FILES([
147 doc/molecuilder.xml])
[861874]148AC_CONFIG_FILES([
149 molecuilder-${MOLECUILDER_API_VERSION}.pc:molecuilder.pc.in])
[5079a0]150AC_CONFIG_FILES([
151 Makefile
152 doc/Makefile
153 src/Makefile
154 src/Actions/Makefile
[85949a]155 src/Exceptions/Makefile
156 src/LinearAlgebra/Makefile
157 src/Parser/Makefile
[5079a0]158 src/UIElements/Makefile
[85949a]159])
160AC_CONFIG_FILES([
161 src/unittests/Makefile
[deddf6]162 src/Actions/unittests/Makefile
[d766b5]163 src/Descriptors/unittests/Makefile
[fff54f]164 src/LinearAlgebra/unittests/Makefile
[a0064e]165 src/Parser/unittests/Makefile
166 src/UIElements/Menu/unittests/Makefile
[85949a]167])
[14de469]168AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.