summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--configure.in16
1 files changed, 10 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index d2386d0..dbf3774 100644
--- a/configure.in
+++ b/configure.in
@@ -10,7 +10,7 @@
AC_INIT(mixlib/mix.h)
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(mdk,0.1)
+AM_INIT_AUTOMAKE(mdk,0.1.1)
AM_MAINTAINER_MODE
@@ -31,14 +31,17 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix
AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/share/locale")
dnl Check for readline and history
-AC_CHECK_LIB(readline, readline, , AC_MSG_ERROR(Cannot find GNU readline lib))
-AC_CHECK_LIB(history, add_history, , AC_MSG_ERROR(Cannot GNU history lib))
-
+AC_CHECK_LIB(readline, readline, ,
+ [AC_MSG_WARN(Cannot find GNU readline lib, using default flag)
+ LIBS = "$LIBS -lreadline"])
+AC_CHECK_LIB(history, add_history, ,
+ [AC_MSG_WARN(Cannot find GNU history lib, using default flag)
+ LIBS = "$LIBS -lhistory"])
dnl Check for glib
AM_PATH_GLIB(1.2.0,
- [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],
- AC_MSG_ERROR(Cannot find GLIB), "gmodule" )
+ [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],
+ AC_MSG_ERROR(Cannot find GLIB), "gmodule" )
CFLAGS="$CFLAGS -Wall"
AC_SUBST(CFLAGS)
@@ -54,3 +57,4 @@ intl/Makefile
samples/Makefile
po/Makefile.in
)
+