trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1057713 - /trafficserver/traffic/trunk/build/common.m4
Date Tue, 11 Jan 2011 16:13:10 GMT
Author: amc
Date: Tue Jan 11 16:13:10 2011
New Revision: 1057713

URL: http://svn.apache.org/viewvc?rev=1057713&view=rev
Log:
TS-583 missing autoconf macro fix

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=1057713&r1=1057712&r2=1057713&view=diff
==============================================================================
--- trafficserver/traffic/trunk/build/common.m4 (original)
+++ trafficserver/traffic/trunk/build/common.m4 Tue Jan 11 16:13:10 2011
@@ -565,15 +565,16 @@ dnl then AC_ARG_ENABLE will set $enable_
 dnl $has_bob based on the value in $enable_bob. See the examples of
 dnl use later in this file.
 dnl
-dnl Note: As with AC_ARG_ENABLE, non-alphabetic characters are
+dnl Note: As with AC_ARG_ENABLE, non-alphanumeric characters are
 dnl transformed to underscores.
 dnl
 AC_DEFUN([TS_ARG_ENABLE_VAR],[
-  ts_local_prefix="AS_TR_SH($1)"
-  ts_local_stem="AS_TR_SH($2)"
-  AS_VAR_IF([enable_${ts_local_stem}], [yes],
-    [AS_VAR_SET([${ts_local_prefix}_${ts_local_stem}], 1)],
-    [AS_VAR_SET([${ts_local_prefix}_${ts_local_stem}], 0)]
+  tsl_prefix="AS_TR_SH($1)"
+  tsl_stem="AS_TR_SH($2)"
+  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