Allow user to enable or disable libproxy support explicitly using --enable-libproxy or --disable-libproxy
This commit is contained in:
parent
60696af03d
commit
3f9c918b86
25
configure.in
25
configure.in
|
@ -174,6 +174,11 @@ AC_ARG_ENABLE(ntlm,
|
||||||
[ --enable-ntlm enable Microsoft's NTLM auth (libntlm) library support (default: no)],
|
[ --enable-ntlm enable Microsoft's NTLM auth (libntlm) library support (default: no)],
|
||||||
ntlm=$enableval, ntlm=no)
|
ntlm=$enableval, ntlm=no)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(libproxy,
|
||||||
|
[ --disable-libproxy disable libproxy support (default: auto)],
|
||||||
|
libproxy=$enableval, libproxy=auto)
|
||||||
|
|
||||||
|
|
||||||
dnl *********************************************************************
|
dnl *********************************************************************
|
||||||
dnl ** GLIB *************************************************************
|
dnl ** GLIB *************************************************************
|
||||||
dnl *********************************************************************
|
dnl *********************************************************************
|
||||||
|
@ -462,13 +467,20 @@ dnl *********************************************************************
|
||||||
dnl ** LIBPROXY *********************************************************
|
dnl ** LIBPROXY *********************************************************
|
||||||
dnl *********************************************************************
|
dnl *********************************************************************
|
||||||
|
|
||||||
PKG_CHECK_MODULES([LIBPROXY], [libproxy-1.0], [libproxy=yes], [
|
if test "x$libproxy" = "xyes" -o "x$libproxy" = "xauto" ; then
|
||||||
|
PKG_CHECK_MODULES([LIBPROXY], [libproxy-1.0], [
|
||||||
|
COMMON_LIBS="$COMMON_LIBS $LIBPROXY_LIBS"
|
||||||
|
COMMON_CFLAGS="$COMMON_CFLAGS $LIBPROXY_CFLAGS"
|
||||||
|
AC_DEFINE(USE_LIBPROXY)
|
||||||
|
libproxy=yes
|
||||||
|
], [
|
||||||
|
if test "x$libproxy" = "xyes" ; then
|
||||||
|
AC_MSG_ERROR(Can't find libproxy!)
|
||||||
|
fi
|
||||||
|
libproxy=no
|
||||||
|
])
|
||||||
|
else
|
||||||
libproxy=no
|
libproxy=no
|
||||||
])
|
|
||||||
if test "x$libproxy" = "xyes" ; then
|
|
||||||
COMMON_LIBS="$COMMON_LIBS $LIBPROXY_LIBS"
|
|
||||||
COMMON_CFLAGS="$COMMON_CFLAGS $LIBPROXY_CFLAGS"
|
|
||||||
AC_DEFINE(USE_LIBPROXY)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl *********************************************************************
|
dnl *********************************************************************
|
||||||
|
@ -957,6 +969,7 @@ echo Plugin interface ...... : $plugin
|
||||||
echo NLS/gettext ........... : $USE_NLS
|
echo NLS/gettext ........... : $USE_NLS
|
||||||
echo IPv6 support .......... : $ipv6
|
echo IPv6 support .......... : $ipv6
|
||||||
echo MS Proxy NTLM \(ISA\) ... : $have_ntlm
|
echo MS Proxy NTLM \(ISA\) ... : $have_ntlm
|
||||||
|
echo libproxy support ...... : $libproxy
|
||||||
echo
|
echo
|
||||||
echo Perl .................. : $perl
|
echo Perl .................. : $perl
|
||||||
echo Python ................ : $python
|
echo Python ................ : $python
|
||||||
|
|
Loading…
Reference in New Issue