Skip to content

Commit

Permalink
- Fixed bug: #18560, the macro was not defined always.
Browse files Browse the repository at this point in the history
  • Loading branch information
foobar committed Jul 25, 2002
1 parent 2dbd418 commit 272913f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
16 changes: 16 additions & 0 deletions acinclude.m4
Expand Up @@ -1539,3 +1539,19 @@ AC_DEFUN(PHP_CHECK_FUNC,[
])
esac
])

dnl
dnl PHP_AP_EXTRACT_VERSION(/path/httpd)
dnl This macro is used to get a comparable
dnl version for apache1/2.
dnl
AC_DEFUN(PHP_AP_EXTRACT_VERSION,[
ac_output=`$1 -v 2>&1`
ac_IFS=$IFS
IFS="- /.
"
set $ac_output
IFS=$ac_IFS
APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6`
])
11 changes: 0 additions & 11 deletions sapi/apache/config.m4
Expand Up @@ -2,17 +2,6 @@ dnl
dnl $Id$
dnl

AC_DEFUN(PHP_AP_EXTRACT_VERSION,[
ac_output=`$1 -v 2>&1`
ac_IFS=$IFS
IFS="- /.
"
set $ac_output
IFS=$ac_IFS
APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6`
])

AC_MSG_CHECKING(for Apache 1.x module support via DSO through APXS)
AC_ARG_WITH(apxs,
[ --with-apxs[=FILE] Build shared Apache 1.x module. FILE is the optional
Expand Down

0 comments on commit 272913f

Please sign in to comment.