Skip to content

Commit

Permalink
configure: Include #define name in check_define compiler error
Browse files Browse the repository at this point in the history
Include the name of the #define being tested for in the compiler
error produced when a check_define test is run and fails. This
appears only in the config.log, but it does make it a little easier
to debug problems by inspecting config.log.

Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
pm215 authored and Stefan Hajnoczi committed Dec 6, 2011
1 parent 0eba62e commit fd786e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ source_path=`cd "$source_path"; pwd`
check_define() {
cat > $TMPC <<EOF
#if !defined($1)
#error Not defined
#error $1 not defined
#endif
int main(void) { return 0; }
EOF
Expand Down

0 comments on commit fd786e1

Please sign in to comment.