3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 Index: apt-0.5.28.6/configure.in
7 ===================================================================
8 --- apt-0.5.28.6.orig/configure.in 2005-03-22 08:03:50.000000000 +0100
9 +++ apt-0.5.28.6/configure.in 2005-05-15 15:08:50.000000000 +0200
11 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
13 dnl -- SET THIS TO THE RELEASE VERSION --
14 -AC_DEFINE_UNQUOTED(VERSION,"0.5.28.6")
15 +AC_DEFINE_UNQUOTED(VERSION,"0.5.28.6", [package version])
17 -AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
18 +AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE", [package name])
21 dnl Check the archs, we want the target type.
25 dnl Checks for pthread -- disabled due to glibc bugs jgg
26 -dnl AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD) PTHREADLIB="-lpthread"])
27 +dnl AC_CHECK_LIB(pthread, pthread_create,[AC_DEFINE(HAVE_PTHREAD, 1, [define if we have pthreads]) PTHREADLIB="-lpthread"])
29 dnl if test "$PTHREADLIB" != "-lpthread"; then
30 dnl AC_MSG_ERROR(failed: I need posix threads, pthread)
33 [int r, s, t; db_version(&r, &s, &t);]
35 - [AC_DEFINE(HAVE_BDB)
36 + [AC_DEFINE(HAVE_BDB, 1, [define if we have BerkeleyDB])
41 AC_MSG_ERROR(failed: use --host= or check buildlib/archtable)
43 AC_MSG_RESULT($archset)
44 -AC_DEFINE_UNQUOTED(COMMON_CPU,"$archset")
45 +AC_DEFINE_UNQUOTED(COMMON_CPU,"$archset",[define to the system architecture])
47 dnl Get a common name for the host OS - this is primarily only for HURD and is
48 dnl non fatal if it fails
49 AC_MSG_CHECKING(system OS)
50 osset="`awk \" ! /^#|^\\\$/ {if (match(\\\"$target_vendor-$target_os\\\",\\\$1)) {print \\\$2; exit}}\" $srcdir/buildlib/ostable`"
52 -AC_DEFINE_UNQUOTED(COMMON_OS,"$osset")
53 +AC_DEFINE_UNQUOTED(COMMON_OS,"$osset",[define to the system OS])
55 dnl We use C99 types if at all possible
56 AC_CACHE_CHECK([for C99 integer types],c9x_ints,[
59 dnl Arg, linux and bsd put their statfs function in different places
60 if test x"$HAVE_STATVFS" != x"yes"; then
61 - AC_EGREP_HEADER(statfs,sys/vfs.h,[AC_DEFINE(HAVE_VFS_H)],[
62 - AC_EGREP_HEADER(statfs,sys/mount.h,[AC_DEFINE(HAVE_MOUNT_H)],[AC_MSG_ERROR(failed: Need statvfs)])
63 + AC_EGREP_HEADER(statfs,sys/vfs.h,[AC_DEFINE(HAVE_VFS_H, 1, [define if statfs is in sys/vfs.h])],[
64 + AC_EGREP_HEADER(statfs,sys/mount.h,[AC_DEFINE(HAVE_MOUNT_H, 1, [define if statfs is in sys/mount.h])],[AC_MSG_ERROR(failed: Need statvfs)])
68 dnl We should use the real timegm function if we have it.
69 -AC_CHECK_FUNC(timegm,AC_DEFINE(HAVE_TIMEGM))
70 +AC_CHECK_FUNC(timegm,AC_DEFINE(HAVE_TIMEGM, 1, [define if we have timegm]))
73 dnl Check the sizes etc. of the architecture
76 AC_MSG_CHECKING(for missing socklen_t)
77 AC_EGREP_HEADER(socklen_t, sys/socket.h,[AC_MSG_RESULT(no)],[
78 - AC_DEFINE(NEED_SOCKLEN_T_DEFINE)
79 + AC_DEFINE(NEED_SOCKLEN_T_DEFINE, 1, [define if we need to define socklen_t])
80 NEED_SOCKLEN_T_DEFINE=yes
81 AC_MSG_RESULT(missing.)])
82 AC_SUBST(NEED_SOCKLEN_T_DEFINE)
84 ALL_LINGUAS="da de en_GB es fr hu it nl no_NO pl pt_BR ru sv zh_TW"
85 AM_GNU_GETTEXT(external)
86 if test x"$USE_NLS" = "xyes"; then
88 + AC_DEFINE(USE_NLS, 1, [define if we have native language support])
91 AC_PATH_PROG(BASH, bash)