[MOAB-dev] r2202 - MOAB/trunk/m4

tautges at mcs.anl.gov tautges at mcs.anl.gov
Mon Nov 3 13:59:36 CST 2008


Author: tautges
Date: 2008-11-03 13:59:36 -0600 (Mon, 03 Nov 2008)
New Revision: 2202

Modified:
   MOAB/trunk/m4/compiler.m4
Log:
Use variable expansion trick to expand variables for ITAPS_LIBTOOL_VAR macro.



Modified: MOAB/trunk/m4/compiler.m4
===================================================================
--- MOAB/trunk/m4/compiler.m4	2008-11-03 19:45:56 UTC (rev 2201)
+++ MOAB/trunk/m4/compiler.m4	2008-11-03 19:59:36 UTC (rev 2202)
@@ -6,7 +6,12 @@
 #  variable in which to store result
 #######################################################################################
 AC_DEFUN([ITAPS_LIBTOOL_VAR], [
-  $3=`./libtool --tag=$1 --config | sed -e 's/^$2=//p' -e 'd' | tr -d '"\n'`
+  echo "SED=$SED" > .tmp
+  ./libtool --tag=$1 --config >>.tmp
+  echo "echo \$$2" >> .tmp
+  chmod +x .tmp
+  $3=`./.tmp`
+  rm .tmp
 ])
 
 #######################################################################################




More information about the moab-dev mailing list