summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-11-16 09:07:02 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-11-16 09:07:02 +0100
commit89fe7f800604e0919dd02b1f13da5b74459f0daa (patch)
tree24f0cf2f547bff0f4131f45da603db8b56262dbd /configure.ac
parentb7d3c98ee6faa0b75d2f2a559baa656f8546848e (diff)
Add ncurses parameters in configure
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3c6e9ce..289dc47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,19 @@ if test "x$nonopt" != "xNONE"; then
fi
# Command-line options.
+AC_ARG_WITH([ncurses],
+ AS_HELP_STRING(--without-ncurses,disabled use of the curses/ncurses/pdcurses/curses library (default is NO)),
+ [ use_ncurses="n" ])
+
+AC_ARG_WITH(ncurses-lib,
+ AS_HELP_STRING(--with-ncurses-lib=DIR,location of the ncurses library),
+ [ ncurses_lib_a="${withval}/libncurses.a"
+ LDFLAGS="${LDFLAGS} -L${withval}" ])
+
+AC_ARG_WITH(ncurses-includes,
+ AS_HELP_STRING(--with-ncurses-includes=DIR,location of the ncurses includes files),
+ [CPPFLAGS="${CPPFLAGS} -I${withval}"])
+
AC_ARG_WITH([ext2fs],
AS_HELP_STRING(--without-ext2fs,disabled use of the ext2fs library (default is NO)),
[ use_ext2fs="n" ])
@@ -458,6 +471,9 @@ case "$target" in
esac
AC_CHECK_FUNCS([atexit atoll chdir delscreen dirname dup2 ftruncate getcwd geteuid lstat memset mkdir posix_fadvise posix_memalign pwrite readlink setenv setlocale signal snprintf strchr strdup strerror strncasecmp strtol touchwin utime vsnprintf])
+if test $ac_cv_func_mkdir = no; then
+ AC_MSG_ERROR(No mkdir function detected)
+fi
#reiserfs_fs_open_fast may not been detected because of lack of -ldal
OLDLIBS="$LIBS"
LIBS="$LIBS $testdisk_LDADD -ldal"