Commit a7350fa109d9b6d33f6a0501ed9fc45d0fba27d0

Authored by bellard
1 parent 132ea32f

check if specified compiler exists


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1826 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 5 additions and 0 deletions
configure
... ... @@ -283,6 +283,11 @@ cc="${cross_prefix}${cc}"
283 283 ar="${cross_prefix}${ar}"
284 284 strip="${cross_prefix}${strip}"
285 285  
  286 +if [ -z `which $cc` ] ; then
  287 + echo "Compiler $cc could not be found"
  288 + exit
  289 +fi
  290 +
286 291 if test "$mingw32" = "yes" ; then
287 292 linux="no"
288 293 EXESUF=".exe"
... ...