blob: ef0505bb79862daa2d6846036ec4b534e57e74b7 [file] [log] [blame]
Scott James Remnant8a0cd072006-05-14 18:28:58 +01001# Process this file with autoconf to produce a configure script.
2
Scott James Remnanta86d3982007-10-15 17:55:09 +01003AC_PREREQ(2.61)
Scott James Remnante32ab4f2009-01-26 01:17:21 +00004AC_INIT([upstart], [0.5.1], [upstart-devel@lists.ubuntu.com])
Scott James Remnant30bc02b2008-01-16 01:49:20 +00005AC_COPYRIGHT([[Copyright © 2008 Canonical Ltd.]])
Scott James Remnant8a0cd072006-05-14 18:28:58 +01006AC_CONFIG_SRCDIR([init/main.c])
7AC_CONFIG_MACRO_DIR([m4])
8
Scott James Remnant8985dd32006-10-12 15:26:29 +01009AC_GNU_SOURCE
10
Scott James Remnant0c3bef32007-10-08 13:20:56 +010011AM_INIT_AUTOMAKE([1.10 gnu nostdinc check-news dist-bzip2])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010012
Scott James Remnante16d32c2007-10-08 13:37:44 +010013AM_GNU_GETTEXT_VERSION([0.16.1])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010014AM_GNU_GETTEXT()
15
16# Checks for programs.
17AC_PROG_CC
Scott James Remnantc043a8a2007-04-24 12:59:54 +010018AM_PROG_CC_C_O
Scott James Remnant8a0cd072006-05-14 18:28:58 +010019AC_PROG_LIBTOOL
20
21# Checks for libraries.
Scott James Remnant477d9d42008-04-12 14:07:48 +010022NIH_INIT([dbus])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010023
24# Checks for header files.
25
26# Checks for typedefs, structures, and compiler characteristics.
27
28# Checks for library functions.
29
30# Other checks
Scott James Remnant680d2fd2008-02-29 17:41:38 +000031AC_MSG_CHECKING([whether to include sbindir in PATH])
32eval upstart_sbindir=\"$sbindir\"
33case $upstart_sbindir in
34 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
35 AC_MSG_RESULT([no])
36 ;;
37 *)
38 AC_MSG_RESULT([yes])
39 AC_DEFINE_UNQUOTED([EXTRA_PATH], ["$upstart_sbindir"],
40 [Directory to append to path.])
41 ;;
42esac
43
Scott James Remnant8a0cd072006-05-14 18:28:58 +010044
Scott James Remnant5222c402006-09-27 22:48:48 +010045AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile
Scott James Remnant08169c12008-05-08 23:14:22 +010046 nih/Makefile init/Makefile dbus/Makefile doc/Makefile ])
Scott James Remnant6591fef2008-06-08 03:08:39 +010047# util/Makefile
Scott James Remnant8a0cd072006-05-14 18:28:58 +010048AC_CONFIG_HEADERS([config.h])
49AC_OUTPUT