aboutsummaryrefslogtreecommitdiff
path: root/am
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-01-10 16:02:38 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2012-01-10 16:02:38 +0200
commit684f22da950285f8c73cae62498b71e3d164be1d (patch)
tree2f4ef2b39d37bdb4fe5c7f2ae005b50129352f63 /am
parentf2ef09019ecbf1c64135deac26f0b097c4569b4b (diff)
downloadgrecs-684f22da950285f8c73cae62498b71e3d164be1d.tar.gz
grecs-684f22da950285f8c73cae62498b71e3d164be1d.tar.bz2
Provide a way to install headers if using a shared convenience library.
* am/grecs.m4 (GRECS_SETUP): New option install-headers. New subst variable GRECS_INCLUDE_DIR. * doc/GRECS_SETUP.3: Document the install-headers option. * src/Make-shared.am [GRECS_COND_INSTALLHEADERS]: Install headers in GRECS_INCLUDE_DIR.
Diffstat (limited to 'am')
-rw-r--r--am/grecs.m416
1 files changed, 12 insertions, 4 deletions
diff --git a/am/grecs.m4 b/am/grecs.m4
index 6812215..f5817b5 100644
--- a/am/grecs.m4
+++ b/am/grecs.m4
@@ -58,9 +58,13 @@ AC_DEFUN([_GRECS_SET_OPTIONS],
# configuration file. The option allows user to
# control whether the pp-setup file is installed.
# tests Build tests.
-# getopt Add getopt.m4 to the distribution
-# git2chg Add git2chg.awk to the distribution
-# syntax-doc Add doc/grecs-syntax.texi to the distribution
+# getopt Add getopt.m4 to the distribution.
+# git2chg Add git2chg.awk to the distribution.
+# syntax-doc Add doc/grecs-syntax.texi to the distribution.
+# install Build installable library.
+# shared Build shared (convenience) library.
+# install-headers [with "shared"] Install Grecs headers to
+# GRECS_INCLUDE_DIR.
#
# The pp-setup-file argument supplies the pathname of the preprocessor
# setup file in the source tree. It is ignored if std-pp-setup option is
@@ -161,6 +165,9 @@ AC_DEFUN([GRECS_SETUP],[
_GRECS_OPTION_SWITCH([parser-git],[true],
[all-parsers],[true],
[false]))
+ AM_CONDITIONAL([GRECS_COND_INSTALLHEADERS],
+ _GRECS_IF_OPTION_SET([install-headers],[true],[false]))
+
AC_SUBST([GRECS_SRCDIR],$1)
AC_SUBST([GRECS_BUILD_AUX])
AC_SUBST([GRECS_INCLUDES])
@@ -173,7 +180,8 @@ AC_DEFUN([GRECS_SETUP],[
AC_SUBST([GRECS_INCLUDES],['-I$(top_srcdir)/]grecsdir[src]')
AC_SUBST([GRECS_HOST_PROJECT_INCLUDES])
AC_SUBST([GRECS_DISTDOC])
-
+ AC_SUBST([GRECS_INCLUDE_DIR],['$(pkgincludedir)'])
+
_GRECS_OPTION_SWITCH([install],[
LT_INIT
GRECS_LDADD=['$(top_builddir)/]grecsdir[src/libgrecs.la']

Return to:

Send suggestions and report system problems to the System administrator.