summaryrefslogtreecommitdiff
path: root/media-sound/denemo/files/denemo-2.3.0-0001-configure.ac-patch-to-find-guile-2.2.patch
blob: 982ccfade8687e17f1f3e6118caa88b1727b7edb (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
From 9a515060df9024ef64bce2055fd3f2ceada5efa8 Mon Sep 17 00:00:00 2001
From: Bernd Waibel <waebbl@gmail.com>
Date: Wed, 14 Aug 2019 13:51:32 +0200
Subject: [PATCH] configure.ac: patch to find guile-2.2

The patch uses the GUILE_PKG command to find any installed
version of guile instead of explicitly checking for guile-1.8
and guile-2.0 but missing guile-2.2.
This patch was already provided to upstream with denemo-2.2, but
didn't yet get accepted due to not being able to compile the
Windows version with this patch (cf. http://savannah.gnu.org/bugs/?54821)

Signed-off-by: Bernd Waibel <waebbl@gmail.com>
---
 configure.ac | 41 +++--------------------------------------
 1 file changed, 3 insertions(+), 38 deletions(-)

diff --git a/configure.ac b/configure.ac
index f85b74e..1fc0af0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,10 @@ AC_PROG_CXX
 AC_PROG_INSTALL
 AC_PROG_YACC
 AM_PROG_LEX
+GUILE_PKG
 GUILE_FLAGS
+CFLAGS="$CFLAGS $GUILE_CFLAGS"
+LIBS="$LIBS $GUILE_LIBS"
 
 AC_PROG_LIBTOOL
 
@@ -63,44 +66,6 @@ AS_COMPILER_FLAG([-fdiagnostics-color=auto],
 
 AM_CONDITIONAL(ENABLE_GLIB_TEST, [test "x$enable_glibtest" = "xyes"])
 
-AC_ARG_ENABLE(
-  guile_1_8,
-  AS_HELP_STRING([--enable-guile_1_8], [use GUILE_1_8 @<:@default=no@:>@]),
-  [
-    if test "x$enableval" != "xno"; then
-      useguile_1_8=yes
-      PKG_CHECK_MODULES(GUILE_1_8, guile-1.8 >= 1.8)
-      LIBS="$LIBS $GUILE_1_8_LIBS"
-      CFLAGS="$CFLAGS $GUILE_1_8_CFLAGS"
-    fi
-  ], [ useguile_1_8=no ])
-
-AC_ARG_ENABLE(
-  guile_2_0,
-  AS_HELP_STRING([--enable-guile_2_0], [use GUILE_2_0 @<:@default=no@:>@]),
-  [
-    if test "x$enableval" != "xno"; then
-      useguile_2_0=yes
-      PKG_CHECK_MODULES(GUILE_2, guile-2.0 >= 2.0)
-      LIBS="$LIBS $GUILE_2_LIBS"
-      CFLAGS="$CFLAGS $GUILE_2_CFLAGS"
-    fi
-  ], [ useguile_2_0=no ])
-
-if [test "x$useguile_1_8" = "xno"] && [test "x$useguile_2_0" = "xno"]; then
-  PKG_CHECK_MODULES([GUILE_2], [guile-2.0], useguile_2_0=yes, useguile_2_0=no)
-  LIBS="$LIBS $GUILE_2_LIBS"
-  CFLAGS="$CFLAGS $GUILE_2_CFLAGS"
-  if test "x$useguile_2_0" = "xno"; then
-    PKG_CHECK_MODULES(GUILE_1_8, guile-1.8 >= 1.8)
-    LIBS="$LIBS $GUILE_1_8_LIBS"
-    CFLAGS="$CFLAGS $GUILE_1_8_CFLAGS"
-    useguile_1_8=yes
-  else
-    useguile_2_0=yes
-  fi
-fi
-
 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.30])
 CFLAGS="$CFLAGS $GLIB_CFLAGS"
 LIBS="$LIBS $GLIB_LIBS"
-- 
2.22.0