Date: Fri, 12 Sep 2003 18:04:19 -0400
authorSam Lantinga <slouken@libsdl.org>
Sun, 21 Sep 2003 18:18:17 +0000
changeset 719269c97e24da6
parent 718 cbc0f7fabd1c
child 720 f90d80d68071
Date: Fri, 12 Sep 2003 18:04:19 -0400
From: Matthew Danish
Subject: patch for k*bsd support

I am forwarding this patch from Robert Millan <rmh@debian.org> for
supporting K*BSD systems (BSD kernel GNU userland, and hurd) in
configure.in.
configure.in
     1.1 --- a/configure.in	Sun Sep 21 18:13:48 2003 +0000
     1.2 +++ b/configure.in	Sun Sep 21 18:18:17 2003 +0000
     1.3 @@ -1712,8 +1712,14 @@
     1.4  }
     1.5  
     1.6  case "$target" in
     1.7 -    *-*-linux*)
     1.8 -        ARCH=linux
     1.9 +    *-*-linux*|*-*-gnu*|*-*-k*bsd*-gnu)
    1.10 +        case "$target" in
    1.11 +	  *-*-linux*) ARCH=linux ;;
    1.12 +	  *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
    1.13 +	  *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
    1.14 +	  *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
    1.15 +	  *-*-gnu*) ARCH=gnu ;; # must be last
    1.16 +	esac
    1.17          CheckDummyVideo
    1.18          CheckDiskAudio
    1.19          CheckDLOPEN
    1.20 @@ -1754,13 +1760,41 @@
    1.21          #fi
    1.22          # Set up files for the joystick library
    1.23          if test x$enable_joystick = xyes; then
    1.24 -            JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS linux"
    1.25 -            JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS linux/libjoystick_linux.la"
    1.26 +	  case $ARCH in
    1.27 +	    linux)
    1.28 +              JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS linux"
    1.29 +              JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS linux/libjoystick_linux.la"
    1.30 +	    ;;
    1.31 +	    gnu)
    1.32 +              JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS dummy"
    1.33 +              JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS dummy/libjoystick_dummy.la"
    1.34 +	    ;;
    1.35 +	    k*bsd-gnu)
    1.36 +              JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS bsd"
    1.37 +              JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS bsd/libjoystick_bsd.la"
    1.38 +	    ;;
    1.39 +	  esac
    1.40          fi
    1.41          # Set up files for the cdrom library
    1.42          if test x$enable_cdrom = xyes; then
    1.43 -            CDROM_SUBDIRS="$CDROM_SUBDIRS linux"
    1.44 -            CDROM_DRIVERS="$CDROM_DRIVERS linux/libcdrom_linux.la"
    1.45 +	  case $ARCH in
    1.46 +	    linux)
    1.47 +              CDROM_SUBDIRS="$CDROM_SUBDIRS linux"
    1.48 +              CDROM_DRIVERS="$CDROM_DRIVERS linux/libcdrom_linux.la"
    1.49 +	    ;;
    1.50 +	    gnu)
    1.51 +              CDROM_SUBDIRS="$CDROM_SUBDIRS dummy"
    1.52 +              CDROM_DRIVERS="$CDROM_DRIVERS dummy/libcdrom_dummy.la"
    1.53 +	    ;;
    1.54 +	    kfreebsd-gnu)
    1.55 +              CDROM_SUBDIRS="$CDROM_SUBDIRS freebsd"
    1.56 +              CDROM_DRIVERS="$CDROM_DRIVERS freebsd/libcdrom_freebsd.la"
    1.57 +	    ;;
    1.58 +	    knetbsd-gnu|kopenbsd-gnu)
    1.59 +              CDROM_SUBDIRS="$CDROM_SUBDIRS openbsd"
    1.60 +              CDROM_DRIVERS="$CDROM_DRIVERS openbsd/libcdrom_openbsd.la"
    1.61 +	    ;;
    1.62 +	  esac
    1.63          fi
    1.64          # Set up files for the thread library
    1.65          if test x$enable_threads = xyes; then