forked from ayush268/cpdb-backend-file
-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
48 lines (37 loc) · 1.45 KB
/
configure.ac
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([cpdb-backend-file], [2.0b5], [https://github.com/OpenPrinting/cpdb-backend-file/issues/], [cpdb-backend-file], [https://github.com/OpenPrinting/cpdb-backend-file])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/print_backend_file.c])
AM_INIT_AUTOMAKE([-Wall dist-xz dist-bzip2 foreign])
: ${CFLAGS=""}
# Check for a C compiler
AC_PROG_CC
# Checks for backend library
PKG_CHECK_MODULES([CPDB],[cpdb >= 2])
PKG_CHECK_MODULES([GIO],[gio-2.0])
PKG_CHECK_MODULES([GIOUNIX],[gio-unix-2.0])
PKG_CHECK_MODULES([GLIB],[glib-2.0])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions
AC_FUNC_MALLOC
# The Dbus service directory
AC_MSG_CHECKING([dbus service file path])
PKG_CHECK_VAR([DBUS_SERVICES_DIR], [dbus-1], [session_bus_services_dir],
AC_MSG_RESULT($DBUS_SERVICES_DIR),
AC_MSG_FAILURE([cannot locate session_bus_services_dir])
)
# The directory for the backend executables
AC_MSG_CHECKING([CPDB backend executables path])
PKG_CHECK_VAR([CPDB_BACKEND_DIR], [cpdb], [cpdb_backend_exec_dir],
AC_MSG_RESULT($CPDB_BACKEND_DIR),
AC_MSG_FAILURE([cannot locate cpdb_backend_exec_dir])
)
AC_CONFIG_FILES([Makefile
src/Makefile
data/Makefile])
AC_OUTPUT