summaryrefslogtreecommitdiff
path: root/media-sound/lash/files/lash-0.5.4-autotools.patch
blob: 54988c70bbc72cb0b113a28cd3b7bbd8140129a9 (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
Fix build with modern autoconf/automake and fix a bashism in configure.
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4
+
 SUBDIRS = m4 docs lash liblash lashd clients icons pylash
 
 pkgconfigdir = $(libdir)/pkgconfig
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,6 @@ AC_INIT([LASH],[0.5.4])
 AC_CONFIG_SRCDIR([lash/types.h])
 AC_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE
-AM_ACLOCAL_INCLUDE([m4])
 
 ### Check for programs ###
 AC_LANG([C])
@@ -161,10 +160,10 @@ AC_ARG_ENABLE(pylash, [AS_HELP_STRING(--disable-pylash, [Force disable pylash bu
 if test x$build_pylash != xdisabled; then
   AM_PATH_PYTHON(2.3, python_found=yes, python_found=no)
 
-  if test x$python_found == xyes; then
+  if test x$python_found = xyes; then
     AM_CHECK_PYTHON_HEADERS(, python_found=no)
 
-    if test x$python_found == xyes; then
+    if test x$python_found = xyes; then
       AC_PROG_SWIG(1.3.31)
       if test "$SWIG_LIB" ; then
         build_pylash=yes