changeset 9354:dd0874f98cdb

- look for alternative locations of cdparanoia includes (in redhat this is /usr/include/cdda)
author filon
date Sat, 08 Feb 2003 22:29:05 +0000
parents e78cf2460121
children 19b0ee14fc0b
files configure
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Feb 08 22:27:04 2003 +0000
+++ b/configure	Sat Feb 08 22:29:05 2003 +0000
@@ -3595,7 +3595,15 @@
 int main(void) { return 1; }
 EOF
     _cdparanoia=no
-    cc_check $_inc_cdparanoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia -lm && _cdparanoia=yes
+    if cc_check $_inc_cdparanoia $_ld_cdparanoia -lcdda_interface -lcdda_paranoia -lm ; then
+        _cdparanoia=yes
+    else
+	for I in /usr/include/cdda /usr/local/include/cdda ; do
+            if cc_check -I$I $_ld_cdparanoia -lcdda_interface -lcdda_paranoia -lm ; then
+	        _cdparanoia=yes; _inc_cdparanoia="-I$I"; break
+            fi
+        done
+    fi
 fi
 if test "$_cdparanoia" = yes ; then
     _def_cdparanoia='#define HAVE_CDDA'