Revision db7287ed configure
b/configure | ||
---|---|---|
442 | 442 |
int main(void) {} |
443 | 443 |
EOF |
444 | 444 |
|
445 |
if $cc -c -o $TMPO $TMPC 2> /dev/null ; then |
|
445 |
if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC 2> /dev/null ; then
|
|
446 | 446 |
: C compiler works ok |
447 | 447 |
else |
448 | 448 |
echo "ERROR: \"$cc\" either does not exist or does not work" |
... | ... | |
463 | 463 |
#endif |
464 | 464 |
int main(){return 0;} |
465 | 465 |
EOF |
466 |
if "$cc" -o $TMPE $TMPC 2> /dev/null ; then |
|
466 |
if "$cc" $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
|
|
467 | 467 |
echo "WARNING: \"$cc\" looks like gcc 4.x" |
468 | 468 |
found_compat_cc="no" |
469 | 469 |
if test "$gcc3_search" = "yes" ; then |
... | ... | |
563 | 563 |
} |
564 | 564 |
EOF |
565 | 565 |
|
566 |
if $cc -o $TMPE $TMPC 2> /dev/null ; then |
|
566 |
if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
|
|
567 | 567 |
$TMPE && bigendian="yes" |
568 | 568 |
else |
569 | 569 |
echo big/little test failed |
... | ... | |
611 | 611 |
#undef main /* We don't want SDL to override our main() */ |
612 | 612 |
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } |
613 | 613 |
EOF |
614 |
if $cc -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; then |
|
614 |
if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; then
|
|
615 | 615 |
_sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'` |
616 | 616 |
if test "$_sdlversion" -lt 121 ; then |
617 | 617 |
sdl_too_old=yes |
... | ... | |
662 | 662 |
#include <alsa/asoundlib.h> |
663 | 663 |
int main(void) { snd_pcm_t **handle; return snd_pcm_close(*handle); } |
664 | 664 |
EOF |
665 |
if $cc -o $TMPE $TMPC -lasound 2> /dev/null ; then |
|
665 |
if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lasound 2> /dev/null ; then
|
|
666 | 666 |
: |
667 | 667 |
else |
668 | 668 |
echo |
... | ... | |
707 | 707 |
echo "Source path $source_path" |
708 | 708 |
echo "C compiler $cc" |
709 | 709 |
echo "Host C compiler $host_cc" |
710 |
echo "ARCH_CFLAGS $ARCH_CFLAGS" |
|
710 | 711 |
echo "make $make" |
711 | 712 |
echo "install $install" |
712 | 713 |
echo "host CPU $cpu" |
... | ... | |
862 | 863 |
#include <byteswap.h> |
863 | 864 |
int main(void) { return bswap_32(0); } |
864 | 865 |
EOF |
865 |
if $cc -o $TMPE $TMPC 2> /dev/null ; then |
|
866 |
if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then
|
|
866 | 867 |
echo "#define HAVE_BYTESWAP_H 1" >> $config_h |
867 | 868 |
fi |
868 | 869 |
fi |
Also available in: Unified diff