From c3072cb1f04228ee2a185a63ca311f50a4f978a5 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 18 Sep 1997 19:57:31 +0000 Subject: [PATCH] Have to do [[ ]] in configure.in. --- src/configure | 10 +++++----- src/configure.in | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/configure b/src/configure index 9ebe604acc..afeb37551d 100755 --- a/src/configure +++ b/src/configure @@ -643,7 +643,7 @@ EOT TEMPLATE=generic GUESS=`grep "$host_os" template/.similar 2>/dev/null` if test ! "$GUESS" - then host_os_no_ver=`echo "$host_os" | sed 's/0-9.*$//'` + then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'` GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null` fi if test "$GUESS" @@ -1511,13 +1511,13 @@ done test -n "$TR" || TR="NOT_FOUND" -TRSTRINGS=`echo ABCdef | $TR 'a-z' 'A-Z' 2>/dev/null | grep ABCDEF` -TRCLASS=`echo ABCdef | $TR ':lower:' ':upper:' 2>/dev/null | grep ABCDEF` +TRSTRINGS=`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF` +TRCLASS=`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF` if test "$TRSTRINGS" = "ABCDEF"; then - TRARGS="'a-z' 'A-Z'" + TRARGS="'[a-z]' '[A-Z]'" elif test "$TRCLASS" = "ABCDEF"; then - TRARGS="\":lower:\" \":upper:\"" + TRARGS="\"[:lower:]\" \"[:upper:]\"" else { echo "configure: error: "Can\'t find method to covert from upper to lower case with tr"" 1>&2; exit 1; } fi diff --git a/src/configure.in b/src/configure.in index cf6a0c2879..0051179a0e 100644 --- a/src/configure.in +++ b/src/configure.in @@ -81,7 +81,7 @@ EOT TEMPLATE=generic GUESS=`grep "$host_os" template/.similar 2>/dev/null` if test ! "$GUESS" - then host_os_no_ver=`echo "$host_os" | sed 's/[0-9.]*$//'` + then host_os_no_ver=`echo "$host_os" | sed 's/[[0-9.]]*$//'` GUESS=`grep "$host_os_no_ver" template/.similar 2>/dev/null` fi if test "$GUESS" @@ -319,13 +319,13 @@ AC_PATH_PROG(ipcrm, ipcrm) AC_PATH_PROGS(TR, trbsd tr, NOT_FOUND) dnl Check tr flags to convert from lower to upper case -TRSTRINGS=`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF` -TRCLASS=`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF` +TRSTRINGS=`echo ABCdef | $TR '[[a-z]]' '[[A-Z]]' 2>/dev/null | grep ABCDEF` +TRCLASS=`echo ABCdef | $TR '[[:lower:]]' '[[:upper:]]' 2>/dev/null | grep ABCDEF` if test "$TRSTRINGS" = "ABCDEF"; then - TRARGS="'[a-z]' '[A-Z]'" + TRARGS="'[[a-z]]' '[[A-Z]]'" elif test "$TRCLASS" = "ABCDEF"; then - TRARGS="\"[:lower:]\" \"[:upper:]\"" + TRARGS="\"[[:lower:]]\" \"[[:upper:]]\"" else AC_MSG_ERROR("Can\'t find method to covert from upper to lower case with tr") fi -- 2.40.0