summaryrefslogtreecommitdiffstats
path: root/aclocal.m4
blob: 5b1f7c7495b52539de4a45501f30d876352857b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
m4_include([libptytty/ptytty.m4])

dnl maybe import pkg.m4 and use PKG_CHECK_MODULES in place of this macro
AC_DEFUN([RXVT_CHECK_MODULES],
[
  AC_MSG_CHECKING(for $2)
  if test $PKG_CONFIG != no && $PKG_CONFIG --exists $2; then
    $1[]_CFLAGS="`$PKG_CONFIG --cflags $2`"
    $1[]_LIBS="`$PKG_CONFIG --libs $2`"

    AC_MSG_RESULT(ok)
    $3
  else
    AC_MSG_RESULT(no)
    $4
  fi
])