summaryrefslogtreecommitdiff
path: root/debian/patches/honor-sysconfdir.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2022-11-12 19:40:07 +0200
committerIgor Pashev <pashev.igor@gmail.com>2022-11-12 19:40:07 +0200
commitec8187a4616115a2eec8d97a8ca81b0aa7dc9542 (patch)
tree121f930c2004d722bfbde0ff453549a9de135b3b /debian/patches/honor-sysconfdir.diff
downloadgnucobol4-debian-ec8187a4616115a2eec8d97a8ca81b0aa7dc9542.tar.gz
Import gnucobol4_4.0~early~20200606-6
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