]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Import external libecap in adaptation/ecap/, where it belongs.
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 9 Mar 2011 17:39:02 +0000 (10:39 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 9 Mar 2011 17:39:02 +0000 (10:39 -0700)
Either we finally found the working combination of libtool variables or the
previous attempts were failing due to libtool confusion over leftovers in
the build directory (or we will discover more build failures later!).

Polished libecap-related Makefile variable names based on squid-dev review.

configure.ac
src/adaptation/Makefile.am
src/adaptation/ecap/Makefile.am

index 0289c3f6f414594aede6cebcc0e8c606678702de..ad8c89bf999dcc625e363a2040ca57dfcc52bcbc 100644 (file)
@@ -915,16 +915,16 @@ then
 
     dnl eCAP support requires libecap.
     dnl This Squid supports libecap v0.2.x.
-    dnl Use EXT prefix so that make and libtool messages distinguish between
-    dnl external libecap (that we check for here) and our own convenience lib.
-    PKG_CHECK_MODULES(EXTLIBECAP, [libecap > 0.2 libecap < 0.3])
+    dnl Use EXT_ prefix to distinguish external libecap (that we check for
+    dnl here) from our own convenience ecap library in Makefiles.
+    PKG_CHECK_MODULES(EXT_LIBECAP, [libecap > 0.2 libecap < 0.3])
 fi
 
 AM_CONDITIONAL(USE_ECAP, test "x$squid_opt_use_ecap" = "xyes")
 if test "x$squid_opt_use_ecap" = "xyes";
 then
     AC_DEFINE(USE_ECAP,1,[Enable eCAP support])
-    ECAP_LIBS="ecap/libxecap.la"
+    ECAP_LIBS="ecap/libsquid-ecap.la"
     squid_opt_use_adaptation=yes
 else
     AC_DEFINE(USE_ECAP,0,[Disable eCAP support])
index 0a1d39909c29d7600232c74bb57e46c4de006517..b9466de778053c95a6d6b4c3412941ae7cd46f3e 100644 (file)
@@ -45,6 +45,6 @@ libadaptation_la_SOURCES = \
        History.h 
 
 # add libraries for specific adaptation schemes
-libadaptation_la_LIBADD = $(EXTLIBECAP_LIBS) $(ECAP_LIBS) $(ICAP_LIBS)
+libadaptation_la_LIBADD = $(ECAP_LIBS) $(ICAP_LIBS)
 
 libadaptation_la_DEPENDENCIES = $(ECAP_LIBS) $(ICAP_LIBS)
index 4e414e68524e3e2c97e4fbe29c96d5d5e58988a4..6df5938a8d0f378b4170d23225adf803a4bc2544 100644 (file)
@@ -1,9 +1,9 @@
 include $(top_srcdir)/src/Common.am
 include $(top_srcdir)/src/TestHeaders.am
 
-noinst_LTLIBRARIES = libxecap.la
+noinst_LTLIBRARIES = libsquid-ecap.la
 
-libxecap_la_SOURCES = \
+libsquid_ecap_la_SOURCES = \
        Config.h \
        Config.cc \
        Host.h \
@@ -18,9 +18,5 @@ libxecap_la_SOURCES = \
        Registry.h
 
 # add libecap using its pkg-config-produced configuration variables
-libxecap_la_CXXFLAGS = $(EXTLIBECAP_CFLAGS)
-
-## It is tempting to put libxecap_la_LDFLAGS/LIBADD here, but it leads to weird
-## linking errors. For example, "make clean all" works, but rebuilding after
-## modifying a single source file leads to libtool's "file not found" errors.
-## libxecap_la_LIBADD = $(EXTLIBECAP_LIBS)
+libsquid_ecap_la_CXXFLAGS = $(EXT_LIBECAP_CFLAGS)
+libsquid_ecap_la_LIBADD = $(EXT_LIBECAP_LIBS)