changeset 34078:0be10e21f6ac

Fix cpp_condition_check to work for empty header.
author reimar
date Fri, 30 Sep 2011 21:20:07 +0000
parents deff81b57903
children eb8263a3b131
files configure
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Sep 30 15:28:01 2011 +0000
+++ b/configure	Fri Sep 30 21:20:07 2011 +0000
@@ -90,8 +90,12 @@
 }
 
 cpp_condition_check() {
+  inc=""
+  if test -n "$1" ; then
+    inc="#include <$1>"
+  fi
   cat > $TMPC << EOF
-#include <$1>
+$inc
 #if !($2)
 #error condition not true: $2
 #endif