Changeset c015b3 for configure.ac
- Timestamp:
- Dec 28, 2011, 3:24:57 PM (14 years ago)
- Branches:
- 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
- Children:
- db1a72
- Parents:
- f3b8a5
- git-author:
- Frederik Heber <heber@…> (11/11/11 12:16:24)
- git-committer:
- Frederik Heber <heber@…> (12/28/11 15:24:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rf3b8a5 rc015b3 21 21 AC_PROG_INSTALL 22 22 23 dnl Check if we have enable python 24 # python module 25 AC_MSG_CHECKING(whether to enable python module) 26 AC_ARG_ENABLE(python, [ --enable-python=[no/yes] turn on python module 27 [default=yes]],, enable_python=$enableval) 28 AC_MSG_RESULT($enable_python) 29 AS_IF([test x"$enable_python" != x"no"],[ 30 # Python (for boost::python) 31 AM_PATH_PYTHON([2.2]) 32 AX_PYTHON 33 AC_DEFINE(HAVE_PYTHON,1, ["Build python module and scripts."]) 34 ]) 35 AM_CONDITIONAL([CONDPYTHON], [test x"$enable_python" != x"no"]) 36 AC_SUBST(HAVE_PYTHON) 37 38 dnl Check if we have enable qtgui 23 39 # Qt programs 40 have_qtgui_path="" 24 41 AC_ARG_WITH([Qt-bin], 25 42 [AC_HELP_STRING([--with-Qt-bin], [give path to Qt binaries])], 26 echo "Looking for binaries in $withval ... " 27 [AC_PATH_PROGS([QT_MOC], 43 [have_qtgui_path=$withval 44 enable_qtgui="yes"],,) 45 46 AC_MSG_CHECKING(whether to enable Qt-based GUI) 47 AC_ARG_ENABLE(qtgui, [ --enable-qtgui=[no/yes] turn on Qt GUI compilation 48 [default=yes]],, enable_qtgui=$enableval) 49 AC_MSG_RESULT($enable_qtgui) 50 AS_IF([test x"$enable_qtgui" != x"no"],[ 51 AC_PATH_PROGS([QT_MOC], 28 52 [moc-qt4 moc], 29 53 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])], 30 [$ withval]54 [$have_qtgui_path] 31 55 ) 32 56 AC_PATH_PROGS([QT_UIC], 33 57 [uic-qt4 uic], 34 58 [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])], 35 [$withval] 36 )], 37 [AC_PATH_PROGS([QT_MOC], 38 [moc-qt4 moc], 39 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])] 59 [$have_qtgui_path] 40 60 ) 41 AC_PATH_PROGS([QT_UIC], 42 [uic-qt4 uic], 43 [AC_MSG_ERROR(["Qts uic not found, please use --with-Qt-bin."])] 44 )] 45 ) 46 PKG_CHECK_MODULES([QT], [QtCore QtGui Qt3D], [ 47 ]) 48 AC_SUBST([QT_CFLAGS]) 49 AC_SUBST([QT_LIBS]) 61 PKG_CHECK_MODULES([QT], [QtCore QtGui Qt3D], [ 62 ]) 63 AC_SUBST([QT_CFLAGS]) 64 AC_SUBST([QT_LIBS]) 65 AC_DEFINE(HAVE_QTGUI,1, ["Build Qt-based GUI"]) 66 ]) 67 AM_CONDITIONAL([CONDQTGUI], [test x"$enable_qtgui" != x"no"]) 68 AC_SUBST(HAVE_QTGUI) 50 69 51 70 # use doxygen … … 54 73 DX_PDF_FEATURE(OFF) 55 74 DX_INIT_DOXYGEN(MoleCuilder, Doxyfile, ${docdir}) 56 57 # Python (for boost::python)58 AM_PATH_PYTHON([2.2])59 AX_PYTHON60 75 61 76 # use libtool … … 74 89 AC_MSG_CHECKING(whether to enable debugging) 75 90 have_debug="no" 76 AC_MSG_RESULT($have_debug)77 91 AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes/full] turn on debugging 78 92 [default=no]],, enable_debug=$enableval) … … 93 107 have_debug="no" 94 108 fi 109 AC_MSG_RESULT($have_debug) 95 110 AC_SUBST(HAVE_DEBUG) 96 111 … … 132 147 BOOST_FILESYSTEM 133 148 BOOST_PROGRAM_OPTIONS 134 BOOST_PYTHON 149 AS_IF([test x"$enable_python" != x"no"], [BOOST_PYTHON]) 135 150 BOOST_SERIALIZATION 136 151 BOOST_THREADS … … 233 248 tests/regression/atlocal 234 249 tests/regression/Makefile]) 235 AC_CONFIG_FILES([tests/regression/Python/run], [chmod +x tests/regression/Python/run])236 250 AC_CONFIG_FILES([tests/regression/molecuilder], [chmod +x tests/regression/molecuilder]) 237 251 … … 255 269 src/unittests/Makefile 256 270 ]) 257 AC_CONFIG_FILES([utils/boxmaker.py:utils/boxmaker.py.in], [chmod +x utils/boxmaker.py]) 258 AC_CONFIG_FILES([utils/python_wrapper:utils/python_wrapper.in], [chmod +x utils/python_wrapper]) 271 # produce python scripts and tests only when python's present 272 AM_COND_IF([CONDPYTHON],[ 273 AC_CONFIG_TESTDIR([tests/Python]) 274 AC_CONFIG_FILES([utils/boxmaker.py:utils/boxmaker.py.in], [chmod +x utils/boxmaker.py]) 275 AC_CONFIG_FILES([utils/python_wrapper:utils/python_wrapper.in], [chmod +x utils/python_wrapper]) 276 AC_CONFIG_FILES([tests/Python/run], [chmod +x tests/Python/run]) 277 AC_CONFIG_FILES([tests/Python/atlocal]) 278 AC_CONFIG_FILES([tests/Python/Makefile]) 279 ]) 259 280 AC_OUTPUT
Note:
See TracChangeset
for help on using the changeset viewer.