summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2014-01-23 13:21:41 +0000
committerColin Watson <cjwatson@debian.org>2014-01-23 13:21:41 +0000
commitf26aa9dc1836ef4fbc6bb0487b30e2be3bb4827f (patch)
tree52f044513e9d835d5228f5640de8fcb6e1627bbe /include
parentba94d52d226f9adf9c0f4e0345caf1f14e186c3b (diff)
Add support for override directory in search path
* configure.ac: Add --with-override-dir option. * include/manconfig.h.in (OVERRIDE_DIR): New definition. * src/manp.c (insert_override_dir): New function. (get_manpath_from_path): Call it before add_dir_to_list. * src/tests/man-9: New file. * src/tests/Makefile.am (TESTS_ENVIRONMENT): Set and export OVERRIDE_DIR. (ALL_TESTS): Add man-9. * NEWS: Document this.
Diffstat (limited to 'include')
-rw-r--r--include/manconfig.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/manconfig.h.in b/include/manconfig.h.in
index f4853123..99814437 100644
--- a/include/manconfig.h.in
+++ b/include/manconfig.h.in
@@ -166,6 +166,10 @@
# define PIC "@pic@"
#endif
+#ifndef OVERRIDE_DIR
+# define OVERRIDE_DIR "@override_dir@"
+#endif
+
/*------------------------------------------------------------------*/
/* The following definitions are best left alone by the uninitiated */
/*------------------------------------------------------------------*/