Mon Oct 17 20:14:50 2011 UTC ()
teach the package options for cases where pthreads would be used, but are
broken


(spz)
diff -r1.43 -r1.44 pkgsrc/net/irrd/Makefile
diff -r1.14 -r1.15 pkgsrc/net/irrd/distinfo
diff -r0 -r1.1 pkgsrc/net/irrd/options.mk
diff -r1.8 -r1.9 pkgsrc/net/irrd/patches/patch-aa

cvs diff -r1.43 -r1.44 pkgsrc/net/irrd/Makefile (expand / switch to unified diff)

--- pkgsrc/net/irrd/Makefile 2010/06/30 04:58:30 1.43
+++ pkgsrc/net/irrd/Makefile 2011/10/17 20:14:50 1.44
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.43 2010/06/30 04:58:30 spz Exp $ 1# $NetBSD: Makefile,v 1.44 2011/10/17 20:14:50 spz Exp $
2 2
3DISTNAME= irrd2.3.9 3DISTNAME= irrd2.3.9
4PKGNAME= irrd-2.3.9 4PKGNAME= irrd-2.3.9
5CATEGORIES= net 5CATEGORIES= net
6MASTER_SITES= http://www.irrd.net/ 6MASTER_SITES= http://www.irrd.net/
7EXTRACT_SUFX= .tgz 7EXTRACT_SUFX= .tgz
8 8
9MAINTAINER= kim@tac.nyc.ny.us 9MAINTAINER= kim@tac.nyc.ny.us
10HOMEPAGE= http://www.irrd.net/ 10HOMEPAGE= http://www.irrd.net/
11COMMENT= Internet Routing Registry Daemon 11COMMENT= Internet Routing Registry Daemon
12LICENSE= original-bsd 12LICENSE= original-bsd
13 13
14MAKE_JOBS_SAFE= no 14MAKE_JOBS_SAFE= no
@@ -27,31 +27,28 @@ PKG_SYSCONFSUBDIR= irrd @@ -27,31 +27,28 @@ PKG_SYSCONFSUBDIR= irrd
27EGDIR= ${PREFIX}/share/examples/irrd 27EGDIR= ${PREFIX}/share/examples/irrd
28DOCDIR= ${PREFIX}/share/doc/irrd 28DOCDIR= ${PREFIX}/share/doc/irrd
29CONF_FILES+= ${EGDIR}/irrd.conf ${PKG_SYSCONFDIR}/irrd.conf 29CONF_FILES+= ${EGDIR}/irrd.conf ${PKG_SYSCONFDIR}/irrd.conf
30 30
31IRRD_USER= irrd 31IRRD_USER= irrd
32IRRD_GROUP= irrd 32IRRD_GROUP= irrd
33 33
34PKG_GROUPS= ${IRRD_USER} 34PKG_GROUPS= ${IRRD_USER}
35PKG_USERS= ${IRRD_USER:Q}:${IRRD_GROUP:Q} 35PKG_USERS= ${IRRD_USER:Q}:${IRRD_GROUP:Q}
36PKG_GECOS.${IRRD_USER}= IRRd user 36PKG_GECOS.${IRRD_USER}= IRRd user
37RCD_SCRIPTS+= irrd 37RCD_SCRIPTS+= irrd
38 38
39GNU_CONFIGURE= yes 39GNU_CONFIGURE= yes
40#CONFIGURE_ARGS+= --enable-thread 
41#PTHREAD_OPTS+= require 
42 40
43PTHREAD_AUTO_VARS= yes 41.include "options.mk"
44.include "../../mk/pthread.buildlink3.mk" 
45 42
46REPLACE_PERL+= programs/irrdcacher/irrdcacher 43REPLACE_PERL+= programs/irrdcacher/irrdcacher
47REPLACE_PERL+= programs/irrdcacher/ripe2rpsl 44REPLACE_PERL+= programs/irrdcacher/ripe2rpsl
48 45
49FILES_SUBST+= VARBASE=${VARBASE:Q} 46FILES_SUBST+= VARBASE=${VARBASE:Q}
50FILES_SUBST+= DOCDIR=${DOCDIR:Q} 47FILES_SUBST+= DOCDIR=${DOCDIR:Q}
51FILES_SUBST+= IRRD_USER=${IRRD_USER:Q} 48FILES_SUBST+= IRRD_USER=${IRRD_USER:Q}
52FILES_SUBST+= IRRD_GROUP=${IRRD_GROUP:Q} 49FILES_SUBST+= IRRD_GROUP=${IRRD_GROUP:Q}
53 50
54INSTALLATION_DIRS+= ${PKGMANDIR}/man8 51INSTALLATION_DIRS+= ${PKGMANDIR}/man8
55INSTALLATION_DIRS+= sbin 52INSTALLATION_DIRS+= sbin
56INSTALLATION_DIRS+= ${EGDIR} 53INSTALLATION_DIRS+= ${EGDIR}
57INSTALLATION_DIRS+= ${DOCDIR} 54INSTALLATION_DIRS+= ${DOCDIR}

cvs diff -r1.14 -r1.15 pkgsrc/net/irrd/distinfo (expand / switch to unified diff)

--- pkgsrc/net/irrd/distinfo 2010/06/30 04:58:30 1.14
+++ pkgsrc/net/irrd/distinfo 2011/10/17 20:14:50 1.15
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1$NetBSD: distinfo,v 1.14 2010/06/30 04:58:30 spz Exp $ 1$NetBSD: distinfo,v 1.15 2011/10/17 20:14:50 spz Exp $
2 2
3SHA1 (irrd2.3.9.tgz) = 73281b1f73bfa2267535d70906ff35c266083ec2 3SHA1 (irrd2.3.9.tgz) = 73281b1f73bfa2267535d70906ff35c266083ec2
4RMD160 (irrd2.3.9.tgz) = de212320204cde0d05abf848e952f8f1bf06503d 4RMD160 (irrd2.3.9.tgz) = de212320204cde0d05abf848e952f8f1bf06503d
5Size (irrd2.3.9.tgz) = 777722 bytes 5Size (irrd2.3.9.tgz) = 777722 bytes
6SHA1 (patch-aa) = 5b7c5c9c2183c19b188a98017f526bf71904b1d5 6SHA1 (patch-aa) = 5693308651203cdec0ff020e8864067300609fda
7SHA1 (patch-ad) = 313a1d44c4623123f7c2a37ff2740887fa32bdb2 7SHA1 (patch-ad) = 313a1d44c4623123f7c2a37ff2740887fa32bdb2
8SHA1 (patch-ae) = c012cd8e34f9b492bc03593b3598de030c04849b 8SHA1 (patch-ae) = c012cd8e34f9b492bc03593b3598de030c04849b
9SHA1 (patch-af) = aa14907291184040f16561e01ecb9775bcecd702 9SHA1 (patch-af) = aa14907291184040f16561e01ecb9775bcecd702
10SHA1 (patch-ag) = 9b23300fcaf1b1a48547fff2501f1e81ba86ed0c 10SHA1 (patch-ag) = 9b23300fcaf1b1a48547fff2501f1e81ba86ed0c
11SHA1 (patch-ah) = 74a5e88dd79385ebb7bb3cb7a3cd6da46d26fd54 11SHA1 (patch-ah) = 74a5e88dd79385ebb7bb3cb7a3cd6da46d26fd54
12SHA1 (patch-ai) = d256698195bc90727c54ddb3f55c14e0e4f0437f 12SHA1 (patch-ai) = d256698195bc90727c54ddb3f55c14e0e4f0437f
13SHA1 (patch-aj) = c357f5da9f127978263b22220ea11e3e650eaaf0 13SHA1 (patch-aj) = c357f5da9f127978263b22220ea11e3e650eaaf0
14SHA1 (patch-ak) = 93a3d155ad981155c129358d91d1706eb952b65b 14SHA1 (patch-ak) = 93a3d155ad981155c129358d91d1706eb952b65b

File Added: pkgsrc/net/irrd/options.mk
PKG_OPTIONS_VAR=        PKG_OPTIONS.irrd
PKG_SUPPORTED_OPTIONS=  pthreads
PKG_SUGGESTED_OPTIONS=	pthreads

.include "../../mk/bsd.options.mk"

# include support for pthreads
.if !empty(PKG_OPTIONS:Mpthreads)
CONFIGURE_ARGS+=        --enable-thread
PTHREAD_AUTO_VARS=	yes
.include "../../mk/pthread.buildlink3.mk"
.else
CONFIGURE_ARGS+=        --disable-thread
.endif


cvs diff -r1.8 -r1.9 pkgsrc/net/irrd/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/net/irrd/patches/patch-aa 2010/02/23 20:37:06 1.8
+++ pkgsrc/net/irrd/patches/patch-aa 2011/10/17 20:14:50 1.9
@@ -1,203 +1,259 @@ @@ -1,203 +1,259 @@
1$NetBSD: patch-aa,v 1.8 2010/02/23 20:37:06 spz Exp $ 1$NetBSD: patch-aa,v 1.9 2011/10/17 20:14:50 spz Exp $
2 2
3--- configure.in.orig 2006-09-12 17:40:57.000000000 +0000 3--- configure.in.orig 2006-09-12 17:40:57.000000000 +0000
4+++ configure.in 4+++ configure.in
5@@ -11,23 +11,23 @@ dnl initializing defaults 5@@ -13,7 +13,7 @@ case "${host_os}" in
6 dnl I've seen a report that pthread support is shaky in FreeBSD 2.x releases 
7 case "${host_os}" in 
8 freebsd2* ) 6 freebsd2* )
9- disable_thread=yes 7 disable_thread=yes
10+ enable_thread=no 
11 ;; 8 ;;
12- solaris*|linux*|freebsd* ) 9- solaris*|linux*|freebsd* )
13- disable_thread=no 
14+ solaris*|linux*|freebsd*|dragonfly*|netbsd* ) 10+ solaris*|linux*|freebsd*|dragonfly*|netbsd* )
15+ enable_thread=yes 11 disable_thread=no
16 ;; 12 ;;
17 * )  13 * )
18- disable_thread=yes 14@@ -21,17 +21,22 @@ case "${host_os}" in
19+ enable_thread=no 
20 ;; 15 ;;
21 esac 16 esac
22  17
23 AC_ARG_ENABLE(thread, 18-AC_ARG_ENABLE(thread,
24 [ --disable-thread disable thread always], 19-[ --disable-thread disable thread always],
25-[disable_thread=yes],) 20-[disable_thread=yes],)
26+[enable_thread=no],) 21-
27  22-AC_ARG_ENABLE(thread,
28 AC_ARG_ENABLE(thread, 23-[ --enable-thread enable thread (on non-solaris platform)],
29 [ --enable-thread enable thread (on non-solaris platform)], 
30-[disable_thread=no],) 24-[disable_thread=no],)
31+[enable_thread=yes],) 25-
32  26-AC_ARG_ENABLE(wall,
33 AC_ARG_ENABLE(wall, 27-[ --disable-wall disable -Wall option always],
34 [ --disable-wall disable -Wall option always], 28-[disable_wall=yes],)
35@@ -52,7 +52,7 @@ MODULES="" 29+AC_ARG_ENABLE([thread],
 30+AS_HELP_STRING([--enable-thread],[enable thread (on non-solaris platform)]))
 31+
 32+AC_ARG_ENABLE([thread],
 33+AS_HELP_STRING([--disable-thread],[disable thread always]))
 34+
 35+AS_IF([test "x$enable_thread" = "xyes"], [
 36+ disable_thread=no
 37+])
 38+AS_IF([test "x$enable_thread" = "xno"], [
 39+ disable_thread=yes
 40+])
 41+
 42+
 43+AC_ARG_ENABLE([wall],
 44+AS_HELP_STRING([--disable-wall],[disable -Wall option always]))
 45
 46 pwd=`pwd`
 47 pwd=`basename $pwd`
 48@@ -52,7 +57,7 @@ MODULES=""
36  49
37 EXTRA_INCLUDE_DIRS="" 50 EXTRA_INCLUDE_DIRS=""
38 EXTRA_LIBS="" 51 EXTRA_LIBS=""
39-CPPFLAGS="-DFUNCPROTO -I../../include" 52-CPPFLAGS="-DFUNCPROTO -I../../include"
40+CPPFLAGS="$CPPFLAGS -DFUNCPROTO -I../../include" 53+CPPFLAGS="$CPPFLAGS -DFUNCPROTO -I../../include"
41 dnl defining FUNCPROTO ensures that struct library uses portotype 54 dnl defining FUNCPROTO ensures that struct library uses portotype
42 dnl we don't expect non-ANSI (K&R) C compilers to be used 55 dnl we don't expect non-ANSI (K&R) C compilers to be used
43 dnl Some compiles may define __STDC__ by itself which makes it enable,  56 dnl Some compiles may define __STDC__ by itself which makes it enable,
44@@ -83,7 +83,7 @@ fi 57@@ -66,7 +71,7 @@ dnl CFLAGS="-g -O"
 58 dnl fi
 59
 60 AC_MSG_CHECKING(for -Wall option)
 61-if test "$disable_wall" = yes; then
 62+if test "x$enable_wall" = "xno"; then
 63 if test "$GCC" != "yes"; then
 64 dnl shut up SUN WorkShop Compilers
 65 CFLAGS="$CFLAGS -w"
 66@@ -83,7 +88,7 @@ fi
45 QUANTIFY="quantify" 67 QUANTIFY="quantify"
46 PURIFY="purify" 68 PURIFY="purify"
47  69
48-AC_DEFUN(AC_FILE_EXIST, [ 70-AC_DEFUN(AC_FILE_EXIST, [
49+AC_DEFUN([AC_FILE_EXIST], [ 71+AC_DEFUN([AC_FILE_EXIST], [
50 if test -f "$1" >/dev/null 2>&1; then 72 if test -f "$1" >/dev/null 2>&1; then
51 ifelse([$2], , :, [$2]) 73 ifelse([$2], , :, [$2])
52 ifelse([$3], , , [else $3]) 74 ifelse([$3], , , [else $3])
53@@ -109,28 +109,34 @@ dnl fi 75@@ -109,33 +114,17 @@ dnl fi
54 esac 76 esac
55  77
56 case "${host_os}" in 78 case "${host_os}" in
57- solaris* ) 79- solaris* )
58- CRYPT_LIB="-lcrypt" 80- CRYPT_LIB="-lcrypt"
59- ;; 81- ;;
60 bsdi* ) 82 bsdi* )
61 LIBS="$LIBS -lipc" 83 LIBS="$LIBS -lipc"
62 ;; 84 ;;
63- freebsd*|netbsd*|openbsd* ) 85- freebsd*|netbsd*|openbsd* )
64- if test "$disable_thread" != yes; then 86- if test "$disable_thread" != yes; then
65- LDFLAGS="$LDFLAGS -pthread" 87- LDFLAGS="$LDFLAGS -pthread"
66- THREAD_CFLAGS="-D_THREAD_SAFE -pthread" 88- THREAD_CFLAGS="-D_THREAD_SAFE -pthread"
67- fi 89- fi
68- CRYPT_LIB="-lcrypt" 90- CRYPT_LIB="-lcrypt"
69- ac_pthrlib="c_r" 91- ac_pthrlib="c_r"
70- ;; 92- ;;
71- linux* ) 93- linux* )
72+ solaris*|freebsd*|dragonfly*|netbsd*|openbsd*|linux* ) 94+ solaris*|freebsd*|dragonfly*|netbsd*|openbsd*|linux* )
73 CRYPT_LIB="-lcrypt" 95 CRYPT_LIB="-lcrypt"
74+ case "${host_os}" in 
75+ freebsd*|dragonfly*|openbsd* ) 
76+ if test "$enable_thread" = yes; then 
77+ LDFLAGS="$LDFLAGS $(PTHREAD_LDFLAGS)" 
78+ THREAD_CFLAGS="$(PTHREAD_CFLAGS)" 
79+ LIBS="$LIBS $(PTHREAD_LIBS)" 
80+ fi 
81+ ac_pthrlib="c_r" 
82+ ;; 
83+ netbsd* ) 
84+ if test "$enable_thread" = yes; then 
85+ LDFLAGS="$LDFLAGS $(PTHREAD_LDFLAGS)" 
86+ THREAD_CFLAGS="$(PTHREAD_CFLAGS)" 
87+ LIBS="$LIBS $(PTHREAD_LIBS)" 
88+ fi 
89+ ;; 
90+ esac 
91 ;; 96 ;;
92 osf* ) 97 osf* )
93 if test $CC = "cc" ; then 98 if test $CC = "cc" ; then
94 CPPFLAGS="$CPPFLAGS -taso -pthread" 99- CPPFLAGS="$CPPFLAGS -taso -pthread"
 100+ CPPFLAGS="$CPPFLAGS -taso"
95 fi 101 fi
96- if test "$disable_thread" != yes; then 102- if test "$disable_thread" != yes; then
97+ if test "$enable_thead" = yes; then 103- LDFLAGS="$LDFLAGS -lc_r"
98 LDFLAGS="$LDFLAGS -lc_r" 104- THREAD_CFLAGS="-D_THREAD_SAFE"
99 THREAD_CFLAGS="-D_THREAD_SAFE" 105- fi
100 fi 106 CPPFLAGS="$CPPFLAGS -L/usr/shlib"
101@@ -153,7 +159,7 @@ fi 107- ac_pthrlib="pthreads"
 108 ;;
 109
 110 esac
 111@@ -153,34 +142,44 @@ fi
102 AC_SUBST(MAKEDEPCLEAN) 112 AC_SUBST(MAKEDEPCLEAN)
103  113
104 dnl Checks for pthread libraries. (linux has pthread.h only, so ...) 114 dnl Checks for pthread libraries. (linux has pthread.h only, so ...)
105-if test "$disable_thread" = yes; then 115-if test "$disable_thread" = yes; then
106+if test "$enable_thread" != yes; then 116- AC_MSG_CHECKING(for thread support)
107 AC_MSG_CHECKING(for thread support) 117- AC_MSG_RESULT(disabled)
108 AC_MSG_RESULT(disabled) 118-else
109 else 119- if test ! -n "$ac_pthrlib"; then
110@@ -167,7 +173,7 @@ fi 120- ac_pthrlib="pthread"
111 AC_MSG_CHECKING(for thread support) 121- fi;
112 if test "$pthread" = yes; then 122- AC_CHECK_LIB($ac_pthrlib, pthread_create, [
113 AC_MSG_RESULT(yes) 123- AC_CHECK_HEADERS(pthread.h, [pthread="yes"])])
 124-fi
 125-
 126-AC_MSG_CHECKING(for thread support)
 127-if test "$pthread" = yes; then
 128- AC_MSG_RESULT(yes)
114- AC_DEFINE(HAVE_LIBPTHREAD) 129- AC_DEFINE(HAVE_LIBPTHREAD)
115+ AC_DEFINE([HAVE_LIBPTHREAD],[],[Define if you have pthread library (-lpthread)]) 130- CFLAGS="$CFLAGS $THREAD_CFLAGS"
116 CFLAGS="$CFLAGS $THREAD_CFLAGS" 131- CPPFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $CPPFLAGS"
117 CPPFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $CPPFLAGS" 132- QUANTIFY="$QUANTIFY -threads=yes -max-threads=80"
118 QUANTIFY="$QUANTIFY -threads=yes -max-threads=80" 133- PURIFY="$PURIFY -threads=yes -max-threads=80"
119@@ -176,7 +182,7 @@ if test "$pthread" = yes; then 134- THREADLIBS="-l$ac_pthrlib"
120 LIBS="$LIBS $THREADLIBS" 135- LIBS="$LIBS $THREADLIBS"
121 dnl at least FreeBSD 3.1 doesn't have this 136-dnl at least FreeBSD 3.1 doesn't have this
122 AC_CHECK_LIB($ac_pthrlib, pthread_attr_setscope,  137- AC_CHECK_LIB($ac_pthrlib, pthread_attr_setscope,
123- AC_DEFINE(HAVE_PTHREAD_ATTR_SETSCOPE)) 138- AC_DEFINE(HAVE_PTHREAD_ATTR_SETSCOPE))
124+ AC_DEFINE([HAVE_PTHREAD_ATTR_SETSCOPE],[],[Define if you have pthread_attr_setscope])) 139- AC_CHECK_FUNCS(thr_setconcurrency)
125 AC_CHECK_FUNCS(thr_setconcurrency) 140-else
126 else 141- AC_MSG_RESULT(no)
127 AC_MSG_RESULT(no) 142-fi
128@@ -231,13 +237,13 @@ AC_PATH_PROG(SENDMAIL_PATH,sendmail,no,$ 143+AS_IF([test "x$disable_thread" = "xyes"],[
 144+ AC_MSG_CHECKING(for thread support)
 145+ AC_MSG_RESULT(disabled)
 146+],[
 147+ case "${host_os}" in
 148+ osf*)
 149+ THREAD_CFLAGS="-D_THREAD_SAFE"
 150+ ;;
 151+ *)
 152+ THREAD_CFLAGS="$PTHREAD_CFLAGS"
 153+ esac
 154+
 155+ ac_pthrlib="$PTHREAD_LIBS"
 156+ if test ! -n "$ac_pthrlib"; then
 157+ ac_pthrlib="pthread"
 158+ fi
 159+
 160+ THREADLIBS="$PTHREAD_LIBS"
 161+ AC_CHECK_LIB($ac_pthrlib, pthread_create, [
 162+ AC_CHECK_HEADERS(pthread.h, [pthread="yes"])])
 163+
 164+ AC_MSG_CHECKING(for thread support)
 165+ if test "$pthread" = yes; then
 166+ AC_MSG_RESULT(yes)
 167+ AC_DEFINE([HAVE_LIBPTHREAD],[],[Define if you have pthread library (-lpthread)])
 168+ CFLAGS="$CFLAGS $THREAD_CFLAGS"
 169+ CPPFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS $CPPFLAGS"
 170+ QUANTIFY="$QUANTIFY -threads=yes -max-threads=80"
 171+ PURIFY="$PURIFY -threads=yes -max-threads=80"
 172+ LIBS="$LIBS $THREADLIBS"
 173+ dnl at least FreeBSD 3.1 doesn't have this
 174+ AC_CHECK_LIB($ac_pthrlib, pthread_attr_setscope,
 175+ AC_DEFINE([HAVE_PTHREAD_ATTR_SETSCOPE],[],[Define if you have pthread_attr_setscope]))
 176+ AC_CHECK_FUNCS(thr_setconcurrency)
 177+ else
 178+ AC_MSG_RESULT(no)
 179+ fi
 180+])
 181
 182 dnl Checks for various functions
 183
 184@@ -231,13 +230,13 @@ AC_PATH_PROG(SENDMAIL_PATH,sendmail,no,$
129 if test $SENDMAIL_PATH = no; then 185 if test $SENDMAIL_PATH = no; then
130 SENDMAIL_PATH="" 186 SENDMAIL_PATH=""
131 else 187 else
132- AC_DEFINE(HAVE_SENDMAIL) 188- AC_DEFINE(HAVE_SENDMAIL)
133+ AC_DEFINE([HAVE_SENDMAIL],[],[Define if you have any sendmail program]) 189+ AC_DEFINE([HAVE_SENDMAIL],[],[Define if you have any sendmail program])
134 fi 190 fi
135 AC_PATH_PROG(MAIL_PATH,mail,no) 191 AC_PATH_PROG(MAIL_PATH,mail,no)
136 if test $MAIL_PATH = no; then 192 if test $MAIL_PATH = no; then
137 MAIL_PATH="" 193 MAIL_PATH=""
138 else 194 else
139- AC_DEFINE(HAVE_MAIL) 195- AC_DEFINE(HAVE_MAIL)
140+ AC_DEFINE([HAVE_MAIL],[],[Define if you have the mail program]) 196+ AC_DEFINE([HAVE_MAIL],[],[Define if you have the mail program])
141 fi 197 fi
142  198
143 dnl Prefer GPG, second choice PGP version 5 199 dnl Prefer GPG, second choice PGP version 5
144@@ -287,7 +293,7 @@ else 200@@ -287,7 +286,7 @@ else
145 PGPS_PATH="" 201 PGPS_PATH=""
146 PGPV_PATH="" 202 PGPV_PATH=""
147 PGPDIR=gpg 203 PGPDIR=gpg
148- AC_DEFINE(PGP) 204- AC_DEFINE(PGP)
149+ AC_DEFINE([PGP],[],[Define if you have any pgp program]) 205+ AC_DEFINE([PGP],[],[Define if you have any pgp program])
150 fi 206 fi
151 AC_SUBST(PGP) 207 AC_SUBST(PGP)
152 AC_SUBST(PGPDIR) 208 AC_SUBST(PGPDIR)
153@@ -300,19 +306,19 @@ AC_PATH_PROG(GZIP_PATH,gzip,no) 209@@ -300,19 +299,19 @@ AC_PATH_PROG(GZIP_PATH,gzip,no)
154 if test $GZIP_PATH = no; then 210 if test $GZIP_PATH = no; then
155 GZIP_PATH="" 211 GZIP_PATH=""
156 else 212 else
157- AC_DEFINE(HAVE_GZIP) 213- AC_DEFINE(HAVE_GZIP)
158+ AC_DEFINE([HAVE_GZIP],[],[Define if you have gzip]) 214+ AC_DEFINE([HAVE_GZIP],[],[Define if you have gzip])
159 fi 215 fi
160 AC_PATH_PROG(IRRDCACHER_PATH,irrdcacher,no) 216 AC_PATH_PROG(IRRDCACHER_PATH,irrdcacher,no)
161 if test $IRRDCACHER_PATH = no; then 217 if test $IRRDCACHER_PATH = no; then
162 IRRDCACHER_PATH="" 218 IRRDCACHER_PATH=""
163 else 219 else
164- AC_DEFINE(HAVE_IRRDCACHER) 220- AC_DEFINE(HAVE_IRRDCACHER)
165+ AC_DEFINE([HAVE_IRRDCACHER],[],[Define if you have irrdcacher]) 221+ AC_DEFINE([HAVE_IRRDCACHER],[],[Define if you have irrdcacher])
166 fi 222 fi
167 AC_PATH_PROG(WGET_PATH,wget,no) 223 AC_PATH_PROG(WGET_PATH,wget,no)
168 if test $WGET_PATH = no; then 224 if test $WGET_PATH = no; then
169 WGET_PATH="" 225 WGET_PATH=""
170 else 226 else
171- AC_DEFINE(HAVE_WGET) 227- AC_DEFINE(HAVE_WGET)
172+ AC_DEFINE([HAVE_WGET],[],[Define if you have wget]) 228+ AC_DEFINE([HAVE_WGET],[],[Define if you have wget])
173 fi 229 fi
174 AC_SUBST(SENDMAIL_PATH) 230 AC_SUBST(SENDMAIL_PATH)
175 AC_SUBST(MAIL_PATH) 231 AC_SUBST(MAIL_PATH)
176@@ -340,11 +346,11 @@ AC_STRUCT_TM 232@@ -340,11 +339,11 @@ AC_STRUCT_TM
177 dnl u_char, u_int, u_short, and u_long 233 dnl u_char, u_int, u_short, and u_long
178 AC_MSG_CHECKING([u_char, u_int, u_short, and u_long]) 234 AC_MSG_CHECKING([u_char, u_int, u_short, and u_long])
179 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>]], [[ 235 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>]], [[
180- u_char c; u_int i; u_short s; u_long l;]])],[AC_DEFINE(HAVE_U_TYPES) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]); 236- u_char c; u_int i; u_short s; u_long l;]])],[AC_DEFINE(HAVE_U_TYPES) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]);
181+ u_char c; u_int i; u_short s; u_long l;]])],[AC_DEFINE([HAVE_U_TYPES],[],[Define if you have u_char, u_int, u_short, and u_long]) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]); 237+ u_char c; u_int i; u_short s; u_long l;]])],[AC_DEFINE([HAVE_U_TYPES],[],[Define if you have u_char, u_int, u_short, and u_long]) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]);
182  238
183 dnl Check for in6_addr structure definition 239 dnl Check for in6_addr structure definition
184 AC_EGREP_HEADER(struct in6_addr, netinet/in.h, 240 AC_EGREP_HEADER(struct in6_addr, netinet/in.h,
185- AC_DEFINE(HAVE_STRUCT_IN6_ADDR)) 241- AC_DEFINE(HAVE_STRUCT_IN6_ADDR))
186+ AC_DEFINE([HAVE_STRUCT_IN6_ADDR],[],[Define if you have struct in6_addr])) 242+ AC_DEFINE([HAVE_STRUCT_IN6_ADDR],[],[Define if you have struct in6_addr]))
187  243
188 dnl Checks for library functions. 244 dnl Checks for library functions.
189 AC_CHECK_FUNCS(localtime_r strtok_r gethostbyname_r gethostbyaddr_r) 245 AC_CHECK_FUNCS(localtime_r strtok_r gethostbyname_r gethostbyaddr_r)
190@@ -358,12 +364,12 @@ AC_CHECK_FUNCS(mkdtemp) 246@@ -358,12 +357,12 @@ AC_CHECK_FUNCS(mkdtemp)
191 AC_CHECK_FUNCS(snprintf) 247 AC_CHECK_FUNCS(snprintf)
192 AC_CHECK_FUNCS(dirname basename) 248 AC_CHECK_FUNCS(dirname basename)
193  249
194-AC_DEFUN(AC_TYPE_SOCKLEN_T, 250-AC_DEFUN(AC_TYPE_SOCKLEN_T,
195+AC_DEFUN([AC_TYPE_SOCKLEN_T], 251+AC_DEFUN([AC_TYPE_SOCKLEN_T],
196 [AC_CACHE_CHECK(for socklen_t in sys/socket.h, ac_cv_type_socklen_t, 252 [AC_CACHE_CHECK(for socklen_t in sys/socket.h, ac_cv_type_socklen_t,
197 [AC_EGREP_HEADER(socklen_t, sys/socket.h, 253 [AC_EGREP_HEADER(socklen_t, sys/socket.h,
198 ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no)]) 254 ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no)])
199 if test $ac_cv_type_socklen_t = no; then 255 if test $ac_cv_type_socklen_t = no; then
200- AC_DEFINE(socklen_t, int) 256- AC_DEFINE(socklen_t, int)
201+ AC_DEFINE([socklen_t], [int], [define socklen_t if necessary]) 257+ AC_DEFINE([socklen_t], [int], [define socklen_t if necessary])
202 fi 258 fi
203 ]) 259 ])