1 dnl Check to find the lzo headers/libraries
5 tinc_ac_save_CPPFLAGS="$CPPFLAGS"
7 AC_ARG_WITH(lzo-include,
8 [ --with-lzo-include=DIR lzo headers directory],
9 [lzo_include="$withval"
10 CFLAGS="$CFLAGS -I$withval"
11 CPPFLAGS="$CPPFLAGS -I$withval"]
15 [ --with-lzo-lib=DIR lzo library directory],
17 LIBS="$LIBS -L$withval"]
20 AC_CHECK_HEADERS(lzo1x.h,
22 [AC_MSG_ERROR("lzo header files not found."); break]
25 CPPFLAGS="$tinc_ac_save_CPPFLAGS"
27 AC_CHECK_LIB(lzo, lzo1x_1_compress,
29 [AC_MSG_ERROR("lzo libraries not found.")]