Fix configure script on cross-platform environments

svn-id: r48596
This commit is contained in:
Ori Avtalion 2010-04-09 12:46:13 +00:00
parent be31842b1c
commit 641f061645

7
configure vendored
View File

@ -193,13 +193,14 @@ cc_check() {
cc_check_define() {
cat > $TMPC << EOF
int main(void) {
#ifdef $1
return 1;
#ifndef $1
syntax error
#endif
return 0;
}
EOF
cc_check && $TMPO$HOSTEXEEXT
cc_check
test $? -ne 0
return $?
}