Last active
August 29, 2015 14:14
-
-
Save thorhop/cca4f7253a4a38466c16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINPUT" >&5 | |
$as_echo_n "checking for XINPUT... " >&6; } | |
if test -n "$XINPUT_CFLAGS"; then | |
pkg_cv_XINPUT_CFLAGS="$XINPUT_CFLAGS" | |
elif test -n "$PKG_CONFIG"; then | |
if test -n "$PKG_CONFIG" && \ | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6\""; } >&5 | |
($PKG_CONFIG --exists --print-errors "x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6") 2>&5 | |
ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; }; then | |
pkg_cv_XINPUT_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6" 2>/dev/null` | |
test "x$?" != "x0" && pkg_failed=yes | |
else | |
pkg_failed=yes | |
fi | |
else | |
pkg_failed=untried | |
fi | |
if test -n "$XINPUT_LIBS"; then | |
pkg_cv_XINPUT_LIBS="$XINPUT_LIBS" | |
elif test -n "$PKG_CONFIG"; then | |
if test -n "$PKG_CONFIG" && \ | |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6\""; } >&5 | |
($PKG_CONFIG --exists --print-errors "x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6") 2>&5 | |
ac_status=$? | |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
test $ac_status = 0; }; then | |
pkg_cv_XINPUT_LIBS=`$PKG_CONFIG --libs "x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6" 2>/dev/null` | |
test "x$?" != "x0" && pkg_failed=yes | |
else | |
pkg_failed=yes | |
fi | |
else | |
pkg_failed=untried | |
fi | |
if test $pkg_failed = yes; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
_pkg_short_errors_supported=yes | |
else | |
_pkg_short_errors_supported=no | |
fi | |
if test $_pkg_short_errors_supported = yes; then | |
XINPUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6" 2>&1` | |
else | |
XINPUT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xorg-server xi >= 1.5.99.1 inputproto >= 2.1.99.6" 2>&1` | |
fi | |
# Put the nasty error message in config.log where it belongs | |
echo "$XINPUT_PKG_ERRORS" >&5 | |
have_xinput=no | |
elif test $pkg_failed = untried; then | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
$as_echo "no" >&6; } | |
have_xinput=no | |
else | |
XINPUT_CFLAGS=$pkg_cv_XINPUT_CFLAGS | |
XINPUT_LIBS=$pkg_cv_XINPUT_LIBS | |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
$as_echo "yes" >&6; } | |
have_xinput=yes | |
fi | |
fi | |
if test "x$enable_x11" = "xyes"; then : | |
pkg_failed=no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment