GNU bug report logs - #30431
27.0.50; "Work even if libpng is install in /usr/local" causes build failure

Previous Next

Package: emacs;

Reported by: Robert Cochran <robert+Emacs <at> cochranmail.com>

Date: Mon, 12 Feb 2018 06:20:02 UTC

Severity: normal

Found in version 27.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Glenn Morris <rgm <at> gnu.org>, Robert Cochran <robert+Emacs <at> cochranmail.com>
Cc: Werner LEMBERG <wl <at> gnu.org>, 30431 <at> debbugs.gnu.org
Subject: bug#30431: 27.0.50; "Work even if libpng is install in /usr/local" causes build failure
Date: Mon, 12 Feb 2018 11:42:30 -0800
On 02/12/2018 11:13 AM, Glenn Morris wrote:
> AFAICS, the issue is that the CHECK_MODULES method sets PNG_LIBS (and
> PNG_CFLAGS), whereas the old method sets LIBPNG (and PNG_CFLAGS).
>
> So revert the reversion, and then apply eg:
>
> --- a/configure.ac
> +++ b/configure.ac
> @@ -3613,7 +3613,9 @@ elif test "${with_png}" != no; then
>       AC_CHECK_HEADER([png.h], [HAVE_PNG=yes])
>     elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
>      EMACS_CHECK_MODULES([PNG], [libpng >= 1.0.0])
> -   if test $HAVE_PNG = no; then
> +   if test $HAVE_PNG = yes; then
> +    LIBPNG="$PNG_LIBS"
> +   else
>       # Test old way in case pkg-config doesn't have it (older machines).
>       AC_MSG_CHECKING([for libpng not configured by pkg-config])

Thanks, Glenn. Werner, does that work for you?




This bug report was last modified 7 years and 104 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.