cvs: Zend / Zend.m4 configure.in
| From: | Sascha Schumann | Date: | Thu, 24 Oct 2002 12:20:49 +0000 |
| Subject: | cvs: Zend / Zend.m4 configure.in | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-532@lists.php.net to get a copy of this message | ||
sas Thu Oct 24 08:20:49 2002 EDT
Modified files:
/Zend Zend.m4 configure.in
Log:
Split up dl/dlsym checks
Index: Zend/Zend.m4
diff -u Zend/Zend.m4:1.34 Zend/Zend.m4:1.35
--- Zend/Zend.m4:1.34 Mon Jun 24 12:10:33 2002
+++ Zend/Zend.m4 Thu Oct 24 08:20:49 2002
@@ -1,5 +1,5 @@
dnl
-dnl $Id: Zend.m4,v 1.34 2002/06/24 16:10:33 sebastian Exp $
+dnl $Id: Zend.m4,v 1.35 2002/10/24 12:20:49 sas Exp $
dnl
dnl This file contains Zend specific autoconf functions.
dnl
@@ -56,22 +56,6 @@
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
-AC_CHECK_LIB(dl, dlopen, [LIBS="-ldl $LIBS"])
-AC_CHECK_FUNC(dlopen,[AC_DEFINE(HAVE_LIBDL, 1,[ ])])
-
-dnl
-dnl Ugly hack to check if dlsym() requires a leading underscore in symbol name.
-dnl
-AC_MSG_CHECKING([whether dlsym() requires a leading underscore in symbol names])
-_LT_AC_TRY_DLOPEN_SELF([
- AC_MSG_RESULT(no)
-], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, 1, [Define if dlsym() requires a leading underscore in symbol
names. ])
-], [
- AC_MSG_RESULT(no)
-], [])
-
dnl This is required for QNX and may be some BSD derived systems
AC_CHECK_TYPE( uint, unsigned int )
AC_CHECK_TYPE( ulong, unsigned long )
@@ -90,7 +74,25 @@
])
+AC_DEFUN(LIBZEND_LIBDL_CHECKS,[
+AC_CHECK_LIB(dl, dlopen, [LIBS="-ldl $LIBS"])
+AC_CHECK_FUNC(dlopen,[AC_DEFINE(HAVE_LIBDL, 1,[ ])])
+])
+AC_DEFUN(LIBZEND_DLSYM_CHECK,[
+dnl
+dnl Ugly hack to check if dlsym() requires a leading underscore in symbol name.
+dnl
+AC_MSG_CHECKING([whether dlsym() requires a leading underscore in symbol names])
+_LT_AC_TRY_DLOPEN_SELF([
+ AC_MSG_RESULT(no)
+], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(DLSYM_NEEDS_UNDERSCORE, 1, [Define if dlsym() requires a leading underscore in symbol
names. ])
+], [
+ AC_MSG_RESULT(no)
+], [])
+])
Index: Zend/configure.in
diff -u Zend/configure.in:1.32 Zend/configure.in:1.33
--- Zend/configure.in:1.32 Sun Feb 3 15:00:45 2002
+++ Zend/configure.in Thu Oct 24 08:20:49 2002
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.32 2002/02/03 20:00:45 dickmeiss Exp $
+dnl $Id: configure.in,v 1.33 2002/10/24 12:20:49 sas Exp $
dnl Process this file with autoconf to produce a configure script.
AC_INIT(zend.c)
@@ -17,6 +17,8 @@
sinclude(Zend.m4)
LIBZEND_BASIC_CHECKS
+LIBZEND_LIBDL_CHECKS
+LIBZEND_DLSYM_CHECK
AM_PROG_LIBTOOL
if test "$enable_debug" != "yes"; then