2008-07-25 10:44:58 +08:00
|
|
|
dnl $Id$
|
|
|
|
dnl config.m4 for extension fileinfo
|
|
|
|
|
2008-07-25 17:16:22 +08:00
|
|
|
PHP_ARG_ENABLE(fileinfo, for fileinfo support,
|
|
|
|
[ --disable-fileinfo Disable fileinfo support], yes)
|
2008-07-25 10:44:58 +08:00
|
|
|
|
|
|
|
if test "$PHP_FILEINFO" != "no"; then
|
|
|
|
|
|
|
|
libmagic_sources=" \
|
|
|
|
libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
|
2009-03-16 07:04:19 +08:00
|
|
|
libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
|
|
|
|
libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
|
2008-08-06 22:30:04 +08:00
|
|
|
libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
|
2009-03-16 07:04:19 +08:00
|
|
|
libmagic/readcdf.c libmagic/readelf.c libmagic/softmagic.c"
|
2008-07-25 10:44:58 +08:00
|
|
|
|
|
|
|
PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
|
|
|
|
PHP_ADD_BUILD_DIR($ext_builddir/libmagic)
|
|
|
|
|
2008-08-06 22:42:38 +08:00
|
|
|
AC_CHECK_FUNCS([utimes strndup])
|
2008-07-25 17:16:22 +08:00
|
|
|
|
|
|
|
PHP_ADD_MAKEFILE_FRAGMENT
|
2008-07-25 10:44:58 +08:00
|
|
|
fi
|