Permalink
Browse files

fix configure warnings when lame lib exists but not the headers (clos…

…es #13647)
  • Loading branch information...
1 parent 04d5463 commit 2f4a1868897a797b69b9d2795177d6c62b3e3ba0 @wsnipex committed Dec 14, 2012
Showing with 10 additions and 5 deletions.
  1. +10 −5 configure.in
View
@@ -1078,11 +1078,16 @@ XB_FIND_SONAME([ASS], [ass])
XB_FIND_SONAME([MPEG2], [mpeg2])
# Audio encoders
-if test "x$use_libmp3lame" != "xno"; then
- XB_FIND_SONAME([LAMEENC], [mp3lame], [use_libmp3lame])
- if test "x$use_libmp3lame" != "xno"; then
- AC_CHECK_HEADER([lame/lame.h],, AC_MSG_ERROR($missing_headers))
- fi
+if test "x$use_libmp3lame" = "xyes"; then
+ AC_CHECK_HEADER([lame/lame.h],
+ [XB_FIND_SONAME([LAMEENC], [mp3lame], [use_libmp3lame])],
+ AC_MSG_ERROR(lame/lame.h not found)
+ )
+elif test "x$use_libmp3lame" != "xno"; then
+ AC_CHECK_HEADER([lame/lame.h],
+ [XB_FIND_SONAME([LAMEENC], [mp3lame], [use_libmp3lame])],
+ AC_MSG_NOTICE(lame/lame.h not found)
+ )
fi
AS_CASE([x$use_libmp3lame],
[xno],[

0 comments on commit 2f4a186

Please sign in to comment.