File: configure.in

package info (click to toggle)
liblazy 0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,600 kB
  • ctags: 71
  • sloc: sh: 9,022; ansic: 677; makefile: 27
file content (43 lines) | stat: -rw-r--r-- 1,134 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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)

AC_INIT(liblazy, 0.2, hmacht@suse.de)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([liblazy/liblazy_hal.c])
AM_CONFIG_HEADER(config.h)

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LIBTOOL

# Checks for header files.
AC_CHECK_HEADERS([unistd.h string.h stdio.h stdlib.h errno.h])

PKG_CHECK_MODULES(DBUS, dbus-1 >= 0.30)

DBUS_VERSION="`pkg-config --modversion dbus-1`"

DBUS_SYSTEM_BUS_SOCKET="`pkg-config --variable=system_bus_default_address dbus-1`"
if test -z "$DBUS_SYSTEM_BUS_SOCKET"; then
   # use default
   DBUS_SYSTEM_BUS_SOCKET="unix:path=/var/run/dbus/system_bus_socket"
fi
AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS_SOCKET, ["$DBUS_SYSTEM_BUS_SOCKET"],
                                           [dbus system bus socket path])
# check for doxygen
AC_CHECK_PROG(DOXYGEN, [doxygen], [doxygen], [])

AC_SUBST([DBUS_LIBS])
AC_SUBST([DBUS_CFLAGS])

AC_CONFIG_FILES([Makefile
		liblazy/Makefile
		liblazy/lazy.pc
		tools/Makefile
		docs/Makefile
		docs/autodocs/Makefile])

AC_OUTPUT