summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-01-24 23:46:58 (GMT)
committerYang Tse <yangsita@gmail.com>2013-01-24 23:46:58 (GMT)
commitb157f4a0beba7ecc8821048f9ab2a1139af7577d (patch)
treef69fa2821aa92a459fecd126068acd29f9a08a2d
parent15177a631ebf5b56ae02525514ec4f2ddda533b6 (diff)
downloadc-ares-b157f4a0beba7ecc8821048f9ab2a1139af7577d.zip
c-ares-b157f4a0beba7ecc8821048f9ab2a1139af7577d.tar.gz
c-ares-b157f4a0beba7ecc8821048f9ab2a1139af7577d.tar.bz2
zz40-xc-ovr.m4: parentheses balancing of 'case' statements
m4 quadrigraph shell comment technique allows proper autoconf parentheses balancing in shell 'case' statements. The presence of unbalanced parentheses may otherwise trigger expansion bugs.
-rw-r--r--m4/zz40-xc-ovr.m412
1 files changed, 6 insertions, 6 deletions
diff --git a/m4/zz40-xc-ovr.m4 b/m4/zz40-xc-ovr.m4
index a682786..9070dce 100644
--- a/m4/zz40-xc-ovr.m4
+++ b/m4/zz40-xc-ovr.m4
@@ -60,7 +60,7 @@ AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_ECHO],
xc_tst_str='unknown'
(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
-case "x$xc_tst_str" in
+case "x$xc_tst_str" in @%:@((
xsuccess)
:
;;
@@ -88,7 +88,7 @@ AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_TEST],
xc_tst_str='unknown'
(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
-case "x$xc_tst_str" in
+case "x$xc_tst_str" in @%:@((
xsuccess)
:
;;
@@ -115,7 +115,7 @@ AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_VAR_PATH],
xc_tst_str='unknown'
(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
-case "x$xc_tst_str" in
+case "x$xc_tst_str" in @%:@((
xsuccess)
:
;;
@@ -142,7 +142,7 @@ AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_CMD_EXPR],
xc_tst_str='unknown'
xc_tst_str=(`expr "$xc_tst_str" : '.*' 2>/dev/null`)
-case "x$xc_tst_str" in
+case "x$xc_tst_str" in @%:@((
x7)
:
;;
@@ -174,7 +174,7 @@ AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_SED],
xc_tst_str='unknown'
xc_tst_str=(`echo "$xc_tst_str" 2>/dev/null \
| sed -e 's:unknown:success:' 2>/dev/null`)
-case "x$xc_tst_str" in
+case "x$xc_tst_str" in @%:@((
xsuccess)
:
;;
@@ -206,7 +206,7 @@ AC_DEFUN([_XC_CFG_PRE_BASIC_CHK_UTIL_GREP],
xc_tst_str='unknown'
(`echo "$xc_tst_str" 2>/dev/null \
| grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
-case "x$xc_tst_str" in
+case "x$xc_tst_str" in @%:@((
xsuccess)
:
;;