3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
7 +++ adns-1.0/acinclude.m4
9 +# aclocal.m4 - package-specific macros for autoconf
12 +# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
14 +# It is part of adns, which is
15 +# Copyright (C) 1997-1999 Ian Jackson <ian@davenant.greenend.org.uk>
16 +# Copyright (C) 1999-2000 Tony Finch <dot@dotat.at>
18 +# This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
20 +# This program is free software; you can redistribute it and/or modify
21 +# it under the terms of the GNU General Public License as published by
22 +# the Free Software Foundation; either version 2, or (at your option)
25 +# This program is distributed in the hope that it will be useful,
26 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
27 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 +# GNU General Public License for more details.
30 +# You should have received a copy of the GNU General Public License
31 +# along with this program; if not, write to the Free Software Foundation,
32 +# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34 +dnl DPKG_CACHED_TRY_COMPILE(<description>,<cachevar>,<include>,<program>,<ifyes>,<ifno>)
35 +define(DPKG_CACHED_TRY_COMPILE,[
38 + AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no])
40 + if test "x$$2" = xyes; then
49 +define(ADNS_C_GCCATTRIB,[
50 + DPKG_CACHED_TRY_COMPILE(__attribute__((,,)),adns_cv_c_attribute_supported,,
51 + [extern int testfunction(int x) __attribute__((,,))],
53 + AC_DEFINE(HAVE_GNUC25_ATTRIB)
54 + DPKG_CACHED_TRY_COMPILE(__attribute__((noreturn)),adns_cv_c_attribute_noreturn,,
55 + [extern int testfunction(int x) __attribute__((noreturn))],
57 + AC_DEFINE(HAVE_GNUC25_NORETURN),
59 + DPKG_CACHED_TRY_COMPILE(__attribute__((const)),adns_cv_c_attribute_const,,
60 + [extern int testfunction(int x) __attribute__((const))],
62 + AC_DEFINE(HAVE_GNUC25_CONST),
64 + DPKG_CACHED_TRY_COMPILE(__attribute__((format...)),adns_cv_attribute_format,,
65 + [extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))],
67 + AC_DEFINE(HAVE_GNUC25_PRINTFFORMAT),
72 +define(ADNS_C_GETFUNC,[
73 + AC_CHECK_FUNC([$1],,[
74 + AC_CHECK_LIB([$2],[$1],[$3],[
75 + AC_MSG_ERROR([cannot find library function $1])
79 --- adns-1.0/configure.in~configure
80 +++ adns-1.0/configure.in
82 # along with this program; if not, write to the Free Software Foundation,
83 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
87 +AC_CONFIG_SRCDIR([src/adns.h])
88 AC_CONFIG_HEADER(src/config.h)
90 -dnl DPKG_CACHED_TRY_COMPILE(<description>,<cachevar>,<include>,<program>,<ifyes>,<ifno>)
91 -define(DPKG_CACHED_TRY_COMPILE,[
94 - AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no])
96 - if test "x$$2" = xyes; then
105 AC_MSG_CHECKING(whether you requested dynamic linking)
106 AC_SUBST(ENABLE_DYNAMIC)
107 AC_ARG_ENABLE(dynamic,
110 AC_MSG_CHECKING(for INADDR_LOOPBACK)
111 AC_CACHE_VAL(adns_cv_decl_inaddrloopback,[
113 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
114 #include <sys/socket.h>
115 #include <netinet/in.h>
116 #include <arpa/inet.h>
121 - adns_cv_decl_inaddrloopback=yes,
122 - adns_cv_decl_inaddrloopback=no)])
123 + ]])],[adns_cv_decl_inaddrloopback=yes],[adns_cv_decl_inaddrloopback=no])])
124 if test "$adns_cv_decl_inaddrloopback" = yes; then
132 - settings.make Makefile
133 +AC_CONFIG_FILES([settings.make Makefile
134 src/Makefile client/Makefile dynamic/Makefile regress/Makefile