aboutsummaryrefslogtreecommitdiff
path: root/src/Make-shared.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 /src/Make-shared.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 'src/Make-shared.am')
-rw-r--r--src/Make-shared.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Make-shared.am b/src/Make-shared.am
index e0a1b79..d6e339a 100644
--- a/src/Make-shared.am
+++ b/src/Make-shared.am
@@ -16,4 +16,9 @@
include Make.am
noinst_LTLIBRARIES=libgrecs.la
libgrecs_la_SOURCES = $(GRECS_SRC)
-noinst_HEADERS += grecs.h wordsplit.h
+if GRECS_COND_INSTALLHEADERS
+ grecsincludedir = @GRECS_INCLUDE_DIR@
+ grecsinclude_HEADERS = grecs.h wordsplit.h
+else
+ noinst_HEADERS += grecs.h wordsplit.h
+endif \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.