Hi Charles, I just pushed a commit to the git repo that checks for pcre.h in combination with pkg-config. If not found, pcre will be automatically disabled.
I attach the patch just in case you don't use git. Tim On Tuesday 09 December 2014 21:50:57 Charles Diza wrote: > Wget 1.16.1 refuses to build on OSX 10.10.1, with Xcode 6.1.1. > > I've posted the error below; I have never seen it before. It appears that > wget suddenly requires that pcre be installed. Is this true? There was no > mention of it in the latest NEWS file in the tarball. > > For the record, my ./configure flags were: ./configure --with-ssl=openssl > --with-libssl-prefix=/usr/local/ssl > > -Charles > > > gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" > -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib > -I/usr/local/include -DHAVE_LIBSSL -DNDEBUG -MT html-url.o -MD -MP -MF > .deps/html-url.Tpo -c -o html-url.o html-url.c > html-url.c:628:33: warning: expression result unused [-Wunused-value] > mcharset = parse_charset (content); > ^~~~~~~ > ./iri.h:59:38: note: expanded from macro 'parse_charset' > #define parse_charset(str) (str, NULL) > ^ > 1 warning generated. > mv -f .deps/html-url.Tpo .deps/html-url.Po > gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" > -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib > -I/usr/local/include -DHAVE_LIBSSL -DNDEBUG -MT http.o -MD -MP -MF > .deps/http.Tpo -c -o http.o http.c > http.c:2657:36: warning: expression result unused [-Wunused-value] > tmp = parse_charset (tmp2); > ^~~~ > ./iri.h:59:38: note: expanded from macro 'parse_charset' > #define parse_charset(str) (str, NULL) > ^ > 1 warning generated. > mv -f .deps/http.Tpo .deps/http.Po > gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" > -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib > -I/usr/local/include -DHAVE_LIBSSL -DNDEBUG -MT init.o -MD -MP -MF > .deps/init.Tpo -c -o init.o init.c > init.c:52:11: fatal error: 'pcre.h' file not found > # include <pcre.h> > ^ > 1 error generated. > make[3]: *** [init.o] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2
From 71425f1bb3700e52442154aeab9a78c587341aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim Rühsen?= <[email protected]> Date: Wed, 10 Dec 2014 10:22:39 +0100 Subject: [PATCH] Check for pcre.h in configure.ac --- ChangeLog | 4 ++++ configure.ac | 19 ++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index c60beb9..33433ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-12-10 Tim Ruehsen <[email protected]> + + * configure.ac: Check for pcre.h + 2014-12-08 Giuseppe Scrivano <[email protected]> * cfg.mk (local-checks-to-skip): Add sc_cast_of_argument_to_free. diff --git a/configure.ac b/configure.ac index a366e83..7b4e2ad 100644 --- a/configure.ac +++ b/configure.ac @@ -678,17 +678,18 @@ AC_ARG_ENABLE(pcre, AC_HELP_STRING([--disable-pcre], AS_IF([test "X$enable_pcre" != "Xno"],[ PKG_CHECK_MODULES([PCRE], libpcre, [ - LIBS="$PCRE_LIBS $LIBS" CFLAGS="$PCRE_CFLAGS $CFLAGS" - AC_DEFINE([HAVE_LIBPCRE], [1], [Define if using libpcre.]) + AC_CHECK_HEADER(pcre.h, [ + LIBS="$PCRE_LIBS $LIBS" + AC_DEFINE([HAVE_LIBPCRE], [1], [Define if libpcre is available.]) + ]) ], [ - AC_CHECK_HEADER(pcre.h, - AC_CHECK_LIB(pcre, pcre_compile, - [LIBS="${LIBS} -lpcre" - AC_DEFINE([HAVE_LIBPCRE], 1, - [Define if libpcre is available.]) - ]) - ) + AC_CHECK_HEADER(pcre.h, [ + AC_CHECK_LIB(pcre, pcre_compile, [ + LIBS="${LIBS} -lpcre" + AC_DEFINE([HAVE_LIBPCRE], 1, [Define if libpcre is available.]) + ]) + ]) ]) ]) -- 2.1.3
signature.asc
Description: This is a digitally signed message part.
