mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
propagate the pcre flags to libglib and not to all parts of glib.
2007-09-11 Marco Barisione <marco@barisione.org> * glib/Makefile.am: * configure.in: propagate the pcre flags to libglib and not to all parts of glib. (#475854, dmacks@netspace.org) svn path=/trunk/; revision=5749
This commit is contained in:
parent
f4a8a220b5
commit
3c4e0759d6
@ -1,3 +1,9 @@
|
||||
2007-09-11 Marco Barisione <marco@barisione.org>
|
||||
|
||||
* glib/Makefile.am:
|
||||
* configure.in: propagate the pcre flags to libglib and not to all
|
||||
parts of glib. (#475854, dmacks@netspace.org)
|
||||
|
||||
2007-09-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Define G_ATOMIC_ARM.
|
||||
|
@ -2196,6 +2196,8 @@ if test x$enable_regex = xtrue; then
|
||||
PKG_CHECK_MODULES(PCRE,
|
||||
libpcre >= $PCRE_REQUIRED_VERSION)
|
||||
AC_CACHE_CHECK([for Unicode support in PCRE],glib_cv_pcre_has_unicode,[
|
||||
glib_save_CFLAGS="$CFLAGS"
|
||||
glib_save_LDFLAGS="$LDFLAGS"
|
||||
CFLAGS="$CFLAGS $PCRE_CFLAGS" LDFLAGS="$LDFLAGS $PCRE_LIBS"
|
||||
AC_TRY_RUN([#include <pcre.h>
|
||||
int main () {
|
||||
@ -2210,7 +2212,10 @@ if test x$enable_regex = xtrue; then
|
||||
}],
|
||||
glib_cv_pcre_has_unicode=yes,
|
||||
glib_cv_pcre_has_unicode=no,
|
||||
glib_cv_pcre_has_unicode=yes)])
|
||||
glib_cv_pcre_has_unicode=yes)
|
||||
CFLAGS="$lib_save_CFLAGS"
|
||||
LDFLAGS="$glib_save_LDFLAGS"
|
||||
])
|
||||
if test "$glib_cv_pcre_has_unicode" = "no"; then
|
||||
AC_MSG_ERROR([*** The system-supplied PCRE does not support Unicode properties or UTF-8.])
|
||||
fi
|
||||
|
@ -22,7 +22,7 @@ SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre
|
||||
|
||||
DIST_SUBDIRS = libcharset gnulib pcre update-pcre
|
||||
|
||||
INCLUDES = -I$(top_srcdir) -DG_LOG_DOMAIN=\"GLib\" \
|
||||
INCLUDES = -I$(top_srcdir) $(pcre_inc) -DG_LOG_DOMAIN=\"GLib\" \
|
||||
$(GLIB_DEBUG_FLAGS) -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
|
||||
|
||||
glib.def: glib.symbols
|
||||
@ -261,11 +261,14 @@ endif
|
||||
if ENABLE_REGEX
|
||||
if USE_SYSTEM_PCRE
|
||||
pcre_lib = $(PCRE_LIBS)
|
||||
pcre_inc = $(PCRE_CFLAGS)
|
||||
else
|
||||
pcre_lib = pcre/libpcre.la
|
||||
pcre_inc =
|
||||
endif
|
||||
else
|
||||
pcre_lib =
|
||||
pcre_inc =
|
||||
endif
|
||||
|
||||
libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib)
|
||||
|
Loading…
Reference in New Issue
Block a user