blob: 61a4a98c5de8c3298353fc64bb58d9a65152fc13 [file] [log] [blame]
Scott James Remnant8a0cd072006-05-14 18:28:58 +01001# Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.59)
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
9AM_INIT_AUTOMAKE([1.9 gnu check-news dist-bzip2])
10
11AM_GNU_GETTEXT_VERSION(0.14.1)
12AM_GNU_GETTEXT()
13
14# Checks for programs.
15AC_PROG_CC
16AC_PROG_LIBTOOL
17
18# Checks for libraries.
Scott James Remnant10b8c0e2006-09-27 21:27:38 +010019NIH_INIT
Scott James Remnant8a0cd072006-05-14 18:28:58 +010020
21# Checks for header files.
22
23# Checks for typedefs, structures, and compiler characteristics.
24
25# Checks for library functions.
26
27# Other checks
Scott James Remnant59093a82006-10-10 13:09:58 +010028AC_ARG_ENABLE(compat,
29 AS_HELP_STRING([--enable-compat],
30 [Enable compatibility tools]),
31[case "$enable_compat" in
32 yes|sysv) compat=sysv ;;
33 no) compat=none ;;
34 *) AC_MSG_ERROR([bad value $enable_compat for --enable-compat]) ;;
35esac], [compat_sysv=none])dnl
36AM_CONDITIONAL(COMPAT_SYSV, test "x$compat" = "xsysv")dnl
37
Scott James Remnant8a0cd072006-05-14 18:28:58 +010038
Scott James Remnant5222c402006-09-27 22:48:48 +010039AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile
40 nih/Makefile upstart/Makefile init/Makefile initctl/Makefile
Scott James Remnant335947d2006-10-11 17:08:34 +010041 compat/sysv/Makefile logd/Makefile doc/Makefile ])
Scott James Remnant8a0cd072006-05-14 18:28:58 +010042AC_CONFIG_HEADERS([config.h])
43AC_OUTPUT