Changeset 93ea13d for configure.ac


Ignore:
Timestamp:
Mar 2, 2017, 1:59:54 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_levmar, Subpackage_vmg, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
206fa9
Parents:
8ce1a9
git-author:
Frederik Heber <heber@…> (02/15/17 12:44:18)
git-committer:
Frederik Heber <heber@…> (03/02/17 13:59:54)
Message:

Added levmar as another subdir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r8ce1a9 r93ea13d  
    371371# don't use AS_IF here as it expands (and tests) AC_F77_FUN even if levmar
    372372# is disabled.
    373 if test x"$enable_levmar" = xyes; then
    374         AX_LAPACK([enable_levmar=yes],
    375                 [enable_levmar=no
    376                 AC_MSG_WARN(["Missing LAPACK, disabling off levmar"])
    377                 ]
    378         )
    379 fi
     373compile_levmar="no"
    380374AS_IF([test x"$enable_levmar" = xyes],[
    381375        AC_MSG_CHECKING(for levmar presence via given path )
     
    385379                [have_levmar_path=$withval
    386380                enable_levmar=yes],
    387                 [enable_levmar=no])
     381        [
     382                enable_levmar=no
     383        ])
    388384        AC_MSG_RESULT($enable_levmar)
    389385        AS_IF([test -n "$have_levmar_path"],[
    390386                LEVMAR_CPPFLAGS="-I${have_levmar_path}/include"
    391387                LEVMAR_LDFLAGS="-L${have_levmar_path}/lib"
    392                 LEVMAR_LIBS="-llevmar"],[
    393                 PKG_CHECK_MODULES([LEVMAR],[levmar],[enable_levmar=yes],[
    394                         AC_MSG_CHECKING(for levmar presence via locate)
    395                         enable_levmar=no
    396                         levmar_lib=`locate liblevmar.a | head -n 1 | xargs dirname`
    397                         levmar_include=`locate levmar.h | head -n 1 | xargs dirname`
    398                         if test -n "$levmar_lib"; then
    399                                 if test -n "$levmar_include"; then
    400                                         enable_levmar=yes
    401                                         LEVMAR_CPPFLAGS="-I${levmar_include}"
    402                                         LEVMAR_LDFLAGS="-L${levmar_lib}"
    403                                         LEVMAR_LIBS="-llevmar"
    404                                 fi
    405                         fi
    406                         AC_MSG_RESULT($enable_levmar)
    407                 ])
     388                LEVMAR_LIBS="-llevmar"],
     389                [PKG_CHECK_MODULES([LEVMAR],[levmar],[enable_levmar=yes],[enable_levmar=no])
    408390        ])
    409391        ],[enable_levmar=no]
    410392)
     393if test x"$enable_levmar" = xyes; then
     394        AX_LAPACK([enable_levmar=yes],
     395                [enable_levmar=no
     396                AC_MSG_WARN(["Missing LAPACK, disabling off levmar"])
     397                ]
     398        )
     399else
     400                        AC_CONFIG_SUBDIRS([ThirdParty/levmar])
     401                        compile_levmar="yes"
     402                        enable_levmar="yes"
     403                        LEVMAR_CPPFLAGS='-I$(top_srcdir)/ThirdParty/levmar/src'
     404                        LEVMAR_LDFLAGS='-L$(top_builddir)/ThirdParty/levmar/src'
     405                        LEVMAR_LIBS='-llevmar'
     406fi
    411407AC_MSG_CHECKING(for levmar usability)
    412408AS_IF([test x"$enable_levmar" = xyes],[
     
    417413AC_MSG_RESULT($enable_levmar)
    418414AM_CONDITIONAL([CONDLEVMAR], [test x"$enable_levmar" = x"yes"])
     415AM_CONDITIONAL([COND_COMPILE_LEVMAR], [test x"$compile_levmar" = x"yes"])
    419416
    420417# Checks for header files.
Note: See TracChangeset for help on using the changeset viewer.