summaryrefslogtreecommitdiffstats
path: root/debian/patches/40-amalgamation_configure.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 14:07:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 14:07:13 +0000
commitf7306ad5fe007b53bff4380cec48596da36d27c0 (patch)
tree8bbc3e3997ed07ffe94de91e483975424c534e53 /debian/patches/40-amalgamation_configure.patch
parentAdding upstream version 3.45.1. (diff)
downloadsqlite3-f7306ad5fe007b53bff4380cec48596da36d27c0.tar.xz
sqlite3-f7306ad5fe007b53bff4380cec48596da36d27c0.zip
Adding debian version 3.45.1-1.debian/3.45.1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/40-amalgamation_configure.patch')
-rw-r--r--debian/patches/40-amalgamation_configure.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/patches/40-amalgamation_configure.patch b/debian/patches/40-amalgamation_configure.patch
new file mode 100644
index 0000000..eac62b5
--- /dev/null
+++ b/debian/patches/40-amalgamation_configure.patch
@@ -0,0 +1,37 @@
+--- sqlite-src-3370000/configure.ac.orig 2021-11-27 16:05:17.000000000 +0100
++++ sqlite-src-3370000/configure.ac 2021-12-03 21:21:47.506868981 +0100
+@@ -116,6 +116,13 @@
+ USE_AMALGAMATION=1
+
+ #########
++# By default, amalgamation sqlite3.c will have #line directives.
++# This is a build option not shown by ./configure --help
++# To control it, use configure option: amalgamation_line_macros=?
++# where ? is no to suppress #line directives or yes to create them.
++AMALGAMATION_LINE_MACROS=--linemacros=0
++
++#########
+ # See whether we can run specific tclsh versions known to work well;
+ # if not, then we fall back to plain tclsh.
+ # TODO: try other versions before falling back?
+@@ -633,6 +640,20 @@
+ fi
+ AC_SUBST(USE_AMALGAMATION)
+
++########
++# See whether --disable
++if test "${amalgamation_line_macros+set}" = set; then :
++ enableval=$amalgamation_line_macros;
++fi
++
++if test "${amalgamation_line_macros}" = "yes" ; then
++ AMALGAMATION_LINE_MACROS=--linemacros=1
++fi
++if test "${amalgamation_line_macros}" = "no" ; then
++ AMALGAMATION_LINE_MACROS=--linemacros=0
++fi
++AC_SUBST(AMALGAMATION_LINE_MACROS)
++
+ #########
+ # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
+ AC_CHECK_HEADERS(zlib.h)