浏览代码

New configure option --with-check-cflags to define flags for C, CXX and Fortran compilers

Nathalie Furmento 4 年之前
父节点
当前提交
76d4bfb35e
共有 3 个文件被更改,包括 21 次插入1 次删除
  1. 4 0
      ChangeLog
  2. 10 1
      configure.ac
  3. 7 0
      doc/doxygen/chapters/510_configure_options.doxy

+ 4 - 0
ChangeLog

@@ -53,6 +53,10 @@ New features:
   * Add peek_data interface method.
   * Add STARPU_MPI_REDUX
 
+Small features:
+  * New configure option --with-check-cflags to define flags for C,
+    CXX and Fortran compilers
+
 Small changes:
   * Add a synthetic energy efficiency testcase.
   * Make reduction methods want the commute flag.

+ 10 - 1
configure.ac

@@ -2270,7 +2270,6 @@ fi
 AM_CONDITIONAL([STARPU_USE_AYUDAME1], [test "x$enable_ayudame1" = "xyes"])
 AM_CONDITIONAL([STARPU_USE_AYUDAME2], [test "x$enable_ayudame2" = "xyes"])
 
-
 STARPU_FXT_EVENT_DEFINES="`grep -E '#define\s+_STARPU_(MPI_)?FUT_' ${srcdir}/src/common/fxt.h ${srcdir}/mpi/src/starpu_mpi_fxt.h | grep 0x | grep -v 0x1 | cut -d : -f 2`"
 AC_SUBST([STARPU_FXT_EVENT_DEFINES])
 
@@ -2537,6 +2536,16 @@ AC_SUBST(GLOBAL_AM_FCFLAGS)
 pkglibdir="\${libdir}/$PACKAGE"
 AC_SUBST([pkglibdir])
 
+AC_ARG_WITH(check-flags, [AS_HELP_STRING([--with-check-flags],
+			 [Specify flags for C and Fortran compilers])],
+			 check_flags=$withval, check_flags="")
+if test "x$check_flags" != "x" ; then
+	for xflag in $check_flags
+	do
+		IS_SUPPORTED_FLAG($xflag)
+	done
+fi
+
 ###############################################################################
 #                                                                             #
 #                               Fortran                                       #

+ 7 - 0
doc/doxygen/chapters/510_configure_options.doxy

@@ -139,6 +139,13 @@ Disable the usage of the ICC compiler. When found, some specific ICC
 examples are compiled.
 </dd>
 
+<dt>--with-check-flags</dt>
+<dd>
+\anchor with-check-flags
+\addindex __configure__--with-check-flags
+Specify flags which will be given to C, CXX and Fortran compilers when valid
+</dd>
+
 </dl>
 
 Additionally, the script <c>configure</c> recognize many variables, which