1 --- a/Makefile.in
2 +++ b/Makefile.in
3 @@ -37,8 +37,8 @@
4 X11INC = @X_CFLAGS@
5 X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@
6
7 -INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) \
8 - -I$(srcdir)/missing
9 -LIBS = @LIBS@ -L$(srcdir) -lmissing
10 +INCS = -I. $(NIDSINC) $(PCAPINC) $(LNETINC) $(DBINC) $(SSLINC) $(X11INC) @RPC_CFLAGS@ \
11 + -I$(srcdir)/missing
12 +LIBS = @LIBS@ -L$(srcdir) -lmissing @RPC_LIBS@
13
14 INSTALL = @INSTALL@
15 --- a/configure.in
16 +++ b/configure.in
17 @@ -337,4 +337,23 @@
18 AC_SUBST(SSLINC)
19 AC_SUBST(SSLLIB)
20
21 +AC_ARG_WITH([libtirpc],
22 + AS_HELP_STRING([--with-libtirpc], [Use libtirpc as RPC implementation (instead of sunrpc)]),
23 + [], [ with_libtirpc=no ])
24 +
25 +AS_IF([test "x$with_libtirpc" != xno],
26 + [PKG_CHECK_MODULES([TIRPC],
27 + [libtirpc],
28 + [RPC_CFLAGS=$TIRPC_CFLAGS; RPC_LIBS=$TIRPC_LIBS;],
29 + [AC_MSG_ERROR([libtirpc requested, but library not found.])]
30 + )],
31 + [AC_CHECK_HEADER(rpc/rpc.h,
32 + [RPC_CFLAGS=""; RPC_LIBS="";],
33 + [AC_MSG_ERROR([sunrpc requested, but headers are not present.])]
34 + )]
35 +)
36 +
37 +AC_SUBST(RPC_CFLAGS)
38 +AC_SUBST(RPC_LIBS)
39 +
40 AC_OUTPUT(Makefile)
|