Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated configure with libudev detection
  • Loading branch information
slouken committed Dec 11, 2012
1 parent de52fa2 commit 3d9a1cd
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions configure
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -20680,15 +20679,7 @@ $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h

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
Expand Down Expand Up @@ -20720,6 +20711,31 @@ $as_echo "$use_input_events" >&6; }

$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
}
Expand Down Expand Up @@ -21910,6 +21926,7 @@ case "$host" in
CheckFusionSound
CheckOpenGLX11
CheckOpenGLESX11
CheckLibUDev
CheckInputEvents
CheckTslib
CheckUSBHID
Expand Down

0 comments on commit 3d9a1cd

Please sign in to comment.