From: Wez Furlong Date: Fri, 19 Dec 2003 17:00:14 +0000 (+0000) Subject: Make these build with new win32 build system. X-Git-Tag: php-5.0.0b3RC2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51c342efae957a5f361cc14517cc0033f294581a;p=php Make these build with new win32 build system. --- diff --git a/ext/pdf/config.w32 b/ext/pdf/config.w32 new file mode 100644 index 0000000000..017d197358 --- /dev/null +++ b/ext/pdf/config.w32 @@ -0,0 +1,22 @@ +// $Id$ +// vim:ft=javascript + +ARG_WITH("pdf", "PDF support", "no"); + +if (PHP_PDF != "no") { + + if (CHECK_HEADER_ADD_INCLUDE("pdflib.h", "CFLAGS_PDF", PHP_PDF) && + CHECK_LIB("libtiff.lib", "pdf", PHP_PDF) && + CHECK_LIB("libpng.lib", "pdf", PHP_PDF) && + CHECK_LIB("zlib.lib", "pdf", PHP_PDF) && + CHECK_LIB("gdi32.lib", "pdf", PHP_PDF) && + CHECK_LIB("pdflib.lib", "pdf", PHP_PDF)) { + EXTENSION('pdf', 'pdf.c'); + + AC_DEFINE('HAVE_PDFLIB', 1); + + } else { + WARNING("pdf not enabled; libraries and headers not found"); + } +} + diff --git a/ext/pspell/config.w32 b/ext/pspell/config.w32 new file mode 100644 index 0000000000..33f8f9d2c9 --- /dev/null +++ b/ext/pspell/config.w32 @@ -0,0 +1,18 @@ +// $Id$ +// vim:ft=javascript + +ARG_WITH("pspell", "pspell/aspell (whatever it's called this month) support", "no"); + +if (PHP_PSPELL != "no") { + + if (CHECK_HEADER_ADD_INCLUDE("pspell.h", "CFLAGS_PSPELL", PHP_PHP_BUILD + "\\include\\pspell;" + PHP_PSPELL) && + CHECK_LIB("aspell-15.lib", "pspell", PHP_PSPELL)) { + EXTENSION('pspell', 'pspell.c'); + + AC_DEFINE('HAVE_PSPELL', 1); + + } else { + WARNING("pspell not enabled; libraries and headers not found"); + } +} + diff --git a/ext/snmp/config.w32 b/ext/snmp/config.w32 new file mode 100644 index 0000000000..4bf6750d41 --- /dev/null +++ b/ext/snmp/config.w32 @@ -0,0 +1,18 @@ +// $Id$ +// vim:ft=javascript + +ARG_WITH("snmp", "SNMP support", "no"); + +if (PHP_SNMP != "no") { + + if (CHECK_HEADER_ADD_INCLUDE("snmp.h", "CFLAGS_SNMP", PHP_PHP_BUILD + "\\include\\ucd-snmp;" + PHP_PHP_BUILD + "\\include\\net-snmp;" + PHP_SNMP) && + CHECK_LIB("libsnmp.lib", "snmp", PHP_SNMP)) { + EXTENSION('snmp', 'snmp.c'); + + AC_DEFINE('HAVE_SNMP', 1); + + } else { + WARNING("snmp not enabled; libraries and headers not found"); + } +} + diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 7696760713..2128648e53 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -91,7 +91,11 @@ #include "keytools.h" #include "parse.h" #include "mib.h" -#include "version.h" +#ifndef PHP_WIN32 +/* this doesn't appear to be needed under win32 (perhaps at all) + * and the header file is not present in my UCD-SNMP headers */ +# include "version.h" +#endif #include "transform_oids.h" #endif /* Ugly macro, since the length of OIDs in UCD-SNMP and NET-SNMP diff --git a/ext/sockets/config.w32 b/ext/sockets/config.w32 new file mode 100644 index 0000000000..587b9a1b12 --- /dev/null +++ b/ext/sockets/config.w32 @@ -0,0 +1,15 @@ +// $Id$ +// vim:ft=javascript + +ARG_ENABLE("sockets", "SOCKETS support", "no"); + +if (PHP_SOCKETS != "no") { + + if (CHECK_LIB("ws2_32.lib", "sockets", PHP_SOCKETS)) { + EXTENSION('sockets', 'sockets.c php_sockets_win.c'); + AC_DEFINE('HAVE_SOCKETS', 1); + } else { + WARNING("sockets not enabled; libraries and headers not found"); + } +} + diff --git a/ext/sybase_ct/config.w32 b/ext/sybase_ct/config.w32 new file mode 100644 index 0000000000..bf56bd1402 --- /dev/null +++ b/ext/sybase_ct/config.w32 @@ -0,0 +1,18 @@ + +// $Id$ +// vim:ft=javascript + +ARG_WITH("sybase-ct", "SYBASE_CT support", "no"); + +if (PHP_SYBASE_CT != "no") { + + if (CHECK_HEADER_ADD_INCLUDE("ctpublic.h", "CFLAGS_SYBASE_CT", PHP_PHP_BUILD + "\\sybase\\include;" + PHP_SYBASE_CT) && + CHECK_LIB("libcs.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT) && + CHECK_LIB("libct.lib", "sybase_ct", PHP_PHP_BUILD + "\\sybase\\lib;" + PHP_SYBASE_CT)) { + EXTENSION('sybase_ct', 'php_sybase_ct.c'); + AC_DEFINE('HAVE_SYBASE_CT', 1); + } else { + WARNING("sybase_ct not enabled; libraries and headers not found"); + } +} + diff --git a/ext/tidy/config.w32 b/ext/tidy/config.w32 new file mode 100644 index 0000000000..0f47864fa2 --- /dev/null +++ b/ext/tidy/config.w32 @@ -0,0 +1,19 @@ +// $Id$ +// vim:ft=javascript + +ARG_WITH("tidy", "TIDY support", "no"); + +if (PHP_TIDY != "no") { + if (CHECK_LIB("libtidy.lib", "tidy", PHP_TIDY) && + ( + CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") || + CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) || + CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true) + )) { + EXTENSION("tidy", "tidy.c"); + AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library'); + } else { + WARNING("tidy not enabled; libraries and headers not found"); + } +} +