1 # Process this file with autoconf to produce a configure script.
4 AC_INIT([dpkg], [1.14.17~], [debian-dpkg@lists.debian.org])
5 AC_CONFIG_SRCDIR([lib/dpkg.h])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_AUX_DIR([config])
13 AM_INIT_AUTOMAKE([1.8 gnu])
15 AM_GNU_GETTEXT_VERSION([0.16.1])
16 AM_GNU_GETTEXT([external])
18 # Allow compilation without dselect
20 AS_HELP_STRING([--without-dselect],
21 [don't build dselect package-management frontend]),
22 [build_dselect=$with_dselect],
24 AM_CONDITIONAL(WITH_DSELECT, [test "x$build_dselect" = "xyes"])
26 # Allow compilation without start-stop-daemon
27 AC_ARG_WITH(start-stop-daemon,
28 AS_HELP_STRING([--without-start-stop-daemon],
29 [don't build or use start-stop-daemon]),
30 [build_start_stop_daemon=$with_start_stop_daemon],
31 [build_start_stop_daemon=yes])
32 AM_CONDITIONAL(WITH_START_STOP_DAEMON,
33 [test "x$build_start_stop_daemon" = "xyes"])
34 if test "x$build_start_stop_daemon" = "xyes"; then
35 AC_DEFINE(WITH_START_STOP_DAEMON, 1,
36 [Define to 1 if start-stop-daemon is compiled.])
38 AC_DEFINE(WITH_START_STOP_DAEMON, 0)
41 # Allow alternate admin directory
42 admindir="${localstatedir}/${PACKAGE_NAME}"
44 AS_HELP_STRING([--with-admindir=DIR],
45 [dpkg database directory [[LOCALSTATEDIR/dpkg]]]),
46 [case "$with_admindir" in
47 "") AC_MSG_ERROR([invalid admindir specified]) ;;
48 *) admindir="$with_admindir" ;;
53 # Checks for programs.
59 # Checks for operating system services and capabilities.
62 # Checks for libraries.
66 if test "x$build_dselect" = "xyes"; then
69 if test "x$build_start_stop_daemon" = "xyes"; then
73 # Checks for header files.
75 AC_CHECK_HEADERS([stddef.h error.h locale.h sys/cdefs.h kvm.h])
76 DPKG_CHECK_DEFINE(TIOCNOTTY, [sys/ioctl.h])
78 # Checks for typedefs, structures, and compiler characteristics.
88 AC_CHECK_SIZEOF([unsigned int])
89 AC_CHECK_SIZEOF([unsigned long])
93 # Checks for library functions.
95 DPKG_CHECK_COMPAT_FUNCS([getopt getopt_long obstack_free])
96 AC_CHECK_FUNCS([vsnprintf snprintf strtoul strerror strsignal alphasort \
97 isascii bcopy memcpy scandir unsetenv lchown setsid \
100 SJR_COMPILER_WARNINGS
101 SJR_COMPILER_OPTIMISATIONS
102 SJR_LINKER_OPTIMISATIONS
104 AC_CONFIG_FILES([ Makefile
108 dselect/methods/Makefile
109 dselect/po/Makefile.in
116 scripts/po/Makefile.in
119 AC_CONFIG_HEADERS([config.h])