cvs: pear /PECL/smtp config.m4
| From: | Tal Peer | Date: | Sun, 15 Dec 2002 19:29:02 +0000 |
| Subject: | cvs: pear /PECL/smtp config.m4 | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7898@lists.php.net to get a copy of this message | ||
tal Sun Dec 15 14:29:02 2002 EDT
Modified files:
/pear/PECL/smtp config.m4
Log:
Make configure work
#naughty boy, rich, you thought you could fill it with CRLF
#and get away without me noticing?!
Index: pear/PECL/smtp/config.m4
diff -u pear/PECL/smtp/config.m4:1.1 pear/PECL/smtp/config.m4:1.2
--- pear/PECL/smtp/config.m4:1.1 Fri Nov 30 12:21:51 2001
+++ pear/PECL/smtp/config.m4 Sun Dec 15 14:28:59 2002
@@ -1,61 +1,22 @@
-dnl $Id: config.m4,v 1.1 2001/11/30 17:21:51 heyesr Exp $
-dnl config.m4 for extension smtp
-
-dnl Comments in this file start with the string 'dnl'.
-dnl Remove where necessary. This file will not work
-dnl without editing.
-
-dnl If your extension references something external, use with:
-
-dnl PHP_ARG_WITH(smtp, for smtp support,
-dnl Make sure that the comment is aligned:
-dnl [ --with-smtp Include smtp support])
-
-dnl Otherwise use enable:
-
-PHP_ARG_ENABLE(smtp, whether to enable smtp support,
-dnl Make sure that the comment is aligned:
-[ --enable-smtp Enable smtp support])
-
-if test "$PHP_SMTP" != "no"; then
- dnl Write more examples of tests here...
-
- dnl # --with-smtp -> check with-path
- dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
- dnl SEARCH_FOR="/include/smtp.h" # you most likely want to change this
- dnl if test -r $PHP_SMTP/; then # path given as parameter
- dnl SMTP_DIR=$PHP_SMTP
- dnl else # search default path list
- dnl AC_MSG_CHECKING(for smtp files in default path)
- dnl for i in $SEARCH_PATH ; do
- dnl if test -r $i/$SEARCH_FOR; then
- dnl SMTP_DIR=$i
- dnl AC_MSG_RESULT(found in $i)
- dnl fi
- dnl done
- dnl fi
- dnl
- dnl if test -z "$SMTP_DIR"; then
- dnl AC_MSG_RESULT(not found)
- dnl AC_MSG_ERROR(Please reinstall the smtp distribution)
- dnl fi
-
- dnl # --with-smtp -> add include path
- dnl PHP_ADD_INCLUDE($SMTP_DIR/include)
-
- dnl # --with-smtp -> chech for lib and symbol presence
- dnl LIBNAME=smtp # you may want to change this
- dnl LIBSYMBOL=smtp # you most likely want to change this
- dnl old_LIBS=$LIBS
- dnl LIBS="$LIBS -L$SMTP_DIR/lib -lm -ldl"
- dnl AC_CHECK_LIB($LIBNAME, $LIBSYMBOL, [AC_DEFINE(HAVE_SMTPLIB,1,[ ])],
- dnl [AC_MSG_ERROR(wrong smtp lib version or lib not found)])
- dnl LIBS=$old_LIBS
- dnl
- dnl PHP_SUBST(SMTP_SHARED_LIBADD)
- dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SMTP_DIR/lib, SMTP_SHARED_LIBADD)
-
- AC_DEFINE(HAVE_SMTP,1,[ ])
- PHP_EXTENSION(smtp, $ext_shared)
- PHP_SUBST(SMTP_SHARED_LIBADD)
-fi
+dnl $Id: config.m4,v 1.2 2002/12/15 19:28:59 tal Exp $
+dnl config.m4 for extension smtp
+
+dnl Comments in this file start with the string 'dnl'.
+dnl Remove where necessary. This file will not work
+dnl without editing.
+
+dnl If your extension references something external, use with:
+
+dnl PHP_ARG_WITH(smtp, for smtp support,
+dnl Make sure that the comment is aligned:
+dnl [ --with-smtp Include smtp support])
+
+dnl Otherwise use enable:
+
+PHP_ARG_ENABLE(smtp, whether to enable smtp support,
+[ --enable-smtp Enable smtp support])
+
+if test "$PHP_SMTP" != "no"; then
+ AC_DEFINE(HAVE_SMTP, 1, [ ])
+ PHP_NEW_EXTENSION(smtp, smtp.c, $ext_shared)
+fi