[MOAB-dev] r3433 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Mon Jan 18 12:48:19 CST 2010


Author: kraftche
Date: 2010-01-18 12:48:19 -0600 (Mon, 18 Jan 2010)
New Revision: 3433

Modified:
   MOAB/trunk/Makefile.am
Log:
install /moab.config containing list of options specified to configure script

Modified: MOAB/trunk/Makefile.am
===================================================================
--- MOAB/trunk/Makefile.am	2010-01-18 18:21:18 UTC (rev 3432)
+++ MOAB/trunk/Makefile.am	2010-01-18 18:48:19 UTC (rev 3433)
@@ -96,7 +96,7 @@
 # in $(libdir).  Define a $(cfgdir) to get around automake's
 # check that only libraries are going in $(libdir)
 cfgdir = $(libdir)
-cfg_DATA = moab.make
+cfg_DATA = moab.make moab.config
 
 # By default, moab.make will define these to $(srcdir).  We
 # want to override that during the INSTALL of the file so
@@ -108,6 +108,18 @@
 	echo "MOAB_INCLUDEDIR=${includedir}" >> $(DESTDIR)$(cfgdir)/moab.make
 
 
+# Generate a file to be installed in $libdir containing the configuration
+# options used for this MOAB build.
+# Note: If you modify this, verify that it works correctly for option
+#       values containing spaces.
+# First line: get unformatted data from config.status
+# Second line: extract just the list of options
+# Third line: put individual options on separate lines
+moab.config: config.status Makefile.am
+	./config.status --version | \
+	  sed -e 's/.*options "\(.*\)"/\1/p' -e 'd' | \
+	  sed -e "s/'[[:space:]]'/'\n'/g" >$@
+
 # The list of source files, and any header files that do not need to be installed
 libMOAB_la_SOURCES = \
   AEntityFactory.cpp \



More information about the moab-dev mailing list