]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Various make dist/clean/distclean fixes. No code changes.
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 10 Dec 2008 20:19:50 +0000 (21:19 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 10 Dec 2008 20:19:50 +0000 (21:19 +0100)
- Workaround for src ../test-suite/test_tools.cc dependency crashing
  make distclean. Automatically copy the file to src to compile.
- "make dist" fixes to not include generated files. Mainly involves
  moving them to a suitable nodist_..._SOURCES variable.
- "make clean" fixes to remove generated files
- Always recurse configure into sub-projects. make dist fails othewise.
- Removed fatal error from squid_kerb_auth configure if no kerberos
  lib found (also a fatal error at build time)

12 files changed:
configure.in
errors/Makefile.am
helpers/negotiate_auth/squid_kerb_auth/configure.in
lib/Makefile.am
src/ICAP/Makefile.am
src/Makefile.am
src/adaptation/Makefile.am
src/auth/Makefile.am
src/fs/Makefile.am
src/icmp/Makefile.am
src/repl/Makefile.am
tools/Makefile.am

index c0eae384ef7afa874b1cb414f8076f68c9ed524c..581738559116634ba251bb35a552211822ba84ae 100644 (file)
@@ -1706,17 +1706,11 @@ if test -n "$NEGOTIATE_AUTH_HELPERS"; then
        else
            AC_MSG_ERROR(Negotiate Auth helper $helper does not exist)
        fi
-       # Kerberos helper has its own configure system
-       if test "$helper" = "squid_kerb_auth"; then
-           AC_CONFIG_SUBDIRS(helpers/negotiate_auth/squid_kerb_auth)
-       else
-           echo "ERROR: configure.in needs to be extended to support $helper!"
-           exit 1
-       fi
     done
     echo "Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS"
 fi
 AC_SUBST(NEGOTIATE_AUTH_HELPERS)
+AC_CONFIG_SUBDIRS(helpers/negotiate_auth/squid_kerb_auth)
 
 dnl Select digest auth scheme helpers to build
 if test -n "$AUTH_MODULE_digest"; then
index ac1532d691274f4eb665d2bc6c639e5542453f98..ab01c0250cedaf27ec571547e60feb7d1bd92d3e 100644 (file)
@@ -142,7 +142,7 @@ dist-hook:
                  || exit 1; \
          fi; \
        done; \
-       cp $(srcdir)/errorpage.css  $(distdir)/errorpage.css
+       cp -p $(srcdir)/errorpage.css  $(distdir)/errorpage.css
 
 translate:
        @ if test "$(PO2HTML)" != "" && test "$(PO2HTML)" != "no"; then \
index d77d86a24e93b3d523faa2606972d7bdb1834e22..2330b2af9dc3af96bea4f8c3654dc110a5c06667 100644 (file)
@@ -313,12 +313,6 @@ if test "$enable_arg" = "no"; then
   esac
 fi
 
-if test "$ac_cv_header_gssapi_h" = "no" -a "$ac_cv_header_gssapi_gssapi_h" = "no"; then
-        echo "GSSAPI headers are required to compile squid_kerb_auth"
-        echo "Please install gssapi headers and then re-run configure"
-        exit 1
-fi
-
 old_LIBS=$LIBS
 AC_CACHE_CHECK([for SPNEGO support],ac_cv_have_spnego,[
   AC_TRY_RUN([
index 9ad8a39d8ad5383a6d238614df0f3b70fad232ae..87e9d4190ed4711a90aa2c7fcf35128f26ba1f1b 100644 (file)
@@ -13,6 +13,7 @@ endif
 
 DIST_SUBDIRS += libTrie
 SUBDIRS      += libTrie
+CLEANFILES   =
 
 install: all
 install-strip: all
@@ -124,6 +125,7 @@ testHeaders: $(top_srcdir)/include/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
 
 tests_testAll_SOURCES= \
        tests/testArray.h \
index 2f91bf853bbffa7435a99f19f6915e5ab7aa12bd..0767983ff7d2602848339d44d90d71cf1dbdfbcf 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
+CLEANFILES =
 
 INCLUDES = \
        -I$(top_builddir)/include \
@@ -39,3 +40,4 @@ testHeaders: $(top_srcdir)/src/ICAP/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
index 3435437454ba05474d60ad3d0f5f07c8f74fb88d..b9ee1e1dc120f3d530b3e5ac5ad8caf243f2a7b4 100644 (file)
@@ -264,7 +264,9 @@ DISKIO_SOURCE = \
        DiskIO/DiskIOStrategy.h \
        DiskIO/IORequestor.h \
        DiskIO/DiskIOModule.h \
-       DiskIO/ReadRequest.h \
+       DiskIO/ReadRequest.h
+
+DISKIO_GEN_SOURCE = \
        DiskIO/DiskIOModules_gen.cc
 
 DiskIO/DiskIOModules_gen.cc: Makefile
@@ -672,6 +674,7 @@ noinst_HEADERS = ACLChecklist.cci \
        SquidTime.h
 
 nodist_squid_SOURCES = \
+       $(DISKIO_GEN_SOURCE) \
        repl_modules.cc \
        cf_parser.h \
        globals.cc \
@@ -1123,14 +1126,19 @@ uninstall-local:
 #              $(RM) -f $(DESTDIR)$(DEFAULT_CONFIG_FILE); \
 #      fi
 
-DISTCLEANFILES = cf_gen_defines.h cf.data cf_parser.h squid.conf.default squid.conf.documented \
-       globals.cc string_arrays.c repl_modules.cc DiskIO/DiskIOModules_gen.cc
+CLEANFILES = cf_gen_defines.h cf.data cf_parser.h squid.conf.default squid.conf.documented \
+       globals.cc string_arrays.c repl_modules.cc DiskIO/DiskIOModules_gen.cc \
+       test_tools.cc *.a
+
+test_tools.cc: $(top_srcdir)/test-suite/test_tools.cc
+       cp $(top_srcdir)/test-suite/test_tools.cc .
 
 # stock tools for unit tests - library independent versions of dlink_list 
 # etc.
-# globals.cc is needed by test_tools.cc
+# globals.cc is needed by test_tools.cc.
+# Neither of these should be disted from here.
 TESTSOURCES= \
-       ../test-suite/test_tools.cc \
+       test_tools.cc \
        globals.cc
 
 # sources needed by those tests that need event.cc; incomplete
@@ -1168,6 +1176,7 @@ testHeaders: $(top_srcdir)/src/*.h $(top_srcdir)/src/DiskIO/*.h $(top_srcdir)/sr
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
 
 ### Template for new Unit Test Program
 ## - add tests/testX to check_PROGRAMS above.
@@ -1181,7 +1190,8 @@ testHeaders.c:
 #      tests/testX.cc \
 #      tests/testMain.cc \
 #      X.h \
-#      X.cc \
+#      X.cc
+#nodist_tests_testX_SOURCES=\
 #      $(TESTSOURCES)
 #tests_testX_LDFLAGS = $(LIBADD_DL)
 #tests_testX_LDADD=\
@@ -1191,7 +1201,8 @@ testHeaders.c:
 #tests_testX_DEPENDENCIES= @SQUID_CPPUNIT_LA@ \
 #      $(top_builddir)/lib/libmiscutil.a
 
-tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc  tests/testAuth.h $(TESTSOURCES) \
+tests_testAuth_SOURCES = \
+       tests/testAuth.cc tests/testMain.cc  tests/testAuth.h \
        authenticate.cc \
        ConfigParser.cc \
        tests/stub_acl.cc tests/stub_cache_cf.cc \
@@ -1218,6 +1229,8 @@ tests_testAuth_SOURCES= tests/testAuth.cc tests/testMain.cc  tests/testAuth.h $(
 ##     helper.cc String.cc cbdata.cc HttpHeaderTools.cc store.cc cache_manager.cc \
 ##     HttpHeader.cc url.cc mem.cc HttpRequest.cc Packer.cc access_log.cc \
 ##     MemBuf.cc StatHist.cc logfile.cc
+nodist_tests_testAuth_SOURCES = \
+       $(TESTSOURCES)
 
 tests_testAuth_LDADD= \
        libsquid.la \
@@ -1277,7 +1290,6 @@ tests_testACLMaxUserIP_SOURCES= \
        stmem.cc \
        String.cc \
        $(TEST_CALL_SOURCES) \
-       $(TESTSOURCES) \
        tests/stub_cache_cf.cc \
        tests/stub_comm.cc \
        tests/stub_DelayId.cc \
@@ -1291,6 +1303,8 @@ tests_testACLMaxUserIP_SOURCES= \
        mem.cc \
        MemBuf.cc \
        wordlist.cc
+nodist_tests_testACLMaxUserIP_SOURCES= \
+       $(TESTSOURCES)
 tests_testACLMaxUserIP_LDADD= \
        libsquid.la \
        libauth.la \
@@ -1308,8 +1322,9 @@ tests_testBoilerplate_SOURCES = \
        tests/testBoilerplate.cc \
        tests/testMain.cc \
        tests/testBoilerplate.h \
-       $(TESTSOURCES) \
        time.cc
+nodist_tests_testBoilerplate_SOURCES = \
+       $(TESTSOURCES)
 tests_testBoilerplate_LDADD= \
        -L../lib -lmiscutil \
        @SQUID_CPPUNIT_LIBS@ \
@@ -1321,7 +1336,6 @@ tests_testBoilerplate_DEPENDENCIES = \
 ## Tests of the CacheManager module.
 tests_testCacheManager_SOURCES = \
        debug.cc \
-       globals.cc \
        HttpRequest.cc \
        HttpRequestMethod.cc \
        mem.cc \
@@ -1452,6 +1466,7 @@ tests_testCacheManager_SOURCES = \
        $(WIN32_SOURCE) \
        wordlist.cc
 nodist_tests_testCacheManager_SOURCES = \
+       globals.cc \
        repl_modules.cc \
        string_arrays.c
 tests_testCacheManager_LDADD = \
@@ -1472,14 +1487,15 @@ tests_testCacheManager_DEPENDENCIES =  $(top_builddir)/lib/libmiscutil.a \
        @REPL_OBJS@ \
        @SQUID_CPPUNIT_LA@
 
-tests_testDiskIO_SOURCES= \
+tests_testDiskIO_SOURCES = \
        $(SWAP_TEST_SOURCES) \
        tests/testDiskIO.cc \
        tests/testDiskIO.h \
        tests/testMain.cc \
        tests/stub_cache_manager.cc
-
-tests_testDiskIO_LDADD= \
+nodist_tests_testDiskIO_SOURCES= \
+       $(SWAP_TEST_GEN_SOURCES)
+tests_testDiskIO_LDADD = \
        @DISK_LIBS@ \
        $(SWAP_TEST_LDADD) \
        SquidConfig.o
@@ -1494,7 +1510,6 @@ tests_testEvent_SOURCES = \
        debug.cc \
        EventLoop.h \
        EventLoop.cc \
-       globals.cc \
        HttpRequest.cc \
        HttpRequestMethod.cc \
        mem.cc \
@@ -1626,6 +1641,7 @@ tests_testEvent_SOURCES = \
        $(WIN32_SOURCE) \
        wordlist.cc
 nodist_tests_testEvent_SOURCES = \
+       globals.cc \
        repl_modules.cc \
        string_arrays.c
 tests_testEvent_LDADD = \
@@ -1651,7 +1667,6 @@ tests_testEventLoop_SOURCES = \
        debug.cc \
        EventLoop.h \
        EventLoop.cc \
-       globals.cc \
        HttpRequest.cc \
        HttpRequestMethod.cc \
        mem.cc \
@@ -1782,6 +1797,7 @@ tests_testEventLoop_SOURCES = \
        $(WIN32_SOURCE) \
        wordlist.cc
 nodist_tests_testEventLoop_SOURCES = \
+       globals.cc \
        repl_modules.cc \
        string_arrays.c
 tests_testEventLoop_LDADD = \
@@ -1846,7 +1862,6 @@ tests_test_http_range_SOURCES = \
        forward.cc \
        fqdncache.cc \
        ftp.cc \
-       globals.cc \
        gopher.cc \
        helper.cc \
        $(HTCPSOURCE) \
@@ -1933,6 +1948,7 @@ tests_test_http_range_SOURCES = \
        Packer.cc \
        MemBuf.cc
 nodist_tests_test_http_range_SOURCES = \
+       globals.cc \
        repl_modules.cc \
        string_arrays.c
 tests_test_http_range_LDADD = \
@@ -1957,7 +1973,6 @@ tests_test_http_range_DEPENDENCIES = \
 ## Tests of the HttpRequest module.
 tests_testHttpRequest_SOURCES = \
        debug.cc \
-       globals.cc \
        HttpRequest.cc \
        HttpRequestMethod.cc \
        mem.cc \
@@ -2090,6 +2105,7 @@ tests_testHttpRequest_SOURCES = \
        $(WIN32_SOURCE) \
        wordlist.cc
 nodist_tests_testHttpRequest_SOURCES = \
+       globals.cc \
        repl_modules.cc \
        string_arrays.c
 tests_testHttpRequest_LDADD = \
@@ -2114,7 +2130,6 @@ tests_testHttpRequest_DEPENDENCIES =  $(top_builddir)/lib/libmiscutil.a \
 # delay pools need client_side_request.cc
 # store_key_md5 wants the method.
 STORE_TEST_SOURCES=\
-       $(TESTSOURCES) \
        $(TEST_CALL_SOURCES) \
        $(DELAY_POOL_SOURCE) \
        CacheDigest.cc \
@@ -2126,7 +2141,6 @@ STORE_TEST_SOURCES=\
        store.cc \
        HttpRequestMethod.cc \
        store_key_md5.cc \
-       string_arrays.c \
        Parsing.cc \
        ConfigOption.cc \
        SwapDir.cc \
@@ -2154,6 +2168,10 @@ STORE_TEST_SOURCES=\
        URLScheme.cc \
        wordlist.cc
 
+STORE_TEST_GEN_SOURCES = \
+       $(TESTSOURCES) \
+       string_arrays.c
+
 ## why so many sources? well httpHeaderTools requites ACLChecklist & friends.
 ## first line - what we are testing.
 tests_testStore_SOURCES= \
@@ -2176,6 +2194,9 @@ tests_testStore_SOURCES= \
        tests/stub_cache_manager.cc \
        $(STORE_TEST_SOURCES)
 
+nodist_tests_testStore_SOURCES= \
+       $(STORE_TEST_GEN_SOURCES)
+
 tests_testStore_LDADD= \
        libsquid.la \
        libauth.la \
@@ -2188,17 +2209,17 @@ tests_testStore_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
        @SQUID_CPPUNIT_LA@
 
 # string needs mem.cc.
-tests_testString_SOURCES= \
+tests_testString_SOURCES = \
        mem.cc \
        String.cc \
        tests/testMain.cc \
        tests/testString.cc \
        tests/testString.h \
        tests/stub_cache_manager.cc \
-       $(TESTSOURCES) \
        time.cc 
-
-tests_testString_LDADD= \
+nodist_tests_testString_SOURCES = \
+       $(TESTSOURCES)
+tests_testString_LDADD = \
        libsquid.la \
        -L../lib -lmiscutil \
        @REGEXLIB@ \
@@ -2239,6 +2260,9 @@ SWAP_TEST_SOURCES = \
        $(STORE_TEST_SOURCES) \
        $(DISKIO_SOURCE)
 
+SWAP_TEST_GEN_SOURCES = \
+       $(STORE_TEST_GEN_SOURCES)
+
 SWAP_TEST_LDADD = \
        libauth.la \
        @REGEXLIB@ \
@@ -2257,12 +2281,15 @@ SWAP_TEST_DS =\
        @REPL_OBJS@ \
        @SQUID_CPPUNIT_LA@
 
-tests_testUfs_SOURCES= tests/testUfs.cc \
+tests_testUfs_SOURCES = \
+       tests/testUfs.cc \
        tests/testMain.cc \
        tests/testUfs.h \
        tests/stub_cache_manager.cc \
        $(SWAP_TEST_SOURCES)
-tests_testUfs_LDADD= \
+nodist_tests_testUfs_SOURCES = \
+       $(SWAP_TEST_GEN_SOURCES)
+tests_testUfs_LDADD = \
        libsquid.la \
        $(SWAP_TEST_LDADD) \
        @SSLLIB@
@@ -2270,12 +2297,15 @@ tests_testUfs_LDFLAGS = $(LIBADD_DL)
 tests_testUfs_DEPENDENCIES = \
        $(SWAP_TEST_DS)
 
-tests_testCoss_SOURCES= tests/testCoss.cc \
+tests_testCoss_SOURCES = \
+       tests/testCoss.cc \
        tests/testMain.cc \
        tests/testCoss.h \
        tests/stub_cache_manager.cc \
        $(SWAP_TEST_SOURCES)
-tests_testCoss_LDADD= \
+nodist_tests_testCoss_SOURCES = \
+       $(SWAP_TEST_GEN_SOURCES)
+tests_testCoss_LDADD = \
        libsquid.la \
        $(SWAP_TEST_LDADD) \
        @SSLLIB@
@@ -2283,11 +2313,14 @@ tests_testCoss_LDFLAGS = $(LIBADD_DL)
 tests_testCoss_DEPENDENCIES = \
        $(SWAP_TEST_DS)
 
-tests_testNull_SOURCES= tests/testNull.cc \
+tests_testNull_SOURCES = \
+       tests/testNull.cc \
        tests/testMain.cc \
        tests/testNull.h \
        $(SWAP_TEST_SOURCES)
-tests_testNull_LDADD= \
+nodist_tests_testNull_SOURCES = \
+       $(SWAP_TEST_GEN_SOURCES)
+tests_testNull_LDADD = \
        $(SWAP_TEST_LDADD) \
        @SSLLIB@
 tests_testNull_LDFLAGS = $(LIBADD_DL)
@@ -2300,7 +2333,6 @@ tests_testURL_SOURCES = \
        debug.cc \
        url.cc \
        URLScheme.cc \
-       globals.cc \
        HttpRequest.cc \
        HttpRequestMethod.cc \
        mem.cc \
@@ -2431,6 +2463,7 @@ tests_testURL_SOURCES = \
        $(WIN32_SOURCE) \
        wordlist.cc
 nodist_tests_testURL_SOURCES = \
+       globals.cc \
        repl_modules.cc \
        string_arrays.c
 tests_testURL_LDADD = \
index 960603efdafdb1ab510a45389e4689eaff729b17..11a760b9c74937d128f58da5db325558d5ade692 100644 (file)
@@ -1,5 +1,6 @@
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
+CLEANFILES =
 
 INCLUDES = \
        -I$(top_builddir)/include \
@@ -40,3 +41,4 @@ testHeaders: $(top_srcdir)/src/adaptation/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
index 8dd460ac555700791a501db7db6a425839990c46..66ac094c857d7e5e83b07c6e405f5928c8f5e188 100644 (file)
@@ -5,9 +5,7 @@
 AUTOMAKE_OPTIONS = subdir-objects
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
-
-##DIST_SUBDIRS = basic digest ntlm
-##SUBDIRS              = @AUTH_MODULES@
+CLEANFILES =
 
 EXTRA_LIBRARIES        = libbasic.a libdigest.a libntlm.a libnegotiate.a
 noinst_LIBRARIES       = @AUTH_LIBS@
@@ -34,3 +32,4 @@ testHeaders: $(top_srcdir)/src/auth/basic/*.h $(top_srcdir)/src/auth/digest/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
index e28a7db5c5e7e92e7e8d0f466e7bc517bbe0b96d..119cf213cd98b466233b1913037d9ff7b14202de 100644 (file)
@@ -6,8 +6,7 @@
 AUTOMAKE_OPTIONS = subdir-objects
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
-
-##DIST_SUBDIRS = coss ufs
+CLEANFILES = 
 
 EXTRA_LIBRARIES = libcoss.a libufs.a
 noinst_LIBRARIES = @STORE_LIBS@
@@ -46,6 +45,7 @@ testHeaders: $(top_srcdir)/src/fs/ufs/*.h $(top_srcdir)/src/fs/coss/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
 
 ## targets below to emulate distributed makefiles
 coss/all: libcoss.a
index 55dd2f54955abb5d5567de05e4d52f0b5b4b2f5d..790b3eefad40ac2037267f113de1655fa5932930 100644 (file)
@@ -7,6 +7,7 @@
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
 DEFS = @DEFS@
+CLEANFILES = 
 
 INCLUDES = -I$(top_srcdir)/src @SQUID_CPPUNIT_INC@ -I$(top_srcdir)/include -I$(top_builddir)/lib
 $(OBJS): $(top_srcdir)/include/version.h $(top_srcdir)/include/autoconf.h
@@ -48,6 +49,7 @@ libicmp_la_SOURCES = \
 
 # ICMP lookup helper
 pinger_SOURCES = \
+       Icmp.h \
        IcmpPinger.h \
        IcmpPinger.cc \
        Icmp4.h \
@@ -59,7 +61,6 @@ pinger_SOURCES = \
 # depends on these but install/dist is done elsewhere.
 # TODO: remove when these are cleaned up in their own way.
 nodist_pinger_SOURCES = \
-       Icmp.h \
        ../debug.cc \
        ../time.cc \
        ../SquidConfig.cc \
@@ -101,14 +102,16 @@ testHeaders: $(top_srcdir)/src/icmp/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
 
 
 ## Tests of the ICMP base module.
 # Its used by pinger so SHOULD NOT require more dependancies! :-(
-testIcmp_SOURCES=\
+testIcmp_SOURCES = \
        Icmp.h \
        testIcmp.h \
-       testIcmp.cc \
+       testIcmp.cc
+nodist_testIcmp_SOURCES = \
        ../tests/testMain.cc \
        ../SquidTime.h \
        ../time.cc \
index ff7823cabff20914733674fccf40450a49f7b270..1f08d0ef879d1760b6bcf4782f9415f684ff63fb 100644 (file)
@@ -6,6 +6,7 @@
 AUTOMAKE_OPTIONS = subdir-objects
 AM_CFLAGS = @SQUID_CFLAGS@
 AM_CXXFLAGS = @SQUID_CXXFLAGS@
+CLEANFILES = 
 
 # No recursion is needed for the subdirs, we build from here. // @REPL_POLICIES@
 
@@ -30,3 +31,4 @@ testHeaders: $(top_srcdir)/src/repl/heap/*.h
 ## No such file...
 testHeaders.c:
        touch testHeaders.c
+CLEANFILES += testHeaders.c
index 381fc79c0dcbcab7a75cdb8d5ffc2c6fb8286f65..2fde95afc947c28bb1ee401327c2396ffcf6afcf 100644 (file)
@@ -22,6 +22,7 @@ TESTS=$(check_PROGRAMS)
 ## No Such file...
 #testHeaders.c:
 #      touch testHeaders.c
+#CLEANFILES += testHeaders.c
 
 SUBDIRS                =