File: configure.patch

package info (click to toggle)
python-fitsio 1.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,020 kB
  • sloc: python: 7,963; ansic: 3,962; makefile: 10
file content (42 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download
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
--- cfitsio-4.2.0/configure	2022-10-31 14:40:23.000000000 -0400
+++ cfitsio-4.2.0/configure	2023-07-14 11:46:53.298055665 -0400
@@ -15493,19 +15493,24 @@ fi
 printf "%s\n" "$ac_cv_lib_bz2_main" >&6; }
 if test "x$ac_cv_lib_bz2_main" = xyes
 then :
-  printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
+  LIBS="$LIBS -lbz2"; printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
+         for ac_header in bzlib.h
+do :
+  ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_bzlib_h" = xyes
+then :
+  printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
 
-  LIBS="-lbz2 $LIBS"
+printf "%s\n" "#define HAVE_BZIP2 1" >>confdefs.h
 
-else case e in #(
-  e) as_fn_error $? "Unable to locate bz2 library needed when enabling bzip2 support; try specifying the path" "$LINENO" 5 ;;
-esac
+fi
+
+done
 fi
 
         else
             BZIP2_PATH="${withval}"
-        fi
-               for ac_header in bzlib.h
+                   for ac_header in bzlib.h
 do :
   ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
 if test "x$ac_cv_header_bzlib_h" = xyes
@@ -15517,6 +15522,7 @@ printf "%s\n" "#define HAVE_BZIP2 1" >>confdefs.h
 fi
 
 done
+        fi
     fi