summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/config.tests/x11/xinput.test
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:28:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-21 23:28:33 +0900
commit1df632a0e6e550a5a100247c6b4713078e78f413 (patch)
treee8577c3d310285ebb4c8beea37998f408286bda3 /tqtinterface/qt4/config.tests/x11/xinput.test
parent012b00740f33c01949c88d7ea97e2dee81fabb41 (diff)
downloadexperimental-r14.0.7.tar.gz
experimental-r14.0.7.zip
Removed unnecessary and/or TDE-unrelated code.r14.0.7
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tqtinterface/qt4/config.tests/x11/xinput.test')
-rwxr-xr-xtqtinterface/qt4/config.tests/x11/xinput.test74
1 files changed, 0 insertions, 74 deletions
diff --git a/tqtinterface/qt4/config.tests/x11/xinput.test b/tqtinterface/qt4/config.tests/x11/xinput.test
deleted file mode 100755
index c8b3e08..0000000
--- a/tqtinterface/qt4/config.tests/x11/xinput.test
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-
-XINPUT=yes
-XCONFIG=$1/qmake.conf
-VERBOSE=$2
-shift 2
-IN_LIBDIRS=""
-IN_INCDIRS=""
-PARAMS=$@
-for PARAM in $PARAMS; do
- PREFIX=`echo $PARAM | sed 's/^\(..\).*/\1/'`
- case $PREFIX in
- -L)
- CLIBDIR=`echo $PARAM | sed -e 's/^-L//'`
- IN_LIBDIRS="$IN_LIBDIRS $CLIBDIR"
- ;;
- -I)
- CINCDIR=`echo $PARAM | sed -e 's/^-I//'`
- IN_INCDIRS="$IN_INCDIRS $CINCDIR"
- ;;
- *) ;;
- esac
-done
-
-# debuggery
-[ "$VERBOSE" = "yes" ] && echo "XInput auto-detection... ($*)"
-
-# check for the XInput library
-XDIRS=`sed -n -e '/^QMAKE_LIBDIR_X11[ ]*=/ { s/[^=]*=[ ]*//; s/-L/ /g; p; }' $XCONFIG`
-LIBDIRS="$IN_LIBDIRS $XDIRS /usr/shlib /usr/lib /lib"
-F=
-for LIBDIR in $LIBDIRS; do
- FOUND_LIB=`ls $LIBDIR/libXi.* 2>/dev/null`
- if [ ! -z "$FOUND_LIB" ]; then
- F=yes
- [ "$VERBOSE" = "yes" ] && echo " Found XInput lib in $LIBDIR"
- break
- fi
-done
-if [ -z "$F" ]; then
- XINPUT=no
- [ "VERBOSE" = "yes" ] && echo " Could not find XInput lib anywhere in $LIBDIRS"
-fi
-
-# check for XInput.h and the IRIX wacom.h
-if [ "$XINPUT" = "yes" ]; then
- INCS="X11/extensions/XInput.h wacom.h"
- XDIRS=`sed -n -e '/^QMAKE_INCDIR_X11[ ]*=/ { s/[^=]*=[ ]*//; s/-I/ /g; p; }' $XCONFIG`
- INCDIRS="$IN_INCDIRS $XDIRS /usr/include /include"
-
- for I in $INCS; do
- F=
- for INCDIR in $INCDIRS; do
- if [ -f $INCDIR/$I ]; then
- F=yes
- [ "$VERBOSE" = "yes" ] && echo " Found $I in $INCDIR"
- break
- fi
- done
- if [ -z "$F" ]; then
- XINPUT=no
- [ "$VERBOSE" = "yes" ] && echo " Could not find $I anywhere in $INCDIRS"
- fi
- done
-fi
-
-# done
-if [ "$XINPUT" != "yes" ]; then
- [ "$VERBOSE" = "yes" ] && echo "XInput disabled."
- exit 0
-else
- [ "$VERBOSE" = "yes" ] && echo "XInput enabled."
- exit 1
-fi