trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1057862 - /trafficserver/traffic/trunk/build/common.m4
Date Tue, 11 Jan 2011 20:59:35 GMT
Author: amc
Date: Tue Jan 11 20:59:35 2011
New Revision: 1057862

URL: http://svn.apache.org/viewvc?rev=1057862&view=rev
Log:
TS-583: patch for TS_ARG_ENABLE_VAR

Modified:
    trafficserver/traffic/trunk/build/common.m4

Modified: trafficserver/traffic/trunk/build/common.m4
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/build/common.m4?rev=1057862&r1=1057861&r2=1057862&view=diff
==============================================================================
--- trafficserver/traffic/trunk/build/common.m4 (original)
+++ trafficserver/traffic/trunk/build/common.m4 Tue Jan 11 20:59:35 2011
@@ -562,8 +562,8 @@ dnl enable argument is 'yes', and '0' ot
 dnl
 dnl For instance, if the prefix is "has" and stem is "bob",
 dnl then AC_ARG_ENABLE will set $enable_bob and this macro will set
-dnl $has_bob based on the value in $enable_bob. See the examples of
-dnl use later in this file.
+dnl $has_bob based on the value in $enable_bob. See the examples
+dnl in configure.ac.
 dnl
 dnl Note: As with AC_ARG_ENABLE, non-alphanumeric characters are
 dnl transformed to underscores.
@@ -571,7 +571,7 @@ dnl
 AC_DEFUN([TS_ARG_ENABLE_VAR],[
   tsl_prefix="AS_TR_SH($1)"
   tsl_stem="AS_TR_SH($2)"
-  eval tsl_enable="enable_${tsl_stem}"
+  eval "tsl_enable=\$enable_${tsl_stem}"
   AS_IF([test "x$tsl_enable" = "xyes"],
      [eval "${tsl_prefix}_${tsl_stem}=1"],
      [eval "${tsl_prefix}_${tsl_stem}=0"]



Mime
View raw message