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

Autotools: Refactor configure options #524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
46 changes: 32 additions & 14 deletions config.m4
Original file line number Diff line number Diff line change
@@ -1,17 +1,35 @@
PHP_ARG_WITH(xlswriter, xlswriter support,
[ --with-xlswriter Include xlswriter support], yes)

PHP_ARG_WITH(libxlsxwriter, system libxlsxwriter,
[ --with-libxlsxwriter=DIR Use system libxlsxwriter], no, no)

PHP_ARG_WITH(libxlsxio, system libxlsxio,
[ --with-libxlsxio=DIR Use system libxlsxio], no, no)

PHP_ARG_WITH(openssl, openssl MD5,
[ --with-openssl=DIR Use openssl MD5], no, no)

PHP_ARG_ENABLE(reader, enable xlsx reader support,
[ --enable-reader Enable xlsx reader?], yes, yes)
PHP_ARG_WITH([xlswriter],
[xlswriter support],
[AS_HELP_STRING([--without-xlswriter],
[Disable xlswriter support])],
[yes])

PHP_ARG_WITH([libxlsxwriter],
[system libxlsxwriter],
[AS_HELP_STRING([[--with-libxlsxwriter[=DIR]]],
[Use system libxlsxwriter])],
[no],
[no])

PHP_ARG_WITH([libxlsxio],
[system libxlsxio],
[AS_HELP_STRING([[--with-libxlsxio[=DIR]]],
[Use system libxlsxio])],
[no],
[no])

PHP_ARG_WITH([openssl],
[openssl MD5],
[AS_HELP_STRING([[--with-openssl[=DIR]]],
[Use openssl MD5])],
[no],
[no])

PHP_ARG_ENABLE([reader],
[whether to enable the xlsx reader support],
[AS_HELP_STRING([--disable-reader],
[Disable xlsx reader])],
[yes])

if test "$PHP_XLSWRITER" != "no"; then
xls_writer_sources="
Expand Down
Loading