Changeset a19da5d for configure.ac
- Timestamp:
- Jun 7, 2008, 1:16:19 PM (17 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:
- fa40b5
- Parents:
- 1f6422
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r1f6422 ra19da5d 15 15 AM_MISSING_PROG([DOXYGEN], [doxygen]) 16 16 17 AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[debugging level of compiler. Argument is yes or debugging level. (default is no)]), 18 [enable_debugging=$enableval], [enable_debugging=no]) 19 AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or optimization. (default is 2)]), 20 [enable_optimization=$enableval], [enable_optimization=2]) 21 AC_ARG_ENABLE([warnings], AS_HELP_STRING([--enable-warnings],[Output compiler warnings, argument is none, some or full (default is some).]), 22 [enable_warnings=$enableval], [enable_warnings=some]) 23 AC_SET_COMPILER_FLAGS([$enable_optimization], [$enable_debugging], [$enable_warnings]) 17 24 18 25 # Checks for libraries. … … 38 45 AC_SEARCH_LIBS(cblas_sdot, blas cblas gslblas gslcblas) 39 46 AC_CHECK_LIB(gsl,main) 40 41 # debugging info42 AC_ARG_ENABLE([debug],AS_HELP_STRING([--enable-debug],[Output debugging information, argument is yes or debugging level (default is no).]),43 [enable_debug=$enableval], [enable_debug=no])44 if ! test x"$enable_debug" = xno; then45 if test x"${enable_debug}" = xyes; then46 CFLAGS="$CFLAGS -g3"47 CXXFLAGS="$CXXFLAGS -g3"48 else49 CFLAGS="$CFLAGS -g${enable_debug}"50 CXXFLAGS="$CXXFLAGS -g${enable_debug}"51 fi52 dnl enable all warnings53 CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wnested-externs -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self"54 CXXFLAGS="$CXXFLAGS -Wall -W -Wshadow -Wpointer-arith -Wcast-align -Wcast-qual -Wwrite-strings -Wredundant-decls -Wmissing-noreturn -Wformat-security -Wmissing-format-attribute -Winit-self"55 AC_DEFINE(HAVE_DEBUG,1, ["Output debugging info"])56 AC_SUBST(HAVE_DEBUG)57 else58 dnl even without debugging we want some minimal info of something's utterly wrong59 CFLAGS="$CFLAGS -Wall"60 CXXFLAGS="$CXXFLAGS -Wall"61 fi62 63 # optimization level64 AC_ARG_ENABLE([optimization],AS_HELP_STRING([--enable-optimization],[Optimization level of compiler. Argument is yes or debugging level. (default is 2)]),65 [enable_optimization=$enableval], [enable_optimization=yes])66 if test ! x"$enable_optimization" = xno; then67 if test x"$enable_debug" = xno; then68 if test x"${enable_optimization}" = xyes; then69 CFLAGS="$CFLAGS -O2"70 CXXFLAGS="$CXXFLAGS -O2"71 else72 CFLAGS="$CFLAGS -O${enable_optimization}"73 CXXFLAGS="$CXXFLAGS -O${enable_optimization}"74 fi75 # else76 # AC_MSG_WARN(["Already specified --enable-debug!"])77 fi78 fi79 47 80 48 # add replacement/saturation hydrogen or not … … 102 70 fi 103 71 72 AC_MSG_NOTICE(["CFLAGS: $CFLAGS, CXXFLAGS: $CXXFLAGS, LDFLAGS: $LDFLAGS, CC: $CC, CXX:, $CXX, MPICC: $MPICC, MPILIBS: $MPILIBS, LIBS: $LIBS"]) 73 104 74 # test suite 105 75 AC_CONFIG_TESTDIR(tests)
Note:
See TracChangeset
for help on using the changeset viewer.