internals:cmake:status

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
internals:cmake:status [2008/07/05 18:33] – added some php macros defined in acinclude.m4 part I gloobinternals:cmake:status [2008/07/05 23:47] – added some php macros defined in acinclude.m4 part II gloob
Line 217: Line 217:
  
 === Build system base macros === === Build system base macros ===
-  +
   * <del>PHP_CANONICAL_HOST_TARGET</del>    * <del>PHP_CANONICAL_HOST_TARGET</del> 
   * <del>PHP_INIT_BUILD_SYSTEM</del>   * <del>PHP_INIT_BUILD_SYSTEM</del>
Line 240: Line 240:
   * PHP_ADD_INCLUDE(path [,before]) - add an include path. if before is 1, add in the beginning of INCLUDES.   * PHP_ADD_INCLUDE(path [,before]) - add an include path. if before is 1, add in the beginning of INCLUDES.
   * PHP_ADD_LIBRARY(library[, append[, shared-libadd]]) - add a library to the link line   * PHP_ADD_LIBRARY(library[, append[, shared-libadd]]) - add a library to the link line
 +  * PHP_ADD_LIBRARY_DEFER(library[, append[, shared-libadd]]) - add a library to the link line (deferred, not used during configure)
 +  * PHP_ADD_LIBRARY_WITH_PATH(library, path[, shared-libadd]) - add a library to the link line and path to linkpath/runpath.if shared-libadd is not empty and $ext_shared is yes,shared-libadd will be assigned the library information
 +  * PHP_ADD_LIBRARY_DEFER_WITH_PATH(library, path[, shared-libadd]) - add a library to the link line (deferred) and path to linkpath/runpath (not deferred) if shared-libadd is not empty and $ext_shared is yes,shared-libadd will be assigned the library information
 +  * PHP_ADD_FRAMEWORK(framework [,before]) - add a (Darwin / Mac OS X) framework to the link line. if before is 1, the framework is added to the beginning of the line.
 +  * PHP_ADD_FRAMEWORKPATH(path [,before]) - add a (Darwin / Mac OS X) framework path to the link and include lines. default paths include (but are not limited to) /Local/Library/Frameworks and /System/Library/Frameworks, so these don't need to be specifically added. if before is 1, the framework path is added to the beginning of the relevant lines.
 +  * PHP_ADD_FRAMEWORK_WITH_PATH(framework, path) - Adds a (Darwin / Mac OS X) framework path and the framework itself to the link and include lines.
 +  * PHP_SET_LIBTOOL_VARIABLE(var) - Set libtool variable.
 +
 +=== Wrapper macros for AC_ARG_WITH / AC_ARG_ENABLE ===
 +
 +  * PHP_ARG_WITH(arg-name, check message, help text[, default-val[, extension-or-not]]) - Sets PHP_ARG_NAME either to the user value or to the default value. default-val defaults to no.  This will also set the variable ext_shared,and will overwrite any previous variable of that name.If extension-or-not is yes (default), then do the ENABLE_ALL check and run the PHP_ARG_ANALYZE_EX.
 +  * PHP_ARG_ENABLE(arg-name, check message, help text[, default-val[, extension-or-not]]) - Sets PHP_ARG_NAME either to the user value or to the default value. default-val defaults to no.  This will also set the variable ext_shared, and will overwrite any previous variable of that name. If extension-or-not is yes (default), then do the ENABLE_ALL check and run the PHP_ARG_ANALYZE_EX.
 +
 +=== Build macros ===
 +
 +  * PHP_BUILD_THREAD_SAFE
 +  * PHP_REQUIRE_CXX
 +  * PHP_BUILD_SHARED
 +  * PHP_BUILD_STATIC
 +  * PHP_BUILD_BUNDLE
 +  * PHP_BUILD_PROGRAM
 +  * PHP_SHARED_MODULE(module-name, object-var, build-dir, cxx, zend_ext) - Basically sets up the link-stage for building module-name from object_var in build-dir.
 +  * PHP_SELECT_SAPI(name, type[, sources [, extra-cflags [, build-target]]]) - Selects the SAPI name and type (static, shared, programm) and optionally also the source-files for the SAPI-specific objects.
 +  * PHP_NEW_EXTENSION(extname, sources [, shared [,sapi_class[, extra-cflags[, cxx[, zend_ext]]]]]) - dnl Includes an extension in the build.
 +"extname" is the name of the ext/ subdir where the extension resides.
 +"sources" is a list of files relative to the subdir which are used to build the extension. 
 +"shared" can be set to "shared" or "yes" to build the extension as a dynamically loadable library. Optional parameter "sapi_class" can be set to "cli" to mark extension build only with CLI or CGI sapi's. 
 +"extra-cflags" are passed to the compiler, with @ext_srcdir@ and @ext_builddir@ being substituted.
 +  * PHP_WITH_SHARED - Checks whether $withval is "shared" or starts with "shared,XXX" and sets $shared to "yes" or "no", and removes "shared,?" stuff from $withval.
 +  * PHP_ADD_EXTENSION_DEP(extname, depends [, depconf]) -  This macro is scanned by genif.sh when it builds the internal functions list, so that modules can be init'd in the correct order
 +$1 = name of extension, $2 = extension upon which it depends 
 +$3 = optional: if true, it's ok for $2 to have not been configured default is false and should halt the build.
 +
 +=== Checks for structures, typedefs, broken functions, etc. ===
 +
 +  * _PHP_CHECK_SIZEOF(type, cross-value, extra-headers [, found-action [, not-found-action]])
 +  * PHP_CHECK_SIZEOF(type, cross-value, extra-headers)
 +  * PHP_CHECK_TYPES(type-list, include-file [, extra-headers])
 +  * PHP_CHECK_IN_ADDR_T
 +  * PHP_TIME_R_TYPE - Check type of reentrant time-related functions Type can be: irix, hpux or POSIX
 +  * PHP_PWRITE_TEST
 +  * PHP_PREAD_TEST
 +  * PHP_MISSING_TIME_R_DECL
 +  * PHP_READDIR_R_TYPE
 +  * PHP_TM_GMTOFF
 +  * PHP_STRUCT_FLOCK
 +  * PHP_SOCKLEN_T
 +  * PHP_MISSING_FCLOSE_DECL - See if we have broken header files like SunOS has.
 +  * PHP_AC_BROKEN_SPRINTF - Check for broken sprintf(), C99 conformance
 +  * PHP_AC_BROKEN_SNPRINTF - Check for broken snprintf(), C99 conformance
 +  * PHP_SOLARIS_PIC_WEIRDNESS - Solaris requires main code to be position independent in order to let shared objects find symbols.  Weird.  Ugly. 
 +Must be run after all --with-NN options that let the user choose dynamic extensions, and after the gcc test.
 +  * PHP_SYS_LFS - dnl The problem is that the default compilation flags in Solaris 2.6 won't let programs access large files;  you need to tell the compiler that you actually want your programs to work on large files.  For more details about this brain damage please see: http://www.sas.com/standards/large.file/x_open.20Mar96.html
 +  * PHP_SOCKADDR_CHECKS
 +  * PHP_DECLARED_TIMEZONE
 +  * PHP_EBCDIC
 +  * PHP_BROKEN_GETCWD - Some systems, notably Solaris, cause getcwd() or realpath to fail if a component of the path has execute but not read permissions
 +  * PHP_BROKEN_GLIBC_FOPEN_APPEND
 +  * PHP_FOPENCOOKIE
 +
 +=== Library/function existance and build sanity checks ===
 +
 +  * PHP_CHECK_LIBRARY(library, function [, action-found [, action-not-found [, extra-libs]]]) - Wrapper for AC_CHECK_LIB
 +  * PHP_CHECK_FRAMEWORK(framework, function [, action-found [, action-not-found ]]) - El cheapo wrapper for AC_CHECK_LIB
 +  * PHP_CHECK_FUNC_LIB(func, libs) - This macro checks whether 'func' or '__func' exists in the specified library. Defines HAVE_func and HAVE_library if found and adds the library to LIBS. This should be called in the ACTION-IF-NOT-FOUND part of PHP_CHECK_FUNC
 +  * PHP_CHECK_FUNC(func, ...) - This macro checks whether 'func' or '__func' exists in the default libraries and as a fall back in the specified library. Defines HAVE_func and HAVE_library if found and adds the library to LIBS.
 +  * PHP_TEST_BUILD(function, action-if-ok, action-if-not-ok [, extra-libs [, extra-source]]) - This macro checks whether build works and given function exists.
 +
 +
 +
 +
 +
internals/cmake/status.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1