summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-02-25 11:23:09 +0000
committerfoobar <sniper@php.net>2003-02-25 11:23:09 +0000
commit7bd710a6586139aa763d9c0ac53e8681c51be6dd (patch)
tree494024bd655fdd82d67728a508a3aa6cdf3957e3
parent5793784c93aa85ababbdc5a65f558e0fe13a615c (diff)
downloadphp-git-7bd710a6586139aa763d9c0ac53e8681c51be6dd.tar.gz
- Fixed bug #21224 (apache configure fails when using --enable-versioning)
-rw-r--r--configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index ad259a08d7..87be5ece14 100644
--- a/configure.in
+++ b/configure.in
@@ -779,8 +779,12 @@ PHP_HELP_SEPARATOR([Other settings:])
AC_MSG_CHECKING([whether to enable versioning])
AC_ARG_ENABLE(versioning,
[ --enable-versioning Export only required symbols.
- See INSTALL for more information],[
- PHP_VERSIONING=$enableval
+ See INSTALL for more information], [
+ if test "x$APXS" != "x"; then
+ PHP_VERSIONING=$enableval
+ else
+ PHP_VERSIONING=no
+ fi
],[
PHP_VERSIONING=no
])
@@ -789,7 +793,7 @@ AC_MSG_RESULT([$PHP_VERSIONING])
if test "$PHP_VERSIONING" = "yes"; then
test -z "$PHP_SYM_FILE" && PHP_SYM_FILE="$abs_srcdir/sapi/$PHP_SAPI/php.sym"
if test -f "$PHP_SYM_FILE"; then
- EXTRA_LDFLAGS="-export-symbols $PHP_SYM_FILE"
+ EXTRA_LDFLAGS="-export-symbols $PHP_SYM_FILE $EXTRA_LDFLAGS"
fi
fi