1 # Process this file with autoconf to produce a configure script.
3 m4_pattern_forbid([^_?DPKG_])
6 AC_INIT([dpkg], m4_esyscmd([./get-version]), [debian-dpkg@lists.debian.org],
7 [dpkg], [https://wiki.debian.org/Teams/Dpkg])
9 AC_SUBST([PACKAGE_COPYRIGHT_HOLDER], ['Dpkg Developers'])
10 AC_SUBST([PACKAGE_VCS_TYPE], [git])
11 AC_SUBST([PACKAGE_VCS_URL], [https://git.dpkg.org/git/dpkg/dpkg.git])
12 AC_SUBST([PACKAGE_VCS_WEB], [https://git.dpkg.org/cgit/dpkg/dpkg.git])
13 AC_SUBST([PACKAGE_BUG_WEB], [https://bugs.debian.org/src:dpkg])
14 AC_SUBST([PACKAGE_CPAN_NAME], [Dpkg])
15 AC_CONFIG_SRCDIR([lib/dpkg/dpkg.h])
16 AC_CONFIG_MACRO_DIR([m4])
17 AC_CONFIG_AUX_DIR([build-aux])
19 AC_USE_SYSTEM_EXTENSIONS
26 [tar-ustar no-dist-gzip dist-xz]
28 AM_SILENT_RULES([yes])
30 # Require at least this gettext version, but will take any later version too.
31 AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
32 # XXX: We cannot remove the following macro due to backwards compatibility
33 # reasons. The above macro is set unconditionally to the minimal version
34 # required, and the below is set to 0.19.6, the first version introducing
35 # the AM_GNU_GETTEXT_REQUIRE_VERSION macro.
36 AM_GNU_GETTEXT_VERSION([0.19.6])
37 AM_GNU_GETTEXT([external])
38 DPKG_DIST_CHECK([test "$GMSGFMT" = ":" && test "$USE_NLS" = "yes"],
39 [gettext required when NLS support enabled])
41 # Shared libraries are disabled on purpose, currently there is no ABI stability
42 # guarantee, and it will be broken at will. The infrastructure is in place just
43 # to be able to test that its future activation will work.
45 LT_INIT([disable-shared])
46 DPKG_BUILD_SHARED_LIBS
48 DPKG_LINKER_VERSION_SCRIPT
50 # Allow compilation without optional programs
51 DPKG_BUILD_PROG([dselect])
52 DPKG_BUILD_PROG([start-stop-daemon])
53 DPKG_BUILD_PROG([update-alternatives])
55 DPKG_BUILD_RELEASE_DATE
58 # Allow alternate directories
59 DPKG_WITH_DIR([devlibdir], [${libdir}],
60 [dpkg development library directory [LIBDIR]])
61 DPKG_WITH_DIR([pkgconfdir], [${sysconfdir}/${PACKAGE_NAME}],
62 [dpkg configuration directory [SYSCONFDIR/dpkg]])
63 DPKG_WITH_DIR([admindir], [${localstatedir}/lib/${PACKAGE_NAME}],
64 [dpkg database directory [LOCALSTATEDIR/lib/dpkg]])
65 DPKG_WITH_DIR([logdir], [${localstatedir}/log],
66 [system logging directory [LOCALSTATEDIR/log]])
68 # Set default dpkg-deb values
69 DPKG_DEB_COMPRESSOR([xz])
72 # Checks for programs.
78 AC_CHECK_PROGS([DOXYGEN], [doxygen])
79 AC_CHECK_PROG([HAVE_DOT], [dot], [YES], [NO])
85 # Checks for operating system services and capabilities.
88 # Checks for libraries.
94 AS_IF([test "x$build_dselect" = "xyes"], [
97 AS_IF([test "x$build_start_stop_daemon" = "xyes"], [
102 # Checks for header files.
120 AC_CHECK_HEADERS([sys/proc.h], [], [], [
121 #ifdef HAVE_SYS_PARAM_H
122 #include <sys/param.h>
126 AS_IF([test "x$build_dselect" = "xyes"], [
128 AC_CHECK_HEADERS([cxxabi.h])
132 # Checks for typedefs, structures, and compiler characteristics.
141 AC_CHECK_SIZEOF([unsigned int])
142 AC_CHECK_SIZEOF([unsigned long])
143 DPKG_DECL_SYS_SIGLIST
144 DPKG_DECL_SYS_ERRLIST
146 # Checks for library functions.
148 DPKG_FUNC_C99_SNPRINTF
149 DPKG_CHECK_DECL([offsetof], [stddef.h])
150 DPKG_CHECK_DECL([makedev], [sys/types.h])
151 DPKG_CHECK_DECL([WCOREDUMP], [sys/wait.h])
152 DPKG_CHECK_DECL([TIOCNOTTY], [sys/ioctl.h])
153 DPKG_CHECK_DECL([O_NOFOLLOW], [fcntl.h])
154 DPKG_CHECK_DECL([F_ALLOCSP64], [fcntl.h])
155 DPKG_CHECK_DECL([F_PREALLOCATE], [fcntl.h])
156 DPKG_CHECK_DECL([P_tmpdir], [stdio.h])
158 DPKG_CHECK_COMPAT_FUNCS([\
172 AC_CHECK_FUNCS([memcpy lchown],
173 [], [AC_MSG_ERROR([missing required function])])
188 AS_IF([test "x$build_dselect" = "xyes"], [
190 AC_CHECK_FUNCS([__cxa_pure_virtual])
195 DPKG_USE_DISK_PREALLOCATE
197 # Checks for the build machinery.
198 AC_DEFINE([LIBDPKG_VOLATILE_API], [1], [Acknowledge the volatility of the API.])
199 DPKG_COMPILER_WARNINGS
200 DPKG_COMPILER_OPTIMIZATIONS
201 DPKG_LINKER_OPTIMIZATIONS
203 AC_DEFINE([PACKAGE_RELEASE], [PACKAGE_VERSION " (" ARCHITECTURE ")"],
204 [Define the project release information, version and architecture])
206 AC_CONFIG_TESTDIR([t-func])
207 AM_MISSING_PROG([AUTOM4TE], [autom4te])
216 dselect/methods/Makefile
217 dselect/po/Makefile.in
229 scripts/po/Makefile.in
233 AC_CONFIG_HEADERS([config.h])
236 # Print the current configuration
241 native language support . . . : $USE_NLS
242 unicode support . . . . . . . : $USE_UNICODE
243 development documentation . . : $build_devel_docs
244 code coverage . . . . . . . . : $enable_coverage
245 build shared libraries . . . : $enable_shared
246 mmap loaders . . . . . . . . : $enable_mmap
247 disk pre-allocation . . . . . : $enable_disk_preallocate
248 default dpkg-deb compressor . : $with_dpkg_deb_compressor
251 devlibdir . . . . . . . . . . : $devlibdir
252 pkgconfdir . . . . . . . . . : $pkgconfdir
253 admindir . . . . . . . . . . : $admindir
254 logdir . . . . . . . . . . . : $logdir
255 perl interpreter . . . . . . : $PERL
256 perl libdir . . . . . . . . . : $PERL_LIBDIR
259 update-alternatives . . . . . : $build_update_alternatives
260 start-stop-daemon . . . . . . : $build_start_stop_daemon
261 dselect . . . . . . . . . . . : $build_dselect
264 libps . . . . . . . . . . . . : ${have_libps:-no}
265 libkvm . . . . . . . . . . . : ${have_libkvm:-no}
266 libselinux . . . . . . . . . : $have_libselinux
267 libmd . . . . . . . . . . . . : $have_libmd
268 libz . . . . . . . . . . . . : $have_libz
269 liblzma . . . . . . . . . . . : $have_liblzma
270 libbz2 . . . . . . . . . . . : $have_libbz2
271 libcurses . . . . . . . . . . : ${have_libcurses:-no}