File: configure.ac

package info (click to toggle)
fuse-umfuse-iso9660 0.3-1.3
  • links: PTS
  • area: main
  • in suites: buster, sid
  • size: 1,392 kB
  • sloc: sh: 11,081; ansic: 1,614; makefile: 25
file content (61 lines) | stat: -rw-r--r-- 1,817 bytes parent folder | download | duplicates (3)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.60)
AC_INIT([fuse-umfuse-iso9660], [0.3], [info@v2.cs.unibo.it])
AM_INIT_AUTOMAKE([foreign dist-bzip2 1.10])
AC_CONFIG_SRCDIR([fuseiso9660.c])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_LIBTOOL

# Checks for libraries.
AC_CHECK_LIB([fuse], [fuse_main],,
    [AC_MSG_ERROR([Can't find libfuse, please install it])])
AC_CHECK_LIB([iso9660], [iso9660_open_ext],,
    [AC_MSG_ERROR([Can't find libiso9660, please install it])])
AC_CHECK_LIB([cdio], [_cdio_list_begin],,
    [AC_MSG_ERROR([Can't find libcdio, please install it])])
AC_CHECK_LIB([z], [uncompress],,
    [AC_MSG_ERROR([Can't find zlib, please install it])])
AC_CHECK_LIB([umlib], [um_add_service],,
    [AC_MSG_ERROR([Can't find libumlib, please install it])])

AC_MSG_CHECKING([if FUSE on this system is too new for us])
AC_EGREP_CPP([yes], [
#include "fuse.h"
#if FUSE_VERSION > 26
yes
#endif
], AC_DEFINE([FUSE_USE_VERSION], [26], [Version of FUSE interface]) AC_MSG_RESULT([yes]),
   AC_DEFINE([FUSE_USE_VERSION], [FUSE_VERSION], [Version of FUSE interface]) AC_MSG_RESULT([no]))

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/statvfs.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_STRUCT_ST_BLOCKS
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_STRUCT_TM
AC_HEADER_STDBOOL
AC_TYPE_UINT16_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_MKTIME
AC_FUNC_UTIME_NULL
AC_CHECK_FUNCS([lchown memset mkdir rmdir utime])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT