diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 92355bc5..826e2bd5 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,3 +1,8 @@ +2010-06-16 Mike Frysinger + + * acinclude.m4 (VL_LIB_READLINE): Add a --with[out]-readline configure + option so people can explicitly control support for the library. + 2010-06-15 Mike Frysinger * src/bus/s3c4510x.c: Punt dead/useless cvs log info. diff --git a/urjtag/acinclude.m4 b/urjtag/acinclude.m4 index 797cf8ce..c0555e72 100644 --- a/urjtag/acinclude.m4 +++ b/urjtag/acinclude.m4 @@ -48,6 +48,13 @@ dnl @author Ville Laurikari dnl @author Ville Voipio ; check for readline completion (not available in, e.g. Leopard) AC_DEFUN([VL_LIB_READLINE], [ + AC_ARG_WITH([readline], + [AS_HELP_STRING([--without-readline], + [support command completion/history])]) + AS_IF([test "x$with_readline" = "xno"], [ + vl_cv_lib_readline=no + ]) + AC_CACHE_CHECK([for a readline compatible library], vl_cv_lib_readline, [ ORIG_LIBS="$LIBS" @@ -94,6 +101,8 @@ AC_DEFUN([VL_LIB_READLINE], [ if test "$vl_cv_lib_readline_completion" = "yes"; then AC_DEFINE(HAVE_READLINE_COMPLETION, 1, [Define if your readline library has \`rl_completion_matches']) fi + elif test "$with_readline$vl_cv_lib_readline" = "yesno" ; then + AC_ERROR([readline support requested, but none found]) fi ])dnl