summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-30 11:25:06 +0200
committerYorhel <git@yorhel.nl>2009-04-30 11:25:06 +0200
commit2d1060709b5da2a84563eb5ba3cc77090390b727 (patch)
tree2ffbc5353b561670225b83c3e4f36f441606742d
parent3610121dabefdecbdd0665af1dc42f93c0e9012c (diff)
Cleaned up configure.in
Removed some obsolete macros and added a few more headers and function checks.
-rw-r--r--configure.in16
1 files changed, 6 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index c5b8485..7865fd5 100644
--- a/configure.in
+++ b/configure.in
@@ -13,23 +13,19 @@ AC_PROG_RANLIB
AC_CHECK_LIB(ncurses, initscr)
# Checks for header files.
-AC_HEADER_DIRENT
-AC_HEADER_STDC
-AC_CHECK_HEADERS([limits.h stdlib.h string.h sys/time.h unistd.h fnmatch.h ncurses.h])
+AC_CHECK_HEADERS(
+ [limits.h stdlib.h string.h sys/time.h sys/types.h sys/stat.h dirent.h unistd.h fnmatch.h ncurses.h],[],
+ AC_MSG_ERROR([required header file not found]))
# Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
AC_TYPE_OFF_T
AC_SYS_LARGEFILE
AC_STRUCT_ST_BLOCKS
-AC_HEADER_TIME
# Checks for library functions.
-AC_FUNC_CLOSEDIR_VOID
-AC_FUNC_LSTAT
-AC_FUNC_MALLOC
-AC_FUNC_STAT
-AC_CHECK_FUNCS([getcwd gettimeofday memset fnmatch])
+AC_CHECK_FUNCS(
+ [getcwd gettimeofday memset fnmatch chdir rmdir unlink lstat getcwd],[],
+ AC_MSG_ERROR([required function missing]))
AC_OUTPUT([Makefile src/Makefile doc/Makefile])