configure.in
changeset 7753 e4c38f17bfad
parent 7669 d0dcdb5b143c
child 7778 a571a9947869
     1.1 --- a/configure.in	Sat Sep 28 12:55:32 2013 +0200
     1.2 +++ b/configure.in	Sat Sep 28 13:28:19 2013 -0300
     1.3 @@ -2343,6 +2343,21 @@
     1.4  case "$host" in
     1.5      *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
     1.6          case "$host" in
     1.7 +            *-raspberry-linux*)
     1.8 +                # Raspberry Pi
     1.9 +                ARCH=linux
    1.10 +                RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
    1.11 +                RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
    1.12 +                CFLAGS="$CFLAGS $RPI_CFLAGS"
    1.13 +                SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
    1.14 +                EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
    1.15 +                SDL_LIBS="$SDL_LIBS $RPI_LDFLAGS"
    1.16 +
    1.17 +                if test x$enable_video = xyes; then
    1.18 +                    SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
    1.19 +                    $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
    1.20 +                fi
    1.21 +                ;;
    1.22              *-*-linux*)         ARCH=linux ;;
    1.23              *-*-uclinux*)       ARCH=linux ;;
    1.24              *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
    1.25 @@ -2450,6 +2465,14 @@
    1.26              SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
    1.27              have_timers=yes
    1.28          fi
    1.29 +        # Set up files for udev hotplugging support
    1.30 +        if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
    1.31 +            SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"               
    1.32 +        fi
    1.33 +        # Set up files for evdev input
    1.34 +        if test x$use_input_events = xyes; then
    1.35 +            SOURCES="$SOURCES $srcdir/src/input/evdev/*.c"               
    1.36 +        fi
    1.37          ;;
    1.38      *-*-cygwin* | *-*-mingw32*)
    1.39          ARCH=win32