Home | History | Annotate | Download | only in genext2fs
      1 #                                               -*- Autoconf -*-
      2 # Process this file with autoconf to produce a configure script.
      3 
      4 AC_PREREQ(2.59)
      5 AC_INIT(genext2fs.c)
      6 
      7 builtin(include, [m4/ac_func_snprintf.m4])dnl
      8 builtin(include, [m4/ac_func_scanf_can_malloc.m4])dnl
      9 
     10 AM_INIT_AUTOMAKE(genext2fs,1.4.1)
     11 AC_CONFIG_HEADER([config.h])
     12 
     13 AC_GNU_SOURCE
     14 
     15 # Checks for programs.
     16 AC_PROG_CC
     17 AC_PROG_INSTALL
     18 
     19 # Checks for header files.
     20 AC_HEADER_DIRENT
     21 AC_HEADER_STDC
     22 AC_HEADER_MAJOR
     23 AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h memory.h stddef.h stdint.h stdlib.h string.h strings.h unistd.h])
     24 AC_CHECK_HEADERS([libgen.h getopt.h])
     25 
     26 # Checks for typedefs, structures, and compiler characteristics.
     27 AC_C_CONST
     28 AC_TYPE_UID_T
     29 AC_C_INLINE
     30 AC_CHECK_TYPE(size_t, unsigned)
     31 AC_CHECK_TYPE(ssize_t, signed)
     32 AC_CHECK_MEMBERS([struct stat.st_rdev])
     33 
     34 # Checks for library functions.
     35 AC_CHECK_FUNCS([getopt_long getline strtof])
     36 AC_FUNC_SNPRINTF
     37 AC_FUNC_SCANF_CAN_MALLOC
     38 
     39 AC_OUTPUT([Makefile],[
     40 chmod a+x $ac_top_srcdir/test-mount.sh $ac_top_srcdir/test.sh
     41 ])
     42