[pacman-dev] [PATCH] configure.ac: use upstream supplied configure check and flags

Dan McGee dpmcgee at gmail.com
Tue Aug 16 20:48:27 EDT 2011


On Mon, Aug 15, 2011 at 3:35 PM, Rémy Oudompheng <remy at archlinux.org> wrote:
> The homemade check for libgpgme is kept because it is not included
> in gpgme.m4. Additionnally, GPGME_CFLAGS (containing the include dirs)
> is added to be CPPFLAGS variable, and GPGME_LIBS is added to the LIBADD
> variable.
>
> Signed-off-by: Rémy Oudompheng <remy at archlinux.org>
> ---
>  configure.ac            |   15 ++-
>  lib/libalpm/Makefile.am |    4 +-
>  m4/gpgme.m4             |  307 +++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 319 insertions(+), 7 deletions(-)
>  create mode 100644 m4/gpgme.m4
>
> diff --git a/configure.ac b/configure.ac
> index 2d52d6a..3a5cacc 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -160,12 +160,15 @@ AM_CONDITIONAL([HAVE_LIBSSL], [test "x$with_openssl" = "xyes"])
>  AC_MSG_CHECKING(whether to link with libgpgme)
>  AS_IF([test "x$with_gpgme" != "xno"],
>        [AC_MSG_RESULT(yes)
> -       AC_CHECK_LIB([gpgme], [gpgme_check_version], ,
> -       [if test "x$with_gpgme" != "xcheck"; then
> -               AC_MSG_FAILURE([--with-ggpme was given, but -lgpgme was not found])
> -       fi],
> -       [-lgpgme])
> -       with_gpgme=$ac_cv_lib_gpgme_gpgme_check_version],
This didn't work for me. I think you deleted a crucial line here- we
no longer get HAVE_LIBGPGME at all anymore in config.h, which is a
huge problem, as it built my dev pacman version without gpgme support.
Whatever you replaced it with didn't work for me and thus no define in
config.h (it wasn't even commented out).

> +       AM_PATH_GPGME([],
> +               [AC_CHECK_LIB([gpgme], [gpgme_check_version],
> +                       [with_gpgme=yes],
> +                       [AC_MSG_FAILURE([gpgme-config was found, but -lgpgme was not found, check your GPGME install])]
> +                       [-lgpgme])],
> +               [if test "x$with_gpgme" != "xcheck"; then
> +                       AC_MSG_FAILURE([--with-gpgme was given, but -lgpgme was not found])
> +               fi
> +               with_gpgme=no])],


More information about the pacman-dev mailing list