X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=configure.in;h=7906e16dd3c780fb639f2581a7815574309907ef;hb=79dfd5d87f557a7914002362e78920ad42243ac9;hp=e41cf074c70ee0ed1b3dd991c12f1903ebc5c493;hpb=5e04cc92ff552a5df28ce755598ecc22cdb80b97;p=dump.git diff --git a/configure.in b/configure.in index e41cf07..7906e16 100644 --- a/configure.in +++ b/configure.in @@ -122,6 +122,19 @@ fi echo "Using new style F script" ) +dnl +dnl Handle --enable-largefile +dnl +AC_ARG_ENABLE([largefile], +[ --enable-largefile enable Large File System support (your glibc needs to support it)], +if test "$enableval" = "yes" +then + AC_DEFINE(_FILE_OFFSET_BITS,64) +fi +, +echo "Not enabling Large File System support" +) + dnl dnl set $(CC) from --with-cc=value dnl @@ -260,13 +273,23 @@ if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then AC_MSG_ERROR(You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs) fi +dnl +dnl Check for termcap libraries +dnl +AC_CHECK_LIB(termcap, tgetent, [termcap_lib=yes], [termcap_lib=no]) +if test "$termcap_lib" = no; then + if test "$READLINE" = "-lreadline -ltermcap"; then + AC_MSG_ERROR(You need to install the GNU termcap libraries first) + fi +fi + dnl dnl Check for readline headers and libraries dnl AC_CHECK_HEADER(readline/readline.h, [readline_h=yes], [readline_h=no]) -AC_CHECK_LIB(readline, readline, [readline_lib=yes], [readline_lib=no]) +AC_CHECK_LIB(readline, readline, [readline_lib=yes], [readline_lib=no], "-ltermcap") if test "$readline_h" = no -o "$readline_lib" = no; then - if test "$READLINE" = "-lreadline"; then + if test "$READLINE" = "-lreadline -ltermcap"; then AC_MSG_ERROR(You need to install the GNU readline libraries first) fi fi