[Darshan-commits] [Git][darshan/darshan][dev-no-mpi] bug fix in gcc check ac macro

Shane Snyder xgitlab at cels.anl.gov
Thu Dec 5 14:35:10 CST 2019



Shane Snyder pushed to branch dev-no-mpi at darshan / darshan


Commits:
b103ac60 by Shane Snyder at 2019-12-05T20:34:30Z
bug fix in gcc check ac macro

- - - - -


2 changed files:

- darshan-runtime/configure
- darshan-runtime/configure.in


Changes:

=====================================
darshan-runtime/configure
=====================================
@@ -3380,7 +3380,7 @@ if ac_fn_c_try_compile "$LINENO"; then :
 
 else
   if test "x$with_gcc" = "xyes"; then :
-  as_fn_error which is strongly recommended for building Darshan. To force use of a non-GCC compatible compiler "CC doesn't appear to be a GNU-compatible compiler" "$LINENO" 5
+  as_fn_error $? "CC doesn't appear to be a GNU-compatible compiler, which is strongly recommended for building Darshan. To force use of a non-GCC compatible compiler, add --without-gcc to your configure command line." "$LINENO" 5
 fi
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext


=====================================
darshan-runtime/configure.in
=====================================
@@ -27,7 +27,7 @@ ENABLE_MPI=1
 AS_IF([test "x$use_mpi" = "xno"],
       [ENABLE_MPI=
        AS_IF([test "x$with_mpi" = "xyes"],
-             [AC_MSG_ERROR(CC doesn't appear to be a valid MPI compiler and MPI support was requested. See INSTALL document or try adding CC=mpicc to your configure command line.)],)],
+             [AC_MSG_ERROR([CC doesn't appear to be a valid MPI compiler and MPI support was requested. See INSTALL document or try adding CC=mpicc to your configure command line.])],)],
       [ENABLE_MPI=1
        AC_DEFINE([HAVE_MPI], [], [Define if build is MPI-enabled])])
 
@@ -45,7 +45,7 @@ AC_COMPILE_IFELSE([
     ])],
     [],
     [AS_IF([test "x$with_gcc" = "xyes"],
-           [AC_MSG_ERROR(CC doesn't appear to be a GNU-compatible compiler, which is strongly recommended for building Darshan. To force use of a non-GCC compatible compiler, add --without-gcc to your configure command line.)],)])
+           [AC_MSG_ERROR([CC doesn't appear to be a GNU-compatible compiler, which is strongly recommended for building Darshan. To force use of a non-GCC compatible compiler, add --without-gcc to your configure command line.])],)])
 
 dnl runtime libraries require zlib
 CHECK_ZLIB



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/b103ac6062ec53c304b277dbdf9aae286fa29d4b

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/b103ac6062ec53c304b277dbdf9aae286fa29d4b
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20191205/1f66a811/attachment.html>


More information about the Darshan-commits mailing list