Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --enable-spx-dev to compile with debug symbols #214

Merged
merged 1 commit into from
May 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions config.m4
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
PHP_ARG_ENABLE(SPX, whether to enable SPX extension,
[ --enable-spx Enable SPX extension])

PHP_ARG_ENABLE(SPX-DEV, whether to enable SPX developer build flags,
[ --enable-spx-dev Compile SPX with debugging symbols])

if test -z "$PHP_ZLIB_DIR"; then
PHP_ARG_WITH(zlib-dir, for ZLIB,
[ --with-zlib-dir[=DIR] Set the path to ZLIB install prefix.], no)
Expand All @@ -20,6 +23,11 @@ if test "$PHP_SPX" = "yes"; then
CFLAGS="$CFLAGS -DCONTINUOUS_INTEGRATION"
fi

if test "$PHP_SPX_DEV" = "yes"
then
CFLAGS="$CFLAGS -g"
fi

AC_MSG_CHECKING([for zlib header])
if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
Expand Down