Skip to content

Instantly share code, notes, and snippets.

View caioceccon's full-sized avatar

Caio Ceccon caioceccon

View GitHub Profile
PHP_ARG_ENABLE(authmail, whether to enable Auth Mail support,
[ --enable-authmail Enable Auth Mail support])
if test "$PHP_AUTHMAIL" = "yes"; then
AC_DEFINE(HAVE_AUTHMAIL, 1, [Whether you have Auth Mail])
PHP_ADD_LIBRARY_WITH_PATH(esmtp, /usr/lib, PHP_AUTHMAIL_SHARED_LIBADD) PHP_SUBST(PHP_AUTHMAIL_SHARED_LIBADD)
PHP_NEW_EXTENSION(authmail, authmail.c, $ext_shared)
AC_DEFINE(HAVE_LIBESMTP,1,[ ]) fi
@caioceccon
caioceccon / gist:705717
Created November 18, 2010 21:55
php_authmail.h
#ifndef PHP_AUTHMAIL_H
#define PHP_AUTHMAIL_H 1
#ifdef ZTS
#include "TSRM.h"
#endif
#include "libesmtp.h"
#include "auth-client.h"
PHP_ARG_ENABLE(authmail, whether to enable Auth Mail support,
[ --enable-authmail Enable Auth Mail support])
if test "$PHP_AUTHMAIL" = "yes"; then
AC_DEFINE(HAVE_AUTHMAIL, 1, [Whether you have Auth Mail])
PHP_NEW_EXTENSION(authmail, authmail.c, $ext_shared)
PHP_ADD_LIBRARY_WITH_PATH(esmtp, /usr/lib, PHP_AUTHMAIL_SHARED_LIBADD)
PHP_SUBST(PHP_AUTHMAIL_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBESMTP,1,[ ])