1 dnl Process this file with autoconf to produce a configure script.
3 AC_CONFIG_HEADER(config.h)
5 dnl Checks for programs.
8 dnl Use -Wall if possible
10 if test "x$GCC" = "xyes"; then
12 *[\ \ ]-Wall[\ \ ]*) ;;
13 *) CFLAGS="$CFLAGS -Wall" ;;
18 dnl Find GLib (needed for future tests)
19 AC_MSG_CHECKING(for GLib library)
20 GLIB_LIBS=`glib-config --libs`
22 if [ -n "$GLIB_LIBS" ]; then
23 AC_MSG_RESULT(yes - use '$GLIB_LIBS')
25 AC_MSG_ERROR(can't run 'glib-config --libs' - make sure it is in your PATH)
29 dnl Does file(1) support '-b' ?
30 AC_MSG_CHECKING(whether file -b works)
31 if file -b / > /dev/null 2> /dev/null
33 AC_DEFINE(FILE_B_FLAG)
39 dnl Checks for header files.
44 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h mntent.h sys/ucred.h sys/mntent.h)
45 AC_CHECK_HEADERS(vfs.h)
47 dnl Checks for typedefs, structures, and compiler characteristics.
52 dnl Checks for library functions.
53 AC_CHECK_FUNCS(gethostname mkdir rmdir strdup strtol getopt_long)
55 dnl Check for the Midnight Commander VFS library
56 AC_CHECK_LIB(vfs, mc_stat, , , $GLIB_LIBS)