From ae69a754244c4e475c8d2591772ca8e005071d83 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Feb 2019 11:55:41 +0100 Subject: Update to 5.42 --- configure | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 2ac1b1b..f61dfbe 100755 --- a/configure +++ b/configure @@ -835,6 +835,7 @@ with_xf86vmode_ext with_xf86gamma_ext with_randr_ext with_proc_interrupts +with_proc_oom enable_locking enable_root_passwd with_pam @@ -1522,6 +1523,7 @@ Installation options: --with-randr-ext Include support for the X Resize+Rotate extension. --with-proc-interrupts Include support for consulting the /proc/interrupts file to notice keyboard activity. + --with-proc-oom Include support for disabling the OOM-killer. --with-pam Include support for PAM (Pluggable Auth Modules.) --with-pam-service-name NAME arg is the name of the PAM service that xscreensaver will authenticate as. @@ -2623,6 +2625,8 @@ echo "command line was: $0 $@" + + @@ -10319,6 +10323,61 @@ elif test "$with_proc_interrupts" != no; then fi +############################################################################### +# +# Check for /proc/*/oom_score_adj. +# +############################################################################### + +have_proc_oom=no +with_proc_oom_req=unspecified + +# Check whether --with-proc-oom was given. +if test "${with_proc_oom+set}" = set; then : + withval=$with_proc_oom; with_proc_oom="$withval"; with_proc_oom_req="$withval" +else + with_proc_oom=yes +fi + + +if test "$with_proc_oom_req" = yes; then + + # Note that we may be building in an environment (e.g. Debian buildd chroot) + # without a proper /proc filesystem. + # + have_proc_oom=yes + $as_echo "#define HAVE_PROC_OOM 1" >>confdefs.h + + +elif test "$with_proc_oom_req" = unspecified; then + + have_proc_oom=no + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /proc/$$/oom_score_adj exists" >&5 +$as_echo_n "checking whether /proc/$$/oom_score_adj exists... " >&6; } +if ${ac_cv_have_proc_oom+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_cv_have_proc_oom=no + if test -f /proc/$$/oom_score_adj; then + ac_cv_have_proc_oom=yes + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_proc_oom" >&5 +$as_echo "$ac_cv_have_proc_oom" >&6; } + have_proc_oom=$ac_cv_have_proc_oom + + if test "$have_proc_oom" = yes; then + $as_echo "#define HAVE_PROC_OOM 1" >>confdefs.h + + fi + +elif test "$with_proc_oom" != no; then + echo "error: must be yes or no: --with-proc-oom=$with_proc_oom" + exit 1 +fi + + ############################################################################### # # The --enable-locking option @@ -13351,7 +13410,7 @@ if ${ac_cv_mesagl_version_string+:} false; then : $as_echo_n "(cached) " >&6 else cat > conftest.$ac_ext < #ifndef MESA_MAJOR_VERSION -- cgit v1.2.3-55-g7522