[14de469] | 1 | # -*- Autoconf -*-
|
---|
| 2 | # Process this file with autoconf to produce a configure script.
|
---|
| 3 |
|
---|
| 4 | AC_PREREQ(2.59)
|
---|
[40d3ea] | 5 | AC_INIT(MoleCuilder, 1.4.0, [heber@ins.uni-bonn.de], [molecuilder], [http://trac.ins.uni-bonn.de/projects/molecuilder/])
|
---|
[bf4b9f] | 6 | AC_CONFIG_AUX_DIR([build-aux])
|
---|
[14de469] | 7 | AC_CONFIG_SRCDIR([src/builder.cpp])
|
---|
[861874] | 8 | AC_CONFIG_HEADER([config.h libmolecuilder_config.h])
|
---|
| 9 | AC_CONFIG_MACRO_DIR([m4])
|
---|
[bf4b9f] | 10 | AC_CONFIG_SUBDIRS([LinearAlgebra])
|
---|
[14de469] | 11 |
|
---|
[dc322a] | 12 | # parallel-tests: use parallel test druver
|
---|
| 13 | # color-tests: us coloring to indicate success/failure when available
|
---|
| 14 | # tar-pax: use newer tar implementation with longer filename (>99 chars)
|
---|
[4cf35ac] | 15 | AM_INIT_AUTOMAKE([dist-bzip2 1.5 parallel-tests color-tests tar-pax])
|
---|
[14de469] | 16 |
|
---|
| 17 | # Checks for programs.
|
---|
| 18 | AC_PROG_CXX
|
---|
[54a746] | 19 | AC_PROG_INSTALL
|
---|
[14de469] | 20 |
|
---|
[0cfc27] | 21 | # check for cppunit (taken from svn.apache.org/../xmlbeanscxx)
|
---|
| 22 | AM_PATH_CPPUNIT(1.9.6)
|
---|
| 23 | AM_CONDITIONAL(CONDCPPUNIT, test "$CPPUNIT_LIBS")
|
---|
| 24 |
|
---|
[c015b3] | 25 | dnl Check if we have enable python
|
---|
| 26 | # python module
|
---|
| 27 | AC_MSG_CHECKING(whether to enable python module)
|
---|
[f99714] | 28 | AC_ARG_ENABLE(
|
---|
| 29 | [python],
|
---|
| 30 | AS_HELP_STRING([--enable-python],[turn on python module [default=yes]]),
|
---|
| 31 | enable_python=$enableval,
|
---|
| 32 | enable_python="yes")
|
---|
[c015b3] | 33 | AC_MSG_RESULT($enable_python)
|
---|
| 34 | AS_IF([test x"$enable_python" != x"no"],[
|
---|
| 35 | # Python (for boost::python)
|
---|
| 36 | AM_PATH_PYTHON([2.2])
|
---|
| 37 | AX_PYTHON
|
---|
| 38 | AC_DEFINE(HAVE_PYTHON,1, ["Build python module and scripts."])
|
---|
| 39 | ])
|
---|
| 40 | AM_CONDITIONAL([CONDPYTHON], [test x"$enable_python" != x"no"])
|
---|
| 41 | AC_SUBST(HAVE_PYTHON)
|
---|
| 42 |
|
---|
| 43 | dnl Check if we have enable qtgui
|
---|
[e5cec4] | 44 | # Qt programs
|
---|
[f99714] | 45 | AC_ARG_WITH(
|
---|
| 46 | [Qt-bin],
|
---|
| 47 | [AS_HELP_STRING([--with-Qt-bin], [give path to Qt binaries])],
|
---|
[c015b3] | 48 | [have_qtgui_path=$withval
|
---|
[f99714] | 49 | enable_qtgui="yes"],
|
---|
| 50 | have_qtgui_path="")
|
---|
[c015b3] | 51 | AC_MSG_CHECKING(whether to enable Qt-based GUI)
|
---|
[f99714] | 52 | AC_ARG_ENABLE(
|
---|
| 53 | [qtgui],
|
---|
| 54 | AS_HELP_STRING([--enable-qtgui],[turn on Qt GUI compilation [default=yes]]),
|
---|
| 55 | enable_qtgui=$enableval,
|
---|
| 56 | enable_qtgui="yes")
|
---|
[c015b3] | 57 | AC_MSG_RESULT($enable_qtgui)
|
---|
| 58 | AS_IF([test x"$enable_qtgui" != x"no"],[
|
---|
| 59 | AC_PATH_PROGS([QT_MOC],
|
---|
[e5cec4] | 60 | [moc-qt4 moc],
|
---|
| 61 | [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])],
|
---|
[c015b3] | 62 | [$have_qtgui_path]
|
---|
[e5cec4] | 63 | )
|
---|
[5b991a] | 64 | AC_PATH_PROGS([QT_RCC],
|
---|
| 65 | [rcc-qt4 rcc],
|
---|
| 66 | [AC_MSG_ERROR(["Qts rcc not found, please use --with-Qt-bin."])],
|
---|
| 67 | [$have_qtgui_path]
|
---|
| 68 | )
|
---|
[e5cec4] | 69 | AC_PATH_PROGS([QT_UIC],
|
---|
| 70 | [uic-qt4 uic],
|
---|
| 71 | [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])],
|
---|
[c015b3] | 72 | [$have_qtgui_path]
|
---|
[e5cec4] | 73 | )
|
---|
[c015b3] | 74 | PKG_CHECK_MODULES([QT], [QtCore QtGui Qt3D], [
|
---|
| 75 | ])
|
---|
| 76 | AC_SUBST([QT_CFLAGS])
|
---|
| 77 | AC_SUBST([QT_LIBS])
|
---|
| 78 | AC_DEFINE(HAVE_QTGUI,1, ["Build Qt-based GUI"])
|
---|
[e5cec4] | 79 | ])
|
---|
[c015b3] | 80 | AM_CONDITIONAL([CONDQTGUI], [test x"$enable_qtgui" != x"no"])
|
---|
| 81 | AC_SUBST(HAVE_QTGUI)
|
---|
[e5cec4] | 82 |
|
---|
[ec188c] | 83 | # use doxygen
|
---|
| 84 | DX_HTML_FEATURE(ON)
|
---|
| 85 | DX_PS_FEATURE(OFF)
|
---|
| 86 | DX_PDF_FEATURE(OFF)
|
---|
[3158e6] | 87 | DX_INIT_DOXYGEN(MoleCuilder, Doxyfile, ${docdir})
|
---|
[ec188c] | 88 |
|
---|
| 89 | # use libtool
|
---|
[a0064e] | 90 | LT_INIT([static])
|
---|
[861874] | 91 |
|
---|
| 92 | # Define these substitions here to keep all version information in one place.
|
---|
| 93 | # For information on how to properly maintain the library version information,
|
---|
| 94 | # refer to the libtool manual, section "Updating library version information":
|
---|
| 95 | # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
---|
[40d3ea] | 96 | AC_SUBST([MOLECUILDER_SO_VERSION], [12:0:0])
|
---|
| 97 | AC_SUBST([MOLECUILDER_API_VERSION], [1.4.0])
|
---|
[06aedc] | 98 |
|
---|
[dc031c] | 99 | dnl this macro is used to get the arguments supplied
|
---|
| 100 | dnl to the configure script (./configure --enable-debug)
|
---|
| 101 | dnl Check if we have enable debug support.
|
---|
| 102 | AC_MSG_CHECKING(whether to enable debugging)
|
---|
| 103 | have_debug="no"
|
---|
[f99714] | 104 | AC_ARG_ENABLE(
|
---|
| 105 | [debug],
|
---|
| 106 | AS_HELP_STRING([--enable-debug],[turn on debugging [default=no]]),
|
---|
| 107 | enable_debug=$enableval,
|
---|
| 108 | enable_debug="no")
|
---|
| 109 | AC_MSG_RESULT($enable_debug)
|
---|
| 110 | AS_IF([test x"$enable_debug" = x"yes"],[
|
---|
[dc031c] | 111 | AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
|
---|
| 112 | AC_DEFINE(HAVE_DEBUG,1, ["Use debug setting to compile code."])
|
---|
| 113 | have_debug="yes"
|
---|
[f99714] | 114 | ],[
|
---|
| 115 | AS_IF([test x"$enable_debug" = x"full"],[
|
---|
| 116 | AC_DEFINE(MEMDEBUG,1, ["Use memory debugger."])
|
---|
| 117 | AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
|
---|
| 118 | AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
|
---|
| 119 | AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
|
---|
| 120 | have_debug="full"
|
---|
| 121 | ],[
|
---|
| 122 | AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
|
---|
| 123 | AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
|
---|
| 124 | AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
|
---|
| 125 | have_debug="no"
|
---|
| 126 | ])
|
---|
| 127 | ])
|
---|
[dc031c] | 128 | AC_SUBST(HAVE_DEBUG)
|
---|
| 129 |
|
---|
| 130 | dnl this macro is used to get the arguments supplied
|
---|
| 131 | dnl to the configure script (./configure --enable-debug)
|
---|
| 132 | dnl Check if we have enable debug support.
|
---|
[f3b8a5] | 133 | AC_MSG_CHECKING(whether to enable internal caching/lazy evaluation)
|
---|
[f99714] | 134 | AC_ARG_ENABLE(
|
---|
| 135 | [cache],
|
---|
| 136 | AS_HELP_STRING([--enable-cache],[turn on internal lazy evaluation [default=yes]]),
|
---|
| 137 | enable_cache=$enableval,
|
---|
| 138 | enable_cache="yes")
|
---|
[f3b8a5] | 139 | AC_MSG_RESULT($enable_cache)
|
---|
[f99714] | 140 | AS_IF([test x"$enable_cache" != x"no"],[
|
---|
| 141 | AC_DEFINE(HAVE_CACHE,1, ["cache variables to speed up the code."])
|
---|
| 142 | ],[
|
---|
[dc031c] | 143 | AC_DEFINE(NO_CACHING,1, ["Don't use caching code."])
|
---|
| 144 | AC_DEFINE(HAVE_CACHE,0, ["cache variables to speed up the code."])
|
---|
[f99714] | 145 | ])
|
---|
[dc031c] | 146 | AC_SUBST(HAVE_CACHE)
|
---|
| 147 |
|
---|
[14de469] | 148 | # Checks for libraries.
|
---|
[861874] | 149 | AC_CHECK_LIB(m, sqrt, , AC_MSG_ERROR([compatible libc math library not found]))
|
---|
[14de469] | 150 |
|
---|
[f08ae7] | 151 | # Boost
|
---|
[79de12] | 152 | BOOST_REQUIRE([1.40])
|
---|
[f08ae7] | 153 |
|
---|
| 154 | # Boost headers only
|
---|
| 155 | BOOST_ANY
|
---|
[794bc8] | 156 | BOOST_ARRAY
|
---|
[4f04ab8] | 157 | BOOST_BIMAP
|
---|
[f08ae7] | 158 | BOOST_BIND
|
---|
[503acc1] | 159 | BOOST_CAST
|
---|
[f08ae7] | 160 | BOOST_CONVERSION
|
---|
[79de12] | 161 | BOOST_EXCEPTION
|
---|
[f08ae7] | 162 | BOOST_FOREACH
|
---|
| 163 | BOOST_FUNCTION
|
---|
[619a0e] | 164 | BOOST_FUSION
|
---|
[4f04ab8] | 165 | BOOST_GRAPH
|
---|
[30c753] | 166 | BOOST_ITERATOR
|
---|
[794bc8] | 167 | BOOST_MULTIARRAY
|
---|
[619a0e] | 168 | BOOST_MPL
|
---|
[f08ae7] | 169 | BOOST_PREPROCESSOR
|
---|
| 170 | BOOST_RANDOM
|
---|
| 171 | BOOST_SMART_PTR
|
---|
[7f570c] | 172 | BOOST_STRING_ALGO
|
---|
[f08ae7] | 173 | BOOST_TOKENIZER
|
---|
| 174 |
|
---|
| 175 | # Boost headers with libraries
|
---|
[79de12] | 176 | BOOST_FILESYSTEM
|
---|
[d920b9] | 177 | BOOST_IOSTREAMS
|
---|
[79de12] | 178 | BOOST_PROGRAM_OPTIONS
|
---|
[c015b3] | 179 | AS_IF([test x"$enable_python" != x"no"], [BOOST_PYTHON])
|
---|
[d7d022] | 180 | BOOST_SERIALIZATION
|
---|
[79de12] | 181 | BOOST_THREADS
|
---|
[fa861b] | 182 |
|
---|
[f08ae7] | 183 |
|
---|
[708277] | 184 | # CodePatterns library (needs fixes w.r.t Notifications giving note when destroyed)
|
---|
| 185 | AM_PATH_CODEPATTERNS([1.2.6], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
|
---|
[3027f8] | 186 |
|
---|
[004d5c] | 187 | # JobMarket library (needs boost/archive/iserializer.hpp before MemDebug.hpp)
|
---|
| 188 | AC_ARG_ENABLE(
|
---|
| 189 | [jobmarket],
|
---|
| 190 | AS_HELP_STRING([--enable-jobmarket],[turn on JobMarket feature [default=yes]]),
|
---|
| 191 | enable_jobmarket=$enableval,
|
---|
| 192 | enable_jobmarket="yes")
|
---|
| 193 | AC_MSG_RESULT($enable_jobmarket)
|
---|
| 194 | AS_IF([test x"$enable_jobmarket" != x"no"],[
|
---|
[a953c4] | 195 | # JobMarket library (needs priorizing of jobs)
|
---|
| 196 | AM_PATH_JOBMARKET([1.1.4], $have_debug,[
|
---|
[004d5c] | 197 | # the following is only required if we have JobMarket
|
---|
| 198 | BOOST_ASIO
|
---|
| 199 | AC_DEFINE(HAVE_JOBMARKET,1, ["use JobMarket to calculate fragment jobs."])
|
---|
| 200 | ],[
|
---|
| 201 | enable_jobmarket="no"
|
---|
| 202 | ])
|
---|
| 203 | ]
|
---|
| 204 | #[
|
---|
| 205 | # AC_DEFINE(HAVE_JOBMARKET,0, ["use JobMarket to calculate fragment jobs."])
|
---|
| 206 | #]
|
---|
| 207 | )
|
---|
| 208 | AC_SUBST(HAVE_JOBMARKET)
|
---|
| 209 | AM_CONDITIONAL([CONDJOBMARKET], [test x"$enable_jobmarket" = x"yes"])
|
---|
[3027f8] | 210 |
|
---|
[d2a0f6d] | 211 | # VMG library
|
---|
| 212 | AC_MSG_CHECKING(whether to compile in long-range support via VMG)
|
---|
| 213 | AC_ARG_ENABLE(
|
---|
| 214 | [vmg],
|
---|
| 215 | [AS_HELP_STRING([--enable-vmg], [turn on long-range potential calculation via VMG [default=no]])],
|
---|
| 216 | [enable_vmg=$enableval],
|
---|
| 217 | enable_vmg="no")
|
---|
| 218 | AC_MSG_RESULT($enable_vmg)
|
---|
| 219 | AS_IF([test x"$enable_vmg" != x"no"],[
|
---|
| 220 | PKG_CHECK_MODULES(VMG, VMG >= 0.1)
|
---|
| 221 | AC_SUBST(VMG_CFLAGS)
|
---|
| 222 | AC_SUBST(VMG_LIBS)
|
---|
[69c733] | 223 | AC_DEFINE(HAVE_VMG,1, ["use VMG to calculate long-range contributions."])
|
---|
[8a8c8c] | 224 |
|
---|
| 225 | # check whether to use mpi
|
---|
| 226 | AC_ARG_WITH(
|
---|
| 227 | [vmg-mpi],
|
---|
| 228 | [AS_HELP_STRING([--with-vmg-mpi], [whether to use MPI for communication in VMGJobs])],
|
---|
| 229 | [with_vmg_mpi=yes],
|
---|
| 230 | [with_vmg_mpi=no])
|
---|
| 231 | AS_IF(
|
---|
| 232 | [test "x$with_vmg_mpi" != xno],
|
---|
| 233 | [
|
---|
| 234 | AC_LANG_SAVE
|
---|
| 235 | AC_LANG_CPLUSPLUS
|
---|
| 236 | LX_FIND_MPI
|
---|
| 237 | AC_LANG_RESTORE
|
---|
| 238 | AS_IF([test "x$have_CXX_mpi" = xyes],[
|
---|
| 239 | AC_DEFINE([MPICH_SKIP_MPICXX], [1], [Skip C++ bindings])
|
---|
| 240 | AC_DEFINE([OMPI_SKIP_MPICXX], [1], [Skip C++ bindings])
|
---|
| 241 | AC_DEFINE([MPI_NO_CPPBIND], [1], [Skip C++ bindings])
|
---|
| 242 | AC_DEFINE([_MPICC_H], [1], [Skip C++ bindings])
|
---|
| 243 | AC_DEFINE([MPIBULL_SKIP_MPICXX], [1], [Skip C++ bindings])
|
---|
| 244 | ])
|
---|
| 245 | ],
|
---|
| 246 | [])
|
---|
[d2a0f6d] | 247 | ])
|
---|
| 248 | AM_CONDITIONAL([CONDVMG], [test x"$enable_vmg" = x"yes"])
|
---|
[8a8c8c] | 249 | AM_CONDITIONAL([CONDVMGMPI], [test x"$have_CXX_mpi" = x"yes"])
|
---|
[d2a0f6d] | 250 |
|
---|
| 251 |
|
---|
[f06d52] | 252 | # Check for Levenberg-Marquardt implementation
|
---|
[48d20d] | 253 | AC_ARG_ENABLE(
|
---|
| 254 | [levmar],
|
---|
| 255 | AS_HELP_STRING([--enable-levmar],[turn on LevMar feature [default=no]]),
|
---|
| 256 | enable_levmar=$enableval,
|
---|
| 257 | enable_levmar="no")
|
---|
| 258 | AS_IF([test x"$enable_levmar" = x"yes"],[
|
---|
| 259 | AX_LAPACK([enable_levmar=yes],[enable_levmar=no])])
|
---|
[f06d52] | 260 | AC_MSG_CHECKING(whether to compile in Levenberg-Marquardt)
|
---|
| 261 | AS_IF([test x"$enable_levmar" = x"yes"],[
|
---|
| 262 | AC_ARG_WITH(
|
---|
| 263 | [levmar],
|
---|
| 264 | [AS_HELP_STRING([--with-levmar], [give path to LevMar package])],
|
---|
| 265 | [have_levmar_path=$withval],
|
---|
| 266 | [enable_levmar=no])
|
---|
| 267 | ],[enable_levmar=no])
|
---|
| 268 | AC_MSG_RESULT($enable_levmar)
|
---|
| 269 | AS_IF([test x"$enable_levmar" = x"yes"],[
|
---|
| 270 | LEVMAR_CPPFLAGS="-I${have_levmar_path}/include"
|
---|
| 271 | LEVMAR_LDFLAGS="-L${have_levmar_path}/lib"
|
---|
| 272 | LEVMAR_LIBS="-llevmar"
|
---|
| 273 | AC_SUBST(LEVMAR_CPPFLAGS)
|
---|
| 274 | AC_SUBST(LEVMAR_LDFLAGS)
|
---|
| 275 | AC_SUBST(LEVMAR_LIBS)
|
---|
[24ac59] | 276 | AC_DEFINE(HAVE_LEVMAR,1, ["use levmar for non-linear minimisation/potential fitting."])
|
---|
[f06d52] | 277 | ])
|
---|
| 278 | AM_CONDITIONAL([CONDLEVMAR], [test x"$enable_levmar" = x"yes"])
|
---|
| 279 |
|
---|
[14de469] | 280 | # Checks for header files.
|
---|
| 281 | AC_HEADER_STDC
|
---|
| 282 | AC_CHECK_HEADERS([sys/time.h])
|
---|
| 283 | AC_HEADER_STDBOOL
|
---|
| 284 |
|
---|
[d3a46d] | 285 | AC_FUNC_MALLOC
|
---|
| 286 | AC_FUNC_REALLOC
|
---|
| 287 | AC_CHECK_FUNCS([floor pow sqrt strchr])
|
---|
| 288 |
|
---|
[14de469] | 289 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
| 290 | AC_C_CONST
|
---|
| 291 | AC_C_INLINE
|
---|
| 292 | AC_C_RESTRICT
|
---|
| 293 | AC_TYPE_SIZE_T
|
---|
| 294 |
|
---|
| 295 | # Checks for library functions.
|
---|
| 296 | # check for GNU Scientific Library
|
---|
[bd3e55] | 297 | AC_CHECK_HEADERS([gsl/gsl_blas.h])
|
---|
[db1a72] | 298 | AC_SEARCH_LIBS(dnrm2, gslblas gslcblas goto blas cblas)
|
---|
| 299 | AC_SEARCH_LIBS(cblas_dnrm2, gslblas gslcblas blas cblas)
|
---|
| 300 | AC_SEARCH_LIBS(gsl_blas_dnrm2,, gsl)
|
---|
| 301 | #AC_CHECK_LIB(gsl, gsl_blas_dnrm2, , [AC_MSG_ERROR(["No working BLAS found for GSL, stopping."])])
|
---|
| 302 | AC_CHECK_LIB(gsl, main)
|
---|
[14de469] | 303 |
|
---|
[490038] | 304 | # use CppUnit TestRunner or not
|
---|
[f99714] | 305 | AC_MSG_CHECKING(whether to enable ECut TestRunnerClient)
|
---|
| 306 | AC_ARG_ENABLE(
|
---|
| 307 | [ecut],
|
---|
| 308 | AS_HELP_STRING([--enable-ecut],[Use ECut TestRunnerClient [default=no]]),
|
---|
| 309 | enable_ecut=$disableval,
|
---|
| 310 | enable_ecut="no")
|
---|
| 311 | AC_MSG_RESULT($enable_ecut)
|
---|
| 312 | AS_IF([test x"$enable_ecut" = x"yes"],[
|
---|
[9b6b2f] | 313 | AC_DEFINE(HAVE_ECUT,1, ["Use ECut TestRunnerClient instead of our own."])
|
---|
| 314 | AC_SUBST(HAVE_ECUT)
|
---|
[f99714] | 315 | ])
|
---|
[fbbcde] | 316 | AM_CONDITIONAL([CONDECUT], [test x"$enable_ecut" = x"yes"])
|
---|
[9b6b2f] | 317 |
|
---|
[490038] | 318 | # with valgrinding testsuite or not
|
---|
[f3b8a5] | 319 | AC_MSG_CHECKING(whether to enable valgrind memory checking in testsuite)
|
---|
[f99714] | 320 | AC_ARG_ENABLE(
|
---|
| 321 | [valgrind],
|
---|
| 322 | AS_HELP_STRING([--enable-valgrind],[Use Valgrind on the testsuite [default=no]]),
|
---|
| 323 | enable_valgrind=$enableval,
|
---|
| 324 | enable_valgrind="no")
|
---|
| 325 | AC_MSG_RESULT($enable_valgrind)
|
---|
| 326 | AS_IF([test x"$enable_valgrind" = x"yes"], [
|
---|
[490038] | 327 | AC_CHECK_HEADER([valgrind/valgrind.h],
|
---|
| 328 | [
|
---|
| 329 | # check header
|
---|
| 330 | AC_DEFINE(HAVE_VALGRIND_TESTSUITE,1, ["Use Valgrind to check the testsuite."])
|
---|
| 331 | # check path
|
---|
| 332 | AC_PATH_PROG(VALGRIND, [valgrind], [/bin/false])
|
---|
| 333 | # set variables
|
---|
| 334 | AC_SUBST(HAVE_VALGRIND_TESTSUITE)
|
---|
| 335 | AC_SUBST(VALGRIND)
|
---|
| 336 | ],
|
---|
| 337 | [
|
---|
| 338 | AC_MSG_ERROR(["Valgrind support requested but headers not available."])
|
---|
| 339 | ]
|
---|
| 340 | )
|
---|
[f3b8a5] | 341 | ])
|
---|
[490038] | 342 |
|
---|
[14de469] | 343 | # Check for "extern inline", using a modified version
|
---|
| 344 | # of the test for AC_C_INLINE from acspecific.mt
|
---|
| 345 | AC_CACHE_CHECK([for extern inline], ac_cv_c_extern_inline,
|
---|
| 346 | [ac_cv_c_extern_inline=no
|
---|
| 347 | AC_TRY_COMPILE([extern $ac_cv_c_inline double foo(double x);
|
---|
| 348 | extern $ac_cv_c_inline double foo(double x) { return x+1.0; };
|
---|
| 349 | double foo (double x) { return x + 1.0; };],
|
---|
| 350 | [ foo(1.0) ],
|
---|
| 351 | [ac_cv_c_extern_inline="yes"])
|
---|
| 352 | ])
|
---|
| 353 |
|
---|
| 354 | if test "$ac_cv_c_inline" != no ; then
|
---|
| 355 | AC_DEFINE(HAVE_INLINE,1, ["May use inline routines"])
|
---|
| 356 | AC_SUBST(HAVE_INLINE)
|
---|
| 357 | fi
|
---|
| 358 |
|
---|
[bd3e55] | 359 | #AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"])
|
---|
[a19da5d] | 360 |
|
---|
[0ca39c] | 361 | # test suite
|
---|
[878044] | 362 |
|
---|
[5079a0] | 363 | AC_CONFIG_FILES([
|
---|
[689639] | 364 | tests/Makefile])
|
---|
| 365 |
|
---|
| 366 | AC_CONFIG_TESTDIR(tests/CodeChecks)
|
---|
[d0a719] | 367 | AC_CONFIG_FILES([
|
---|
| 368 | tests/CodeChecks/atlocal
|
---|
| 369 | tests/CodeChecks/Makefile])
|
---|
[689639] | 370 |
|
---|
[740d40] | 371 | AC_CONFIG_TESTDIR(tests/Fragmentations)
|
---|
[038713] | 372 | AC_CONFIG_FILES([
|
---|
[740d40] | 373 | tests/Fragmentations/atlocal
|
---|
| 374 | tests/Fragmentations/Makefile])
|
---|
[878044] | 375 | AC_CONFIG_FILES([tests/Fragmentations/analyzer], [chmod +x tests/Fragmentations/analyzer])
|
---|
| 376 | AC_CONFIG_FILES([tests/Fragmentations/joiner], [chmod +x tests/Fragmentations/joiner])
|
---|
[740d40] | 377 | AC_CONFIG_FILES([tests/Fragmentations/molecuilder], [chmod +x tests/Fragmentations/molecuilder])
|
---|
[689639] | 378 |
|
---|
[004d5c] | 379 | AC_CONFIG_TESTDIR(tests/JobMarket)
|
---|
| 380 | AC_CONFIG_FILES([
|
---|
| 381 | tests/JobMarket/atlocal
|
---|
| 382 | tests/JobMarket/Makefile])
|
---|
| 383 | AC_CONFIG_FILES([tests/JobMarket/molecuilder], [chmod +x tests/JobMarket/molecuilder])
|
---|
| 384 |
|
---|
[689639] | 385 | AC_CONFIG_TESTDIR(tests/regression)
|
---|
| 386 | AC_CONFIG_FILES([
|
---|
| 387 | tests/regression/atlocal
|
---|
| 388 | tests/regression/Makefile])
|
---|
| 389 | AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder])
|
---|
| 390 |
|
---|
| 391 | AC_CONFIG_TESTDIR(tests/Tesselations)
|
---|
[5079a0] | 392 | AC_CONFIG_FILES([
|
---|
[a85f45] | 393 | tests/Tesselations/atlocal
|
---|
| 394 | tests/Tesselations/Makefile])
|
---|
| 395 | AC_CONFIG_FILES([tests/Tesselations/molecuilder], [chmod +x tests/Tesselations/molecuilder])
|
---|
[689639] | 396 |
|
---|
[5079a0] | 397 | AC_CONFIG_FILES([
|
---|
| 398 | doc/molecuilder.xml])
|
---|
[861874] | 399 | AC_CONFIG_FILES([
|
---|
[878044] | 400 | MoleCuilder.pc:MoleCuilder.pc.in])
|
---|
[5079a0] | 401 | AC_CONFIG_FILES([
|
---|
| 402 | Makefile
|
---|
[ec188c] | 403 | doc/Makefile
|
---|
[938ffd] | 404 | src/Makefile
|
---|
[5b991a] | 405 | data/icons/Makefile
|
---|
[04e1fb] | 406 | utils/Makefile
|
---|
[85949a] | 407 | ])
|
---|
| 408 | AC_CONFIG_FILES([
|
---|
[878044] | 409 | src/unittests/Makefile
|
---|
[85949a] | 410 | ])
|
---|
[d0b3aca] | 411 |
|
---|
[c015b3] | 412 | # produce python scripts and tests only when python's present
|
---|
| 413 | AM_COND_IF([CONDPYTHON],[
|
---|
| 414 | AC_CONFIG_TESTDIR([tests/Python])
|
---|
[9fd196] | 415 | AC_CONFIG_FILES([utils/Python/boxmaker.py:utils/Python/boxmaker.py.in], [chmod +x utils/Python/boxmaker.py])
|
---|
| 416 | AC_CONFIG_FILES([utils/Python/python_wrapper:utils/Python/python_wrapper.in], [chmod +x utils/Python/python_wrapper])
|
---|
[c015b3] | 417 | AC_CONFIG_FILES([tests/Python/run], [chmod +x tests/Python/run])
|
---|
| 418 | AC_CONFIG_FILES([tests/Python/atlocal])
|
---|
| 419 | AC_CONFIG_FILES([tests/Python/Makefile])
|
---|
| 420 | ])
|
---|
[d0b3aca] | 421 |
|
---|
[14de469] | 422 | AC_OUTPUT
|
---|