1 diff -ur suphp-0.6.1/acinclude.m4 suphp-0.6.1.apr/acinclude.m4
2 --- suphp-0.6.1/acinclude.m4 2005-11-26 20:45:49.000000000 +0100
3 +++ suphp-0.6.1.apr/acinclude.m4 2006-01-27 18:53:40.000000000 +0100
5 dnl value of apr_config to fetch any necessary build/link information.
8 -AC_DEFUN(APR_FIND_APR, [
9 +AC_DEFUN([APR_FIND_APR], [
12 if test "$ac_cv_emxos2" = "yes"; then
14 AC_MSG_CHECKING(for APR)
16 [ --with-apr=DIR|FILE prefix for installed APR, path to APR build tree,
17 - or the full path to apr-config],
18 + or the full path to apr-1-config],
20 if test "$withval" = "no" || test "$withval" = "yes"; then
21 AC_MSG_ERROR([--with-apr requires a directory to be provided])
24 - if $TEST_X "$withval/bin/apr-config"; then
25 + if $TEST_X "$withval/bin/apr-1-config"; then
27 - apr_config="$withval/bin/apr-config"
28 - elif $TEST_X "$withval/apr-config"; then
29 + apr_config="$withval/bin/apr-1-config"
30 + elif $TEST_X "$withval/apr-1-config"; then
32 - apr_config="$withval/apr-config"
33 + apr_config="$withval/apr-1-config"
34 elif $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then
38 dnl if --with-apr is used, then the target prefix/directory must be valid
39 if test "$apr_found" != "yes"; then
40 AC_MSG_ERROR([the --with-apr parameter is incorrect. It must specify an install prefix, a
41 -build directory, or an apr-config file.])
42 +build directory, or an apr-1-config file.])
45 dnl if we have a bundled source directory, use it
47 apr_temp_abs_srcdir="`cd $1 && pwd`"
50 - apr_config="$2/apr-config"
51 + apr_config="$2/apr-1-config"
53 - apr_config="$1/apr-config"
54 + apr_config="$1/apr-1-config"
57 if test "$apr_found" = "no" && test -n "$3" && test "$3" = "1"; then
58 - if apr-config --help > /dev/null 2>&1 ; then
59 + if apr-1-config --help > /dev/null 2>&1 ; then
61 - apr_config="apr-config"
62 + apr_config="apr-1-config"
64 dnl look in some standard places (apparently not in builtin/default)
65 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do
66 - if $TEST_X "$lookdir/bin/apr-config"; then
67 + if $TEST_X "$lookdir/bin/apr-1-config"; then
69 - apr_config="$lookdir/bin/apr-config"
70 + apr_config="$lookdir/bin/apr-1-config"