Commit 34a5c70cf90b51e5f4ccd00374d25af2ac5da02f

Philipp Wiesemann 2015-01-26T22:27:27

Fixed recently broken configure script for FreeBSD. Found by buildbot.

diff --git a/configure b/configure
index 324cfae..81e6b24 100755
--- a/configure
+++ b/configure
@@ -23092,18 +23092,18 @@ $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
         # Set up files for the filesystem library
         if test x$enable_filesystem = xyes; then
              case $ARCH in
-               linux)
+               android)
 
-$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
+$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
 
-                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
+                   SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
                    have_filesystem=yes
                ;;
-               android)
+               *)
 
-$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
+$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
 
-                   SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
+                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
                    have_filesystem=yes
                ;;
              esac
diff --git a/configure.in b/configure.in
index 29d38be..a2ad20a 100644
--- a/configure.in
+++ b/configure.in
@@ -2972,16 +2972,16 @@ case "$host" in
         # Set up files for the filesystem library
         if test x$enable_filesystem = xyes; then
              case $ARCH in
-               linux)
-                   AC_DEFINE(SDL_FILESYSTEM_UNIX, 1, [ ])
-                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
-                   have_filesystem=yes
-               ;;
                android)
                    AC_DEFINE(SDL_FILESYSTEM_ANDROID, 1, [ ])
                    SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
                    have_filesystem=yes
                ;;
+               *)
+                   AC_DEFINE(SDL_FILESYSTEM_UNIX, 1, [ ])
+                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
+                   have_filesystem=yes
+               ;;
              esac
         fi
         # Set up files for the timer library