summaryrefslogtreecommitdiff
path: root/debian/patches/honor-sysconfdir.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/honor-sysconfdir.diff')
-rw-r--r--debian/patches/honor-sysconfdir.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/honor-sysconfdir.diff b/debian/patches/honor-sysconfdir.diff
new file mode 100644
index 0000000..ca8ecce
--- /dev/null
+++ b/debian/patches/honor-sysconfdir.diff
@@ -0,0 +1,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