cvs: pecl /courierauth config.m4

From: Date: Mon, 11 Dec 2006 13:08:01 +0000
Subject: cvs: pecl /courierauth config.m4
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6789@lists.php.net to get a copy of this message
mike Mon Dec 11 13:08:01 2006 UTC Modified files: /pecl/courierauth config.m4 Log: - improve checks for ld an cpp flags http://cvs.php.net/viewvc.cgi/pecl/courierauth/config.m4?r1=1.1&r2=1.2&diff_format=u Index: pecl/courierauth/config.m4 diff -u pecl/courierauth/config.m4:1.1 pecl/courierauth/config.m4:1.2 --- pecl/courierauth/config.m4:1.1 Sun Dec 10 20:42:36 2006 +++ pecl/courierauth/config.m4 Mon Dec 11 13:08:01 2006 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.1 2006/12/10 20:42:36 mike Exp $ +dnl $Id: config.m4,v 1.2 2006/12/11 13:08:01 mike Exp $ dnl config.m4 for extension courierauth PHP_ARG_WITH(courierauth, for courierauth support, @@ -23,8 +23,29 @@ AC_MSG_RESULT($COURIERAUTHCONFIG) fi - PHP_EVAL_LIBLINE("$COURIERAUTHCONFIG --ldflags -lcourierauth", COURIERAUTH_SHARED_LIBADD) - PHP_EVAL_INCLINE($COURIERAUTHCONFIG --cppflags) + AC_MSG_CHECKING(for courierauth ldflags) + COURIERAUTH_LIBS="$COURIERAUTHCONFIG --ldflags" + AC_MSG_RESULT("$COURIERAUTH_LIBS -lcourierauth") + if test -z "$COURIERAUTH_LIBS"; then + PHP_ADD_LIBRARY(courierauth, COURIERAUTH_SHARED_LIBADD) + else + PHP_EVAL_LIBLINE("$COURIERAUTH_LIBS -lcourierauth", COURIERAUTH_SHARED_LIBADD) + fi + + AC_MSG_CHECKING(for courierauth includes) + COURIERAUTH_INCS="$COURIERAUTHCONFIG --cppflags" + if test -z "$COURIERAUTH_INCS"; then + for i in /usr/local/include /usr/include; do + if test -f $i/courierauth.h; then + COURIERAUTH_INCS="-I$i" + PHP_ADD_INCLUDE($i) + break + fi + done + else + PHP_EVAL_INCLINE("$COURIERAUTH_INCS") + fi + AC_MSG_RESULT("$COURIERAUTH_INCS") if test "$PHP_COURIERAUTH_SECURITY_RISK" = "yes"; then AC_DEFINE(PHP_COURIERAUTH_SECURITY_RISK, 1, [passwd security risk])

« previous php.pecl.cvs (#6789) next »