Changeset 79b089 for configure.ac


Ignore:
Timestamp:
Mar 2, 2017, 2:00:41 PM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, 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_vmg, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
dfeb7c
Parents:
7faa5c
git-author:
Frederik Heber <heber@…> (02/16/17 21:19:06)
git-committer:
Frederik Heber <heber@…> (03/02/17 14:00:41)
Message:

Added vmg as another subpackage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r7faa5c r79b089  
    276276        #AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])
    277277])
     278AC_MSG_CHECKING(whether to compile codepatterns)
     279AC_MSG_RESULT($compile_codepatterns)
    278280AM_CONDITIONAL([COND_COMPILE_CODEPATTERNS], [test x"$compile_codepatterns" = x"yes"])
    279281
     
    287289AC_MSG_RESULT($enable_jobmarket)
    288290compile_jobmarket="no"
     291AC_MSG_CHECKING(whether to compile jobmarket)
    289292AS_IF([test x"$enable_jobmarket" != x"no"],[
    290293  # the following is only required if we use JobMarket
     
    310313    ])
    311314]
     315AC_MSG_RESULT($compile_jobmarket)
    312316AM_CONDITIONAL([COND_COMPILE_JOBMARKET], [test x"$compile_jobmarket" = x"yes"])
    313317#[
     
    319323
    320324# VMG library
    321 AC_MSG_CHECKING(whether to compile in long-range support via VMG)
     325AC_MSG_CHECKING(whether to compile in long-range support via vmg)
    322326AC_ARG_ENABLE(
    323327  [vmg],
     
    326330  enable_vmg="no")
    327331AC_MSG_RESULT($enable_vmg)
     332compile_vmg="no"
     333AC_MSG_CHECKING(whether to compile vmg library)
    328334AS_IF([test x"$enable_vmg" != x"no"],[
    329   PKG_CHECK_MODULES(VMG, VMG >= 0.1)
     335  PKG_CHECK_MODULES(VMG, VMG >= 0.1, [enable_vmg="yes"], [enable_vmg="no"])
     336  AS_IF([test x"$enable_vmg" = x"no"],[
     337        AC_CONFIG_SUBDIRS([ThirdParty/vmg])
     338        compile_vmg="yes"
     339        enable_vmg="yes"
     340        [VMG_CFLAGS='-I$(top_srcdir)/ThirdParty/vmg/src']
     341        [VMG_LDFLAGS='-L$(top_builddir)/ThirdParty/vmg/src']
     342        [VMG_LIBS='-lvmg']
     343  ])
    330344  AC_SUBST(VMG_CFLAGS)
     345  AC_SUBST(VMG_LDFLAGS)
    331346  AC_SUBST(VMG_LIBS)
    332347  AC_DEFINE(HAVE_VMG,1, ["use VMG to calculate long-range contributions."])
     
    357372    [])
    358373])
     374AC_MSG_RESULT($compile_vmg)
    359375AM_CONDITIONAL([CONDVMG], [test x"$enable_vmg" = x"yes"])
    360376AM_CONDITIONAL([CONDVMGMPI], [test x"$have_CXX_mpi" = x"yes"])
     377AM_CONDITIONAL([COND_COMPILE_VMG], [test x"$compile_vmg" = x"yes"])
    361378
    362379
Note: See TracChangeset for help on using the changeset viewer.