lalmetaio: fix the zlib check

parent 3c41434a
......@@ -104,11 +104,17 @@ LALSUITE_USE_LIBTOOL
# check for header files
AC_HEADER_STDC
AC_CHECK_HEADERS([zlib.h],,[AC_MSG_ERROR([could not find zlib.h])])
# check for required libraries
# check for zlib libraries and headers
PKG_CHECK_MODULES([ZLIB],[zlib],[true],[false])
LALSUITE_PUSH_UVARS
LALSUITE_ADD_FLAGS([C],[${ZLIB_CFLAGS}],[${ZLIB_LIBS}])
AC_SEARCH_LIBS([compress],[],[:],[AC_MSG_ERROR([could not find the zlib library])])
AC_CHECK_HEADER([zlib.h],[:],[AC_MSG_ERROR([could not find the zlib.h header])])
LALSUITE_POP_UVARS
# math library
AC_CHECK_LIB([m],[main],,[AC_MSG_ERROR([could not find the math library])])
AC_CHECK_LIB([z],[compress],,[AC_MSG_ERROR([could not find the zlib library])])
# metaio
PKG_CHECK_MODULES([METAIO],[libmetaio],[true],[false])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment