2002-04-18 19:58:08 +08:00
|
|
|
/*
|
|
|
|
Build Configuration for Win32.
|
|
|
|
This has only been tested with MS VisualC++ 6 (and later).
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
$Id$
|
|
|
|
*/
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Default PHP / PEAR directories */
|
2002-10-16 22:53:34 +08:00
|
|
|
#define CONFIGURATION_FILE_PATH "php.ini"
|
2003-12-04 09:40:59 +08:00
|
|
|
#define PEAR_INSTALLDIR "c:\\php5\\pear"
|
|
|
|
#define PHP_BINDIR "c:\\php5"
|
2002-10-16 22:53:34 +08:00
|
|
|
#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot"))?getenv("SystemRoot"):""
|
|
|
|
#define PHP_CONFIG_FILE_SCAN_DIR ""
|
2003-12-04 09:40:59 +08:00
|
|
|
#define PHP_DATADIR "c:\\php5"
|
|
|
|
#define PHP_EXTENSION_DIR "c:\\php5"
|
|
|
|
#define PHP_INCLUDE_PATH ".;c:\\php5\\pear"
|
|
|
|
#define PHP_LIBDIR "c:\\php5"
|
|
|
|
#define PHP_LOCALSTATEDIR "c:\\php5"
|
|
|
|
#define PHP_PREFIX "c:\\php5"
|
|
|
|
#define PHP_SYSCONFDIR "c:\\php5"
|
2001-07-06 17:53:39 +08:00
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Enable / Disable BCMATH extension (default: enabled) */
|
2003-12-10 07:59:33 +08:00
|
|
|
#define HAVE_BCMATH 1
|
1999-09-17 07:18:15 +08:00
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Enable / Disable crypt() function (default: enabled) */
|
2002-03-08 03:46:23 +08:00
|
|
|
#define HAVE_CRYPT 1
|
|
|
|
#define PHP_STD_DES_CRYPT 1
|
|
|
|
#define PHP_EXT_DES_CRYPT 0
|
2002-05-10 12:58:05 +08:00
|
|
|
#define PHP_MD5_CRYPT 1
|
2002-03-08 03:46:23 +08:00
|
|
|
#define PHP_BLOWFISH_CRYPT 0
|
2000-09-06 18:00:34 +08:00
|
|
|
|
2002-04-19 00:34:13 +08:00
|
|
|
/* Enable / Disable CALENDAR extension (default: enabled) */
|
|
|
|
#define HAVE_CALENDAR 1
|
|
|
|
|
2002-04-29 01:50:09 +08:00
|
|
|
/* Enable / Disable CTYPE extension (default: enabled) */
|
|
|
|
#define HAVE_CTYPE 1
|
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Enable / Disable FTP extension (default: enabled) */
|
|
|
|
#define HAVE_FTP 1
|
2000-12-14 19:46:10 +08:00
|
|
|
|
2002-11-13 14:47:43 +08:00
|
|
|
/* Enable / Disable MBSTRING extension (default: disabled) */
|
2002-12-03 04:11:59 +08:00
|
|
|
/* #define HAVE_MBSTRING 0 */
|
|
|
|
/* #define HAVE_MBREGEX 0 */
|
|
|
|
/* #define HAVE_MBSTR_CN 0 */
|
|
|
|
/* #define HAVE_MBSTR_JA 0 */
|
|
|
|
/* #define HAVE_MBSTR_KR 0 */
|
|
|
|
/* #define HAVE_MBSTR_RU 0 */
|
|
|
|
/* #define HAVE_MBSTR_TW 0 */
|
2002-04-29 01:50:09 +08:00
|
|
|
|
2003-08-15 00:49:56 +08:00
|
|
|
/* If you have the .Net SDK in your include path, define this
|
|
|
|
* to compile .Net support into your COM extension. */
|
|
|
|
#define HAVE_MSCOREE_H 0
|
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Enable / Disable ODBC extension (default: enabled) */
|
|
|
|
#define HAVE_UODBC 1
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Enable / Disable PCRE extension (default: enabled) */
|
|
|
|
#define HAVE_BUNDLED_PCRE 1
|
|
|
|
#define HAVE_PCRE 1
|
|
|
|
|
2002-04-19 00:34:13 +08:00
|
|
|
/* Enable / Disable SESSION extension (default: enabled) */
|
2003-08-26 10:50:39 +08:00
|
|
|
#define HAVE_PHP_SESSION 1
|
2002-04-19 00:34:13 +08:00
|
|
|
|
|
|
|
/* Enable / Disable TOKENIZER extension (default: enabled) */
|
|
|
|
#define HAVE_TOKENIZER 1
|
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Enable / Disable WDDX extension (default: enabled) */
|
|
|
|
#define HAVE_WDDX 1
|
1999-07-20 00:08:43 +08:00
|
|
|
|
2003-06-26 05:37:50 +08:00
|
|
|
/* Enable / Disable XML extensions (default: enabled) */
|
2003-05-24 16:03:38 +08:00
|
|
|
#define HAVE_LIBXML 1
|
2003-06-26 05:37:50 +08:00
|
|
|
#define HAVE_DOM 1
|
|
|
|
#define HAVE_SIMPLEXML 1
|
|
|
|
#define HAVE_XML 1
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2002-12-26 21:40:32 +08:00
|
|
|
/* Enable / Disable ZLIB extension (default: enabled) */
|
|
|
|
#define HAVE_ZLIB 1
|
|
|
|
|
2003-06-27 22:32:59 +08:00
|
|
|
/* Enable / Disable SQLite extension (default: enabled) */
|
|
|
|
#define HAVE_SQLITE 1
|
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* PHP Runtime Configuration */
|
|
|
|
#define FORCE_CGI_REDIRECT 1
|
|
|
|
#define PHP_URL_FOPEN 1
|
1999-04-08 05:05:13 +08:00
|
|
|
#define PHP_SAFE_MODE 0
|
|
|
|
#define MAGIC_QUOTES 0
|
|
|
|
#define USE_CONFIG_FILE 1
|
2001-05-13 04:11:01 +08:00
|
|
|
#define DEFAULT_SHORT_OPEN_TAG "1"
|
2002-12-02 05:37:14 +08:00
|
|
|
#define ENABLE_PATHINFO_CHECK 1
|
1999-04-08 05:05:13 +08:00
|
|
|
|
2002-04-18 19:58:08 +08:00
|
|
|
/* Platform-Specific Configuration. Should not be changed. */
|
|
|
|
#define PHP_SIGCHILD 0
|
|
|
|
#define HAVE_LIBBIND 1
|
|
|
|
#define HAVE_GETSERVBYNAME 1
|
|
|
|
#define HAVE_GETSERVBYPORT 1
|
|
|
|
#define HAVE_GETPROTOBYNAME 1
|
|
|
|
#define HAVE_GETPROTOBYNUMBER 1
|
|
|
|
#define STDIN_FILENO 0
|
|
|
|
#define STDOUT_FILENO 1
|
|
|
|
#define STDERR_FILENO 2
|
|
|
|
#define HAVE_ERRMSG_H 0
|
1999-11-10 03:53:38 +08:00
|
|
|
#undef HAVE_ADABAS
|
|
|
|
#undef HAVE_SOLID
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
#undef HAVE_LINK
|
|
|
|
#undef HAVE_SYMLINK
|
2003-11-30 06:48:42 +08:00
|
|
|
|
|
|
|
/* its in win32/time.c */
|
|
|
|
#define HAVE_USLEEP 1
|
|
|
|
|
1999-10-21 02:09:44 +08:00
|
|
|
#define HAVE_GETCWD 1
|
2000-05-23 22:58:43 +08:00
|
|
|
#define HAVE_POSIX_READDIR_R 1
|
1999-04-08 05:05:13 +08:00
|
|
|
#define NEED_ISBLANK 1
|
2000-06-29 21:31:52 +08:00
|
|
|
#define DISCARD_PATH 0
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
#undef HAVE_SETITIMER
|
1999-11-10 03:53:38 +08:00
|
|
|
#undef HAVE_IODBC
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_LIBDL 1
|
|
|
|
#define HAVE_SENDMAIL 1
|
|
|
|
#define HAVE_GETTIMEOFDAY 1
|
|
|
|
#define HAVE_PUTENV 1
|
|
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
#define HAVE_TZSET 1
|
2001-07-22 21:16:15 +08:00
|
|
|
#define HAVE_TZNAME 1
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
#undef HAVE_FLOCK
|
1999-09-08 04:29:31 +08:00
|
|
|
#define HAVE_ALLOCA 1
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
#undef HAVE_SYS_TIME_H
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_SIGNAL_H 1
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
#undef HAVE_ST_BLKSIZE
|
|
|
|
#undef HAVE_ST_BLOCKS
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_ST_RDEV 1
|
|
|
|
#define HAVE_UTIME_NULL 1
|
|
|
|
#define HAVE_VPRINTF 1
|
|
|
|
#define STDC_HEADERS 1
|
|
|
|
#define REGEX 1
|
|
|
|
#define HSREGEX 1
|
|
|
|
#define HAVE_GCVT 1
|
|
|
|
#define HAVE_GETLOGIN 1
|
|
|
|
#define HAVE_GETTIMEOFDAY 1
|
|
|
|
#define HAVE_MEMCPY 1
|
|
|
|
#define HAVE_MEMMOVE 1
|
|
|
|
#define HAVE_PUTENV 1
|
|
|
|
#define HAVE_REGCOMP 1
|
|
|
|
#define HAVE_SETLOCALE 1
|
2001-01-15 00:36:30 +08:00
|
|
|
#define HAVE_LOCALECONV 1
|
1999-07-23 22:14:42 +08:00
|
|
|
#define HAVE_LOCALE_H 1
|
2001-03-11 11:49:21 +08:00
|
|
|
#ifndef HAVE_LIBBIND
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_SETVBUF 1
|
|
|
|
#endif
|
2002-03-19 05:09:23 +08:00
|
|
|
#define HAVE_SHUTDOWN 1
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_SNPRINTF 1
|
|
|
|
#define HAVE_VSNPRINTF 1
|
|
|
|
#define HAVE_STRCASECMP 1
|
|
|
|
#define HAVE_STRDUP 1
|
|
|
|
#define HAVE_STRERROR 1
|
|
|
|
#define HAVE_STRSTR 1
|
|
|
|
#define HAVE_TEMPNAM 1
|
|
|
|
#define HAVE_UTIME 1
|
* fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-17 01:06:53 +08:00
|
|
|
#undef HAVE_DIRENT_H
|
2002-03-14 23:13:08 +08:00
|
|
|
#define HAVE_ASSERT_H 1
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
#define HAVE_GRP_H 0
|
|
|
|
#define HAVE_PWD_H 1
|
|
|
|
#define HAVE_STRING_H 1
|
1999-06-17 11:45:20 +08:00
|
|
|
#undef HAVE_SYS_FILE_H
|
|
|
|
#undef HAVE_SYS_SOCKET_H
|
|
|
|
#undef HAVE_SYS_WAIT_H
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_SYSLOG_H 1
|
1999-06-17 11:45:20 +08:00
|
|
|
#undef HAVE_UNISTD_H
|
1999-04-08 05:05:13 +08:00
|
|
|
#define HAVE_LIBDL 1
|
|
|
|
#define HAVE_LIBM 1
|
|
|
|
#define HAVE_CUSERID 0
|
|
|
|
#undef HAVE_RINT
|
|
|
|
#define HAVE_STRFTIME 1
|
- Add length modifiers(ll, j, t, h, hh)
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 17:12:54 +08:00
|
|
|
/* int and long are stll 32bit in 64bit compiles */
|
1999-05-20 20:06:45 +08:00
|
|
|
#define SIZEOF_INT 4
|
- Add length modifiers(ll, j, t, h, hh)
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 17:12:54 +08:00
|
|
|
#define SIZEOF_LONG 4
|
|
|
|
/* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
|
|
|
|
#define SIZEOF_LONG_LONG_INT 0
|
|
|
|
#define SIZEOF_LONG_LONG 0
|
|
|
|
#define SIZEOF_INTMAX_T 0
|
2003-11-13 18:32:05 +08:00
|
|
|
#define ssize_t SSIZE_T
|
- Add length modifiers(ll, j, t, h, hh)
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 17:12:54 +08:00
|
|
|
#ifdef _WIN64
|
|
|
|
# define SIZEOF_SIZE_T 8
|
|
|
|
# define SIZEOF_PTRDIFF_T 8
|
|
|
|
#else
|
|
|
|
# define SIZEOF_SIZE_T 4
|
|
|
|
# define SIZEOF_PTRDIFF_T 4
|
|
|
|
#endif
|
2002-05-19 22:32:24 +08:00
|
|
|
#define HAVE_GLOB
|
2002-06-07 23:24:03 +08:00
|
|
|
#define PHP_SHLIB_SUFFIX "dll"
|
2003-06-09 09:00:23 +08:00
|
|
|
#define HAVE_SQLDATASOURCES
|
2003-06-28 00:43:05 +08:00
|
|
|
#define POSIX_MALLOC_THRESHOLD 10
|
2002-09-03 02:03:24 +08:00
|
|
|
|
|
|
|
/* Win32 supports strcoll */
|
|
|
|
#define HAVE_STRCOLL 1
|
2003-01-16 00:53:49 +08:00
|
|
|
|
|
|
|
/* Win32 support proc_open */
|
|
|
|
#define PHP_CAN_SUPPORT_PROC_OPEN 1
|
2003-10-04 10:51:19 +08:00
|
|
|
|
|
|
|
#define HAVE_MBLEN
|