ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/aclocal.m4
Revision: 1.8
Committed: Tue Jun 16 11:56:37 2015 UTC (9 years ago) by sf-exg
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_26, rxvt-unicode-rel-9_25, rxvt-unicode-rel-9_22
Changes since 1.7: +15 -0 lines
Log Message:
Factor code to find a library with pkg-config into a macro.

File Contents

# User Rev Content
1 sf-exg 1.7 m4_include([libptytty/ptytty.m4])
2 root 1.5
3 sf-exg 1.8 dnl maybe import pkg.m4 and use PKG_CHECK_MODULES in place of this macro
4     AC_DEFUN([RXVT_CHECK_MODULES],
5     [
6     AC_MSG_CHECKING(for $2)
7     if test $PKG_CONFIG != no && $PKG_CONFIG --exists $2; then
8     $1[]_CFLAGS="`$PKG_CONFIG --cflags $2`"
9     $1[]_LIBS="`$PKG_CONFIG --libs $2`"
10    
11     AC_MSG_RESULT(ok)
12     $3
13     else
14     AC_MSG_RESULT(no)
15     $4
16     fi
17     ])