############## ### LASH ### ############## CHANGEME_enable_lash="yes" AC_ARG_ENABLE(lash, [ --disable-lash disable LASH support],[ case "$enableval" in "yes") ;; "no") CHANGEME_enable_lash="no" ;; *) AC_MSG_ERROR([must use --enable-lash(=yes/no) or --disable-lash]) ;; esac ]) if test "$CHANGEME_enable_lash" = "yes"; then PKG_CHECK_MODULES(LASH, lash-1.0 >= 0.5.0, LASH_FOUND="yes", LASH_FOUND="no") if test "$LASH_FOUND" = "yes"; then AC_DEFINE(HAVE_LASH, 1, [whether or not we are supporting lash]) LASH_VERSION=$( pkg-config --modversion lash-1.0 ) AC_DEFINE_UNQUOTED(LASH_VERSION, "$LASH_VERSION", [The version of lash we're compiling against]) AC_SUBST(LASH_CFLAGS) AC_SUBST(LASH_LIBS) fi else AC_MSG_WARN([LASH support is disabled]) LASH_FOUND="no" fi AM_CONDITIONAL(HAVE_LASH, test "$LASH_FOUND" = "yes")