1// $Id$ 2// vim:ft=javascript 3 4EXTENSION("date", "php_date.c", false, "/Iext/date/lib /DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 /DHAVE_TIMELIB_CONFIG_H=1"); 5ADD_SOURCES("ext/date/lib", "astro.c timelib.c dow.c parse_date.c parse_tz.c tm2unixtime.c unixtime2tm.c parse_iso_intervals.c interval.c", "date"); 6AC_DEFINE('HAVE_DATE', 1, 'Have date/time support'); 7 8ADD_FLAG('CFLAGS_DATE', "/wd4244"); 9 10var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true); 11tl_config.WriteLine("#include \"config.w32.h\""); 12tl_config.WriteLine("#include <php_stdint.h>"); 13tl_config.WriteLine("#define TIMELIB_OMIT_STDINT 1"); 14tl_config.WriteLine("#define HAVE_GETTIMEOFDAY 1"); 15tl_config.WriteLine("#include \"zend.h\""); 16tl_config.WriteLine("#define timelib_malloc emalloc"); 17tl_config.WriteLine("#define timelib_realloc erealloc"); 18tl_config.WriteLine("#define timelib_calloc ecalloc"); 19tl_config.WriteLine("#define timelib_strdup estrdup"); 20tl_config.WriteLine("#define timelib_free efree"); 21tl_config.Close(); 22 23PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h"); 24AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h') 25