cvs: php4 /ext/gmp config.m4
| From: | Jani Taskinen | Date: | Fri, 21 Jun 2002 00:16:02 +0000 |
| Subject: | cvs: php4 /ext/gmp config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12429@lists.php.net to get a copy of this message | ||
sniper Thu Jun 20 20:16:02 2002 EDT
Modified files:
/php4/ext/gmp config.m4
Log:
Make this extension compile as shared extension too.
Index: php4/ext/gmp/config.m4
diff -u php4/ext/gmp/config.m4:1.6 php4/ext/gmp/config.m4:1.7
--- php4/ext/gmp/config.m4:1.6 Tue Mar 12 11:19:34 2002
+++ php4/ext/gmp/config.m4 Thu Jun 20 20:15:48 2002
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.6 2002/03/12 16:19:34 sas Exp $
+dnl $Id: config.m4,v 1.7 2002/06/21 00:15:48 sniper Exp $
dnl
PHP_ARG_WITH(gmp, for GNU MP support,
@@ -17,9 +17,9 @@
AC_MSG_ERROR(Unable to locate gmp.h)
fi
PHP_ADD_INCLUDE($GMP_DIR/include)
-
PHP_NEW_EXTENSION(gmp, gmp.c, $ext_shared)
AC_DEFINE(HAVE_GMP, 1, [ ])
- PHP_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/lib)
+ PHP_SUBST(GMP_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/lib, GMP_SHARED_LIBADD)
fi