changeset 31783:1d5af4fbd107

Add a special header_check_broken to be used for broken system headers taht do not include all dependencies and use it for the Solaris uscsi header.
author reimar
date Thu, 29 Jul 2010 09:12:33 +0000
parents 971b1ce234cd
children be181a23c432
files configure
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Jul 29 08:44:44 2010 +0000
+++ b/configure	Thu Jul 29 09:12:33 2010 +0000
@@ -106,6 +106,20 @@
   compile_check $TMPC $@
 }
 
+# this is a special check only to be
+# used for broken headers that do not
+# include all dependencies
+header_check_broken() {
+  cat > $TMPC << EOF
+#include <$1>
+#include <$2>
+int main(void) { return 0; }
+EOF
+  shift
+  shift
+  compile_check $TMPC $@
+}
+
 yasm_check() {
   echo >> "$TMPLOG"
   cat "$TMPS" >> "$TMPLOG"
@@ -3831,7 +3845,8 @@
 if sunos; then
 echocheck "userspace SCSI headers (Solaris)"
 _sol_scsi_h=no
-header_check sys/scsi/scsi_types.h && header_check sys/scsi/impl/uscsi.h &&
+header_check sys/scsi/scsi_types.h &&
+  header_check_broken sys/types.h sys/scsi/impl/uscsi.h &&
    _sol_scsi_h=yes
 if test "$_sol_scsi_h" = yes ; then
   def_sol_scsi_h='#define SOLARIS_USCSI 1'