File: cross.patch

package info (click to toggle)
libhdf4 4.3.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 30,384 kB
  • sloc: ansic: 128,700; sh: 15,015; fortran: 12,444; java: 5,863; xml: 1,205; makefile: 794; yacc: 678; pascal: 418; perl: 360; javascript: 203; lex: 163; csh: 41
file content (30 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (3)
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
Description: Fix cross building.
Author: Helmut Grohne <helmut@subdivi.de>
Forwarded: not-needed

--- a/configure.ac
+++ b/configure.ac
@@ -844,15 +844,16 @@ if test "X$HAVE_SZIP" = "Xyes" -a "x$HAV
         else
             exit(1);
     }
-    ]])],[CAN_ENCODE="yes"],[CAN_ENCODE="no"],[])
-
-    ## Report szip encoder test results
-    if test "X$CAN_ENCODE" = "Xyes"; then
+    ]])],[
         AC_MSG_RESULT([yes])
-    fi
-    if test "X$CAN_ENCODE" = "Xno"; then
+        CAN_ENCODE="yes"
+    ],[
         AC_MSG_RESULT([no])
-    fi
+        CAN_ENCODE="no"
+    ],[
+        AC_MSG_RESULT([cross compiling. guessing yes])
+        CAN_ENCODE="yes"
+    ])
 
     ## Add "szip" to external filter list
     if test "X$CAN_ENCODE" = "Xyes"; then