-
-AS_IF([test "x${enable_doc}" = "xyes"], [
- AC_CHECK_PROGS([DOXYGEN], [doxygen])
- AS_IF([test -z "$DOXYGEN"], [
- AC_MSG_ERROR([Doxygen not found])
- ])
-])
-AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
-
-
-AS_IF([test "x${with_readline}" != "xno"], [
- AC_CHECK_LIB([readline], [readline], [
- AC_SUBST([READLINE_LIBS], [-lreadline])
- AC_DEFINE([HAVE_LIBREADLINE], [1], [Define if you have libreadline])
- ], [
- AC_MSG_FAILURE([readline test failed (--without-readline to disable)])
- ])
+# enable/disable build of libngadmin
+AC_ARG_ENABLE(lib,
+ [AS_HELP_STRING([--enable-lib], [enable libngadmin [default=yes]])],
+ [], [enable_lib=yes])
+AS_IF([test x$require_lib = xyes -a x$enable_lib = xno], [
+ AC_MSG_FAILURE([libngadmin build disabled but required])