diff options
author | foobar <sniper@php.net> | 2003-02-10 17:09:48 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-02-10 17:09:48 +0000 |
commit | 011229ef15f91d2a50cfd75ec9b0e91c45ae1ccf (patch) | |
tree | 49d868fbde1f9e0c6c817018ff2a9026164398a8 /acinclude.m4 | |
parent | f196e11f423c6a9d398796a2e4cf63f4d9f42965 (diff) | |
download | php-git-011229ef15f91d2a50cfd75ec9b0e91c45ae1ccf.tar.gz |
- Updated libtool to 1.4.3 which has test for the sed problem..
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index ce47135199..e776f1584d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1780,76 +1780,3 @@ IFS="- /. APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6` ]) - -dnl PHP_PROG_SED -dnl ------------ -dnl Check for a fully-functional sed program, that truncates -dnl as few characters as possible. Prefer GNU sed if found. -dnl -dnl Based on LT_AC_PROG_SED (libtool CVS) -dnl -AC_DEFUN([PHP_PROG_SED], -[AC_MSG_CHECKING([for working sed]) -AC_CACHE_VAL(ac_cv_path_sed, -[ - -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/sed$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - { (exit 1); exit 1; } -} - _max=0 - _count=0 - - # Use the sed found in PATH, skip the rest - _sed=sed - - # Check for GNU sed and select it if it is found. - if "${_sed}" --version 2>&1 < /dev/null | grep -E '(GNU)' > /dev/null; then - ac_cv_path_sed=${_sed} - else - cat /dev/null > "$tmp/sed.in" - _count=0 - echo -n "0123456789" >"$tmp/sed.in" - while true; do - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" - mv "$tmp/sed.tmp" "$tmp/sed.in" - cp "$tmp/sed.in" "$tmp/sed.nl" - echo >>"$tmp/sed.nl" - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break - # 10000 chars as input seems more than enough - test $_count -gt 10 && break - _count=`expr $_count + 1` - if test $_count -gt $_max; then - _max=$_count - ac_cv_path_sed=${_sed} - fi - done - fi - rm -rf "$tmp" -]) -if test -z "$ac_cv_path_sed"; then - AC_MSG_ERROR([Could not find working sed on this system. Please install GNU sed.]) -else - SED=$ac_cv_path_sed - PHP_SUBST(SED) - AC_MSG_RESULT([$SED]) -fi -]) |