]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-10-31 Akim Demaille <akim@epita.fr>
authorAkim Demaille <akim@epita.fr>
Mon, 20 Dec 1999 18:52:12 +0000 (18:52 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 20 Dec 1999 18:52:12 +0000 (18:52 +0000)
* acgeneral.m4 (AC_INIT_PARSE_ARGS): Avoid to use double quotes
inside "`...`": some shells parse this inccorrectly.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index ee53232891dd3d4176db54cc4423ae91a733c68e..e5086cce0d2c3a976e7c4954f95d12bf98e47b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-10-31  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (AC_INIT_PARSE_ARGS): Avoid to use double quotes
+       inside "`...`": some shells parse this inccorrectly.
+
 1999-10-31  Akim Demaille  <akim@epita.fr>
 
        * Makefile.am (pkgdata_DATA, EXTRA_DIST): Removed acconfig.h.
index 6ccc234d617460a8827f1f0099ec8f7037abd59e..c877bed95df6cc450a6d68d826382f473eaba0ca 100644 (file)
@@ -892,7 +892,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -903,7 +903,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -1156,7 +1156,7 @@ Some of the influent environment variables:$ac_arg_var_help"
     ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1171,7 +1171,7 @@ changequote([, ])dnl
     ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1212,7 +1212,7 @@ changequote([, ])dnl
 
   *)
 changequote(, )dnl
-    if test -n "`echo "$ac_option"| sed 's/[-a-z0-9.]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_WARN($ac_option: invalid host type)
     fi
index 6ccc234d617460a8827f1f0099ec8f7037abd59e..c877bed95df6cc450a6d68d826382f473eaba0ca 100644 (file)
@@ -892,7 +892,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -903,7 +903,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -1156,7 +1156,7 @@ Some of the influent environment variables:$ac_arg_var_help"
     ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1171,7 +1171,7 @@ changequote([, ])dnl
     ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1212,7 +1212,7 @@ changequote([, ])dnl
 
   *)
 changequote(, )dnl
-    if test -n "`echo "$ac_option"| sed 's/[-a-z0-9.]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_WARN($ac_option: invalid host type)
     fi