configure
changeset 7667 be1cc6f55840
parent 7659 ac4ce59c40e7
child 7670 ed76b739b1c4
equal deleted inserted replaced
7666:603fb699946c 7667:be1cc6f55840
   781 enable_render
   781 enable_render
   782 enable_events
   782 enable_events
   783 enable_joystick
   783 enable_joystick
   784 enable_haptic
   784 enable_haptic
   785 enable_power
   785 enable_power
       
   786 enable_filesystem
   786 enable_threads
   787 enable_threads
   787 enable_timers
   788 enable_timers
   788 enable_file
   789 enable_file
   789 enable_loadso
   790 enable_loadso
   790 enable_cpuinfo
   791 enable_cpuinfo
  1494   --enable-events         Enable the events subsystem [[default=yes]]
  1495   --enable-events         Enable the events subsystem [[default=yes]]
  1495   --enable-joystick       Enable the joystick subsystem [[default=yes]]
  1496   --enable-joystick       Enable the joystick subsystem [[default=yes]]
  1496   --enable-haptic         Enable the haptic (force feedback) subsystem
  1497   --enable-haptic         Enable the haptic (force feedback) subsystem
  1497                           [[default=yes]]
  1498                           [[default=yes]]
  1498   --enable-power          Enable the power subsystem [[default=yes]]
  1499   --enable-power          Enable the power subsystem [[default=yes]]
       
  1500   --enable-filesystem     Enable the filesystem subsystem [[default=yes]]
  1499   --enable-threads        Enable the threading subsystem [[default=yes]]
  1501   --enable-threads        Enable the threading subsystem [[default=yes]]
  1500   --enable-timers         Enable the timer subsystem [[default=yes]]
  1502   --enable-timers         Enable the timer subsystem [[default=yes]]
  1501   --enable-file           Enable the file subsystem [[default=yes]]
  1503   --enable-file           Enable the file subsystem [[default=yes]]
  1502   --enable-loadso         Enable the shared object loading subsystem
  1504   --enable-loadso         Enable the shared object loading subsystem
  1503                           [[default=yes]]
  1505                           [[default=yes]]
 16765 SOURCES="$SOURCES $srcdir/src/file/*.c"
 16767 SOURCES="$SOURCES $srcdir/src/file/*.c"
 16766 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
 16768 SOURCES="$SOURCES $srcdir/src/haptic/*.c"
 16767 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
 16769 SOURCES="$SOURCES $srcdir/src/joystick/*.c"
 16768 SOURCES="$SOURCES $srcdir/src/libm/*.c"
 16770 SOURCES="$SOURCES $srcdir/src/libm/*.c"
 16769 SOURCES="$SOURCES $srcdir/src/power/*.c"
 16771 SOURCES="$SOURCES $srcdir/src/power/*.c"
       
 16772 #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
 16770 SOURCES="$SOURCES $srcdir/src/render/*.c"
 16773 SOURCES="$SOURCES $srcdir/src/render/*.c"
 16771 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
 16774 SOURCES="$SOURCES $srcdir/src/render/*/*.c"
 16772 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
 16775 SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
 16773 SOURCES="$SOURCES $srcdir/src/thread/*.c"
 16776 SOURCES="$SOURCES $srcdir/src/thread/*.c"
 16774 SOURCES="$SOURCES $srcdir/src/timer/*.c"
 16777 SOURCES="$SOURCES $srcdir/src/timer/*.c"
 16867 fi
 16870 fi
 16868 
 16871 
 16869 if test x$enable_power != xyes; then
 16872 if test x$enable_power != xyes; then
 16870 
 16873 
 16871 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
 16874 $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
       
 16875 
       
 16876 fi
       
 16877 # Check whether --enable-filesystem was given.
       
 16878 if test "${enable_filesystem+set}" = set; then :
       
 16879   enableval=$enable_filesystem;
       
 16880 else
       
 16881   enable_filesystem=yes
       
 16882 fi
       
 16883 
       
 16884 if test x$enable_filesystem != xyes; then
       
 16885 
       
 16886 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
 16872 
 16887 
 16873 fi
 16888 fi
 16874 # Check whether --enable-threads was given.
 16889 # Check whether --enable-threads was given.
 16875 if test "${enable_threads+set}" = set; then :
 16890 if test "${enable_threads+set}" = set; then :
 16876   enableval=$enable_threads;
 16891   enableval=$enable_threads;
 22118                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
 22133                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
 22119                    have_power=yes
 22134                    have_power=yes
 22120                ;;
 22135                ;;
 22121              esac
 22136              esac
 22122         fi
 22137         fi
       
 22138         # Set up files for the filesystem library
       
 22139         if test x$enable_filesystem = xyes; then
       
 22140 
       
 22141 $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
       
 22142 
       
 22143             SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
       
 22144             have_filesystem=yes
       
 22145         fi
 22123         # Set up files for the timer library
 22146         # Set up files for the timer library
 22124         if test x$enable_timers = xyes; then
 22147         if test x$enable_timers = xyes; then
 22125 
 22148 
 22126 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
 22149 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
 22127 
 22150 
 22220 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
 22243 $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
 22221 
 22244 
 22222             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
 22245             SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
 22223             have_power=yes
 22246             have_power=yes
 22224         fi
 22247         fi
       
 22248         if test x$enable_filesystem = xyes; then
       
 22249 
       
 22250 $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
       
 22251 
       
 22252             SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
       
 22253             have_filesystem=yes
       
 22254         fi
 22225         # Set up files for the thread library
 22255         # Set up files for the thread library
 22226         if test x$enable_threads = xyes; then
 22256         if test x$enable_threads = xyes; then
 22227 
 22257 
 22228 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
 22258 $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
 22229 
 22259 
 22353 $as_echo "#define SDL_POWER_BEOS 1" >>confdefs.h
 22383 $as_echo "#define SDL_POWER_BEOS 1" >>confdefs.h
 22354 
 22384 
 22355             SOURCES="$SOURCES $srcdir/src/power/beos/*.c"
 22385             SOURCES="$SOURCES $srcdir/src/power/beos/*.c"
 22356             have_power=yes
 22386             have_power=yes
 22357         fi
 22387         fi
       
 22388         # Set up files for the system filesystem library
       
 22389         if test x$enable_filesystem = xyes; then
       
 22390 
       
 22391 $as_echo "#define SDL_FILESYSTEM_BEOS 1" >>confdefs.h
       
 22392 
       
 22393             SOURCES="$SOURCES $srcdir/src/power/beos/*.cc"
       
 22394             have_filesystem=yes
       
 22395         fi
 22358         # The BeOS platform requires special setup.
 22396         # The BeOS platform requires special setup.
 22359         SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
 22397         SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
 22360         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
 22398         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
 22361         ;;
 22399         ;;
 22362     arm*-apple-darwin*)
 22400     arm*-apple-darwin*)
 22387         #if test x$enable_haptic = xyes; then
 22425         #if test x$enable_haptic = xyes; then
 22388         #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
 22426         #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
 22389         #    have_haptic=yes
 22427         #    have_haptic=yes
 22390         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
 22428         #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
 22391         #fi
 22429         #fi
 22392         # Set up files for the power library
 22430         # Set up files for the filesystem library
 22393         if test x$enable_power = xyes; then
 22431         if test x$enable_filesystem = xyes; then
 22394             SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
 22432             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
 22395             have_power=yes
 22433             have_filesystem=yes
 22396         fi
 22434         fi
 22397         # Set up files for the timer library
 22435         # Set up files for the timer library
 22398         if test x$enable_timers = xyes; then
 22436         if test x$enable_timers = xyes; then
 22399             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
 22437             SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
 22400             have_timers=yes
 22438             have_timers=yes
 22473 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
 22511 $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
 22474 
 22512 
 22475             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
 22513             SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
 22476             have_power=yes
 22514             have_power=yes
 22477         fi
 22515         fi
       
 22516         # Set up files for the filesystem library
       
 22517         if test x$enable_filesystem = xyes; then
       
 22518 
       
 22519 $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
       
 22520 
       
 22521             SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
       
 22522             have_filesystem=yes
       
 22523         fi
 22478         # Set up files for the timer library
 22524         # Set up files for the timer library
 22479         if test x$enable_timers = xyes; then
 22525         if test x$enable_timers = xyes; then
 22480 
 22526 
 22481 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
 22527 $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
 22482 
 22528 
 22538 
 22584 
 22539 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
 22585 $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
 22540 
 22586 
 22541     fi
 22587     fi
 22542     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
 22588     SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
       
 22589 fi
       
 22590 if test x$have_filesystem != xyes; then
       
 22591     if test x$enable_filesystem = xyes; then
       
 22592 
       
 22593 $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
       
 22594 
       
 22595     fi
       
 22596     SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
 22543 fi
 22597 fi
 22544 if test x$have_loadso != xyes; then
 22598 if test x$have_loadso != xyes; then
 22545     if test x$enable_loadso = xyes; then
 22599     if test x$enable_loadso = xyes; then
 22546 
 22600 
 22547 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
 22601 $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h