changeset 35740:ac0b60abb5ac

configure: Unset HAVE_DIRECT_H if direct.h is not available. libdvdcss checks the value of that preprocessor symbol via #ifdef, so it needs to be explicitly undefined, not set to zero.
author diego
date Wed, 23 Jan 2013 16:04:28 +0000
parents 6b82e3079aea
children 4db51c7ff922
files configure
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jan 23 14:36:36 2013 +0000
+++ b/configure	Wed Jan 23 16:04:28 2013 +0000
@@ -3785,7 +3785,8 @@
 if [ $_direct_h = yes ]; then
   def_direct_h='#define HAVE_DIRECT_H 1'
 else
-  def_direct_h='#define HAVE_DIRECT_H 0'
+  # libdvdcss checks this via #ifdef, so we need #undef here.
+  def_direct_h='#undef HAVE_DIRECT_H'
 fi
 echores "$_direct_h"