comparison configure @ 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
comparison
equal deleted inserted replaced
31782:971b1ce234cd 31783:1d5af4fbd107
100 header_check() { 100 header_check() {
101 cat > $TMPC << EOF 101 cat > $TMPC << EOF
102 #include <$1> 102 #include <$1>
103 int main(void) { return 0; } 103 int main(void) { return 0; }
104 EOF 104 EOF
105 shift
106 compile_check $TMPC $@
107 }
108
109 # this is a special check only to be
110 # used for broken headers that do not
111 # include all dependencies
112 header_check_broken() {
113 cat > $TMPC << EOF
114 #include <$1>
115 #include <$2>
116 int main(void) { return 0; }
117 EOF
118 shift
105 shift 119 shift
106 compile_check $TMPC $@ 120 compile_check $TMPC $@
107 } 121 }
108 122
109 yasm_check() { 123 yasm_check() {
3829 3843
3830 3844
3831 if sunos; then 3845 if sunos; then
3832 echocheck "userspace SCSI headers (Solaris)" 3846 echocheck "userspace SCSI headers (Solaris)"
3833 _sol_scsi_h=no 3847 _sol_scsi_h=no
3834 header_check sys/scsi/scsi_types.h && header_check sys/scsi/impl/uscsi.h && 3848 header_check sys/scsi/scsi_types.h &&
3849 header_check_broken sys/types.h sys/scsi/impl/uscsi.h &&
3835 _sol_scsi_h=yes 3850 _sol_scsi_h=yes
3836 if test "$_sol_scsi_h" = yes ; then 3851 if test "$_sol_scsi_h" = yes ; then
3837 def_sol_scsi_h='#define SOLARIS_USCSI 1' 3852 def_sol_scsi_h='#define SOLARIS_USCSI 1'
3838 else 3853 else
3839 def_sol_scsi_h='#undef SOLARIS_USCSI' 3854 def_sol_scsi_h='#undef SOLARIS_USCSI'