blob: 8ba35e048762e9ac26c9564d91cab18f6a4db5e7 [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 Remnant32804e82009-01-26 15:25:57 +000013LT_PREREQ(2.2.4)
14LT_INIT
15
Scott James Remnante16d32c2007-10-08 13:37:44 +010016AM_GNU_GETTEXT_VERSION([0.16.1])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010017AM_GNU_GETTEXT()
18
19# Checks for programs.
20AC_PROG_CC
Scott James Remnantc043a8a2007-04-24 12:59:54 +010021AM_PROG_CC_C_O
Scott James Remnant8a0cd072006-05-14 18:28:58 +010022
23# Checks for libraries.
Scott James Remnant477d9d42008-04-12 14:07:48 +010024NIH_INIT([dbus])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010025
26# Checks for header files.
27
28# Checks for typedefs, structures, and compiler characteristics.
29
30# Checks for library functions.
31
32# Other checks
Scott James Remnant680d2fd2008-02-29 17:41:38 +000033AC_MSG_CHECKING([whether to include sbindir in PATH])
34eval upstart_sbindir=\"$sbindir\"
35case $upstart_sbindir in
36 /sbin|//sbin|/usr/sbin|/usr/local/sbin)
37 AC_MSG_RESULT([no])
38 ;;
39 *)
40 AC_MSG_RESULT([yes])
41 AC_DEFINE_UNQUOTED([EXTRA_PATH], ["$upstart_sbindir"],
42 [Directory to append to path.])
43 ;;
44esac
45
Scott James Remnant8a0cd072006-05-14 18:28:58 +010046
Scott James Remnant5222c402006-09-27 22:48:48 +010047AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile
Scott James Remnant08169c12008-05-08 23:14:22 +010048 nih/Makefile init/Makefile dbus/Makefile doc/Makefile ])
Scott James Remnant6591fef2008-06-08 03:08:39 +010049# util/Makefile
Scott James Remnant8a0cd072006-05-14 18:28:58 +010050AC_CONFIG_HEADERS([config.h])
51AC_OUTPUT