Skip to content

Commit 7bd710a

Browse files
author
foobar
committed
- Fixed bug #21224 (apache configure fails when using --enable-versioning)
1 parent 5793784 commit 7bd710a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

configure.in

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,12 @@ PHP_HELP_SEPARATOR([Other settings:])
779779
AC_MSG_CHECKING([whether to enable versioning])
780780
AC_ARG_ENABLE(versioning,
781781
[ --enable-versioning Export only required symbols.
782-
See INSTALL for more information],[
783-
PHP_VERSIONING=$enableval
782+
See INSTALL for more information], [
783+
if test "x$APXS" != "x"; then
784+
PHP_VERSIONING=$enableval
785+
else
786+
PHP_VERSIONING=no
787+
fi
784788
],[
785789
PHP_VERSIONING=no
786790
])
@@ -789,7 +793,7 @@ AC_MSG_RESULT([$PHP_VERSIONING])
789793
if test "$PHP_VERSIONING" = "yes"; then
790794
test -z "$PHP_SYM_FILE" && PHP_SYM_FILE="$abs_srcdir/sapi/$PHP_SAPI/php.sym"
791795
if test -f "$PHP_SYM_FILE"; then
792-
EXTRA_LDFLAGS="-export-symbols $PHP_SYM_FILE"
796+
EXTRA_LDFLAGS="-export-symbols $PHP_SYM_FILE $EXTRA_LDFLAGS"
793797
fi
794798
fi
795799

0 commit comments

Comments
 (0)