Fixed recently broken configure script for FreeBSD.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Mon, 26 Jan 2015 22:27:27 +0100
changeset 93183ad27ca380f3
parent 9317 a8350b28a05c
child 9319 ad4f430cc9f5
Fixed recently broken configure script for FreeBSD.

Found by buildbot.
configure
configure.in
     1.1 --- a/configure	Mon Jan 26 22:12:38 2015 +0100
     1.2 +++ b/configure	Mon Jan 26 22:27:27 2015 +0100
     1.3 @@ -23092,18 +23092,18 @@
     1.4          # Set up files for the filesystem library
     1.5          if test x$enable_filesystem = xyes; then
     1.6               case $ARCH in
     1.7 -               linux)
     1.8 -
     1.9 -$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
    1.10 -
    1.11 -                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
    1.12 +               android)
    1.13 +
    1.14 +$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
    1.15 +
    1.16 +                   SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
    1.17                     have_filesystem=yes
    1.18                 ;;
    1.19 -               android)
    1.20 -
    1.21 -$as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
    1.22 -
    1.23 -                   SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
    1.24 +               *)
    1.25 +
    1.26 +$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
    1.27 +
    1.28 +                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
    1.29                     have_filesystem=yes
    1.30                 ;;
    1.31               esac
     2.1 --- a/configure.in	Mon Jan 26 22:12:38 2015 +0100
     2.2 +++ b/configure.in	Mon Jan 26 22:27:27 2015 +0100
     2.3 @@ -2972,16 +2972,16 @@
     2.4          # Set up files for the filesystem library
     2.5          if test x$enable_filesystem = xyes; then
     2.6               case $ARCH in
     2.7 -               linux)
     2.8 -                   AC_DEFINE(SDL_FILESYSTEM_UNIX, 1, [ ])
     2.9 -                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
    2.10 -                   have_filesystem=yes
    2.11 -               ;;
    2.12                 android)
    2.13                     AC_DEFINE(SDL_FILESYSTEM_ANDROID, 1, [ ])
    2.14                     SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
    2.15                     have_filesystem=yes
    2.16                 ;;
    2.17 +               *)
    2.18 +                   AC_DEFINE(SDL_FILESYSTEM_UNIX, 1, [ ])
    2.19 +                   SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
    2.20 +                   have_filesystem=yes
    2.21 +               ;;
    2.22               esac
    2.23          fi
    2.24          # Set up files for the timer library