cvs: php4 / acinclude.m4

[email protected] ("Sascha Schumann") Wed, 31 May 2000 20:30:17 -0000
Newsgroups php.version4
Message-ID <cvssas959805017@cvsserver>
sas		Wed May 31 13:30:17 2000 EDT

  Modified files:
    /php4	acinclude.m4 
  Log:
  Use sed instead of tr. The tr regexp syntax does not seem to be portable
  enough to make wide use of it. This should fix problems on Solaris 8
  and possibly on older SysV-derivatives.
  
  
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.90 php4/acinclude.m4:1.91
--- php4/acinclude.m4:1.90	Sat May 27 12:30:36 2000
+++ php4/acinclude.m4	Wed May 31 13:30:16 2000
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.90 2000/05/27 19:30:36 sas Exp $
+dnl $Id: acinclude.m4,v 1.91 2000/05/31 20:30:16 sas Exp $
 dnl
 dnl This file contains local autoconf functions.
 
@@ -407,7 +407,9 @@
 dnl execute code, if variable is not set in namespace
 dnl
 AC_DEFUN(AC_PHP_ONCE,[
-  unique=`echo $ac_n "$2$ac_c" | tr -cd a-zA-Z0-9`
+  changequote({,})
+  unique=`echo $2|sed 's/[^a-zA-Z0-9]/_/g'`
+  changequote([,])
   cmd="echo $ac_n \"\$$1$unique$ac_c\""
   if test -n "$unique" && test "`eval $cmd`" = "" ; then
     eval "$1$unique=set"
@@ -564,7 +566,9 @@
 AC_DEFUN(AC_CHECK_CC_OPTION,[
   echo "main(){return 0;}" > conftest.$ac_ext
   opt="$1"
-  var=`echo $ac_n "$opt$ac_c"|tr -c a-zA-Z0-9 _`
+  changequote({,})
+  var=`echo $opt|sed 's/[^a-zA-Z0-9]/_/g'`
+  changequote([,])
   AC_MSG_CHECKING([if compiler supports -$1 really])
   ac_php_compile="${CC-cc} -$opt -o conftest $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1"
   if eval $ac_php_compile 2>&1 | egrep "$opt" > /dev/null 2>&1 ; then