]> granicus.if.org Git - php/commitdiff
make configure more robust if extensions add libraries without
authorHartmut Holzgraefe <hholzgra@php.net>
Thu, 3 Jan 2002 20:30:07 +0000 (20:30 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Thu, 3 Jan 2002 20:30:07 +0000 (20:30 +0000)
checking for their existance first

old behaviour was to fail on the next library check with misleading
messages, now configure will work but make will fail with a
'lib not found' message

acinclude.m4
configure.in

index 817e6dc904bd090a3f54a75fee26feb5c6673441..7fb579d1b882ecf8ee0cdebd4c5be505f9b85574 100644 (file)
@@ -749,7 +749,7 @@ AC_DEFUN(PHP_ADD_LIBRARY,[
  c|c_r|pthread*) ;;
  *)
 ifelse($3,,[
-   PHP_X_ADD_LIBRARY($1,$2,LIBS)
+   PHP_X_ADD_LIBRARY($1,$2,PHP_EXTENSION_LIBS)
 ],[
    if test "$ext_shared" = "yes"; then
      PHP_X_ADD_LIBRARY($1,$2,$3)
index f2d1972084fb2e69b3a2ddb815f8e8711cfb589c..508ae4494d80807e2e3aa86f04698727a33fc6de 100644 (file)
@@ -727,7 +727,7 @@ if test "$abs_srcdir" != "$abs_builddir"; then
   INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
 fi
 
-EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
+EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS $PHP_EXTENSION_LIBS"
 unset LIBS LDFLAGS
 
 PHP_CONFIGURE_PART(Configuring TSRM)