2790
# xkeyboard-config does not have build-time dependencies. However, it does
2791
# have run-time dependencies and keyboard layouts may not work without the
2792
# right libX11 or xproto installed.
2793
# By default, we enable these run-time dependencies as build-time
2794
# dependencies so that those building on their local machines are warned
2795
# that the resulting build may not work.
2796
# Check whether --enable-runtime-deps was given.
2797
if test "${enable_runtime_deps+set}" = set; then :
2798
enableval=$enable_runtime_deps; enable_runtime_deps="$enableval"
2800
enable_runtime_deps="yes"
2804
if test "x$enable_runtime_deps" = "xyes"; then
2811
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2812
if test -n "$ac_tool_prefix"; then
2813
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2814
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2815
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816
$as_echo_n "checking for $ac_word... " >&6; }
2817
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
2818
$as_echo_n "(cached) " >&6
2822
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829
test -z "$as_dir" && as_dir=.
2830
for ac_exec_ext in '' $ac_executable_extensions; do
2831
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2833
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2844
if test -n "$PKG_CONFIG"; then
2845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2846
$as_echo "$PKG_CONFIG" >&6; }
2848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849
$as_echo "no" >&6; }
2854
if test -z "$ac_cv_path_PKG_CONFIG"; then
2855
ac_pt_PKG_CONFIG=$PKG_CONFIG
2856
# Extract the first word of "pkg-config", so it can be a program name with args.
2857
set dummy pkg-config; ac_word=$2
2858
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859
$as_echo_n "checking for $ac_word... " >&6; }
2860
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
2861
$as_echo_n "(cached) " >&6
2863
case $ac_pt_PKG_CONFIG in
2865
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872
test -z "$as_dir" && as_dir=.
2873
for ac_exec_ext in '' $ac_executable_extensions; do
2874
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2876
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2887
if test -n "$ac_pt_PKG_CONFIG"; then
2888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2889
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
2891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892
$as_echo "no" >&6; }
2895
if test "x$ac_pt_PKG_CONFIG" = x; then
2898
case $cross_compiling:$ac_tool_warned in
2900
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2901
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2902
ac_tool_warned=yes ;;
2904
PKG_CONFIG=$ac_pt_PKG_CONFIG
2907
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2911
if test -n "$PKG_CONFIG"; then
2912
_pkg_min_version=0.9.0
2913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2914
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2915
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917
$as_echo "yes" >&6; }
2919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920
$as_echo "no" >&6; }
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5
2927
$as_echo_n "checking for DEPS... " >&6; }
2929
if test -n "$DEPS_CFLAGS"; then
2930
pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
2931
elif test -n "$PKG_CONFIG"; then
2932
if test -n "$PKG_CONFIG" && \
2933
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.20 x11 >= 1.4.3\""; } >&5
2934
($PKG_CONFIG --exists --print-errors "xproto >= 7.0.20 x11 >= 1.4.3") 2>&5
2936
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937
test $ac_status = 0; }; then
2938
pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.20 x11 >= 1.4.3" 2>/dev/null`
2945
if test -n "$DEPS_LIBS"; then
2946
pkg_cv_DEPS_LIBS="$DEPS_LIBS"
2947
elif test -n "$PKG_CONFIG"; then
2948
if test -n "$PKG_CONFIG" && \
2949
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.20 x11 >= 1.4.3\""; } >&5
2950
($PKG_CONFIG --exists --print-errors "xproto >= 7.0.20 x11 >= 1.4.3") 2>&5
2952
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953
test $ac_status = 0; }; then
2954
pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.20 x11 >= 1.4.3" 2>/dev/null`
2964
if test $pkg_failed = yes; then
2965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966
$as_echo "no" >&6; }
2968
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2969
_pkg_short_errors_supported=yes
2971
_pkg_short_errors_supported=no
2973
if test $_pkg_short_errors_supported = yes; then
2974
DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.20 x11 >= 1.4.3" 2>&1`
2976
DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.20 x11 >= 1.4.3" 2>&1`
2978
# Put the nasty error message in config.log where it belongs
2979
echo "$DEPS_PKG_ERRORS" >&5
2982
elif test $pkg_failed = untried; then
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984
$as_echo "no" >&6; }
2987
DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
2988
DEPS_LIBS=$pkg_cv_DEPS_LIBS
2989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2990
$as_echo "yes" >&6; }
2993
if test "x$have_deps" = "xno" ; then
2994
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2995
Required dependencies not found. These dependencies are
2996
run-time dependencies only and not required for building.
2997
Skip this check with --disable-runtime-deps.
2999
Installing this version of xkeyboard-config on a host
3000
without the required dependencies may result in unusable
3003
$as_echo "$as_me: WARNING:
3004
Required dependencies not found. These dependencies are
3005
run-time dependencies only and not required for building.
3006
Skip this check with --disable-runtime-deps.
3008
Installing this version of xkeyboard-config on a host
3009
without the required dependencies may result in unusable
3013
as_fn_error $? "$DEPS_PKG_ERRORS" "$LINENO" 5
2771
3017
if test "x$xkb_rules_symlink" != "x"; then
2772
3018
CREATE_RULES_SYMLINK_TRUE=
2773
3019
CREATE_RULES_SYMLINK_FALSE='#'