File: tirpc-cflags-libs.patch

package info (click to toggle)
libdap 3.20.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,568 kB
  • sloc: cpp: 50,809; sh: 41,536; xml: 23,511; ansic: 20,030; yacc: 2,508; exp: 1,544; makefile: 990; lex: 309; perl: 52; fortran: 8
file content (53 lines) | stat: -rw-r--r-- 1,595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Author: Aurelien Jarno <aurel32@debian.org>
Description: Export TI RPC flags/libs in libdap.pc and dap-config
Forwarded: no
Last-Updated: 2021-08-27

--- a/conf/acinclude.m4
+++ b/conf/acinclude.m4
@@ -560,13 +560,15 @@
 
     # First, we need to see if the xdr routines are in libtirpc, libc, librpc,
     # or librpcsvc or libnsl
+    libtirpcreq=
     dap_xdrlib=
 	PKG_PROG_PKG_CONFIG([0.9.0])
 	PKG_CHECK_MODULES([TIRPC], [libtirpc >= 0.2.4],
 		[dap_xdrlib=`echo "${TIRPC_LIBS}" | sed -e 's/^-l//'`
 		AC_SUBST([TIRPC_CFLAGS])
 		AC_SUBST([TIRPC_LIBS])
-		AC_DEFINE([HAVE_LIBTIRPC], [1], [Define to 1 to use libtirpc.])],
+		AC_DEFINE([HAVE_LIBTIRPC], [1], [Define to 1 to use libtirpc.])
+		[libtirpcreq="libtirpc"]],
 		[dap_xdrlib=""]
 	)
 	AS_IF(
@@ -574,6 +576,7 @@
     	[AC_SEARCH_LIBS([xdr_void],[c rpc nsl rpcsvc],[
     	  dap_xdrlib=`echo $ac_res|sed -e 's/^-l//'`],[
     	  AC_MSG_WARN(Cannot locate library containing xdr functions.)])])
+    AC_SUBST([libtirpcreq])
 
     # Added for autoconf 2.59 which appears to not use/set $ac_res. jhrg
     if test -z "$dap_xdrlib" ; then dap_xdrlib=c; fi
--- a/dap-config.in
+++ b/dap-config.in
@@ -56,7 +56,7 @@
 	;;
 
     --cflags)
-	echo "-I${includedir}/libdap @XML2_CFLAGS@ @CURL_CFLAGS@"
+	echo "-I${includedir}/libdap @XML2_CFLAGS@ @CURL_CFLAGS@ @TIRPC_CFLAGS@"
 	;;
 
     --libs)
--- a/libdap.pc.in
+++ b/libdap.pc.in
@@ -10,6 +10,7 @@
 Version: @VERSION@
 Libs: -L${libdir} -ldap
 Libs.private:  @xmlprivatelibs@ @PTHREAD_LIBS@
+Requires: @libtirpcreq@
 Requires.private: @xmlprivatereq@
 Cflags: -I${includedir}/libdap