@@ -180,12 +180,19 @@ AC_USE_SYSTEM_EXTENSIONS
180
180
AC_PROG_LN_S
181
181
182
182
dnl Support systems with system libraries in e.g. /usr/lib64
183
- PHP_ARG_WITH(libdir, for system library directory,
184
- [ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib] ,lib,no)
185
-
186
- PHP_ARG_ENABLE(rpath, whether to enable runpaths,
187
- [ --disable-rpath Disable passing additional runtime library
188
- search paths] , yes, no)
183
+ PHP_ARG_WITH([ libdir] ,
184
+ [ for system library directory] ,
185
+ [ AS_HELP_STRING ( [ --with-libdir=NAME] ,
186
+ [ Look for libraries in .../NAME rather than .../lib] ) ] ,
187
+ [ lib] ,
188
+ [ no] )
189
+
190
+ PHP_ARG_ENABLE([ rpath] ,
191
+ [ whether to enable runpaths] ,
192
+ [ AS_HELP_STRING ( [ --disable-rpath] ,
193
+ [ Disable passing additional runtime library search paths] ) ] ,
194
+ [ yes] ,
195
+ [ no] )
189
196
190
197
dnl check for -R, etc. switch
191
198
PHP_RUNPATH_SWITCH
@@ -204,8 +211,12 @@ case $php_cv_bison_version in
204
211
;;
205
212
esac
206
213
207
- PHP_ARG_ENABLE(re2c-cgoto, whether to enable computed goto gcc extension with re2c,
208
- [ --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension] , no, no)
214
+ PHP_ARG_ENABLE([ re2c-cgoto] ,
215
+ [ whether to enable computed goto gcc extension with re2c] ,
216
+ [ AS_HELP_STRING ( [ --enable-re2c-cgoto] ,
217
+ [ Enable -g flag to re2c to use computed goto gcc extension] ) ] ,
218
+ [ no] ,
219
+ [ no] )
209
220
210
221
if test "$PHP_RE2C_CGOTO" = "no"; then
211
222
RE2C_FLAGS=""
@@ -764,8 +775,12 @@ if test "$ac_cv__compiler_c99_vla" = yes; then
764
775
fi
765
776
766
777
dnl Check valgrind support
767
- PHP_ARG_WITH(valgrind, [ whether to enable valgrind support] ,
768
- [ --with-valgrind=DIR Enable valgrind support] , yes, no)
778
+ PHP_ARG_WITH([ valgrind] ,
779
+ [ whether to enable valgrind support] ,
780
+ [ AS_HELP_STRING ( [ --with-valgrind=DIR] ,
781
+ [ Enable valgrind support] ) ] ,
782
+ [ yes] ,
783
+ [ no] )
769
784
770
785
if test "$PHP_VALGRIND" != "no"; then
771
786
@@ -799,8 +814,12 @@ PHP_CONFIGURE_PART(General settings)
799
814
800
815
PHP_HELP_SEPARATOR([ General settings:] )
801
816
802
- PHP_ARG_ENABLE(gcov, whether to include gcov symbols,
803
- [ --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!] , no, no)
817
+ PHP_ARG_ENABLE([ gcov] ,
818
+ [ whether to include gcov symbols] ,
819
+ [ AS_HELP_STRING ( [ --enable-gcov] ,
820
+ [ Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!] ) ] ,
821
+ [ no] ,
822
+ [ no] )
804
823
805
824
if test "$PHP_GCOV" = "yes"; then
806
825
@@ -880,8 +899,12 @@ if test "$PHP_GCOV" = "yes"; then
880
899
CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
881
900
fi
882
901
883
- PHP_ARG_ENABLE(debug, whether to include debugging symbols,
884
- [ --enable-debug Compile with debugging symbols] , no, no)
902
+ PHP_ARG_ENABLE([ debug] ,
903
+ [ whether to include debugging symbols] ,
904
+ [ AS_HELP_STRING ( [ --enable-debug] ,
905
+ [ Compile with debugging symbols] ) ] ,
906
+ [ no] ,
907
+ [ no] )
885
908
886
909
if test "$PHP_DEBUG" = "yes"; then
887
910
PHP_DEBUG=1
@@ -909,9 +932,12 @@ else
909
932
ZEND_DEBUG=no
910
933
fi
911
934
912
- PHP_ARG_WITH(layout, layout of installed files,
913
- [ --with-layout=TYPE Set how installed files will be laid out. Type can
914
- be either PHP or GNU @<:@ PHP@:>@ ] , PHP, no)
935
+ PHP_ARG_WITH([ layout] ,
936
+ [ layout of installed files] ,
937
+ [ AS_HELP_STRING ( [ --with-layout=TYPE] ,
938
+ [ Set how installed files will be laid out. Type can be either PHP or GNU [ PHP] ] ) ] ,
939
+ [ PHP] ,
940
+ [ no] )
915
941
916
942
case $PHP_LAYOUT in
917
943
GNU)
@@ -922,9 +948,12 @@ case $PHP_LAYOUT in
922
948
;;
923
949
esac
924
950
925
- PHP_ARG_WITH(config-file-path, path to configuration file,
926
- [ --with-config-file-path=PATH
927
- Set the path in which to look for php.ini @<:@ PREFIX/lib@:>@ ] , DEFAULT, no)
951
+ PHP_ARG_WITH([ config-file-path] ,
952
+ [ path to configuration file] ,
953
+ [ AS_HELP_STRING ( [ --with-config-file-path=PATH] ,
954
+ [ Set the path in which to look for php.ini [ PREFIX/lib] ] ) ] ,
955
+ [ DEFAULT] ,
956
+ [ no] )
928
957
929
958
if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
930
959
case $PHP_LAYOUT in
@@ -938,27 +967,38 @@ if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
938
967
fi
939
968
940
969
AC_MSG_CHECKING ( [ where to scan for configuration files] )
941
- PHP_ARG_WITH(config-file-scan-dir,,
942
- [ --with-config-file-scan-dir=PATH
943
- Set the path where to scan for configuration files] , DEFAULT, no)
970
+ PHP_ARG_WITH([ config-file-scan-dir] ,,
971
+ [ AS_HELP_STRING ( [ --with-config-file-scan-dir=PATH] ,
972
+ [ Set the path where to scan for configuration files] ) ] ,
973
+ [ DEFAULT] ,
974
+ [ no] )
975
+
944
976
if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
945
977
PHP_CONFIG_FILE_SCAN_DIR=
946
978
fi
947
979
AC_MSG_RESULT ( [ $PHP_CONFIG_FILE_SCAN_DIR] )
948
980
949
981
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
950
982
951
- PHP_ARG_ENABLE(sigchild, whether to enable PHP's own SIGCHLD handler,
952
- [ --enable-sigchild Enable PHP's own SIGCHLD handler] , no, no)
983
+ PHP_ARG_ENABLE([ sigchild] ,
984
+ [ whether to enable PHP's own SIGCHLD handler] ,
985
+ [ AS_HELP_STRING ( [ --enable-sigchild] ,
986
+ [ Enable PHP's own SIGCHLD handler] ) ] ,
987
+ [ no] ,
988
+ [ no] )
953
989
954
990
if test "$PHP_SIGCHILD" = "yes"; then
955
991
AC_DEFINE ( PHP_SIGCHILD , 1 , [ ] )
956
992
else
957
993
AC_DEFINE ( PHP_SIGCHILD , 0 , [ ] )
958
994
fi
959
995
960
- PHP_ARG_ENABLE(libgcc, whether to explicitly link against libgcc,
961
- [ --enable-libgcc Enable explicitly linking against libgcc] , no, no)
996
+ PHP_ARG_ENABLE([ libgcc] ,
997
+ [ whether to explicitly link against libgcc] ,
998
+ [ AS_HELP_STRING ( [ --enable-libgcc] ,
999
+ [ Enable explicitly linking against libgcc] ) ] ,
1000
+ [ no] ,
1001
+ [ no] )
962
1002
963
1003
if test "$PHP_LIBGCC" = "yes"; then
964
1004
PHP_LIBGCC_LIBPATH(gcc)
@@ -969,17 +1009,25 @@ if test "$PHP_LIBGCC" = "yes"; then
969
1009
PHP_ADD_LIBRARY(gcc, yes)
970
1010
fi
971
1011
972
- PHP_ARG_ENABLE(short-tags, whether to enable short tags by default,
973
- [ --disable-short-tags Disable the short-form <? start tag by default] , yes, no)
1012
+ PHP_ARG_ENABLE([ short-tags] ,
1013
+ [ whether to enable short tags by default] ,
1014
+ [ AS_HELP_STRING ( [ --disable-short-tags] ,
1015
+ [ Disable the short-form <? start tag by default] ) ] ,
1016
+ [ yes] ,
1017
+ [ no] )
974
1018
975
1019
if test "$PHP_SHORT_TAGS" = "yes"; then
976
1020
AC_DEFINE ( DEFAULT_SHORT_OPEN_TAG , "1" , [ ] )
977
1021
else
978
1022
AC_DEFINE ( DEFAULT_SHORT_OPEN_TAG , "0" , [ ] )
979
1023
fi
980
1024
981
- PHP_ARG_ENABLE(dmalloc, whether to enable dmalloc,
982
- [ --enable-dmalloc Enable dmalloc] , no, no)
1025
+ PHP_ARG_ENABLE([ dmalloc] ,
1026
+ [ whether to enable dmalloc] ,
1027
+ [ AS_HELP_STRING ( [ --enable-dmalloc] ,
1028
+ [ Enable dmalloc] ) ] ,
1029
+ [ no] ,
1030
+ [ no] )
983
1031
984
1032
if test "$PHP_DMALLOC" = "yes"; then
985
1033
AC_CHECK_LIB ( dmalloc , dmalloc_error , [
@@ -991,8 +1039,12 @@ if test "$PHP_DMALLOC" = "yes"; then
991
1039
] )
992
1040
fi
993
1041
994
- PHP_ARG_ENABLE(ipv6, whether to enable IPv6 support,
995
- [ --disable-ipv6 Disable IPv6 support] , yes, no)
1042
+ PHP_ARG_ENABLE([ ipv6] ,
1043
+ [ whether to enable IPv6 support] ,
1044
+ [ AS_HELP_STRING ( [ --disable-ipv6] ,
1045
+ [ Disable IPv6 support] ) ] ,
1046
+ [ yes] ,
1047
+ [ no] )
996
1048
997
1049
if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
998
1050
AC_DEFINE ( HAVE_IPV6 , 1 , [ Whether to enable IPv6 support] )
@@ -1002,8 +1054,12 @@ dnl ##
1002
1054
dnl ## DTRACE CHECKS
1003
1055
dnl ## Note: this has to be done after SAPI configuration!
1004
1056
dnl ##
1005
- PHP_ARG_ENABLE(dtrace, whether to enable DTrace support,
1006
- [ --enable-dtrace Enable DTrace support] , no, no)
1057
+ PHP_ARG_ENABLE([ dtrace] ,
1058
+ [ whether to enable DTrace support] ,
1059
+ [ AS_HELP_STRING ( [ --enable-dtrace] ,
1060
+ [ Enable DTrace support] ) ] ,
1061
+ [ no] ,
1062
+ [ no] )
1007
1063
1008
1064
if test "$PHP_DTRACE" = "yes"; then
1009
1065
AC_CHECK_HEADERS ( [ sys/sdt.h] , [
@@ -1018,8 +1074,11 @@ if test "$PHP_DTRACE" = "yes"; then
1018
1074
fi
1019
1075
1020
1076
AC_MSG_CHECKING ( [ how big to make fd sets] )
1021
- PHP_ARG_ENABLE(fd-setsize,,
1022
- [ --enable-fd-setsize Set size of descriptor sets] , no, no)
1077
+ PHP_ARG_ENABLE([ fd-setsize] ,,
1078
+ [ AS_HELP_STRING ( [ --enable-fd-setsize] ,
1079
+ [ Set size of descriptor sets] ) ] ,
1080
+ [ no] ,
1081
+ [ no] )
1023
1082
1024
1083
if test "$PHP_FD_SETSIZE" != "no"; then
1025
1084
if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
@@ -1053,11 +1112,10 @@ dnl
1053
1112
dnl Check if all enabled by default extensions should be disabled
1054
1113
dnl
1055
1114
1056
- AC_ARG_ENABLE ( all ,
1057
- [ --disable-all Disable all extensions which are enabled by default
1058
- ] , [
1059
- PHP_ENABLE_ALL=$enableval
1060
- ] )
1115
+ AC_ARG_ENABLE ( [ all] ,
1116
+ [ AS_HELP_STRING ( [ --disable-all] ,
1117
+ [ Disable all extensions which are enabled by default] ) ] ,
1118
+ [ PHP_ENABLE_ALL=$enableval] )
1061
1119
1062
1120
# reading config stubs
1063
1121
esyscmd ( ./build/config-stubs ext )
@@ -1115,8 +1173,12 @@ if test "$PHP_CLI" = "no"; then
1115
1173
with_pear=no
1116
1174
fi
1117
1175
1118
- PHP_ARG_WITH(pear, [ whether to install PEAR] ,
1119
- [ --with-pear=DIR Install PEAR in DIR @<:@ PREFIX/lib/php@:>@ ] , no, yes)
1176
+ PHP_ARG_WITH([ pear] ,
1177
+ [ whether to install PEAR] ,
1178
+ [ AS_HELP_STRING ( [ [ --with-pear[ =DIR] ] ] ,
1179
+ [ Install PEAR in DIR [ PREFIX/lib/php] ] ) ] ,
1180
+ [ no] ,
1181
+ [ yes] )
1120
1182
1121
1183
if test "$PHP_PEAR" != "no"; then
1122
1184
0 commit comments