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