Fix configure warnings
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 5 Sep 2011 20:40:11 +0000 (16:40 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Tue, 25 Mar 2014 03:27:04 +0000 (23:27 -0400)
Fix the following warnings when configuring:
  ...
  checking cdda_paranoia.h usability... no
  checking cdda_paranoia.h presence... yes
  configure: WARNING: cdda_paranoia.h: present but cannot be compiled
  ...

configure.in

index 82165a0..50f0943 100644 (file)
@@ -58,8 +58,16 @@ dnl do cdparanoia check
 if test "$enable_cdpar" = "yes"; then
   LIBS="$LIBS -lm"
 
-  AC_CHECK_HEADERS(cdda_interface.h cdda_paranoia.h)
-  AC_CHECK_HEADERS(cdda/cdda_interface.h cdda/cdda_paranoia.h)
+  AC_CHECK_HEADERS([cdda_interface.h cdda_paranoia.h], [], [],
+     [[#ifdef HAVE_CDDA_INTERFACE_H
+     # include <cdda_interface.h>
+     #endif
+     ]])
+  AC_CHECK_HEADERS([cdda/cdda_interface.h cdda/cdda_paranoia.h], [], [],
+     [[#ifdef HAVE_CDDA_CDDA_INTERFACE_H
+     # include <cdda/cdda_interface.h>
+     #endif
+     ]])
 
   AC_CHECK_LIB(cdda_interface,main,
     if test "$enable_shared_cdpar" = "yes"; then