diff options
-rwxr-xr-x | tools/configure | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure index ff05747853..4c742f500f 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -339,13 +339,18 @@ simcc () { | |||
339 | echo "don't have SDL (properly) installed. Please correct and" | 339 | echo "don't have SDL (properly) installed. Please correct and" |
340 | echo "re-run configure!" | 340 | echo "re-run configure!" |
341 | exit 2 | 341 | exit 2 |
342 | else | 342 | else |
343 | # generic sdl-config checker | 343 | # generic sdl-config checker |
344 | GCCOPTS="$GCCOPTS `$sdl --cflags`" | 344 | GCCOPTS="$GCCOPTS `$sdl --cflags`" |
345 | LDOPTS="$LDOPTS `$sdl --static-libs`" | 345 | if sdl-config --static-libs > /dev/null 2>&1 ; then |
346 | LDOPTS="$LDOPTS `$sdl --static-libs`" | ||
347 | else | ||
348 | echo "Your sdl-config does not know about static libs, falling back to shared library" | ||
349 | LDOPTS="$LDOPTS `$sdl --libs`" | ||
350 | fi | ||
346 | fi | 351 | fi |
347 | fi | 352 | fi |
348 | 353 | ||
349 | 354 | ||
350 | GCCOPTS="$GCCOPTS -I\$(SIMDIR)" | 355 | GCCOPTS="$GCCOPTS -I\$(SIMDIR)" |
351 | # x86_64 supports MMX by default | 356 | # x86_64 supports MMX by default |