File: config.m4

package info (click to toggle)
php-mailparse 3.1.4%2B2.1.7~dev20160128-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,484 kB
  • sloc: ansic: 4,080; xml: 363; php: 38; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PHP_ARG_ENABLE(mailparse, whether to enable mailparse support,
[  --enable-mailparse      Enable mailparse support.])

if test "$PHP_MAILPARSE" != "no"; then
  if test "$ext_shared" != "yes" && test "$enable_mbstring" != "yes"; then
	  AC_MSG_WARN(Activating mbstring)
	  enable_mbstring=yes
  fi

  AC_MSG_CHECKING(libmbfl headers)
  if test -f $abs_srcdir/ext/mbstring/libmbfl/mbfl/mbfilter.h; then
     dnl build in php-src tree
     AC_MSG_RESULT(found in $abs_srcdir/ext/mbstring)
  elif test -f $phpincludedir/ext/mbstring/libmbfl/mbfl/mbfilter.h; then
     dnl build alone
     AC_MSG_RESULT(found in $phpincludedir/ext/mbstring)
  else
     AC_MSG_ERROR(mbstring extension with libmbfl is missing)
  fi

  PHP_NEW_EXTENSION(mailparse, 	mailparse.c php_mailparse_mime.c php_mailparse_rfc822.c, $ext_shared)
  PHP_ADD_EXTENSION_DEP(mailparse, mbstring, true)
  PHP_ADD_MAKEFILE_FRAGMENT
fi