X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=086b00c861d484875393a9e18b088cbb58321e2b;hb=9e397cc16be51f4f3940c7a5b90d0bc43f3f13a8;hp=b13eaf9b33720b46ad30b58b95295aeacf8e580b;hpb=ef044690c54deb597bfe706cb88849dda5ebe8fc;p=libguestfs.git diff --git a/configure.ac b/configure.ac index b13eaf9..086b00c 100644 --- a/configure.ac +++ b/configure.ac @@ -134,6 +134,9 @@ AC_DEFINE_UNQUOTED([host_cpu],["$host_cpu"],[Host architecture.]) dnl Headers. AC_CHECK_HEADERS([errno.h sys/types.h sys/un.h sys/wait.h sys/socket.h endian.h byteswap.h]) +dnl Functions. +AC_CHECK_FUNCS([posix_fallocate]) + dnl Build the daemon? AC_MSG_CHECKING([if we should build the daemon]) AC_ARG_ENABLE([daemon], @@ -437,7 +440,12 @@ AS_IF([test "x$with_readline" != xno], AC_MSG_FAILURE( [--with-readline was given, but test for readline failed]) fi - ], -lncurses)]) + ], -lncurses) + old_LIBS="$LIBS" + LIBS="$LIBS $LIBREADLINE" + AC_CHECK_FUNCS([append_history completion_matches rl_completion_matches]) + LIBS="$old_LIBS" + ]) dnl For i18n. AM_GNU_GETTEXT([external])