Author: amc
Date: Thu Sep 23 00:09:39 2010
New Revision: 1000279

URL: http://svn.apache.org/viewvc?rev=1000279&view=rev
Log:
Patch for 2.1.3 to remove AS_CASE from configure.ac (tproxy config problem).

Modified:
    trafficserver/traffic/trunk/configure.ac

Modified: trafficserver/traffic/trunk/configure.ac
URL: 
http://svn.apache.org/viewvc/trafficserver/traffic/trunk/configure.ac?rev=1000279&r1=1000278&r2=1000279&view=diff
==============================================================================
--- trafficserver/traffic/trunk/configure.ac (original)
+++ trafficserver/traffic/trunk/configure.ac Thu Sep 23 00:09:39 2010
@@ -1052,18 +1052,18 @@ AS_IF([test "x$enable_tproxy" != "xno"],
     ])
   ],[
     AC_MSG_CHECKING([for TPROXY sockopt IP_TRANSPARENT])
-    AS_CASE("$enable_tproxy",
-      [[[0-9]][[0-9]]*], [
+    case "$enable_tproxy" in
+      [[0-9][0-9]*])
        ip_transparent=$enable_tproxy
        use_tproxy=1
        AC_MSG_RESULT([forced to $ip_transparent])
-      ],
-      [force], [
+       ;;
+      force)
        ip_transparent=19
        use_tproxy=1
        AC_MSG_RESULT([forced to $ip_transparent])
-      ],
-      [yes|auto], [
+       ;;
+      yes|auto)
         AS_IF([test -r $tproxy_header], [
          ip_transparent=`$AWK "/^#define[ \t]+IP_TRANSPARENT[ 
\t]+[0-9]+/{print \\$3}" $tproxy_header`
          AS_IF([test "x$ip_transparent" != "x"], [
@@ -1086,12 +1086,12 @@ AS_IF([test "x$enable_tproxy" != "xno"],
            AC_MSG_FAILURE([tproxy feature enabled but the header file 
$tproxy_header was not readable. Try one 
of$tproxy_usage_default$tproxy_usage_numeric$tproxy_usage_disable])
          ])
        ])
-      ],
-      [
+       ;;
+      *)
        AC_MSG_RESULT([failed])
        AC_MSG_FAILURE([Invalid argument to feature tproxy.$tproxy_usage])
-      ]
-    )
+       ;;
+      esac
   ])
 ])
 


Reply via email to