summarylogtreecommitdiffstats
path: root/configure-linemacros.patch
blob: 8c03082157a4a9a20c4295268e33a9ee0a845f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- sqlite-src-3370000/configure.ac.old	2021-12-05 23:28:16.292028632 +0300
+++ sqlite-src-3370000/configure.ac	2021-12-05 23:28:20.398758808 +0300
@@ -577,6 +577,24 @@
 AC_SUBST(USE_AMALGAMATION)
 
 #########
+# 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=1
+AC_ARG_VAR(amalgamation_line_macros,)
+AC_SUBST(AMALGAMATION_LINE_MACROS)
+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
+
+#########
 # Look for zlib.  Only needed by extensions and by the sqlite3.exe shell
 AC_CHECK_HEADERS(zlib.h)
 AC_SEARCH_LIBS(deflate, z, [HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"], [HAVE_ZLIB=""])