From fa41fe864653a1696e5ead5f2e5c3a01b91ba708 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 9 Jan 2002 03:40:51 +0000 Subject: [PATCH] Reverted Hartmut's patch as it caused more trouble than it solved. # Broke my build totally. The 'correct' fix is to make the checks better # everywhere. ie. to check for existance of the library/symbol in some lib. --- acinclude.m4 | 2 +- configure.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 014478e5cb..986a10dc74 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -749,7 +749,7 @@ AC_DEFUN(PHP_ADD_LIBRARY,[ c|c_r|pthread*) ;; *) ifelse($3,,[ - PHP_X_ADD_LIBRARY($1,$2,PHP_EXTENSION_LIBS) + PHP_X_ADD_LIBRARY($1,$2,LIBS) ],[ if test "$ext_shared" = "yes"; then PHP_X_ADD_LIBRARY($1,$2,$3) diff --git a/configure.in b/configure.in index 9bb88cf2dc..fa77e0ba99 100644 --- a/configure.in +++ b/configure.in @@ -242,7 +242,7 @@ AC_CHECK_LIB(nsl, gethostname, [ fi -AC_CHECK_LIB(dl, dlopen,[LIBS="-ldl $LIBS"]) +AC_CHECK_LIB(dl, dlopen,[PHP_ADD_LIBRARY(dl)]) dnl The sin may be in a library which need not be specifed dnl as well as res_search resides in libsocket @@ -736,7 +736,7 @@ if test "$abs_srcdir" != "$abs_builddir"; then INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM" fi -EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS $PHP_EXTENSION_LIBS" +EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS" unset LIBS LDFLAGS PHP_CONFIGURE_PART(Configuring TSRM) -- 2.40.0