Download src/php/php-src/ext/date/config0.m4 from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/config0.m4
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/date/config0.m4
-
curl -L -o config0.m4 https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/date/config0.m4
1.59 kB
| dnl Check for headers needed by timelib | |
| AC_CHECK_HEADERS([io.h]) | |
| dnl Check for strtoll, atoll | |
| AC_CHECK_FUNCS([strtoll atoll]) | |
| AX_CHECK_COMPILE_FLAG([-Wno-implicit-fallthrough], | |
| [PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -Wno-implicit-fallthrough"],, | |
| [-Werror]) | |
| PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -DHAVE_TIMELIB_CONFIG_H=1" | |
| PHP_TIMELIB_CFLAGS="$PHP_DATE_CFLAGS" | |
| PHP_DATE_CFLAGS="$PHP_DATE_CFLAGS -I@ext_builddir@/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1" | |
| AX_CHECK_COMPILE_FLAG([-fwrapv], | |
| [PHP_TIMELIB_CFLAGS="$PHP_TIMELIB_CFLAGS -fwrapv"],, | |
| [-Werror]) | |
| timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c lib/parse_posix.c | |
| lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c" | |
| PHP_NEW_EXTENSION([date], | |
| [php_date.c], | |
| [no],, | |
| [$PHP_DATE_CFLAGS]) | |
| PHP_ADD_SOURCES([$ext_dir], [$timelib_sources], [$PHP_TIMELIB_CFLAGS]) | |
| PHP_ADD_BUILD_DIR([$ext_builddir/lib], [1]) | |
| PHP_ADD_INCLUDE([$ext_builddir/lib]) | |
| PHP_ADD_INCLUDE([$ext_srcdir/lib]) | |
| PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_config.h]) | |
| AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1], | |
| [Define to 1 if you have the <timelib_config.h> header file.]) | |
| cat > $ext_builddir/lib/timelib_config.h <<EOF | |
| #ifdef PHP_WIN32 | |
| # include "config.w32.h" | |
| #else | |
| # include <php_config.h> | |
| #endif | |
| #include <inttypes.h> | |
| #include <stdint.h> | |
| #include "zend.h" | |
| #define timelib_malloc emalloc | |
| #define timelib_realloc erealloc | |
| #define timelib_calloc ecalloc | |
| #define timelib_strdup estrdup | |
| #define timelib_strndup estrndup | |
| #define timelib_free efree | |
| EOF | |