5 kx # -*- Autoconf -*-
5 kx # Process this file with autoconf to produce a configure script.
5 kx
5 kx AC_PREREQ(2.59)
5 kx AC_INIT([genext2fs],[1.4.1])
5 kx
5 kx builtin(include, [m4/ac_func_snprintf.m4])dnl
5 kx builtin(include, [m4/ac_func_scanf_can_malloc.m4])dnl
5 kx
5 kx AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz])
5 kx AC_CONFIG_HEADERS([config.h])
5 kx
5 kx AC_GNU_SOURCE
5 kx
5 kx # Checks for programs.
5 kx AC_PROG_CC
5 kx AC_PROG_INSTALL
5 kx
5 kx # Checks for header files.
5 kx AC_HEADER_DIRENT
5 kx AC_HEADER_STDC
5 kx AC_HEADER_MAJOR
5 kx AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h memory.h stddef.h stdint.h stdlib.h string.h strings.h unistd.h])
5 kx AC_CHECK_HEADERS([libgen.h getopt.h])
5 kx
5 kx # Checks for typedefs, structures, and compiler characteristics.
5 kx AC_C_CONST
5 kx AC_TYPE_UID_T
5 kx AC_C_INLINE
5 kx AC_CHECK_TYPE(size_t, unsigned)
5 kx AC_CHECK_TYPE(ssize_t, signed)
5 kx AC_CHECK_MEMBERS([struct stat.st_rdev])
5 kx
5 kx # Checks for library functions.
5 kx AC_CHECK_FUNCS([getopt_long getline strtof])
5 kx AC_FUNC_SNPRINTF
5 kx AC_FUNC_SCANF_CAN_MALLOC
5 kx
5 kx AC_OUTPUT([Makefile],[
5 kx chmod a+x $ac_top_srcdir/test-mount.sh $ac_top_srcdir/test.sh
5 kx ])