File: configure.ac

package info (click to toggle)
ltspfs 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 356 kB
  • sloc: ansic: 1,957; sh: 232; python: 135; makefile: 37
file content (45 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
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
AC_PREREQ(2.59)
AC_INIT(ltspfs, [1.5], [sbalneav@ltsp.org])
AC_CONFIG_SRCDIR([src/ltspfs.c])
AM_INIT_AUTOMAKE

AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INSTALL

# Checks for libraries.
# Thanks, Ollie!
# PKG_CHECK_MODULES(LTSPFSD, [x11])
PKG_CHECK_MODULES(LTSPFS, [fuse, x11])

# Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h],,AC_MSG_ERROR(Required header missing))

dnl Check for Packages
if test -z "$UDEV_RULES_PATH"; then
        UDEV_RULES_PATH=/etc/udev/rules.d
fi
AC_SUBST(UDEV_RULES_PATH)

if test -z "$UDEV_LIB_PATH"; then
        UDEV_LIB_PATH=/lib/udev
fi
AC_SUBST(UDEV_LIB_PATH)

PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6.0)
PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.6.0)

AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GOBJECT_CFLAGS)
AC_SUBST(GOBJECT_LIBS)

dnl Output
AC_CONFIG_FILES(Makefile src/Makefile man/Makefile scripts/Makefile udev/Makefile)
AC_OUTPUT