Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Updated configure with libudev detection
  • Loading branch information
slouken committed Dec 11, 2012
1 parent de52fa2 commit 3d9a1cd3f5f491d744543e9afe80ce9eca5b983c
Showing with 29 additions and 12 deletions.
  1. +29 −12 configure
@@ -812,7 +812,7 @@ enable_fusionsound_shared
enable_video_dummy
enable_video_opengl
enable_video_opengles
enable_input_events
enable_libudev
enable_input_tslib
enable_pthreads
enable_pthread_sem
@@ -1535,8 +1535,7 @@ Optional Features:
--enable-video-dummy use dummy video driver [[default=yes]]
--enable-video-opengl include OpenGL support [[default=yes]]
--enable-video-opengles include OpenGL ES support [[default=yes]]
--enable-input-events use Linux 2.4 unified input interface
[[default=yes]]
--enable-libudev enable libudev support [[default=yes]]
--enable-input-tslib use the Touchscreen library for input
[[default=yes]]
--enable-pthreads use POSIX threads for multi-threading

CheckInputEvents()
{
# Check whether --enable-input-events was given.
if test "${enable_input_events+set}" = set; then :
enableval=$enable_input_events;
else
enable_input_events=yes
fi

if test x$enable_input_events = xyes; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
$as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
use_input_events=no
cat confdefs.h - <<_ACEOF >conftest.$ac_ext

$as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h

fi
}

CheckLibUDev()
{
# Check whether --enable-libudev was given.
if test "${enable_libudev+set}" = set; then :
enableval=$enable_libudev;
else
enable_libudev=yes
fi

if test x$enable_libudev = xyes; then
ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
if test "x$ac_cv_header_libudev_h" = xyes; then :
have_libudev_h_hdr=yes
else
have_libudev_h_hdr=no
fi


if test x$have_libudev_h_hdr = xyes; then

$as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h

fi
fi
}
CheckFusionSound
CheckOpenGLX11
CheckOpenGLESX11
CheckLibUDev
CheckInputEvents
CheckTslib
CheckUSBHID

0 comments on commit 3d9a1cd

Please sign in to comment.