~jamesodhunt/ubuntu/raring/upstart/1.6

1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
1
# Process this file with autoconf to produce a configure script.
2
767 by Scott James Remnant
* configure.ac: Bump Autoconf dependency to 2.61 to match libnih
3
AC_PREREQ(2.61)
1182.14.79 by James Hunt
* configure.ac: Bump version to 1.5
4
AC_INIT([upstart], [1.5], [upstart-devel@lists.ubuntu.com])
1182.14.110 by James Hunt
* Changelog: Release entry.
5
NIH_COPYRIGHT([[Copyright © 2012 Scott James Remnant, Canonical Ltd.]])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
6
AC_CONFIG_SRCDIR([init/main.c])
7
AC_CONFIG_MACRO_DIR([m4])
8
256 by Scott James Remnant
* configure.ac: Expand AC_GNU_SOURCE so we get _GNU_SOURCE and so
9
AC_GNU_SOURCE
10
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
11
AM_INIT_AUTOMAKE([1.10 gnu nostdinc check-news color-tests silent-rules])
12
AM_SILENT_RULES([yes])
13
AM_MAINTAINER_MODE([enable])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
14
1034 by Scott James Remnant
* configure.ac: Matching libnih, we now mandate libtool 2.2.x
15
LT_PREREQ(2.2.4)
16
LT_INIT
17
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
18
AM_GNU_GETTEXT_VERSION([0.17])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
19
AM_GNU_GETTEXT()
20
21
# Checks for programs.
22
AC_PROG_CC
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
23
PKG_PROG_PKG_CONFIG([0.22])
24
25
AC_PATH_PROG([NIH_DBUS_TOOL], [nih-dbus-tool])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
26
27
# Checks for libraries.
1182.1.55 by Scott James Remnant
* configure.ac: Replace the --with-local-libnih code with an
28
NIH_WITH_LOCAL_LIBNIH
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
29
1182.1.56 by Scott James Remnant
* configure.ac: Bump the requirement of libnih to 1.0.2 after
30
PKG_CHECK_MODULES([NIH], [libnih >= 1.0.2])
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
31
PKG_CHECK_MODULES([NIH_DBUS], [libnih-dbus >= 1.0.0])
32
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 1.2.16])
1182.11.1 by Scott James Remnant
Import the udev bridge from Ubuntu
33
PKG_CHECK_MODULES([UDEV], [libudev >= 146], [have_udev=yes], [have_udev=no])
34
35
AM_CONDITIONAL([HAVE_UDEV], [test "$have_udev" = yes])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
36
37
# Checks for header files.
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
38
AC_CHECK_HEADERS([valgrind/valgrind.h])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
39
40
# Checks for typedefs, structures, and compiler characteristics.
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
41
AC_PROG_CC_C99
42
AM_PROG_CC_C_O
43
NIH_C_THREAD
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
44
45
# Checks for library functions.
46
47
# Other checks
842 by Scott James Remnant
* configure.ac: Compare the evaluated $sbindir against the common
48
AC_MSG_CHECKING([whether to include sbindir in PATH])
49
eval upstart_sbindir=\"$sbindir\"
50
case $upstart_sbindir in
51
    /sbin|//sbin|/usr/sbin|/usr/local/sbin)
52
    	AC_MSG_RESULT([no])
53
	;;
54
    *)
55
    	AC_MSG_RESULT([yes])
56
	AC_DEFINE_UNQUOTED([EXTRA_PATH], ["$upstart_sbindir"],
57
			   [Directory to append to path.])
58
	;;
59
esac
60
1182.1.24 by Scott James Remnant
libnih is now released as its own project, so rather than expecting
61
NIH_COMPILER_WARNINGS
62
NIH_COMPILER_OPTIMISATIONS
63
NIH_COMPILER_COVERAGE
64
65
NIH_LINKER_OPTIMISATIONS
66
67
68
AC_CONFIG_FILES([ Makefile intl/Makefile
1185.1.13 by Steve Langasek
Import upstream version 1.3
69
		  dbus/Makefile init/Makefile util/Makefile conf/Makefile
1182.14.48 by James Hunt
Merge of lp:~jamesodhunt/upstart/upstream-udev+socket-bridges.
70
		  extra/Makefile doc/Makefile contrib/Makefile po/Makefile.in
1182.1.90 by James Hunt
* contrib/Makefile.am: Fixed paths and names for scripts.
71
		  scripts/Makefile ])
1 by Scott James Remnant
* ChangeLog: Initial project infrastructure created.
72
AC_CONFIG_HEADERS([config.h])
73
AC_OUTPUT