23 lines
674 B
Plaintext
23 lines
674 B
Plaintext
# This is template code you can put in your configure.ac to check
|
|
# for LASH support
|
|
|
|
############
|
|
### LASH ###
|
|
############
|
|
build_lash="yes"
|
|
AC_ARG_ENABLE(lash,
|
|
[AS_HELP_STRING(--enable-lash, [Enable LASH session management support (true)])],
|
|
[ if test x$enable_lash = xno ; then build_lash=no ; fi ])
|
|
if test "$build_lash" = "yes"; then
|
|
PKG_CHECK_MODULES(LASH, lash-1.0 >= 0.5.0, build_lash="yes", build_lash="no")
|
|
fi
|
|
if test "$build_lash" = "yes"; then
|
|
AC_DEFINE(HAVE_LASH, 1, [Has lash.h])
|
|
AC_SUBST(LASH_CFLAGS)
|
|
AC_SUBST(LASH_LIBS)
|
|
else
|
|
AC_MSG_WARN([LASH not found, session support will not be built.])
|
|
fi
|
|
AM_CONDITIONAL(HAVE_LASH, [test "$build_lash" = "yes"])
|
|
|