Lines 704-709
Link Here
|
704 |
esac], |
704 |
esac], |
705 |
[with_svg="yes"]) |
705 |
[with_svg="yes"]) |
706 |
|
706 |
|
|
|
707 |
##########################libwww Support#################### |
708 |
dnl |
709 |
dnl libwww are enabled by default |
710 |
dnl |
711 |
AC_ARG_ENABLE([system-libwww], |
712 |
AC_HELP_STRING([--enable-system-libwww],[try the libwww system library]), |
713 |
[case "${enableval}" in |
714 |
yes) with_system_libwww="yes";; |
715 |
no) with_system_libwww="no" ;; |
716 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-system-libwww) ;; |
717 |
esac], |
718 |
[with_system_libwww="no"]) |
719 |
|
720 |
#If libwww is needed and we are asked |
721 |
#to use the system library, check if is present |
722 |
if test "$with_libwww" = "yes" -a "$with_system_libwww" = "yes" ; then |
723 |
# check to see if we have a libwww library |
724 |
AC_PATH_PROG([LIBWWW_CONFIG],[libwww-config]) |
725 |
|
726 |
if test "$LIBWWW_CONFIG" = "" ; then |
727 |
AC_MSG_WARN(Not using system-provided libwww library) |
728 |
with_system_libwww="no" |
729 |
fi |
730 |
fi |
731 |
|
732 |
#if we use the builtin library, |
733 |
#check it is present |
734 |
if test "$with_libwww" = "yes" -a "$with_system_libwww" != "yes" \ |
735 |
-a ! -d "$srcdir/../libwww" ; then |
736 |
AC_MSG_WARN(libwww source dir not found !!) |
737 |
AC_MSG_WARN(Disabling libwww build !) |
738 |
with_libwww="no" |
739 |
fi |
740 |
|
741 |
#At this point, we know everything about libwww, |
742 |
#so either set the variables we will need later, |
743 |
#or disable Annotations |
744 |
if test "$with_libwww" = "yes" ; then |
745 |
if test "$with_system_libwww" != "yes" ; then |
746 |
www_frag=$srcdir/amaya/Makefile.libwww |
747 |
AC_SUBST_FILE(www_frag) |
748 |
else |
749 |
AMAYA_LIBWWW_INCLUDES=`$LIBWWW_CONFIG --cflags` |
750 |
AMAYA_LIBWWW_LIBS=`$LIBWWW_CONFIG --libs` |
751 |
fi |
752 |
else |
753 |
with_libwww="no" |
754 |
fi |
755 |
|
756 |
#AC_SUBST(BUILDLIBWWW) |
757 |
|
758 |
AC_SUBST(AMAYA_LIBWWW_LIBS) |
759 |
AC_SUBST(AMAYA_LIBWWW_INCLUDES) |
760 |
|
761 |
###################End of libwww Support#################### |
762 |
|
763 |
|
707 |
##########################Annotations Support#################### |
764 |
##########################Annotations Support#################### |
708 |
dnl |
765 |
dnl |
709 |
dnl annotations are enabled by default |
766 |
dnl annotations are enabled by default |