blob: bcbb58f29022509512fb347d26236ca72466e01c [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 Remnant8985dd32006-10-12 15:26:29 +01003AC_PREREQ(2.60)
Scott James Remnant5222c402006-09-27 22:48:48 +01004AC_INIT([upstart], [0.3.0], [new@bugs.launchpad.net])
Scott James Remnantb6270dd2006-07-13 02:16:38 +01005AC_COPYRIGHT([[Copyright © 2006 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 Remnant8a0cd072006-05-14 18:28:58 +010011AM_INIT_AUTOMAKE([1.9 gnu check-news dist-bzip2])
12
Scott James Remnant8985dd32006-10-12 15:26:29 +010013AM_GNU_GETTEXT_VERSION(0.15)
Scott James Remnant8a0cd072006-05-14 18:28:58 +010014AM_GNU_GETTEXT()
15
16# Checks for programs.
17AC_PROG_CC
18AC_PROG_LIBTOOL
19
20# Checks for libraries.
Scott James Remnant10b8c0e2006-09-27 21:27:38 +010021NIH_INIT
Scott James Remnant8a0cd072006-05-14 18:28:58 +010022
23# Checks for header files.
24
25# Checks for typedefs, structures, and compiler characteristics.
26
27# Checks for library functions.
28
29# Other checks
Scott James Remnant59093a82006-10-10 13:09:58 +010030AC_ARG_ENABLE(compat,
31 AS_HELP_STRING([--enable-compat],
32 [Enable compatibility tools]),
33[case "$enable_compat" in
34 yes|sysv) compat=sysv ;;
35 no) compat=none ;;
36 *) AC_MSG_ERROR([bad value $enable_compat for --enable-compat]) ;;
37esac], [compat_sysv=none])dnl
38AM_CONDITIONAL(COMPAT_SYSV, test "x$compat" = "xsysv")dnl
39
Scott James Remnant8a0cd072006-05-14 18:28:58 +010040
Scott James Remnant5222c402006-09-27 22:48:48 +010041AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile
42 nih/Makefile upstart/Makefile init/Makefile initctl/Makefile
Scott James Remnant335947d2006-10-11 17:08:34 +010043 compat/sysv/Makefile logd/Makefile doc/Makefile ])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010044AC_CONFIG_HEADERS([config.h])
45AC_OUTPUT