Skip to content
Snippets Groups Projects
Commit 908a9f6f authored by Dan Egnor's avatar Dan Egnor
Browse files

Use libwww-config

parent ee33e28b
No related branches found
No related tags found
No related merge requests found
...@@ -86,16 +86,21 @@ if test xno != x$with_tcl; then ...@@ -86,16 +86,21 @@ if test xno != x$with_tcl; then
fi fi
if test xyes = x$with_libwww; then if test xyes = x$with_libwww; then
AC_CHECK_LIB(wwwcore,HTEvent_setRegisterCallback,[ save_libs="$LIBS"
save_cppflags="$CPPFLAGS"
AC_CHECK_PROG(PROG_WWW_CONFIG,libwww-config,libwww-config)
if test -n "$PROG_WWW_CONFIG" ; then
WWW_INCLUDES="`libwww-config --cflags`"
WWW_LIBS="`libwww-config --libs`"
LIBS="$save_libs $WWW_LIBS"
CPPFLAGS="$save_cppflags $WWW_INCLUDES"
AC_CHECK_FUNC(HTEvent_setRegisterCallback,[
LIBOOP_LIBS="liboop-www.la $LIBOOP_LIBS" LIBOOP_LIBS="liboop-www.la $LIBOOP_LIBS"
AC_DEFINE(HAVE_WWW) AC_DEFINE(HAVE_WWW)
# This is just a little unpleasant. ])
WWW_LIBS=" \ fi
-lwwwapp -lwwwcache -lwwwcore -lwwwdir -lwwwfile -lwwwftp -lwwwgopher \ LIBS="$save_libs"
-lwwwhtml -lwwwhttp -lwwwinit -lwwwmime -lwwwmux -lwwwnews -lwwwstream \ CPPFLAGS="$save_cppflags"
-lwwwtelnet -lwwwtrans -lwwwutils -lwwwzip -lmd5"
WWW_INCLUDES="-I/usr/include/w3c-libwww" # the libwww RPM puts headers here
],,-lwwwutils)
fi fi
if test -z "$no_wacky_libs" ; then if test -z "$no_wacky_libs" ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment