181
181
dnl PHP_ADD_SOURCES(source-path, sources [, special-flags [, type]])
182
182
dnl
183
183
dnl Adds sources which are located relative to source-path to the array of type
184
- dnl type. Sources are processed with optional special-flags which are passed to
185
- dnl the compiler. Sources can be either written in C or C++ (filenames shall end
186
- dnl in .c or .cpp, respectively).
184
+ dnl type. The blank-or-newline separated list of "sources" are processed with
185
+ dnl optional special-flags which are passed to the compiler. Sources can be
186
+ dnl either written in C or C++ (filenames shall end in .c or .cpp,
187
+ dnl respectively).
187
188
dnl
188
189
dnl Note: If source-path begins with a "/", the "/" is removed and the path is
189
190
dnl interpreted relative to the top build-directory.
@@ -223,7 +224,8 @@ dnl PHP_ADD_SOURCES_X(source-path, sources[, special-flags[, target-var[, shared
223
224
dnl
224
225
dnl Additional to PHP_ADD_SOURCES (see above), this lets you set the name of the
225
226
dnl array target-var directly, as well as whether shared objects will be built
226
- dnl from the sources. Should not be used directly.
227
+ dnl from the blank-or-newline-separated list of "sources". Should not be used
228
+ dnl directly.
227
229
dnl
228
230
AC_DEFUN ( [ PHP_ADD_SOURCES_X] ,[
229
231
dnl Relative to source- or build-directory?
@@ -239,7 +241,7 @@ dnl how to build .. shared or static?
239
241
240
242
dnl Iterate over the sources.
241
243
old_IFS=[ $] IFS
242
- for ac_src in $2 ; do
244
+ for ac_src in m4_normalize ( m4_expand ( [ $2 ] ) ) ; do
243
245
244
246
dnl Remove the suffix.
245
247
IFS=.
@@ -848,8 +850,9 @@ dnl PHP_SELECT_SAPI(name, type[, sources [, extra-cflags]])
848
850
dnl
849
851
dnl When developing PHP SAPI modules, this macro specifies the SAPI "name" by
850
852
dnl its "type", how PHP is supposed to be built (static, shared, bundle, or
851
- dnl program). It optionally adds the source files "sources" and compilation
852
- dnl flags "extra-cflags" to build the SAPI-specific objects. For example:
853
+ dnl program). It optionally adds the blank-or-newline-separated source files
854
+ dnl "sources" and compilation flags "extra-cflags" to build the SAPI-specific
855
+ dnl objects. For example:
853
856
dnl PHP_SELECT_SAPI([apache2handler],
854
857
dnl [shared],
855
858
dnl [<sources...>],
917
920
dnl Includes an extension in the build.
918
921
dnl
919
922
dnl "extname" is the name of the extension.
920
- dnl "sources" is a list of files relative to the subdir which are used to build
921
- dnl the extension.
923
+ dnl "sources" is a blank-or-newline-separated list of source files relative to
924
+ dnl the subdir which are used to build the extension.
922
925
dnl "shared" can be set to "shared" or "yes" to build the extension as a
923
926
dnl dynamically loadable library. Optional parameter "sapi_class" can be set to
924
927
dnl "cli" to mark extension build only with CLI or CGI sapi's. "extra-cflags"
0 commit comments