configure.in
changeset 3170 b7a48f533966
parent 3168 6338b7f2d024
child 3173 510e3f36c04a
equal deleted inserted replaced
3169:f294338ca6eb 3170:b7a48f533966
   247               , enable_haptic=yes)
   247               , enable_haptic=yes)
   248 if test x$enable_haptic != xyes; then
   248 if test x$enable_haptic != xyes; then
   249     AC_DEFINE(SDL_HAPTIC_DISABLED)
   249     AC_DEFINE(SDL_HAPTIC_DISABLED)
   250 else
   250 else
   251     SOURCES="$SOURCES $srcdir/src/haptic/*.c"
   251     SOURCES="$SOURCES $srcdir/src/haptic/*.c"
       
   252 fi
       
   253 AC_ARG_ENABLE(power,
       
   254 AC_HELP_STRING([--enable-power], [Enable the power subsystem [[default=yes]]]),
       
   255               , enable_power=yes)
       
   256 if test x$enable_power != xyes; then
       
   257     AC_DEFINE(SDL_POWER_DISABLED)
       
   258 else
       
   259     SOURCES="$SOURCES $srcdir/src/power/*.c"
   252 fi
   260 fi
   253 AC_ARG_ENABLE(cdrom,
   261 AC_ARG_ENABLE(cdrom,
   254 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
   262 AC_HELP_STRING([--enable-cdrom], [Enable the cdrom subsystem [[default=yes]]]),
   255               , enable_cdrom=yes)
   263               , enable_cdrom=yes)
   256 if test x$enable_cdrom != xyes; then
   264 if test x$enable_cdrom != xyes; then
  2444                    have_haptic=yes
  2452                    have_haptic=yes
  2445                ;;
  2453                ;;
  2446              esac
  2454              esac
  2447            fi
  2455            fi
  2448         fi
  2456         fi
       
  2457         # Set up files for the power library
       
  2458         if test x$enable_power = xyes; then
       
  2459              case $ARCH in
       
  2460                linux)
       
  2461                    AC_DEFINE(SDL_POWER_LINUX)
       
  2462                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
       
  2463                    have_power=yes
       
  2464                ;;
       
  2465              esac
       
  2466         fi
  2449         # Set up files for the cdrom library
  2467         # Set up files for the cdrom library
  2450         if test x$enable_cdrom = xyes; then
  2468         if test x$enable_cdrom = xyes; then
  2451           case $ARCH in
  2469           case $ARCH in
  2452             linux|solaris)
  2470             linux|solaris)
  2453                 AC_DEFINE(SDL_CDROM_LINUX)
  2471                 AC_DEFINE(SDL_CDROM_LINUX)
  2618         if test x$enable_loadso = xyes; then
  2636         if test x$enable_loadso = xyes; then
  2619             AC_DEFINE(SDL_LOADSO_WIN32)
  2637             AC_DEFINE(SDL_LOADSO_WIN32)
  2620             SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
  2638             SOURCES="$SOURCES $srcdir/src/loadso/win32/*.c"
  2621             have_loadso=yes
  2639             have_loadso=yes
  2622         fi
  2640         fi
       
  2641         # Set up files for the system power library
       
  2642         if test x$enable_power = xyes; then
       
  2643             AC_DEFINE(SDL_POWER_WINDOWS)
       
  2644             SOURCES="$SOURCES $srcdir/src/power/windows/*.c"
       
  2645             have_power=yes
       
  2646         fi
  2623         # Set up the system libraries we need
  2647         # Set up the system libraries we need
  2624         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
  2648         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lcoredll -lcommctrl -lmmtimer"
  2625         # The Win32 platform requires special setup
  2649         # The Win32 platform requires special setup
  2626         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2650         SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c"
  2627         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2651         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main -D_WIN32_WCE=0x420"
  2688             if test x$have_dinput = xyes; then
  2712             if test x$have_dinput = xyes; then
  2689                 AC_DEFINE(SDL_HAPTIC_DINPUT)
  2713                 AC_DEFINE(SDL_HAPTIC_DINPUT)
  2690                 SOURCES="$SOURCES $srcdir/src/haptic/win32/SDL_syshaptic.c"
  2714                 SOURCES="$SOURCES $srcdir/src/haptic/win32/SDL_syshaptic.c"
  2691                 have_haptic=yes
  2715                 have_haptic=yes
  2692             fi
  2716             fi
       
  2717         fi
       
  2718         if test x$enable_power = xyes; then
       
  2719             AC_DEFINE(SDL_POWER_WINDOWS)
       
  2720             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
       
  2721             have_power=yes
  2693         fi
  2722         fi
  2694         # Set up files for the cdrom library
  2723         # Set up files for the cdrom library
  2695         if test x$enable_cdrom = xyes; then
  2724         if test x$enable_cdrom = xyes; then
  2696             AC_DEFINE(SDL_CDROM_WIN32)
  2725             AC_DEFINE(SDL_CDROM_WIN32)
  2697             SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
  2726             SOURCES="$SOURCES $srcdir/src/cdrom/win32/*.c"
  2840             AC_DEFINE(SDL_HAPTIC_IOKIT)
  2869             AC_DEFINE(SDL_HAPTIC_IOKIT)
  2841             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  2870             SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  2842             have_haptic=yes
  2871             have_haptic=yes
  2843             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  2872             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  2844         fi
  2873         fi
       
  2874         # Set up files for the power library
       
  2875         if test x$enable_power = xyes; then
       
  2876             AC_DEFINE(SDL_POWER_MACOSX)
       
  2877             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
       
  2878             have_power=yes
       
  2879         fi
  2845         # Set up files for the cdrom library
  2880         # Set up files for the cdrom library
  2846         if test x$enable_cdrom = xyes; then
  2881         if test x$enable_cdrom = xyes; then
  2847             AC_DEFINE(SDL_CDROM_MACOSX)
  2882             AC_DEFINE(SDL_CDROM_MACOSX)
  2848             SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
  2883             SOURCES="$SOURCES $srcdir/src/cdrom/macosx/*.c"
  2849             have_cdrom=yes
  2884             have_cdrom=yes