mirror of https://github.com/encounter/SDL.git
Fixed configure error if pkg modules aren't available
This commit is contained in:
parent
6311c7cf95
commit
fd946a48dc
|
@ -22630,37 +22630,17 @@ fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$DBUS_PKG_ERRORS" >&5
|
echo "$DBUS_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (dbus-1) were not met:
|
have_dbus=no
|
||||||
|
|
||||||
$DBUS_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
||||||
installed software in a non-standard prefix.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables DBUS_CFLAGS
|
|
||||||
and DBUS_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details." "$LINENO" 5
|
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
have_dbus=no
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
||||||
path to pkg-config.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables DBUS_CFLAGS
|
|
||||||
and DBUS_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.
|
|
||||||
|
|
||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
else
|
else
|
||||||
DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
|
DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
|
||||||
DBUS_LIBS=$pkg_cv_DBUS_LIBS
|
DBUS_LIBS=$pkg_cv_DBUS_LIBS
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
have_dbus=yes
|
||||||
fi
|
fi
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
|
CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
|
||||||
|
@ -22767,37 +22747,17 @@ fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$IBUS_PKG_ERRORS" >&5
|
echo "$IBUS_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (ibus-1.0) were not met:
|
have_ibus=no
|
||||||
|
|
||||||
$IBUS_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
||||||
installed software in a non-standard prefix.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables IBUS_CFLAGS
|
|
||||||
and IBUS_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details." "$LINENO" 5
|
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
have_ibus=no
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
||||||
path to pkg-config.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables IBUS_CFLAGS
|
|
||||||
and IBUS_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.
|
|
||||||
|
|
||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
else
|
else
|
||||||
IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
|
IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
|
||||||
IBUS_LIBS=$pkg_cv_IBUS_LIBS
|
IBUS_LIBS=$pkg_cv_IBUS_LIBS
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
have_ibus=yes
|
||||||
fi
|
fi
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
|
CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
|
||||||
|
@ -22909,37 +22869,17 @@ fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$FCITX_PKG_ERRORS" >&5
|
echo "$FCITX_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (fcitx) were not met:
|
have_fcitx=no
|
||||||
|
|
||||||
$FCITX_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
||||||
installed software in a non-standard prefix.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables FCITX_CFLAGS
|
|
||||||
and FCITX_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details." "$LINENO" 5
|
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
have_fcitx=no
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
||||||
path to pkg-config.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables FCITX_CFLAGS
|
|
||||||
and FCITX_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.
|
|
||||||
|
|
||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
else
|
else
|
||||||
FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
|
FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
|
||||||
FCITX_LIBS=$pkg_cv_FCITX_LIBS
|
FCITX_LIBS=$pkg_cv_FCITX_LIBS
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
have_fcitx=yes
|
||||||
fi
|
fi
|
||||||
CFLAGS="$CFLAGS $FCITX_CFLAGS"
|
CFLAGS="$CFLAGS $FCITX_CFLAGS"
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
|
||||||
|
@ -24195,37 +24135,17 @@ fi
|
||||||
# Put the nasty error message in config.log where it belongs
|
# Put the nasty error message in config.log where it belongs
|
||||||
echo "$LIBUSB_PKG_ERRORS" >&5
|
echo "$LIBUSB_PKG_ERRORS" >&5
|
||||||
|
|
||||||
as_fn_error $? "Package requirements (libusb-1.0) were not met:
|
have_libusb=no
|
||||||
|
|
||||||
$LIBUSB_PKG_ERRORS
|
|
||||||
|
|
||||||
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
||||||
installed software in a non-standard prefix.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables LIBUSB_CFLAGS
|
|
||||||
and LIBUSB_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details." "$LINENO" 5
|
|
||||||
elif test $pkg_failed = untried; then
|
elif test $pkg_failed = untried; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
have_libusb=no
|
||||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
|
||||||
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
|
||||||
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
||||||
path to pkg-config.
|
|
||||||
|
|
||||||
Alternatively, you may set the environment variables LIBUSB_CFLAGS
|
|
||||||
and LIBUSB_LIBS to avoid the need to call pkg-config.
|
|
||||||
See the pkg-config man page for more details.
|
|
||||||
|
|
||||||
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
|
||||||
See \`config.log' for more details" "$LINENO" 5; }
|
|
||||||
else
|
else
|
||||||
LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
|
LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
|
||||||
LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
|
LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
|
have_libusb=yes
|
||||||
fi
|
fi
|
||||||
hidapi_support=no
|
hidapi_support=no
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
|
|
|
@ -2549,7 +2549,7 @@ CheckDBus()
|
||||||
AS_HELP_STRING([--enable-dbus], [enable D-Bus support [[default=yes]]]),
|
AS_HELP_STRING([--enable-dbus], [enable D-Bus support [[default=yes]]]),
|
||||||
, enable_dbus=yes)
|
, enable_dbus=yes)
|
||||||
if test x$enable_dbus = xyes; then
|
if test x$enable_dbus = xyes; then
|
||||||
PKG_CHECK_MODULES([DBUS], [dbus-1])
|
PKG_CHECK_MODULES([DBUS], [dbus-1], have_dbus=yes, have_dbus=no)
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
|
CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
|
||||||
AC_CHECK_HEADER(dbus/dbus.h,
|
AC_CHECK_HEADER(dbus/dbus.h,
|
||||||
|
@ -2583,7 +2583,7 @@ CheckIBus()
|
||||||
AS_HELP_STRING([--enable-ibus], [enable IBus support [[default=yes]]]),
|
AS_HELP_STRING([--enable-ibus], [enable IBus support [[default=yes]]]),
|
||||||
, enable_ibus=yes)
|
, enable_ibus=yes)
|
||||||
if test x$enable_ibus = xyes; then
|
if test x$enable_ibus = xyes; then
|
||||||
PKG_CHECK_MODULES([IBUS], [ibus-1.0])
|
PKG_CHECK_MODULES([IBUS], [ibus-1.0], have_ibus=yes, have_ibus=no)
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
|
CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
|
||||||
AC_CHECK_HEADER(ibus-1.0/ibus.h,
|
AC_CHECK_HEADER(ibus-1.0/ibus.h,
|
||||||
|
@ -2619,7 +2619,7 @@ CheckFcitx()
|
||||||
AS_HELP_STRING([--enable-fcitx], [enable fcitx support [[default=yes]]]),
|
AS_HELP_STRING([--enable-fcitx], [enable fcitx support [[default=yes]]]),
|
||||||
, enable_fcitx=yes)
|
, enable_fcitx=yes)
|
||||||
if test x$enable_fcitx = xyes; then
|
if test x$enable_fcitx = xyes; then
|
||||||
PKG_CHECK_MODULES([FCITX], [fcitx])
|
PKG_CHECK_MODULES([FCITX], [fcitx], have_fcitx=yes, have_fcitx=no)
|
||||||
CFLAGS="$CFLAGS $FCITX_CFLAGS"
|
CFLAGS="$CFLAGS $FCITX_CFLAGS"
|
||||||
AC_CHECK_HEADER(fcitx/frontend.h,
|
AC_CHECK_HEADER(fcitx/frontend.h,
|
||||||
have_fcitx_frontend_h_hdr=yes,
|
have_fcitx_frontend_h_hdr=yes,
|
||||||
|
@ -3183,7 +3183,7 @@ CheckHIDAPI()
|
||||||
AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[default=no]]]),
|
AS_HELP_STRING([--enable-hidapi], [use HIDAPI for low level joystick drivers [[default=no]]]),
|
||||||
, enable_hidapi=no)
|
, enable_hidapi=no)
|
||||||
if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
|
if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
|
||||||
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0])
|
PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], have_libusb=yes, have_libusb=no)
|
||||||
hidapi_support=no
|
hidapi_support=no
|
||||||
save_CFLAGS="$CFLAGS"
|
save_CFLAGS="$CFLAGS"
|
||||||
CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
|
CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
|
||||||
|
|
Loading…
Reference in New Issue