summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/m4/xdvi-sys-streams.m4
blob: b347b4d9223fed470377cf78a3279a0510e446e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Autoconf macros for xdvik.
# Copyright (C) 1999 - 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_STREAMS
# ----------------
# Check for at-least-pretend Streams capability.
AC_DEFUN([XDVI_SYS_STREAMS],
[AC_CACHE_CHECK([for stropts.h and isastream()],
                [xdvi_cv_sys_streams],
                [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stropts.h>]],
                                                 [[#ifndef I_SETSIG
choke me
#else
isastream(0);
#endif]])],
                                [xdvi_cv_sys_streams=yes],
                                [xdvi_cv_sys_streams=no])])
if test "x$xdvi_cv_sys_streams" = xyes; then
  AC_DEFINE([HAVE_STREAMS], 1, [Define if your system has STREAMS (and if X uses it).])
fi
]) # XDVI_SYS_STREAMS