[Genabel-commits] r1848 - branches/ProbABEL-pvals/ProbABEL

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Oct 24 15:31:20 CEST 2014


Author: lckarssen
Date: 2014-10-24 15:31:20 +0200 (Fri, 24 Oct 2014)
New Revision: 1848

Modified:
   branches/ProbABEL-pvals/ProbABEL/configure.ac
Log:
Simplified the check for the Boost math lib in the ProbABEL-pvals branch.


Modified: branches/ProbABEL-pvals/ProbABEL/configure.ac
===================================================================
--- branches/ProbABEL-pvals/ProbABEL/configure.ac	2014-10-24 13:21:29 UTC (rev 1847)
+++ branches/ProbABEL-pvals/ProbABEL/configure.ac	2014-10-24 13:31:20 UTC (rev 1848)
@@ -105,17 +105,16 @@
           [location of the Boost headers, defaults to /usr/include/boost])],
         [CXXFLAGS+=" -I${withval}"
         CPPFLAGS+=" -I${withval}"],
-        [CXXFLAGS+=' -I/usr/include/boost'
-        CPPFLAGS+=' -I/usr/include/boost'])
+        [CXXFLAGS+=' -I/usr/include/'
+        CPPFLAGS+=' -I/usr/include/'])
 
     # Check for the Boost Math header files
-    AC_CHECK_HEADERS([boost/math/distributions.hpp])
-
-    if test x$ac_cv_header_boost_math_distributions_hpp = xno; then
-      AC_MSG_ERROR([Could not find the Boost Math header files. Did \
+    AC_CHECK_HEADER([boost/math/distributions.hpp],
+        [],
+        [AC_MSG_ERROR([Could not find the Boost Math header files. Did \
 you specify --with-boost-include-path correctly? Or use --without-boost \
-to disable the calculation of p-values.])
-    fi
+to disable the calculation of p-values.])]
+    )
 else
    AC_MSG_NOTICE([not using the Boost Math libraries, so no p-values in the \
 output])



More information about the Genabel-commits mailing list