Skip to content

Commit 33070cd

Browse files
petkviest
authored andcommitted
Autotools: Refactor configure options
- The AS_HELP_STRING prettifies the `./configure -h` output - Argument quoted - Configure options that are by default enabled have the opposite option in the help output - --enable-reader option 5th argument has been removed because that is meant only to the main argument to set additional ext_shared variables and some other internal handling - Check messages adjusted a bit
1 parent f0c6300 commit 33070cd

File tree

1 file changed

+32
-14
lines changed

1 file changed

+32
-14
lines changed

config.m4

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,35 @@
1-
PHP_ARG_WITH(xlswriter, xlswriter support,
2-
[ --with-xlswriter Include xlswriter support], yes)
3-
4-
PHP_ARG_WITH(libxlsxwriter, system libxlsxwriter,
5-
[ --with-libxlsxwriter=DIR Use system libxlsxwriter], no, no)
6-
7-
PHP_ARG_WITH(libxlsxio, system libxlsxio,
8-
[ --with-libxlsxio=DIR Use system libxlsxio], no, no)
9-
10-
PHP_ARG_WITH(openssl, openssl MD5,
11-
[ --with-openssl=DIR Use openssl MD5], no, no)
12-
13-
PHP_ARG_ENABLE(reader, enable xlsx reader support,
14-
[ --enable-reader Enable xlsx reader?], yes, yes)
1+
PHP_ARG_WITH([xlswriter],
2+
[xlswriter support],
3+
[AS_HELP_STRING([--without-xlswriter],
4+
[Disable xlswriter support])],
5+
[yes])
6+
7+
PHP_ARG_WITH([libxlsxwriter],
8+
[system libxlsxwriter],
9+
[AS_HELP_STRING([[--with-libxlsxwriter[=DIR]]],
10+
[Use system libxlsxwriter])],
11+
[no],
12+
[no])
13+
14+
PHP_ARG_WITH([libxlsxio],
15+
[system libxlsxio],
16+
[AS_HELP_STRING([[--with-libxlsxio[=DIR]]],
17+
[Use system libxlsxio])],
18+
[no],
19+
[no])
20+
21+
PHP_ARG_WITH([openssl],
22+
[openssl MD5],
23+
[AS_HELP_STRING([[--with-openssl[=DIR]]],
24+
[Use openssl MD5])],
25+
[no],
26+
[no])
27+
28+
PHP_ARG_ENABLE([reader],
29+
[whether to enable the xlsx reader support],
30+
[AS_HELP_STRING([--disable-reader],
31+
[Disable xlsx reader])],
32+
[yes])
1533

1634
if test "$PHP_XLSWRITER" != "no"; then
1735
xls_writer_sources="

0 commit comments

Comments
 (0)