mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* configure.ac: Use new LIBCURL_CHECK_CONFIG macro for all libcurl stuff.
This simplifies, and we don't need the automake conditional stuff any longer.
This commit is contained in:
parent
957ed452ac
commit
f5b59b119f
@ -1,3 +1,9 @@
|
|||||||
|
2004-12-24 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* configure.ac: Use new LIBCURL_CHECK_CONFIG macro for
|
||||||
|
all libcurl stuff. This simplifies, and we don't need the
|
||||||
|
automake conditional stuff any longer.
|
||||||
|
|
||||||
2004-12-22 David Shaw <dshaw@jabberwocky.com>
|
2004-12-22 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* configure.ac: --enable-ftp is on by default, --with-libcurl is
|
* configure.ac: --enable-ftp is on by default, --with-libcurl is
|
||||||
|
31
configure.ac
31
configure.ac
@ -524,19 +524,10 @@ if test x"$try_hkp" = xyes ; then
|
|||||||
AC_SUBST(GPGKEYS_HKP,"gpgkeys_hkp$EXEEXT")
|
AC_SUBST(GPGKEYS_HKP,"gpgkeys_hkp$EXEEXT")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"$try_http" = xyes ; then
|
|
||||||
AC_SUBST(GPGKEYS_HTTP,"gpgkeys_http$EXEEXT")
|
|
||||||
AC_DEFINE(HTTP_SUPPORT,1,[Define to include HTTP support])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test x"$try_finger" = xyes ; then
|
if test x"$try_finger" = xyes ; then
|
||||||
AC_SUBST(GPGKEYS_FINGER,"gpgkeys_finger$EXEEXT")
|
AC_SUBST(GPGKEYS_FINGER,"gpgkeys_finger$EXEEXT")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x"$try_ftp" = xyes ; then
|
|
||||||
AC_DEFINE(FTP_SUPPORT,1,[Define to include FTP support])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Must check for network library requirements before doing link tests
|
dnl Must check for network library requirements before doing link tests
|
||||||
dnl for ldap, for example. If ldap libs are static (or dynamic and without
|
dnl for ldap, for example. If ldap libs are static (or dynamic and without
|
||||||
dnl ELF runtime link paths), then link will fail and LDAP support won't
|
dnl ELF runtime link paths), then link will fail and LDAP support won't
|
||||||
@ -653,16 +644,28 @@ AC_SUBST(GPGKEYS_LDAP)
|
|||||||
AC_SUBST(LDAPLIBS)
|
AC_SUBST(LDAPLIBS)
|
||||||
AM_CONDITIONAL(GPGKEYS_LDAP, test "$GPGKEYS_LDAP" != "")
|
AM_CONDITIONAL(GPGKEYS_LDAP, test "$GPGKEYS_LDAP" != "")
|
||||||
|
|
||||||
dnl If we have neither FTP or HTTP defined, then don't bother to check
|
# If we have neither FTP or HTTP defined, then don't bother to check
|
||||||
dnl for curl.
|
# for curl.
|
||||||
|
|
||||||
if test "$try_ftp" = yes || test "$try_http" = yes ; then
|
if test "$try_ftp" = yes || test "$try_http" = yes ; then
|
||||||
GNUPG_CHECK_LIBCURL
|
LIBCURL_CHECK_CONFIG([no],,[have_libcurl=yes])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(HAVE_LIBCURL, test "$have_libcurl" = "yes")
|
# Are we doing HTTP?
|
||||||
|
|
||||||
if test x"$have_libcurl" = xyes ; then
|
if test x"$try_http" = xyes ; then
|
||||||
|
if test x$libcurl_protocol_HTTP = xyes ; then
|
||||||
|
AC_SUBST(GPGKEYS_CURL,"gpgkeys_curl$EXEEXT")
|
||||||
|
AC_DEFINE(HTTP_VIA_LIBCURL,1,[Define if HTTP is handled via libcurl])
|
||||||
|
else
|
||||||
|
AC_SUBST(GPGKEYS_HTTP,"gpgkeys_http$EXEEXT")
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Are we doing FTP? We only do FTP if we have libcurl.
|
||||||
|
|
||||||
|
if test x"$try_ftp" = xyes && test x$libcurl_protocol_FTP = xyes ; then
|
||||||
|
AC_DEFINE(FTP_VIA_LIBCURL,1,[Define if FTP is handled via libcurl])
|
||||||
AC_SUBST(GPGKEYS_CURL,"gpgkeys_curl$EXEEXT")
|
AC_SUBST(GPGKEYS_CURL,"gpgkeys_curl$EXEEXT")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user