]>
Commit | Line | Data |
---|---|---|
91dbb874 JB |
1 | --- linux-gpib-4.0.3/configure.ac.orig 2016-04-09 15:34:55.000000000 +0200 |
2 | +++ linux-gpib-4.0.3/configure.ac 2016-07-06 17:55:18.567320365 +0200 | |
d53b2ad5 | 3 | @@ -143,8 +143,11 @@ |
91dbb874 JB |
4 | |
5 | dnl Checks for libraries. | |
55cbc6e3 | 6 | if test "$BIND_GUILE" = "yes"; then |
d53b2ad5 | 7 | +AC_CHECK_LIB([guile-2.2],[scm_c_define],[:],[ |
91dbb874 JB |
8 | +AC_CHECK_LIB([guile-2.0],[scm_c_define],[:],[ |
9 | AC_CHECK_LIB([guile],[gh_define],[echo this prevents default actions from occurring > /dev/null], | |
10 | [BIND_GUILE="no";AC_MSG_NOTICE([libguile not found, disabling guile binding])],[]) | |
d53b2ad5 | 11 | +])]) |
55cbc6e3 | 12 | fi |
91dbb874 JB |
13 | |
14 | AC_CHECK_LIB([readline], [readline], | |
91dbb874 JB |
15 | --- linux-gpib-4.0.3/language/guile/gpib.h.orig 2016-04-09 15:33:09.000000000 +0200 |
16 | +++ linux-gpib-4.0.3/language/guile/gpib.h 2016-07-06 20:44:07.355781339 +0200 | |
17 | @@ -22,12 +22,12 @@ | |
18 | #ifndef SCM_GPIB_H | |
19 | #define SCM_GPIB_H 1 | |
20 | ||
21 | -#if defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 5) && \ | |
22 | - defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION >= 1) | |
23 | +#if defined (SCM_MAJOR_VERSION) && ((SCM_MAJOR_VERSION > 1) || ((SCM_MAJOR_VERSION == 1) && \ | |
24 | + defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 5))) | |
25 | #define SCM_VERSION_15X 1 | |
26 | #endif | |
27 | -#if defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 7) && \ | |
28 | - defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION >= 1) | |
29 | +#if defined (SCM_MAJOR_VERSION) && ((SCM_MAJOR_VERSION > 1) || ((SCM_MAJOR_VERSION == 1) && \ | |
30 | + defined (SCM_MINOR_VERSION) && (SCM_MINOR_VERSION >= 7))) | |
31 | #define SCM_VERSION_17X 1 | |
32 | #endif | |
33 | ||
34 | --- linux-gpib-4.0.3/language/guile/gpib.c.orig 2016-04-09 15:33:09.000000000 +0200 | |
35 | +++ linux-gpib-4.0.3/language/guile/gpib.c 2016-07-06 18:07:48.129926301 +0200 | |
36 | @@ -23,7 +23,7 @@ | |
37 | #include <stdlib.h> | |
38 | #include <string.h> | |
39 | ||
40 | -#include <guile/gh.h> | |
41 | +#include <libguile.h> | |
42 | #include <gpib/ib.h> | |
43 | ||
44 | #include "gpib.h" |