File: config.m4

package info (click to toggle)
openchange 1%3A2.2-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 11,872 kB
  • sloc: ansic: 87,153; python: 9,391; sh: 3,958; perl: 2,537; cpp: 1,410; makefile: 1,380; sql: 702; yacc: 540; php: 440; lex: 341; xml: 14
file content (25 lines) | stat: -rw-r--r-- 1,291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
PHP_ARG_ENABLE(mapi, whether to enable mapi extension,
[  --enable-mapi enable mapi extension])

PHP_MAPI_H="php_mapi.h mapi_exception.h mapi_profile_db.h mapi_profile.h mapi_session.h  mapi_mailbox.h  mapi_mailbox.h mapi_folder.h mapi_message.h mapi_contact.h  mapi_task.h mapi_appointment.h  mapi_attachment.h mapi_table.h  mapi_message_table.h mapi_folder_table.h mapi_attachment_table.h"
PHP_MAPI_SRC="mapi.c mapi_exception.c mapi_profile_db.c mapi_profile.c  mapi_session.c mapi_mailbox.c  mapi_folder.c mapi_message.c  mapi_contact.c mapi_task.c  mapi_appointment.c  mapi_attachment.c mapi_table.c mapi_message_table.c mapi_folder_table.c mapi_attachment_table.c php_mapi_constants.c "
dnl remove php_mapi_constants.c when it is genration is included in the build

AC_DEFINE(HAVE_MAPI, 1, [Whether you have LibMapi ])
PHP_NEW_EXTENSION(openchange, $PHP_MAPI_SRC, $ext_shared)

LIBMAPI_INCLINE=`pkg-config --cflags libmapi`
LIBMAPI_LIBLINE=`pkg-config --libs libmapi`

if test x"$LIBMAPI_INCLINE" = x""; then
   AC_MSG_ERROR([libmapi not found])
fi

if test x"$LIBMAPI_LIBLINE" = x""; then
   AC_MSG_ERROR([libmapi not found])
fi

LDFLAGS="$LDFLAGS $LIBMAPI_LIBLINE"
INCLUDES="$INCLUDES $LIBMAPI_INCLINE -I$PHP_OPENCHANGE_PATH -I$PHP_OPENCHANGE_PATH/utils"

$PHP_MAPI_SRC : $PHP_MAPI_H