net/mtr: remove libresolv dependency
[openwrt/svn-archive/archive.git] / net / mtr / patches / 521-gtk_fix.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -48,16 +48,16 @@ AC_ARG_ENABLE(ipv6,
4 [ --disable-ipv6 Do not enable IPv6],
5 WANTS_IPV6=$enableval, WANTS_IPV6=yes)
6
7 -if test "x$WANTS_GTK" = "xyes"; then
8 - AM_PATH_GTK_2_0(2.6.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
9 - LIBS="$LIBS $GTK_LIBS -lm",
10 - AC_MSG_WARN(Building without GTK2 display support)
11 - AC_DEFINE(NO_GTK, 1, [Define if you don't have the GTK+ libraries available.])
12 - GTK_OBJ="")
13 -else
14 - AC_DEFINE(NO_GTK)
15 - GTK_OBJ=""
16 -fi
17 +#if test "x$WANTS_GTK" = "xyes"; then
18 +# AM_PATH_GTK_2_0(2.6.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
19 +# LIBS="$LIBS $GTK_LIBS -lm",
20 +# AC_MSG_WARN(Building without GTK2 display support)
21 +# AC_DEFINE(NO_GTK, 1, [Define if you don't have the GTK+ libraries available.])
22 +# GTK_OBJ="")
23 +#else
24 + AC_DEFINE(NO_GTK)
25 + GTK_OBJ=""
26 +#fi
27
28 AC_CHECK_FUNC(socket, ,
29 AC_CHECK_LIB(socket, socket, , AC_MSG_ERROR(No socket library found)))