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 | a86d398 | 2007-10-15 17:55:09 +0100 | [diff] [blame] | 3 | AC_PREREQ(2.61) |
Scott James Remnant | e32ab4f | 2009-01-26 01:17:21 +0000 | [diff] [blame] | 4 | AC_INIT([upstart], [0.5.1], [upstart-devel@lists.ubuntu.com]) |
Scott James Remnant | 30bc02b | 2008-01-16 01:49:20 +0000 | [diff] [blame] | 5 | AC_COPYRIGHT([[Copyright © 2008 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 | 0c3bef3 | 2007-10-08 13:20:56 +0100 | [diff] [blame] | 11 | AM_INIT_AUTOMAKE([1.10 gnu nostdinc check-news dist-bzip2]) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 12 | |
Scott James Remnant | 32804e8 | 2009-01-26 15:25:57 +0000 | [diff] [blame^] | 13 | LT_PREREQ(2.2.4) |
| 14 | LT_INIT |
| 15 | |
Scott James Remnant | e16d32c | 2007-10-08 13:37:44 +0100 | [diff] [blame] | 16 | AM_GNU_GETTEXT_VERSION([0.16.1]) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 17 | AM_GNU_GETTEXT() |
| 18 | |
| 19 | # Checks for programs. |
| 20 | AC_PROG_CC |
Scott James Remnant | c043a8a | 2007-04-24 12:59:54 +0100 | [diff] [blame] | 21 | AM_PROG_CC_C_O |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 22 | |
| 23 | # Checks for libraries. |
Scott James Remnant | 477d9d4 | 2008-04-12 14:07:48 +0100 | [diff] [blame] | 24 | NIH_INIT([dbus]) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 25 | |
| 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 Remnant | 680d2fd | 2008-02-29 17:41:38 +0000 | [diff] [blame] | 33 | AC_MSG_CHECKING([whether to include sbindir in PATH]) |
| 34 | eval upstart_sbindir=\"$sbindir\" |
| 35 | case $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 | ;; |
| 44 | esac |
| 45 | |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 46 | |
Scott James Remnant | 5222c40 | 2006-09-27 22:48:48 +0100 | [diff] [blame] | 47 | AC_CONFIG_FILES([ Makefile m4/Makefile po/Makefile.in intl/Makefile |
Scott James Remnant | 08169c1 | 2008-05-08 23:14:22 +0100 | [diff] [blame] | 48 | nih/Makefile init/Makefile dbus/Makefile doc/Makefile ]) |
Scott James Remnant | 6591fef | 2008-06-08 03:08:39 +0100 | [diff] [blame] | 49 | # util/Makefile |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 50 | AC_CONFIG_HEADERS([config.h]) |
| 51 | AC_OUTPUT |