Skip to content

Commit

Permalink
Quote PHP_ARG_ENABLE/WITH arguments and add AS_HELP_STRING (#181)
Browse files Browse the repository at this point in the history
When running ./configure --help this outputs and formats the help
output properly. Quoting arguments in Autoconf macros ensures
consistency and special characters handling.
  • Loading branch information
petk authored Aug 6, 2024
1 parent 5990fa6 commit 8a16f57
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions config.m4
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
PHP_ARG_ENABLE(uopz, whether to enable uopz support,
[ --enable-uopz Enable uopz support])
PHP_ARG_ENABLE([uopz],
[whether to enable uopz support],
[AS_HELP_STRING([--enable-uopz],
[Enable uopz support])])

PHP_ARG_ENABLE(uopz-coverage, whether to enable uopz coverage support,
[ --enable-uopz-coverage Enable uopz coverage support], no, no)
PHP_ARG_ENABLE([uopz-coverage],
[whether to enable uopz coverage support],
[AS_HELP_STRING([--enable-uopz-coverage],
[Enable uopz coverage support])],
[no],
[no])

PHP_ARG_WITH(uopz-sanitize, whether to enable AddressSanitizer for uopz,
[ --with-uopz-sanitize Build uopz with AddressSanitizer support], no, no)
PHP_ARG_WITH([uopz-sanitize],
[whether to enable AddressSanitizer for uopz],
[AS_HELP_STRING([--with-uopz-sanitize],
[Build uopz with AddressSanitizer support])],
[no],
[no])

if test "$PHP_UOPZ" != "no"; then
if test "$PHP_UOPZ_SANITIZE" != "no"; then
Expand Down

0 comments on commit 8a16f57

Please sign in to comment.