mirror of
https://github.com/mirror/wget.git
synced 2025-04-24 04:05:05 +08:00
Try using pkg-config of libmetalink in configure.ac - error during make
This commit is contained in:
parent
5f4debb6f8
commit
39aaaf57f8
36
configure.ac
36
configure.ac
@ -350,31 +350,21 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test x"$ENABLE_METALINK" == xyes
|
||||
then
|
||||
AC_MSG_NOTICE([Checking the existence of libraries essential for metalink support])
|
||||
|
||||
AC_CHECK_LIB(metalink, metalink_parse_file,[
|
||||
AC_MSG_NOTICE([libmetalink exists])
|
||||
|
||||
AC_LIB_HAVE_LINKFLAGS([metalink])
|
||||
if test x"$LIBMETALINK" != x
|
||||
then
|
||||
AC_MSG_NOTICE([compiling in support for metalink])
|
||||
AC_LIBOBJ([metalink])
|
||||
LIBS="$LIBMETALINK $LIBS"
|
||||
dnl CFLAGS="${CFLAGS} -I/usr/local/include"
|
||||
else
|
||||
AC_MSG_ERROR([--enable-metalink was given, but libmetalink is not available.])
|
||||
fi
|
||||
|
||||
AC_LIBOBJ([metalink])
|
||||
|
||||
],[
|
||||
AS_IF([test x"$ENABLE_METALINK" == xyes],[
|
||||
dnl If metalink support is requested
|
||||
PKG_CHECK_MODULES(LIBMETALINK, libmetalink, [
|
||||
dnl If metalink module is found
|
||||
AC_MSG_NOTICE([compiling in support for metalink])
|
||||
LIBS="$LIBMETALINK_LIBS $LIBS"
|
||||
LIBS="$LIBMETALINK_CFLAGS $CFLAGS"
|
||||
], [
|
||||
dnl If metalink module is not found
|
||||
AC_MSG_ERROR([libmetalink not found])
|
||||
])
|
||||
fi
|
||||
],[
|
||||
dnl If metalink support is not requested
|
||||
AC_MSG_NOTICE([compiling without support for metalink])
|
||||
])
|
||||
|
||||
|
||||
dnl **********************************************************************
|
||||
|
@ -55,7 +55,7 @@ wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c \
|
||||
spider.h ssl.h sysdep.h url.h utils.h wget.h iri.h \
|
||||
exits.h gettext.h metalink.h
|
||||
nodist_wget_SOURCES = version.c
|
||||
EXTRA_wget_SOURCES = iri.c
|
||||
EXTRA_wget_SOURCES = iri.c metalink.c
|
||||
LDADD = $(LIBOBJS) ../lib/libgnu.a
|
||||
AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user