configure
changeset 7667 be1cc6f55840
parent 7659 ac4ce59c40e7
child 7670 ed76b739b1c4
     1.1 --- a/configure	Tue Aug 20 15:28:14 2013 -0400
     1.2 +++ b/configure	Tue Aug 20 19:57:11 2013 -0400
     1.3 @@ -783,6 +783,7 @@
     1.4  enable_joystick
     1.5  enable_haptic
     1.6  enable_power
     1.7 +enable_filesystem
     1.8  enable_threads
     1.9  enable_timers
    1.10  enable_file
    1.11 @@ -1496,6 +1497,7 @@
    1.12    --enable-haptic         Enable the haptic (force feedback) subsystem
    1.13                            [[default=yes]]
    1.14    --enable-power          Enable the power subsystem [[default=yes]]
    1.15 +  --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
    1.16    --enable-threads        Enable the threading subsystem [[default=yes]]
    1.17    --enable-timers         Enable the timer subsystem [[default=yes]]
    1.18    --enable-file           Enable the file subsystem [[default=yes]]
    1.19 @@ -16767,6 +16769,7 @@
    1.20  SOURCES="$SOURCES $srcdir/src/joystick/*.c"
    1.21  SOURCES="$SOURCES $srcdir/src/libm/*.c"
    1.22  SOURCES="$SOURCES $srcdir/src/power/*.c"
    1.23 +#SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
    1.24  SOURCES="$SOURCES $srcdir/src/render/*.c"
    1.25  SOURCES="$SOURCES $srcdir/src/render/*/*.c"
    1.26  SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
    1.27 @@ -16871,6 +16874,18 @@
    1.28  $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
    1.29  
    1.30  fi
    1.31 +# Check whether --enable-filesystem was given.
    1.32 +if test "${enable_filesystem+set}" = set; then :
    1.33 +  enableval=$enable_filesystem;
    1.34 +else
    1.35 +  enable_filesystem=yes
    1.36 +fi
    1.37 +
    1.38 +if test x$enable_filesystem != xyes; then
    1.39 +
    1.40 +$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
    1.41 +
    1.42 +fi
    1.43  # Check whether --enable-threads was given.
    1.44  if test "${enable_threads+set}" = set; then :
    1.45    enableval=$enable_threads;
    1.46 @@ -22120,6 +22135,14 @@
    1.47                 ;;
    1.48               esac
    1.49          fi
    1.50 +        # Set up files for the filesystem library
    1.51 +        if test x$enable_filesystem = xyes; then
    1.52 +
    1.53 +$as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
    1.54 +
    1.55 +            SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
    1.56 +            have_filesystem=yes
    1.57 +        fi
    1.58          # Set up files for the timer library
    1.59          if test x$enable_timers = xyes; then
    1.60  
    1.61 @@ -22222,6 +22245,13 @@
    1.62              SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
    1.63              have_power=yes
    1.64          fi
    1.65 +        if test x$enable_filesystem = xyes; then
    1.66 +
    1.67 +$as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
    1.68 +
    1.69 +            SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
    1.70 +            have_filesystem=yes
    1.71 +        fi
    1.72          # Set up files for the thread library
    1.73          if test x$enable_threads = xyes; then
    1.74  
    1.75 @@ -22355,6 +22385,14 @@
    1.76              SOURCES="$SOURCES $srcdir/src/power/beos/*.c"
    1.77              have_power=yes
    1.78          fi
    1.79 +        # Set up files for the system filesystem library
    1.80 +        if test x$enable_filesystem = xyes; then
    1.81 +
    1.82 +$as_echo "#define SDL_FILESYSTEM_BEOS 1" >>confdefs.h
    1.83 +
    1.84 +            SOURCES="$SOURCES $srcdir/src/power/beos/*.cc"
    1.85 +            have_filesystem=yes
    1.86 +        fi
    1.87          # The BeOS platform requires special setup.
    1.88          SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
    1.89          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
    1.90 @@ -22389,10 +22427,10 @@
    1.91          #    have_haptic=yes
    1.92          #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
    1.93          #fi
    1.94 -        # Set up files for the power library
    1.95 -        if test x$enable_power = xyes; then
    1.96 -            SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
    1.97 -            have_power=yes
    1.98 +        # Set up files for the filesystem library
    1.99 +        if test x$enable_filesystem = xyes; then
   1.100 +            SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
   1.101 +            have_filesystem=yes
   1.102          fi
   1.103          # Set up files for the timer library
   1.104          if test x$enable_timers = xyes; then
   1.105 @@ -22475,6 +22513,14 @@
   1.106              SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
   1.107              have_power=yes
   1.108          fi
   1.109 +        # Set up files for the filesystem library
   1.110 +        if test x$enable_filesystem = xyes; then
   1.111 +
   1.112 +$as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
   1.113 +
   1.114 +            SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
   1.115 +            have_filesystem=yes
   1.116 +        fi
   1.117          # Set up files for the timer library
   1.118          if test x$enable_timers = xyes; then
   1.119  
   1.120 @@ -22541,6 +22587,14 @@
   1.121      fi
   1.122      SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
   1.123  fi
   1.124 +if test x$have_filesystem != xyes; then
   1.125 +    if test x$enable_filesystem = xyes; then
   1.126 +
   1.127 +$as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
   1.128 +
   1.129 +    fi
   1.130 +    SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
   1.131 +fi
   1.132  if test x$have_loadso != xyes; then
   1.133      if test x$enable_loadso = xyes; then
   1.134