mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
configure.ac: use AS_IF
This way any prerequisites for e.g. AC_CHECK_HEADER are always executed before the 'if'. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> https://bugzilla.gnome.org/show_bug.cgi?id=674483
This commit is contained in:
parent
7ba8997015
commit
e30823d93f
@ -462,14 +462,14 @@ dnl
|
||||
dnl zlib support
|
||||
dnl
|
||||
PKG_CHECK_MODULES([ZLIB], [zlib], [found_zlib=yes], [found_zlib=no])
|
||||
if test "x$found_zlib" = "xno" ; then
|
||||
AS_IF([test "x$found_zlib" = "xno"], [
|
||||
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)
|
||||
fi
|
||||
])
|
||||
|
||||
PKG_CHECK_MODULES(LIBFFI, [libffi >= 3.0.0])
|
||||
AC_SUBST(LIBFFI_CFLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user