source: trunk/third/gtkhtml/macros/gnome-ghttp-check.m4 @ 16767

Revision 16767, 467 bytes checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16766, which included commits to RCS files with non-trunk default branches.
Line 
1AC_DEFUN([GNOME_GHTTP_CHECK],[
2        AC_REQUIRE([GNOME_INIT_HOOK])
3        GHTTP_LIB=
4        AC_CHECK_FUNC(connect,,[
5          AC_CHECK_LIB(socket,connect,
6                GHTTP_LIB="-lsocket $GHTTP_LIB",,$GHTTP_LIB)])
7        AC_CHECK_FUNC(gethostbyname,,[
8          AC_CHECK_LIB(nsl,gethostbyname,
9                GHTTP_LIB="-lnsl $GHTTP_LIB",,$GHTTP_LIB)])
10        AC_CHECK_LIB(ghttp, ghttp_request_new,
11                GHTTP_LIB="-lghttp $GHTTP_LIB",GHTTP_LIB="",-L$gnome_prefix $GHTTP_LIB)
12        AC_SUBST(GHTTP_LIB)
13        AC_PROVIDE([GNOME_GHTTP_CHECK])
14])
Note: See TracBrowser for help on using the repository browser.