configure.ac revision 0903d1e42908aab9fe0cd90de1c4a0733a645ed6
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.68])
5AC_INIT([F2FS tools], [1.0.0], [http://sourceforge.net/projects/f2fs-tools/])
6AM_INIT_AUTOMAKE
7AC_CONFIG_SRCDIR([mkfs/f2fs_format.c])
8AC_CHECK_HEADERS_ONCE(m4_flatten([
9	fcntl.h
10	mntent.h
11	stdlib.h
12	string.h
13	unistd.h
14	sys/ioctl.h
15	sys/mount.h
16]))
17
18# Checks for programs.
19AC_PROG_CC
20
21# Checks for libraries.
22AC_CHECK_LIB([uuid], [uuid_generate],
23	[AC_DEFINE([HAVE_LIBUUID], 1,
24	  [Define to 1 if you have the 'uuid' library (-luuid).])],
25	[AC_MSG_ERROR([UUID library not found])])
26
27# Checks for header files.
28AC_CHECK_HEADERS([fcntl.h mntent.h stdlib.h string.h sys/ioctl.h sys/mount.h unistd.h])
29
30# Checks for typedefs, structures, and compiler characteristics.
31AC_C_INLINE
32AC_TYPE_INT32_T
33AC_TYPE_INT8_T
34AC_TYPE_SIZE_T
35
36# Checks for library functions.
37AC_FUNC_GETMNTENT
38AC_CHECK_FUNCS_ONCE(m4_flatten([
39	getmntent
40	memset
41]))
42
43AC_CONFIG_FILES(m4_flatten([
44	Makefile
45	man/Makefile
46	mkfs/Makefile
47]))
48
49AC_OUTPUT
50