summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 21:20:16 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-23 21:20:16 +0000
commit5264cd378017ef8d42a4fe83d371272bdfaacaef (patch)
treea1f1728516ac6d280a8e7715449ec1398a40414f /configure
parentaab54639b4a5bc424ecab08a5207b315008a5116 (diff)
downloadmpv-5264cd378017ef8d42a4fe83d371272bdfaacaef.tar.bz2
mpv-5264cd378017ef8d42a4fe83d371272bdfaacaef.tar.xz
Change in configure relative to lirc, same thing in Makefile plus
some cleanup (COMMONS_LIB is now really common :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4825 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure49
1 files changed, 28 insertions, 21 deletions
diff --git a/configure b/configure
index 75055288ae..c867c380df 100755
--- a/configure
+++ b/configure
@@ -136,7 +136,7 @@ Optional features:
--disable-streaming disable network streaming support
(support for: http/mms/rtp) [enable]
--disable-vidix disable VIDIX stuff [enable]
- --enable-new-input enable new input system [disable]
+ --disable-new-input disable new input system [enable]
--enable-joystick enable joystick support in new input [disable]
Video:
--enable-gl build with OpenGL render support [autodetect]
@@ -2705,26 +2705,6 @@ if test "$_mencoder" = yes ; then
fi
echores "$_mencoder"
-echocheck "lirc"
-if test "$_lirc" = auto ; then
- _lirc=no
- if test -c /dev/lirc ; then
- cat > $TMPC <<EOF
-#include <lirc/lirc_client.h>
-int main(void) { return 0; }
-EOF
- cc_check -llirc_client && _lirc=yes
- fi
-fi
-if test "$_lirc" = yes ; then
- _def_lirc='#define HAVE_LIRC 1'
- _ld_lirc='-llirc_client'
-else
- _def_lirc='#undef HAVE_LIRC'
-fi
-echores "$_lirc"
-
-
echocheck "fastmemcpy"
# fastmemcpy check is done earlier with tests of CPU & binutils features
if test "$_fastmemcpy" = yes ; then
@@ -2962,6 +2942,7 @@ _def_joystick='#undef HAVE_JOYSTICK'
echo Checking for new input ... "$_new_input"
if test "$_new_input" = yes ; then
_def_new_input='#define HAVE_NEW_INPUT 1'
+ _ld_new_input="-Linput -linput"
if test "$_joystick" = yes ; then
if linux ; then
# TODO add some check
@@ -2973,6 +2954,31 @@ if test "$_new_input" = yes ; then
echo Checking for joystick ... "$_joystick"
fi
+echocheck "lirc"
+if test "$_lirc" = auto ; then
+ _lirc=no
+ if test -c /dev/lirc ; then
+ cat > $TMPC <<EOF
+#include <lirc/lirc_client.h>
+int main(void) { return 0; }
+EOF
+ cc_check -llirc_client && _lirc=yes
+ fi
+fi
+if test "$_lirc" = yes ; then
+ _def_lirc='#define HAVE_LIRC 1'
+ if test "$_new_input" = yes ; then
+ _ld_new_input="-llirc_client $_ld_new_input"
+ else
+ _ld_lirc='-llirc_client'
+ fi
+else
+ _def_lirc='#undef HAVE_LIRC'
+fi
+echores "$_lirc"
+
+
+
#############################################################################
echo "Creating config.mak"
cat > config.mak << EOF
@@ -3047,6 +3053,7 @@ DECORE_LIB = $_ld_decore
MENCODER = $_mencoder
ENCORE_LIB = $_ld_encore $_ld_mp3lame
DIRECTFB_LIB = $_ld_directfb
+NEW_INPUT_LIB = $_ld_new_input
# --- Some stuff for autoconfigure ----
$_target_arch