mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
PCRE_CFLAGS are CPPFLAGS, actually.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
f7bc3e5c21
commit
7b184ddea4
@ -50,7 +50,7 @@ if CHARSET
|
||||
libmc_la_SOURCES += charsets.c charsets.h
|
||||
endif
|
||||
|
||||
AM_CFLAGS= $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CPPFLAGS)
|
||||
|
||||
libmc_la_LIBADD = \
|
||||
event/libmcevent.la \
|
||||
|
@ -7,4 +7,4 @@ libmcevent_la_SOURCES = \
|
||||
manage.c \
|
||||
raise.c
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
@ -6,4 +6,4 @@ libmcfilehighlight_la_SOURCES = \
|
||||
ini-file-read.c \
|
||||
internal.h
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
@ -9,4 +9,4 @@ libsearch_la_SOURCES = \
|
||||
glob.c \
|
||||
hex.c
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
@ -9,4 +9,4 @@ libmcskin_la_SOURCES = \
|
||||
lines.c \
|
||||
internal.h
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
@ -22,4 +22,4 @@ libmcwidget_la_SOURCES = \
|
||||
widget-common.c widget-common.h \
|
||||
wtools.c wtools.h
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
@ -1,6 +1,6 @@
|
||||
dnl @synopsis AX_PATH_LIB_PCRE [(A/NA)]
|
||||
dnl
|
||||
dnl check for pcre lib and set PCRE_LIBS and PCRE_CFLAGS accordingly.
|
||||
dnl check for pcre lib and set PCRE_LIBS and PCRE_CPPFLAGS accordingly.
|
||||
dnl
|
||||
dnl also provide --with-pcre option that may point to the $prefix of
|
||||
dnl the pcre installation - the macro will check $pcre/include and
|
||||
@ -29,14 +29,14 @@ else
|
||||
AC_MSG_RESULT([(testing)])
|
||||
|
||||
if test "x$with_pcre" = "xyes" ; then
|
||||
PCRE_CFLAGS="`pcre-config --cflags`"
|
||||
PCRE_CPPFLAGS="`pcre-config --cflags`"
|
||||
PCRE_LIBS="`pcre-config --libs`"
|
||||
else
|
||||
test_PCRE_LIBS="-L$with_pcre/lib"
|
||||
test_PCRE_CFLAGS="-I$with_pcre/include"
|
||||
test_PCRE_CPPFLAGS="-I$with_pcre/include"
|
||||
|
||||
OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $test_PCRE_LIBS"
|
||||
OLDCFLAGS="$CFLAGS" ; CFLAGS="$CFLAGS $test_PCRE_CFLAGS"
|
||||
OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $test_PCRE_CPPFLAGS"
|
||||
|
||||
AC_CHECK_LIB(pcre, pcre_compile)
|
||||
|
||||
@ -44,7 +44,7 @@ else
|
||||
AC_MSG_RESULT(setting PCRE_LIBS -L$with_pcre/lib -lpcre)
|
||||
|
||||
PCRE_LIBS=$test_PCRE_LIBS
|
||||
test_PCRE_CFLAGS=$test_PCRE_CFLAGS
|
||||
PCRE_CPPFLAGS=$test_PCRE_CPPFLAGS
|
||||
|
||||
AC_MSG_CHECKING([lib pcre])
|
||||
AC_MSG_RESULT([$PCRE_LIBS])
|
||||
@ -55,13 +55,13 @@ else
|
||||
m4_ifval($2,$2)
|
||||
fi
|
||||
|
||||
CFLAGS="$OLDCFLAGS"
|
||||
CPPFLAGS="$OLDCFPPLAGS"
|
||||
LDFLAGS="$OLDLDFLAGS"
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([PCRE_LIBS])
|
||||
AC_SUBST([PCRE_CFLAGS])
|
||||
AC_SUBST([PCRE_CPPFLAGS])
|
||||
|
||||
])
|
||||
|
@ -22,7 +22,7 @@ SUBDIRS += consaver
|
||||
AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
|
||||
endif
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
||||
localedir = $(datadir)/locale
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
|
@ -5,6 +5,6 @@ libdiffviewer_la_SOURCES = \
|
||||
search.c \
|
||||
ydiff.c ydiff.h
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
||||
libdiffviewer_la_LIBADD = ../../lib/libmc.la
|
||||
|
@ -21,4 +21,4 @@ libedit_la_SOURCES += \
|
||||
endif
|
||||
endif
|
||||
|
||||
AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CPPFLAGS)
|
||||
|
@ -30,6 +30,6 @@ libmcfilemanager_la_SOURCES = \
|
||||
# Unmaintained, unsupported, etc
|
||||
# listmode.c listmode.h
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
||||
libmcfilemanager_la_LIBADD = ../../lib/libmc.la
|
||||
|
@ -19,6 +19,6 @@ libmcviewer_la_SOURCES = \
|
||||
plain.c \
|
||||
search.c
|
||||
|
||||
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
|
||||
|
||||
libmcviewer_la_LIBADD = ../../lib/libmc.la
|
||||
|
Loading…
Reference in New Issue
Block a user