shie Mon Apr 19 11:50:50 2004 EDT
Modified files:
/non-pecl/simple_cvs config.m4
Log:
allow the module to be compiled as .so
http://cvs.php.net/diff.php/non-pecl/simple_cvs/config.m4?r1=1.1&r2=1.2&ty=u
Index: non-pecl/simple_cvs/config.m4
diff -u non-pecl/simple_cvs/config.m4:1.1 non-pecl/simple_cvs/config.m4:1.2
--- non-pecl/simple_cvs/config.m4:1.1 Wed Apr 14 12:42:41 2004
+++ non-pecl/simple_cvs/config.m4 Mon Apr 19 11:50:50 2004
@@ -1,63 +1,11 @@
-dnl $Id: config.m4,v 1.1 2004/04/14 16:42:41 shie Exp $
-dnl config.m4 for extension simple_cvs
+dnl
+dnl $Id: config.m4,v 1.2 2004/04/19 15:50:50 shie Exp $
+dnl
-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(simple_cvs, for simple_cvs support,
-dnl Make sure that the comment is aligned:
-dnl [ --with-simple_cvs Include simple_cvs support])
-
-dnl Otherwise use enable:
-
-dnl PHP_ARG_ENABLE(simple_cvs, whether to enable simple_cvs support,
-dnl Make sure that the comment is aligned:
-dnl [ --enable-simple_cvs Enable simple_cvs support])
+PHP_ARG_WITH(simple_cvs,for simple_cvs support,
+[ --with-simple_cvs[=DIR] Include simple_cvs support.])
if test "$PHP_SIMPLE_CVS" != "no"; then
- dnl Write more examples of tests here...
-
- dnl # --with-simple_cvs -> check with-path
- dnl SEARCH_PATH="/usr/local /usr" # you might want to change this
- dnl SEARCH_FOR="/include/simple_cvs.h" # you most likely want to change this
- dnl if test -r $PHP_SIMPLE_CVS/$SEARCH_FOR; then # path given as parameter
- dnl SIMPLE_CVS_DIR=$PHP_SIMPLE_CVS
- dnl else # search default path list
- dnl AC_MSG_CHECKING([for simple_cvs files in default path])
- dnl for i in $SEARCH_PATH ; do
- dnl if test -r $i/$SEARCH_FOR; then
- dnl SIMPLE_CVS_DIR=$i
- dnl AC_MSG_RESULT(found in $i)
- dnl fi
- dnl done
- dnl fi
- dnl
- dnl if test -z "$SIMPLE_CVS_DIR"; then
- dnl AC_MSG_RESULT([not found])
- dnl AC_MSG_ERROR([Please reinstall the simple_cvs distribution])
- dnl fi
-
- dnl # --with-simple_cvs -> add include path
- dnl PHP_ADD_INCLUDE($SIMPLE_CVS_DIR/include)
-
- dnl # --with-simple_cvs -> check for lib and symbol presence
- dnl LIBNAME=simple_cvs # you may want to change this
- dnl LIBSYMBOL=simple_cvs # you most likely want to change this
-
- dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
- dnl [
- dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SIMPLE_CVS_DIR/lib,
SIMPLE_CVS_SHARED_LIBADD)
- dnl AC_DEFINE(HAVE_SIMPLE_CVSLIB,1,[ ])
- dnl ],[
- dnl AC_MSG_ERROR([wrong simple_cvs lib version or lib not found])
- dnl ],[
- dnl -L$SIMPLE_CVS_DIR/lib -lm -ldl
- dnl ])
- dnl
- dnl PHP_SUBST(SIMPLE_CVS_SHARED_LIBADD)
-
PHP_NEW_EXTENSION(simple_cvs, simple_cvs.c simple_cvs_utils.c, $ext_shared)
+
fi
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php