configure.in
changeset 1140 af8b0f9ac2f4
parent 1136 d16c010d5d98
child 1162 2651158f59b8
     1.1 --- a/configure.in	Thu Sep 08 07:20:59 2005 +0000
     1.2 +++ b/configure.in	Thu Sep 08 07:33:22 2005 +0000
     1.3 @@ -549,6 +549,20 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Do the iPod thing
     1.8 +CheckIPod()
     1.9 +{
    1.10 +    AC_ARG_ENABLE(ipod,
    1.11 +[  --enable-ipod          configure SDL to work with iPodLinux [default=yes on arm-elf]],
    1.12 +	, enable_ipod=yes)
    1.13 +
    1.14 +    if test x$enable_ipod = xyes; then
    1.15 +	CFLAGS="$CFLAGS -DENABLE_IPOD -DIPOD"
    1.16 +	VIDEO_SUBDIRS="$VIDEO_SUBDIRS ipod"
    1.17 +	VIDEO_DRIVERS="$VIDEO_DRIVERS ipod/libvideo_ipod.la"
    1.18 +    fi
    1.19 +}	
    1.20 +
    1.21  dnl Find the nanox include and library directories
    1.22  CheckNANOX()
    1.23  {
    1.24 @@ -1306,7 +1320,7 @@
    1.25              pthread_lib="-lpthread"
    1.26              ;;
    1.27      esac
    1.28 -    if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
    1.29 +    if test x$enable_threads = xyes -a x$enable_pthreads = xyes -a x$enable_ipod != xyes; then
    1.30          # Save the original compiler flags and libraries
    1.31          ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
    1.32          # Add the pthread compiler flags and libraries
    1.33 @@ -1932,6 +1946,15 @@
    1.34  }
    1.35  
    1.36  case "$target" in
    1.37 +    arm-*-elf*)
    1.38 +	ARCH=linux
    1.39 +	CheckDummyVideo
    1.40 +	CheckIPod
    1.41 +	# Set up files for the timer library
    1.42 +        if test x$enable_timers = xyes; then
    1.43 +            COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
    1.44 +        fi
    1.45 +	;;
    1.46      *-*-linux*|*-*-gnu*|*-*-k*bsd*-gnu)
    1.47          case "$target" in
    1.48            *-*-linux*) ARCH=linux ;;
    1.49 @@ -2810,6 +2833,7 @@
    1.50  AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
    1.51  AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
    1.52  AM_CONDITIONAL(TARGET_MINT, test $ARCH = mint)
    1.53 +AM_CONDITIONAL(TARGET_IPOD, test x$enable_ipod = xyes)
    1.54  
    1.55  # More automake conditionals
    1.56  AM_CONDITIONAL(USE_DIRECTX, test x$use_directx = xyes)
    1.57 @@ -2989,6 +3013,7 @@
    1.58  src/video/fbcon/Makefile
    1.59  src/video/gem/Makefile
    1.60  src/video/ggi/Makefile
    1.61 +src/video/ipod/Makefile
    1.62  src/video/maccommon/Makefile
    1.63  src/video/macdsp/Makefile
    1.64  src/video/macrom/Makefile