aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-ghttp-check.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome-ghttp-check.m4')
-rw-r--r--macros/gnome-ghttp-check.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/macros/gnome-ghttp-check.m4 b/macros/gnome-ghttp-check.m4
index 2cf1efbf19..230c20a1bf 100644
--- a/macros/gnome-ghttp-check.m4
+++ b/macros/gnome-ghttp-check.m4
@@ -1,6 +1,8 @@
AC_DEFUN([GNOME_GHTTP_CHECK],[
GHTTP_LIB=""
- AC_CHECK_LIB(ghttp, ghttp_request_new, [GHTTP_LIB="-lghttp"])
+ AC_REQUIRE([GNOME_INIT_HOOK])
+ AC_CHECK_LIB(ghttp, ghttp_request_new, GHTTP_LIB="-lghttp",
+ ,-L$gnome_prefix)
AC_SUBST(GHTTP_LIB)
AC_PROVIDE([GNOME_GHTTP_CHECK])
])