summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/m4/xdvi-sys-old-linux.m4
blob: 7b7f80ee48385663f83b84b34a51fe0bdb90182b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Autoconf macros for xdvik.
# Copyright (C) 2001 - 2009 Paul Vojta <xdvi-core@lists.sourceforge.net>
#
# This file is free software; the copyright holder
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# XDVI_SYS_OLD_LINUX
# ------------------
# Check for certain broken versions of Linux.
AC_DEFUN([XDVI_SYS_OLD_LINUX],
[AC_CACHE_CHECK([for certain old versions of Linux],
                [xdvi_cv_sys_old_linux],
                [AS_CASE(["`(uname -sr) 2>/dev/null`"],
                         [["Linux 2."[01].* | "Linux 2.2."[0-8] | "Linux 2.2."[0-8]-*]],
                         [xdvi_cv_sys_old_linux=yes],
                         [xdvi_cv_sys_old_linux=no])])
if test "x$xdvi_cv_sys_old_linux" = xyes; then
  AC_DEFINE([FLAKY_SIGPOLL], 1,
            [Define if you are using Linux 2.1.xxx -- 2.2.8, or if you find it necessary.])
fi
]) # XDVI_SYS_OLD_LINUX