Portability fix for AC_PHP_ONCE in aclocal.m4
| From: | Jim Jagielski | Date: | Sat, 15 Jan 2000 01:25:49 +0000 |
| Subject: | Portability fix for AC_PHP_ONCE in aclocal.m4 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14647@lists.php.net to get a copy of this message | ||
The current code uses a non-portable use of 'tr' (varies on
old SysV systems). How about:
*** aclocal.m4.org Fri Jan 14 20:22:50 2000
--- aclocal.m4 Fri Jan 14 20:22:58 2000
***************
*** 11,17 ****
dnl execute code, if variable is not set in namespace
dnl
AC_DEFUN(AC_PHP_ONCE,[
! unique=
echo $ac_n "$2$ac_c" | tr -c -d a-zA-Z0-9
cmd="echo $ac_n \"\$$1$unique$ac_c\""
if test -n "$unique" && test "eval $cmd" = ""
; then
eval "$1$unique=set"
--- 11,17 ----
dnl execute code, if variable is not set in namespace
dnl
AC_DEFUN(AC_PHP_ONCE,[
! unique=echo $ac_n "$2$ac_c" | sed -e 's/[^a-zA-Z0-9]//g'
cmd="echo $ac_n \"\$$1$unique$ac_c\""
if test -n "$unique" && test "eval $cmd" = ""
; then
eval "$1$unique=set"
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"Are you suggesting coconuts migrate??"