1 --- dpkg-1.6.15/configure.in.orig Fri Oct 19 22:48:16 2001
2 +++ dpkg-1.6.15/configure.in Fri Oct 19 22:50:56 2001
5 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])
7 -AC_REQUIRE([AC_ARG_PROGRAM])
8 -AC_REQUIRE([AC_PROG_MAKE_SET])
12 AC_MSG_CHECKING(dpkg version)
13 AC_MSG_RESULT($VERSION)
14 diff -Nur dpkg-1.6.15.orig/acinclude.m4 dpkg-1.6.15/acinclude.m4
15 --- dpkg-1.6.15.orig/acinclude.m4 Thu Jan 1 01:00:00 1970
16 +++ dpkg-1.6.15/acinclude.m4 Fri Oct 19 22:54:18 2001
18 +dnl Bunch of extra macros to make dpkg more portable
19 +dnl Copyright (C) 1999 Wichert Akkerman <wakkerma@debian.org>
21 +dnl This program is free software; you can redistribute it and/or modify
22 +dnl it under the terms of the GNU General Public License as published by
23 +dnl the Free Software Foundation; either version 2, or (at your option)
24 +dnl any later version.
26 +dnl This program is distributed in the hope that it will be useful,
27 +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
28 +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 +dnl GNU General Public License for more details.
31 +dnl You should have received a copy of the GNU General Public License
32 +dnl along with this program; if not, write to the Free Software
33 +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
36 +AC_DEFUN(AC_HAVE_SYSINFO,
37 +[AC_CACHE_CHECK(whether sysinfo is available,
39 +[ AC_CHECK_FUNC(sysinfo,ac_cv_func_sysinfo=yes,ac_cv_func_sysinfo=no)])
40 +if test "$ac_cv_func_sysinfo" = "yes" ; then
41 + AC_DEFINE(HAVE_SYSINFO)
45 +AC_DEFUN(AC_MEMINFO_IN_SYSINFO,
46 +[AC_REQUIRE([AC_HAVE_SYSINFO])dnl
47 + if test "$ac_cv_header_sys_sysinfo" = "" ; then
48 + AC_CHECK_HEADERS(sys/sysinfo.h)
50 + AC_CACHE_CHECK(whether struct sysinfo contains memory information,
51 + ac_cv_meminfo_in_sysinfo,
53 +#ifdef HAVE_SYS_SYSINFO_H
54 +#include <sys/sysinfo.h>
56 +], [struct sysinfo si ; si.freeram;si.sharedram;si.bufferram;],
57 + ac_cv_meminfo_in_sysinfo=yes, ac_cv_meminfo_in_sysinfo=no)])
58 + if test "$ac_cv_have_sysinfo_meminfo" = yes ; then
59 + AC_DEFINE(MEMINFO_IN_SYSINFO)
65 +dnl Moved from configure.in, modified to use AC_DEFUN
66 +dnl -- Tom Lees <tom@lpsg.demon.co.uk>
68 +dnl DPKG_CACHED_TRY_COMPILE(<description>,<cachevar>,<include>,<program>,<ifyes>,<ifno>)
69 +AC_DEFUN(DPKG_CACHED_TRY_COMPILE,[
72 + AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no])
74 + if test "x$$2" = xyes; then
83 +dnl DPKG_C_GCC_TRY_WARNS(<warnings>,<cachevar>)
84 +AC_DEFUN(DPKG_C_GCC_TRY_WARNS,[
85 + AC_MSG_CHECKING([GCC warning flag(s) $1])
86 + if test "${GCC-no}" = yes
89 + oldcflags="${CFLAGS-}"
90 + CFLAGS="${CFLAGS-} ${CWARNS} $1 -Werror"
95 + strcmp("a","b"); fprintf(stdout,"test ok\n");
96 +], [$2=yes], [$2=no])
97 + CFLAGS="${oldcflags}"])
98 + if test "x$$2" = xyes; then
99 + CWARNS="${CWARNS} $1"
106 + AC_MSG_RESULT(no, not using GCC)