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 | b3918a6 | 2010-02-03 16:39:50 -0800 | [diff] [blame^] | 4 | AC_INIT([upstart], [0.6.5], [upstart-devel@lists.ubuntu.com]) |
| 5 | AC_COPYRIGHT([[Copyright © 2010 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 | 9b25c8d | 2009-01-26 15:35:51 +0000 | [diff] [blame] | 47 | AC_CONFIG_FILES([ Makefile m4/Makefile intl/Makefile |
Scott James Remnant | 0ad2d9a | 2009-02-20 22:08:20 +0000 | [diff] [blame] | 48 | nih/Makefile nih-dbus/Makefile nih-dbus-tool/Makefile |
Scott James Remnant | edb382a | 2009-07-08 20:43:16 +0100 | [diff] [blame] | 49 | dbus/Makefile init/Makefile util/Makefile conf/Makefile |
Scott James Remnant | d3a6ca7 | 2009-07-08 20:59:21 +0100 | [diff] [blame] | 50 | doc/Makefile contrib/Makefile po/Makefile.in ]) |
Scott James Remnant | 8a0cd07 | 2006-05-14 18:28:58 +0100 | [diff] [blame] | 51 | AC_CONFIG_HEADERS([config.h]) |
| 52 | AC_OUTPUT |