configure: mac and iOS should compile core/unix/*.c
authorRyan C. Gordon <icculus@icculus.org>
Fri, 18 Aug 2017 19:52:58 -0400
changeset 1132183d8c09e9a55
parent 11320 6b36980ae340
child 11322 4275bb4b49f4
configure: mac and iOS should compile core/unix/*.c

macOS currently needs this if you build with X11 support. iOS doesn't
(currently), but it doesn't hurt to compile it in case we do something
Unixy on that platform later on.
configure
configure.in
     1.1 --- a/configure	Fri Aug 18 18:52:25 2017 -0400
     1.2 +++ b/configure	Fri Aug 18 19:52:58 2017 -0400
     1.3 @@ -24124,6 +24124,8 @@
     1.4              SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
     1.5              have_timers=yes
     1.6          fi
     1.7 +        # Set up other core UNIX files
     1.8 +        SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
     1.9          # The iOS platform requires special setup.
    1.10  
    1.11  $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
    1.12 @@ -24231,6 +24233,8 @@
    1.13          if test x$enable_file = xyes; then
    1.14              SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
    1.15          fi
    1.16 +        # Set up other core UNIX files
    1.17 +        SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
    1.18          # The Mac OS X platform requires special setup.
    1.19          EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
    1.20          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
     2.1 --- a/configure.in	Fri Aug 18 18:52:25 2017 -0400
     2.2 +++ b/configure.in	Fri Aug 18 19:52:58 2017 -0400
     2.3 @@ -3595,6 +3595,8 @@
     2.4              SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
     2.5              have_timers=yes
     2.6          fi
     2.7 +        # Set up other core UNIX files
     2.8 +        SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
     2.9          # The iOS platform requires special setup.
    2.10          AC_DEFINE(SDL_VIDEO_DRIVER_UIKIT, 1, [ ])
    2.11          AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
    2.12 @@ -3680,6 +3682,8 @@
    2.13          if test x$enable_file = xyes; then
    2.14              SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
    2.15          fi
    2.16 +        # Set up other core UNIX files
    2.17 +        SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
    2.18          # The Mac OS X platform requires special setup.
    2.19          EXTRA_CFLAGS="$EXTRA_CFLAGS -fpascal-strings"
    2.20          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"