From d13be06aaa918f7098570f7f0f7a2a600a48d9a0 Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Mon, 31 Mar 2008 12:09:43 +0000 Subject: Removed the generated ca-bundle.h file. The verbatim value of $ca and $capath is known to configure, so it can be defined in config.h instead. --- lib/.cvsignore | 1 - lib/Makefile.Watcom | 7 ++----- lib/Makefile.am | 24 ------------------------ lib/Makefile.inc | 2 +- lib/Makefile.m32 | 9 ++------- lib/Makefile.netware | 18 ++---------------- lib/easy.c | 1 - lib/url.c | 1 - 8 files changed, 7 insertions(+), 56 deletions(-) (limited to 'lib') diff --git a/lib/.cvsignore b/lib/.cvsignore index ad0b7243b..c2a9892c2 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore @@ -6,6 +6,5 @@ Makefile .libs config.h stamp-* -ca-bundle.h getdate.c curllib.dsp diff --git a/lib/Makefile.Watcom b/lib/Makefile.Watcom index a3fe6fc6b..8e5118ecb 100644 --- a/lib/Makefile.Watcom +++ b/lib/Makefile.Watcom @@ -4,7 +4,7 @@ # # $Id$ -TARGETS = ca-bundle.h libcurl_wc.dll libcurl_wc_imp.lib +TARGETS = libcurl_wc.dll libcurl_wc_imp.lib CC = wcc386 @@ -67,9 +67,6 @@ all: $(OBJ_DIR) $(C_ARG) $(TARGETS) .SYMBOLIC $(OBJ_DIR): mkdir $(OBJ_DIR) -ca-bundle.h: - @echo /* dummy ca-bundle.h. Not used */ > $@ - libcurl_wc.dll libcurl_wc_imp.lib: $(OBJS) $(RESOURCE) $(LINK_ARG) wlink name libcurl_wc.dll @$(LINK_ARG) @@ -168,7 +165,7 @@ $(OBJ_DIR)\url.obj: url.c setup.h config-win32.h setup_once.h urldata.h cookie.h transfer.h sendf.h progress.h strequal.h strerror.h escape.h strtok.h & share.h content_encoding.h http_digest.h http_negotiate.h select.h & multiif.h ftp.h dict.h telnet.h tftp.h http.h file.h curl_ldap.h url.h & - connect.h inet_ntop.h http_ntlm.h .\ca-bundle.h & + connect.h inet_ntop.h http_ntlm.h & ..\include\curl\mprintf.h memory.h memdebug.h .\memory.h $(OBJ_DIR)\dict.obj: dict.c setup.h config-win32.h setup_once.h urldata.h cookie.h & ..\include\curl\curl.h ..\include\curl\curlver.h ..\include\curl\easy.h & diff --git a/lib/Makefile.am b/lib/Makefile.am index 350931df0..c7e810860 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -101,30 +101,6 @@ libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS) WIN32SOURCES = $(CSOURCES) WIN32HEADERS = $(HHEADERS) config-win32.h -BUILT_SOURCES = $(top_builddir)/lib/ca-bundle.h - -$(top_builddir)/lib/ca-bundle.h: Makefile.in Makefile - @if test -f $@; then \ - chmod 0644 $@; \ - fi - echo "/* This file is generated automatically */" > $@ -if CABUNDLE - echo '#define CURL_CA_BUNDLE @CURL_CA_BUNDLE@' >> $@ -else - echo '#undef CURL_CA_BUNDLE /* unknown default path */' >> $@ -endif -if CAPATH - echo '#define CURL_CA_PATH @CURL_CA_PATH@' >> $@ -else - echo '#undef CURL_CA_PATH /* unknown default path */' >>$@ -endif - -# this hook is mainly for non-unix systems to build even if configure -# isn't run -dist-hook: - chmod 0644 $(distdir)/ca-bundle.h - echo "/* ca bundle path set in here*/" > $(distdir)/ca-bundle.h - DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP) VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ) diff --git a/lib/Makefile.inc b/lib/Makefile.inc index e203d3658..875e56754 100644 --- a/lib/Makefile.inc +++ b/lib/Makefile.inc @@ -16,7 +16,7 @@ HHEADERS = arpa_telnet.h netrc.h file.h timeval.h base64.h hostip.h \ if2ip.h speedcheck.h urldata.h curl_ldap.h ssluse.h escape.h telnet.h \ getinfo.h strequal.h krb4.h memdebug.h inet_ntoa_r.h http_chunks.h \ strtok.h connect.h llist.h hash.h content_encoding.h share.h md5.h \ - http_digest.h http_negotiate.h http_ntlm.h ca-bundle.h inet_pton.h \ + http_digest.h http_negotiate.h http_ntlm.h inet_pton.h \ strtoofft.h strerror.h inet_ntop.h curlx.h memory.h setup.h \ transfer.h select.h easyif.h multiif.h parsedate.h sslgen.h gtls.h \ tftp.h sockaddr.h splay.h strdup.h setup_once.h socks.h ssh.h nssg.h \ diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index d8131c7df..6fd8b9b7c 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -113,7 +113,7 @@ RESOURCE = libcurl.res .SUFFIXES: .rc .res -all: ca-bundle.h $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) +all: $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_a_LIBRARY): $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES) -$(RM) $@ @@ -135,18 +135,13 @@ $(libcurl_dll_LIBRARY): $(libcurl_a_OBJECTS) $(RESOURCE) $(libcurl_dll_DEPENDENC $(RC) $(RCFLAGS) $< -o $@ clean: - -$(RM) $(libcurl_a_OBJECTS) $(RESOURCE) ca-bundle.h + -$(RM) $(libcurl_a_OBJECTS) $(RESOURCE) distrib: clean -$(RM) $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_dll_a_LIBRARY) FORCE: ; -ca-bundle.h: FORCE Makefile.m32 - @echo Creating $@ - @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@ - @echo $(DL)*/$(DL) >> $@ - $(ARES_LIB)/libcares.a: $(MAKE) -C $(ARES_LIB) -f Makefile.m32 diff --git a/lib/Makefile.netware b/lib/Makefile.netware index 1a4610d85..ae0cc7392 100644 --- a/lib/Makefile.netware +++ b/lib/Makefile.netware @@ -230,7 +230,7 @@ nlm: prebuild $(TARGET).nlm lib: prebuild $(TARGET).$(LIBEXT) -prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h ca-bundle.h +prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h $(OBJDIR)/%.o: %.c # @echo Compiling $< @@ -252,7 +252,7 @@ ifdef WITH_SSL endif clean: - -$(RM) config.h ca-bundle.h + -$(RM) config.h -$(RM) -r $(OBJDIR) distclean: clean @@ -523,25 +523,11 @@ endif FORCE: ; -ca-bundle.h: FORCE Makefile.netware - @echo Creating $@ - @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@ - @echo $(DL)** All your changes will be lost!!$(DL) >> $@ - @echo $(DL)*/$(DL) >> $@ -ifdef CABUNDLE - @echo $(DL)#define CURL_CA_BUNDLE "$(CABUNDLE)"$(DL) >> $@ -else - @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@ -endif - info: $(OBJDIR)/version.inc @echo Configured to build $(TARGET) with these options: @echo libarchitecture: $(LIBARCH) @echo curl version: $(LIBCURL_VERSION_STR) @echo compiler/linker: $(CC) / $(LD) -ifdef CABUNDLE - @echo ca-bundle path: $(CABUNDLE) -endif ifdef WITH_SSL @echo SSL support: enabled (OpenSSL) else diff --git a/lib/easy.c b/lib/easy.c index 93b5095a1..145619c85 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -83,7 +83,6 @@ #include "easyif.h" #include "select.h" #include "sendf.h" /* for failf function prototype */ -#include #define _MPRINTF_REPLACE /* use our functions only */ #include diff --git a/lib/url.c b/lib/url.c index 1dc51d189..9d782359b 100644 --- a/lib/url.c +++ b/lib/url.c @@ -137,7 +137,6 @@ void idn_free (void *ptr); /* prototype from idn-free.h, not provided by #include "inet_ntop.h" #include "http_ntlm.h" #include "socks.h" -#include #if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL) #include "inet_ntoa_r.h" -- cgit v1.2.3