mirror of
https://github.com/mirror/wget.git
synced 2025-03-14 11:50:18 +08:00
Cleanup some incorrect uses of AM Conditionals
* configure.ac: Replace IRI_IS_ENABLED with WITH_IRI and METALINK_IS_ENABLED with WITH_METALINK * src/Makefile.am: Add the .c and .h files for IRI, Metalink and Xattr support to wget_SOURCES directly when needed instead of adding them as object files. * testenv/Makefile.am: Rename METALINK_IS_ENABLED to WITH_METALINK
This commit is contained in:
parent
f5263969fa
commit
3a470a90f2
@ -972,9 +972,9 @@ test "X${ENABLE_XATTR}" = "Xyes" && AC_DEFINE([ENABLE_XATTR], 1,
|
||||
[Define if you want file meta-data storing into POSIX Extended Attributes compiled in.])
|
||||
|
||||
dnl Needed by src/Makefile.am
|
||||
AM_CONDITIONAL([IRI_IS_ENABLED], [test "X$iri" != "Xno"])
|
||||
AM_CONDITIONAL([WITH_IRI], [test "X$iri" != "Xno"])
|
||||
AM_CONDITIONAL([WITH_SSL], [test "X$with_ssl" != "Xno"])
|
||||
AM_CONDITIONAL([METALINK_IS_ENABLED], [test "X$with_metalink" != "Xno"])
|
||||
AM_CONDITIONAL([WITH_METALINK], [test "X$with_metalink" != "Xno"])
|
||||
AM_CONDITIONAL([WITH_XATTR], [test "X$ENABLE_XATTR" != "Xno"])
|
||||
AM_CONDITIONAL([WITH_NTLM], [test "X$ENABLE_NTLM" = "Xyes"])
|
||||
AM_CONDITIONAL([WITH_OPIE], [test x"$ENABLE_OPIE" = x"yes"])
|
||||
|
@ -30,17 +30,6 @@
|
||||
# Version: @VERSION@
|
||||
#
|
||||
|
||||
if IRI_IS_ENABLED
|
||||
IRI_OBJ = iri.c
|
||||
endif
|
||||
|
||||
if METALINK_IS_ENABLED
|
||||
METALINK_OBJ = metalink.c
|
||||
endif
|
||||
|
||||
if WITH_XATTR
|
||||
XATTR_OBJ = xattr.c
|
||||
endif
|
||||
|
||||
# The following line is losing on some versions of make!
|
||||
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
|
||||
@ -52,14 +41,26 @@ wget_SOURCES = connect.c convert.c cookies.c ftp.c \
|
||||
css_.c css-url.c \
|
||||
ftp-basic.c ftp-ls.c hash.c host.c hsts.c html-parse.c html-url.c \
|
||||
http.c init.c log.c main.c netrc.c progress.c ptimer.c \
|
||||
recur.c res.c retr.c spider.c url.c warc.c $(XATTR_OBJ) \
|
||||
utils.c exits.c build_info.c $(IRI_OBJ) $(METALINK_OBJ) \
|
||||
recur.c res.c retr.c spider.c url.c warc.c \
|
||||
utils.c exits.c build_info.c \
|
||||
css-url.h css-tokens.h connect.h convert.h cookies.h \
|
||||
ftp.h hash.h host.h hsts.h html-parse.h html-url.h \
|
||||
http.h init.h log.h netrc.h \
|
||||
options.h progress.h ptimer.h recur.h res.h retr.h \
|
||||
spider.h ssl.h sysdep.h url.h warc.h utils.h wget.h iri.h \
|
||||
exits.h version.h metalink.h xattr.h
|
||||
spider.h ssl.h sysdep.h url.h warc.h utils.h wget.h \
|
||||
exits.h version.h
|
||||
|
||||
if WITH_IRI
|
||||
wget_SOURCES += iri.c iri.h
|
||||
endif
|
||||
|
||||
if WITH_XATTR
|
||||
wget_SOURCES += xattr.c xattr.h
|
||||
endif
|
||||
|
||||
if WITH_METALINK
|
||||
wget_SOURCES += metalink.c metalink.h
|
||||
endif
|
||||
|
||||
if WITH_OPIE
|
||||
wget_SOURCES += ftp-opie.c
|
||||
|
@ -116,7 +116,7 @@ endif
|
||||
|
||||
if HAVE_PYTHON3
|
||||
TESTS = $(DEFAULT_TESTS)
|
||||
if METALINK_IS_ENABLED
|
||||
if WITH_METALINK
|
||||
TESTS += $(METALINK_TESTS)
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user