Browse Source

Fix search for cdda includes

This resolves Bug 1054
Slávek Banko 5 years ago
parent
commit
5077373c0c
2 changed files with 8 additions and 1 deletions
  1. 7
    0
      configure.in.in
  2. 1
    1
      src/Makefile.am

+ 7
- 0
configure.in.in View File

@@ -37,6 +37,13 @@ dnl       cdparanoia check
37 37
 dnl -------------------------------------
38 38
 
39 39
 AC_CHECK_HEADERS(cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
40
+if test x$have_paranoia != xyes; then
41
+  AC_CHECK_HEADERS(cdda/cdda_interface.h, have_paranoia="yes", have_paranoia="no" )
42
+  if test x$have_paranoia = xyes; then
43
+    cdda_includes="-I/usr/include/cdda"
44
+  fi
45
+fi
46
+AC_SUBST(cdda_includes)
40 47
 
41 48
 dnl ----------------------------------
42 49
 dnl    Can soundkonverter be compiled?

+ 1
- 1
src/Makefile.am View File

@@ -1,6 +1,6 @@
1 1
 # set the include path for X, qt and KDE
2 2
 INCLUDES = $(all_includes) -I$(top_srcdir)/src/metadata/ \
3
-	-I$(top_srcdir)/src/pluginloader/
3
+	-I$(top_srcdir)/src/pluginloader/ $(cdda_includes)
4 4
 
5 5
 # these are the headers for your project
6 6
 noinst_HEADERS = cdmanager.h cdopener.h combobutton.h config.h \

Loading…
Cancel
Save