mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 03:41:04 +00:00
* configure.ac: check for availability of Xrandr library.
* config.h.in: added default value for Xrandr usage. * configure: regenerate.
This commit is contained in:
parent
df63d305ac
commit
2085ea4a9a
4 changed files with 82 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2020-01-22 Sergii Stoian <stoyan255@gmail.com>
|
||||||
|
|
||||||
|
* configure.ac: check for availability of Xrandr library.
|
||||||
|
* config.h.in: added default value for Xrandr usage.
|
||||||
|
* configure: regenerate.
|
||||||
|
|
||||||
2020-01-16 Sergii Stoian <stoyan255@gmail.com>
|
2020-01-16 Sergii Stoian <stoyan255@gmail.com>
|
||||||
|
|
||||||
* Source/x11/XGServerEvent.m (_handleTakeFocusAtom:forContext:): use
|
* Source/x11/XGServerEvent.m (_handleTakeFocusAtom:forContext:): use
|
||||||
|
|
|
@ -123,6 +123,9 @@
|
||||||
/* Define to 1 if you have the `Xutf8LookupString' function. */
|
/* Define to 1 if you have the `Xutf8LookupString' function. */
|
||||||
#undef HAVE_XUTF8LOOKUPSTRING
|
#undef HAVE_XUTF8LOOKUPSTRING
|
||||||
|
|
||||||
|
/* Define to enable Xrandr support */
|
||||||
|
#undef HAVE_XRANDR
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
#undef PACKAGE_BUGREPORT
|
#undef PACKAGE_BUGREPORT
|
||||||
|
|
||||||
|
|
62
configure
vendored
62
configure
vendored
|
@ -5131,6 +5131,68 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
have_xrandr=no
|
||||||
|
for ac_header in X11/extensions/Xrandr.h
|
||||||
|
do :
|
||||||
|
ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then :
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define HAVE_X11_EXTENSIONS_XRANDR_H 1
|
||||||
|
_ACEOF
|
||||||
|
have_xrandr=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
if test $have_xrandr = yes; then
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRUpdateConfiguration in -lXrandr" >&5
|
||||||
|
$as_echo_n "checking for XRRUpdateConfiguration in -lXrandr... " >&6; }
|
||||||
|
if ${ac_cv_lib_Xrandr_XRRUpdateConfiguration+:} false; then :
|
||||||
|
$as_echo_n "(cached) " >&6
|
||||||
|
else
|
||||||
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
LIBS="-lXrandr $LIBS"
|
||||||
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
/* Override any GCC internal prototype to avoid an error.
|
||||||
|
Use char because int might match the return type of a GCC
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
char XRRUpdateConfiguration ();
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
return XRRUpdateConfiguration ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
if ac_fn_c_try_link "$LINENO"; then :
|
||||||
|
ac_cv_lib_Xrandr_XRRUpdateConfiguration=yes
|
||||||
|
else
|
||||||
|
ac_cv_lib_Xrandr_XRRUpdateConfiguration=no
|
||||||
|
fi
|
||||||
|
rm -f core conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
|
fi
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&5
|
||||||
|
$as_echo "$ac_cv_lib_Xrandr_XRRUpdateConfiguration" >&6; }
|
||||||
|
if test "x$ac_cv_lib_Xrandr_XRRUpdateConfiguration" = xyes; then :
|
||||||
|
|
||||||
|
LIBS="-lXrandr $LIBS"
|
||||||
|
|
||||||
|
$as_echo "#define HAVE_XRANDR 1" >>confdefs.h
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
LIBS="$X_LIBS $LIBS"
|
LIBS="$X_LIBS $LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
11
configure.ac
11
configure.ac
|
@ -220,6 +220,17 @@ if test $set_x_paths = yes; then
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
])
|
])
|
||||||
|
|
||||||
|
have_xrandr=no
|
||||||
|
AC_CHECK_HEADERS(X11/extensions/Xrandr.h, have_xrandr=yes,,)
|
||||||
|
if test $have_xrandr = yes; then
|
||||||
|
AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
|
||||||
|
[
|
||||||
|
LIBS="-lXrandr $LIBS"
|
||||||
|
AC_DEFINE(HAVE_XRANDR, 1, [Define to enable Xrandr support])
|
||||||
|
]
|
||||||
|
,)
|
||||||
|
fi
|
||||||
|
|
||||||
LIBS="$X_LIBS $LIBS"
|
LIBS="$X_LIBS $LIBS"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(X_PRE_LIBS)
|
AC_SUBST(X_PRE_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue