Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 1 | # Process this file with autoconf to produce a configure script. |
| 2 | |
Scott James Remnant | 8985dd3 | 2006-10-12 15:26:29 +0100 | [diff] [blame^] | 3 | AC_PREREQ(2.60) |
Scott James Remnant | 5222c40 | 2006-09-27 22:48:48 +0100 | [diff] [blame] | 4 | AC_INIT([upstart], [0.3.0], [new@bugs.launchpad.net]) |
Scott James Remnant | b6270dd | 2006-07-13 02:16:38 +0100 | [diff] [blame] | 5 | AC_COPYRIGHT([[Copyright © 2006 Canonical Ltd.]]) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 6 | AC_CONFIG_SRCDIR([init/main.c]) |
| 7 | AC_CONFIG_MACRO_DIR([m4]) |
| 8 | |
Scott James Remnant | 8985dd3 | 2006-10-12 15:26:29 +0100 | [diff] [blame^] | 9 | AC_GNU_SOURCE |
| 10 | |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 11 | AM_INIT_AUTOMAKE([1.9 gnu check-news dist-bzip2]) |
| 12 | |
Scott James Remnant | 8985dd3 | 2006-10-12 15:26:29 +0100 | [diff] [blame^] | 13 | AM_GNU_GETTEXT_VERSION(0.15) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 14 | AM_GNU_GETTEXT() |
| 15 | |
| 16 | # Checks for programs. |
| 17 | AC_PROG_CC |
| 18 | AC_PROG_LIBTOOL |
| 19 | |
| 20 | # Checks for libraries. |
Scott James Remnant | 10b8c0e | 2006-09-27 21:27:38 +0100 | [diff] [blame] | 21 | NIH_INIT |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 22 | |
| 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 Remnant | 59093a8 | 2006-10-10 13:09:58 +0100 | [diff] [blame] | 30 | AC_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]) ;; |
| 37 | esac], [compat_sysv=none])dnl |
| 38 | AM_CONDITIONAL(COMPAT_SYSV, test "x$compat" = "xsysv")dnl |
| 39 | |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 40 | |
Scott James Remnant | 5222c40 | 2006-09-27 22:48:48 +0100 | [diff] [blame] | 41 | AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile |
| 42 | nih/Makefile upstart/Makefile init/Makefile initctl/Makefile |
Scott James Remnant | 335947d | 2006-10-11 17:08:34 +0100 | [diff] [blame] | 43 | compat/sysv/Makefile logd/Makefile doc/Makefile ]) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 44 | AC_CONFIG_HEADERS([config.h]) |
| 45 | AC_OUTPUT |