changeset 31370:d005a8241dec

Add header_check convenience function to check for header availability.
author diego
date Wed, 16 Jun 2010 19:09:06 +0000
parents 15e7671925fa
children a6cb957ad186
files configure
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jun 16 18:59:59 2010 +0000
+++ b/configure	Wed Jun 16 19:09:06 2010 +0000
@@ -81,6 +81,15 @@
   compile_check $TMPCPP $@ -lstdc++
 }
 
+header_check() {
+  cat > $TMPC << EOF
+#include <$1>
+int main(void) { return 0; }
+EOF
+  shift
+  compile_check $TMPC $@
+}
+
 yasm_check() {
   echo >> "$TMPLOG"
   cat "$TMPS" >> "$TMPLOG"