summaryrefslogtreecommitdiff
path: root/debian/patches/honor-sysconfdir.diff
blob: ca8ecce5342ebc753e6be7767ff8a6b81f32d887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: configure script read the sysconfdir option
Author: Ludwin Janvier <lud.janvier@gmail.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: gnucobol-4.0-early-20200606/configure.ac
===================================================================
--- gnucobol-4.0-early-20200606.orig/configure.ac
+++ gnucobol-4.0-early-20200606/configure.ac
@@ -1931,6 +1931,10 @@ elif test "$COB_USES_GCC" = "yes" && tes
 	fi
 fi
 
+if test -n "$sysconfdir"; then
+	COB_CONFIG_DIR="$sysconfdir/$PACKAGE_TARNAME"
+fi
+
 if test "x$lt_cv_dlopen_self" != "xyes"; then
 	AC_DEFINE([COB_NO_SELFOPEN], [1])
 fi