--- a/configure.in Tue Jan 15 20:50:23 2008 +0000 +++ b/configure.in Mon Jan 28 02:38:09 2008 +0000 @@ -85,6 +85,12 @@ echo "Linux CDROM support not found, building without it."] ) AM_CONDITIONAL(CDROM_LINUX, [test "$HAVE_LINUX_CDROM_H" = "yes"]) +AC_CHECK_HEADER([linux/joystick.h], [ + HAVE_LINUX_JOYSTICK_H=yes + AC_DEFINE([HAVE_LINUX_JOYSTICK], 1, [Have linux joystick support]) ], + [ echo "Linux Joystick support not found, building without it."] ) +AM_CONDITIONAL(JOY_LINUX, [test "$HAVE_LINUX_JOYSTICK_H" = "yes"]) + dnl Check for cross-compiler availability - needed for system tests AC_PATH_PROG(SHCC, [sh-elf-gcc]) AC_PATH_PROG(SHLD, [sh-elf-ld])