8035904: Solaris fastdebug builds are failing
authorerikj
Fri, 28 Feb 2014 13:35:32 +0100
changeset 22727 7d0c85ad2eec
parent 22726 d984085c5ff2
child 22728 0a9d96bf2023
8035904: Solaris fastdebug builds are failing Reviewed-by: tbell
common/autoconf/configure
--- a/common/autoconf/configure	Thu Feb 27 09:40:35 2014 +0100
+++ b/common/autoconf/configure	Fri Feb 28 13:35:32 2014 +0100
@@ -127,10 +127,11 @@
   if [[ -n "$1" ]]; then
     # Uses only shell-safe characters?  No quoting needed.
     # '=' is a zsh meta-character, but only in word-initial position.
-    if [[ "$1" =~ ^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.:,%/+=_-]+$ && ! "$1" =~ ^= ]]; then
+    if echo "$1" | grep -qE '^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.:,%/+=_-]+$' \
+        && ! echo "$1" | grep -qE '^='; then
       quoted="$1"
     else
-      if [[ "$1" =~ [\'!] ]]; then
+      if echo "$1" | grep -qE "[\'!]"; then
         # csh does history expansion within single quotes, but not
         # when backslash-escaped!
         local quoted_quote="'\\''" quoted_exclam="'\\!'"