summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-03-18 21:41:30 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-07 19:03:17 (GMT)
commitf45e29c5ca5c50bded67c295fb62e208365cf4d6 (patch)
tree5e921925a2927efeda12bbfaed1ecb31592cb763 /ct-ng.in
parentbc542408ca3c74e977e4f30d77ae6b9a6f388cbe (diff)
Restore --enable-local use
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 3ba0d92..03925f9 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -16,8 +16,15 @@ export CT_TOP_DIR:=$(shell pwd)
# Paths and values set by ./configure
# Don't bother to change it other than with a new ./configure!
+ifeq (@enable_local@,yes)
+# automake does not allow to set pkgxxxdir, they are always derived from
+# a respective xxxdir. So, for enable-local case, set them directly here.
+export CT_LIB_DIR:=$(CT_TOP_DIR)
+export CT_LIBEXEC_DIR:=$(CT_TOP_DIR)/kconfig
+else
export CT_LIB_DIR:=@pkgdatadir@
export CT_LIBEXEC_DIR:=@pkglibexecdir@
+endif
export CT_DOC_DIR:=@docdir@
# This is crosstool-NG version string