Add zlib dependency to gio

Will be used by compression APIs
This commit is contained in:
Alexander Larsson 2009-11-19 17:16:29 +01:00
parent fce2873641
commit 8cb1252d92
3 changed files with 13 additions and 0 deletions

View File

@ -457,6 +457,17 @@ fi
AC_MSG_RESULT($enable_iconv_cache) AC_MSG_RESULT($enable_iconv_cache)
dnl
dnl zlib support
dnl
found_zlib=no
AC_CHECK_LIB(z, inflate, [AC_CHECK_HEADER(zlib.h, found_zlib=yes)])
if test "x$found_zlib" = "xno" ; then
AC_MSG_ERROR([*** Working zlib library and headers not found ***])
fi
ZLIB_LIBS='-lz'
AC_SUBST(ZLIB_LIBS)
dnl dnl
dnl gettext support dnl gettext support
dnl dnl

View File

@ -10,4 +10,5 @@ Description: glib I/O library
Version: @VERSION@ Version: @VERSION@
Requires: glib-2.0,gobject-2.0,gmodule-no-export-2.0 Requires: glib-2.0,gobject-2.0,gmodule-no-export-2.0
Libs: -L${libdir} -lgio-2.0 Libs: -L${libdir} -lgio-2.0
Libs.private: @ZLIB_LIBS@
Cflags: Cflags:

View File

@ -284,6 +284,7 @@ libgio_2_0_la_LIBADD = \
$(top_builddir)/gobject/libgobject-2.0.la \ $(top_builddir)/gobject/libgobject-2.0.la \
$(top_builddir)/gmodule/libgmodule-2.0.la \ $(top_builddir)/gmodule/libgmodule-2.0.la \
$(platform_libadd) \ $(platform_libadd) \
$(ZLIB_LIBS) \
$(SELINUX_LIBS) \ $(SELINUX_LIBS) \
$(GLIB_LIBS) \ $(GLIB_LIBS) \
$(XATTR_LIBS) \ $(XATTR_LIBS) \