]> git.pld-linux.org Git - packages/urxvt.git/blame_incremental - urxvt-link.patch
- fix -lXpm detection.
[packages/urxvt.git] / urxvt-link.patch
... / ...
CommitLineData
1--- rxvt-unicode-7.7/aclocal.m4.orig 2006-01-22 01:48:13.000000000 +0100
2+++ rxvt-unicode-7.7/aclocal.m4 2006-03-09 14:05:56.048362500 +0100
3@@ -176,7 +176,7 @@
4 # Don't add to $LIBS permanently.
5 ac_save_LIBS="$LIBS"
6 LIBS="$LIBS $X_LIBS -lXpm -lX11"
7-AC_TRY_LINK(, [XpmReadFileToPixmap()],
8+AC_TRY_LINK([#include <X11/xpm.h>], [XpmReadFileToPixmap(0, 0, 0, 0, 0, 0);],
9 [LIBS="$ac_save_LIBS"
10 # We can link libXpm with no special library path.
11 vt_xpm_libraries=],
12diff -aurN rxvt-unicode-7.5.orig/configure.ac rxvt-unicode-7.5/configure.ac
13--- rxvt-unicode-7.5.orig/configure.ac 2006-01-28 22:26:37.000000000 +0100
14+++ rxvt-unicode-7.5/configure.ac 2006-02-04 20:46:00.617940000 +0100
15@@ -88,11 +88,11 @@
16 dnl fi
17
18 dnl# FreeBSD needs to link libxpg4
19-AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])])
20+AC_SEARCH_LIBS(setlocale, xpg4)
21
22 dnl# solaris needs to link libnsl and socket
23-AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])])
24-AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])])
25+AC_SEARCH_LIBS(nsl, gethostbyname)
26+AC_SEARCH_LIBS(socket, socket)
27
28 dnl AC_ENABLE_SHARED(no)dnl# libtool
29 dnl AC_ENABLE_STATIC(yes)dnl# libtool
This page took 0.061819 seconds and 4 git commands to generate.