1
0
forked from rpms/rpcbind
rpcbind/rpcbind-0.1.4-debug.patch
2006-08-10 20:26:57 +00:00

32 lines
1.3 KiB
Diff

--- rpcbind-0.1.4/src/Makefile.am.debug 2004-11-15 08:38:02.000000000 -0500
+++ rpcbind-0.1.4/src/Makefile.am 2006-08-10 10:28:58.000000000 -0400
@@ -18,8 +18,10 @@ rpcbind_LDFLAGS = -lpthread -ltirpc
rpcbind_LDADD = $(LIB_TIRPC)
AM_CPPFLAGS = -I/usr/include/tirpc -DCHECK_LOCAL -DPORTMAP \
-DFACILITY=LOG_MAIL -DSEVERITY=LOG_INFO
-## -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL \
-## -DND_DEBUG -DBIND_DEBUG
+if DEBUG
+INCLUDES += -DRPCBIND_DEBUG -DSVC_RUN_DEBUG -DDEBUG_RMTCALL
+INCLUDES += -DND_DEBUG -DBIND_DEBUG
+endif
$(rpcbind_OBJECTS) : security.o util.o check_bound.o pmap_svc.o \
rpcb_svc.o rpcb_svc_com.o rpcb_svc_4.o \
--- rpcbind-0.1.4/configure.in.debug 2006-08-09 20:26:22.000000000 -0400
+++ rpcbind-0.1.4/configure.in 2006-08-10 10:33:31.000000000 -0400
@@ -10,6 +10,13 @@ AC_CONFIG_SRCDIR([src/rpcbind.c])
AC_HEADER_DIRENT
AC_PREFIX_DEFAULT(/usr)
+AC_ARG_ENABLE(debug,[ --enable-debug Turns on rpcbind debugging],
+ [case "${enableval}" in
+ yes) debug=true ;;
+ no) debug=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
+ esac],[debug=false])
+AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h \
netinet/in.h stdlib.h string.h \