[MOAB-dev] commit/MOAB: iulian07: changes for distcheck to work

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Jun 26 16:12:21 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/108ecf5f171f/
Changeset:   108ecf5f171f
Branch:      iulian07/distcheck_fix
User:        iulian07
Date:        2014-06-26 23:09:03
Summary:     changes for distcheck to work

environment vars could be exported to make distcheck,
we include only CC CXX F90 F77 FC, but we could include more

(LDFLAGS?)

Affected #:  1 file

diff --git a/configure.ac b/configure.ac
index 83d8ea5..0ef0b54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1205,7 +1205,6 @@ AC_SUBST([AM_CXXFLAGS])
 AC_SUBST([AM_CFLAGS])
   AC_SUBST([AM_FCFLAGS])
   AC_SUBST([AM_FFLAGS])
-AC_SUBST([DISTCHECK_CONFIGURE_FLAGS])
 
 AC_ARG_VAR([FC], [FORTRAN compiler command])
 AC_CONFIG_HEADERS([config.h])
@@ -1261,6 +1260,22 @@ AC_CONFIG_FILES([Makefile
 AC_CONFIG_COMMANDS([src/MOAB_FCDefs.h],
   [sed -e "s/FC_FUNC/MOAB_FC_FUNC/" src/FCDefs.h >src/MOAB_FCDefs.h])
 
+# make distcheck will use this DISTCHECK_CONFIGURE_FLAGS 
+#  variable to be passed to configure line
+# some people include a lot of env vars here
+# I think we need only those; only distcheck is affected by this
+# 
+#  for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS F90 FC F77; do
+for var in CC CXX F90 FC F77; do
+  eval isset=\${$var+set}
+  if test "$isset" = 'set' ; then
+    eval val=$`echo $var`
+    DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS  $var=\"$val\""
+  fi
+done
+
+AC_SUBST([DISTCHECK_CONFIGURE_FLAGS])
+
 AC_OUTPUT
 
 AC_MSG_RESULT([C:   $CC $CFLAGS $CPPFLAGS])

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list