summaryrefslogtreecommitdiff
path: root/sci-libs/hdf/files/hdf-4.2.13-linux-tirpc.patch
blob: 963388f6698267d491e3a1f93573fd46bec1a0fa (plain)
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
Index: hdf-4.2.13/configure.ac
===================================================================
--- hdf-4.2.13.orig/configure.ac
+++ hdf-4.2.13/configure.ac
@@ -673,6 +673,9 @@ case "$host" in
   *-pc-cygwin*)
     LIBS="$LIBS -ltirpc"
     CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc"  ;;
+  *-pc-linux*)
+    LIBS="$LIBS -ltirpc"
+    CPPFLAGS="$CPPFLAGS -I/usr/include/tirpc"  ;;
   *) ;;
 esac
 
@@ -703,6 +706,14 @@ if test "X$BUILD_XDR" != "Xyes"; then
       HAVE_RPC="yes"
       AC_CHECK_HEADER([rpc.h],[:], [unset HAVE_RPC])
       AC_CHECK_LIB([tirpc], [xdr_opaque],[:], [unset HAVE_RPC])
+      if test -z "$HAVE_RPC"; then
+        AC_MSG_ERROR([couldn't find tirpc library])
+      fi
+      ;;
+     *-pc-linux*)
+      HAVE_RPC="yes"
+      AC_CHECK_HEADER([rpc/rpc.h],[:], [unset HAVE_RPC])
+      AC_CHECK_LIB([tirpc], [xdr_opaque],[:], [unset HAVE_RPC])
       if test -z "$HAVE_RPC"; then
         AC_MSG_ERROR([couldn't find tirpc library])
       fi