/ Hex Artifact Content
Login

Artifact bec3caf78cf1bdbaad903dcd5c6029292eda3d2d:


0000: 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .#--------------
0010: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0020: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0030: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0040: 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 53 75 70 70  ---------.# Supp
0050: 6f 72 74 73 20 74 68 65 20 66 6f 6c 6c 6f 77 69  orts the followi
0060: 6e 67 20 6e 6f 6e 2d 73 74 61 6e 64 61 72 64 20  ng non-standard 
0070: 73 77 69 74 63 68 65 73 2e 0a 23 0a 23 20 20 20  switches..#.#   
0080: 2d 2d 65 6e 61 62 6c 65 2d 74 68 72 65 61 64 73  --enable-threads
0090: 61 66 65 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65  afe.#   --enable
00a0: 2d 72 65 61 64 6c 69 6e 65 0a 23 20 20 20 2d 2d  -readline.#   --
00b0: 65 6e 61 62 6c 65 2d 64 79 6e 61 6d 69 63 2d 65  enable-dynamic-e
00c0: 78 74 65 6e 73 69 6f 6e 73 0a 23 0a 0a 41 43 5f  xtensions.#..AC_
00d0: 50 52 45 52 45 51 28 32 2e 36 31 29 0a 41 43 5f  PREREQ(2.61).AC_
00e0: 49 4e 49 54 28 73 71 6c 69 74 65 2c 20 33 2e 37  INIT(sqlite, 3.7
00f0: 2e 35 2c 20 68 74 74 70 3a 2f 2f 77 77 77 2e 73  .5, http://www.s
0100: 71 6c 69 74 65 2e 6f 72 67 29 0a 41 43 5f 43 4f  qlite.org).AC_CO
0110: 4e 46 49 47 5f 53 52 43 44 49 52 28 5b 73 71 6c  NFIG_SRCDIR([sql
0120: 69 74 65 33 2e 63 5d 29 0a 0a 23 20 55 73 65 20  ite3.c])..# Use 
0130: 61 75 74 6f 6d 61 6b 65 2e 0a 41 4d 5f 49 4e 49  automake..AM_INI
0140: 54 5f 41 55 54 4f 4d 41 4b 45 28 5b 66 6f 72 65  T_AUTOMAKE([fore
0150: 69 67 6e 5d 29 0a 0a 41 43 5f 53 59 53 5f 4c 41  ign])..AC_SYS_LA
0160: 52 47 45 46 49 4c 45 0a 0a 23 20 43 68 65 63 6b  RGEFILE..# Check
0170: 20 66 6f 72 20 72 65 71 75 69 72 65 64 20 70 72   for required pr
0180: 6f 67 72 61 6d 73 2e 0a 41 43 5f 50 52 4f 47 5f  ograms..AC_PROG_
0190: 43 43 0a 41 43 5f 50 52 4f 47 5f 4c 49 42 54 4f  CC.AC_PROG_LIBTO
01a0: 4f 4c 0a 41 43 5f 50 52 4f 47 5f 4d 4b 44 49 52  OL.AC_PROG_MKDIR
01b0: 5f 50 0a 0a 23 20 43 68 65 63 6b 20 66 6f 72 20  _P..# Check for 
01c0: 6c 69 62 72 61 72 79 20 66 75 6e 63 74 69 6f 6e  library function
01d0: 73 20 74 68 61 74 20 53 51 4c 69 74 65 20 63 61  s that SQLite ca
01e0: 6e 20 6f 70 74 69 6f 6e 61 6c 6c 79 20 75 73 65  n optionally use
01f0: 2e 0a 41 43 5f 43 48 45 43 4b 5f 46 55 4e 43 53  ..AC_CHECK_FUNCS
0200: 28 5b 66 64 61 74 61 73 79 6e 63 20 75 73 6c 65  ([fdatasync usle
0210: 65 70 20 66 75 6c 6c 66 73 79 6e 63 20 6c 6f 63  ep fullfsync loc
0220: 61 6c 74 69 6d 65 5f 72 20 67 6d 74 69 6d 65 5f  altime_r gmtime_
0230: 72 5d 29 0a 41 43 5f 46 55 4e 43 5f 53 54 52 45  r]).AC_FUNC_STRE
0240: 52 52 4f 52 5f 52 0a 0a 41 43 5f 43 4f 4e 46 49  RROR_R..AC_CONFI
0250: 47 5f 46 49 4c 45 53 28 5b 4d 61 6b 65 66 69 6c  G_FILES([Makefil
0260: 65 20 73 71 6c 69 74 65 33 2e 70 63 5d 29 0a 41  e sqlite3.pc]).A
0270: 43 5f 53 55 42 53 54 28 42 55 49 4c 44 5f 43 46  C_SUBST(BUILD_CF
0280: 4c 41 47 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  LAGS)..#--------
0290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
02c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
02d0: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 65 64 69  #   --enable-edi
02e0: 74 6c 69 6e 65 0a 23 20 20 20 2d 2d 65 6e 61 62  tline.#   --enab
02f0: 6c 65 2d 72 65 61 64 6c 69 6e 65 0a 23 0a 41 43  le-readline.#.AC
0300: 5f 41 52 47 5f 45 4e 41 42 4c 45 28 65 64 69 74  _ARG_ENABLE(edit
0310: 6c 69 6e 65 2c 20 5b 41 53 5f 48 45 4c 50 5f 53  line, [AS_HELP_S
0320: 54 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61 62  TRING(.  [--enab
0330: 6c 65 2d 65 64 69 74 6c 69 6e 65 5d 2c 20 0a 20  le-editline], . 
0340: 20 5b 75 73 65 20 42 53 44 20 6c 69 62 65 64 69   [use BSD libedi
0350: 74 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e  t])], .  [], [en
0360: 61 62 6c 65 5f 65 64 69 74 6c 69 6e 65 3d 79 65  able_editline=ye
0370: 73 5d 29 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c  s]).AC_ARG_ENABL
0380: 45 28 72 65 61 64 6c 69 6e 65 2c 20 5b 41 53 5f  E(readline, [AS_
0390: 48 45 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b  HELP_STRING(.  [
03a0: 2d 2d 65 6e 61 62 6c 65 2d 72 65 61 64 6c 69 6e  --enable-readlin
03b0: 65 5d 2c 20 0a 20 20 5b 75 73 65 20 72 65 61 64  e], .  [use read
03c0: 6c 69 6e 65 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20  line])], .  [], 
03d0: 5b 65 6e 61 62 6c 65 5f 72 65 61 64 6c 69 6e 65  [enable_readline
03e0: 3d 6e 6f 5d 29 0a 69 66 20 74 65 73 74 20 78 22  =no]).if test x"
03f0: 24 65 6e 61 62 6c 65 5f 65 64 69 74 6c 69 6e 65  $enable_editline
0400: 22 20 21 3d 20 78 6e 6f 20 3b 20 74 68 65 6e 0a  " != xno ; then.
0410: 20 20 73 4c 49 42 53 3d 24 4c 49 42 53 0a 20 20    sLIBS=$LIBS.  
0420: 4c 49 42 53 3d 22 22 0a 20 20 41 43 5f 53 45 41  LIBS="".  AC_SEA
0430: 52 43 48 5f 4c 49 42 53 28 5b 72 65 61 64 6c 69  RCH_LIBS([readli
0440: 6e 65 5d 2c 5b 65 64 69 74 5d 2c 5b 65 6e 61 62  ne],[edit],[enab
0450: 6c 65 5f 72 65 61 64 6c 69 6e 65 3d 6e 6f 5d 2c  le_readline=no],
0460: 5b 65 6e 61 62 6c 65 5f 65 64 69 74 6c 69 6e 65  [enable_editline
0470: 3d 6e 6f 5d 29 0a 20 20 52 45 41 44 4c 49 4e 45  =no]).  READLINE
0480: 5f 4c 49 42 53 3d 24 4c 49 42 53 0a 20 20 69 66  _LIBS=$LIBS.  if
0490: 20 74 65 73 74 20 78 22 24 4c 49 42 53 22 20 21   test x"$LIBS" !
04a0: 3d 20 22 78 22 3b 20 74 68 65 6e 0a 20 20 20 20  = "x"; then.    
04b0: 20 41 43 5f 44 45 46 49 4e 45 28 5b 48 41 56 45   AC_DEFINE([HAVE
04c0: 5f 45 44 49 54 4c 49 4e 45 5d 2c 31 2c 44 65 66  _EDITLINE],1,Def
04d0: 69 6e 65 20 74 6f 20 75 73 65 20 42 53 44 20 65  ine to use BSD e
04e0: 64 69 74 6c 69 6e 65 29 0a 20 20 66 69 0a 20 20  ditline).  fi.  
04f0: 4c 49 42 53 3d 24 73 4c 49 42 53 0a 66 69 0a 69  LIBS=$sLIBS.fi.i
0500: 66 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65  f test x"$enable
0510: 5f 72 65 61 64 6c 69 6e 65 22 20 21 3d 20 78 6e  _readline" != xn
0520: 6f 20 3b 20 74 68 65 6e 0a 20 20 73 4c 49 42 53  o ; then.  sLIBS
0530: 3d 24 4c 49 42 53 0a 20 20 4c 49 42 53 3d 22 22  =$LIBS.  LIBS=""
0540: 0a 20 20 41 43 5f 53 45 41 52 43 48 5f 4c 49 42  .  AC_SEARCH_LIB
0550: 53 28 74 67 65 74 65 6e 74 2c 20 63 75 72 73 65  S(tgetent, curse
0560: 73 20 6e 63 75 72 73 65 73 20 6e 63 75 72 73 65  s ncurses ncurse
0570: 73 77 2c 20 5b 5d 2c 20 5b 5d 29 0a 20 20 41 43  sw, [], []).  AC
0580: 5f 53 45 41 52 43 48 5f 4c 49 42 53 28 72 65 61  _SEARCH_LIBS(rea
0590: 64 6c 69 6e 65 2c 20 72 65 61 64 6c 69 6e 65 2c  dline, readline,
05a0: 20 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 72 65 61   [], [enable_rea
05b0: 64 6c 69 6e 65 3d 6e 6f 5d 29 0a 20 20 41 43 5f  dline=no]).  AC_
05c0: 43 48 45 43 4b 5f 46 55 4e 43 53 28 72 65 61 64  CHECK_FUNCS(read
05d0: 6c 69 6e 65 2c 20 5b 5d 2c 20 5b 5d 29 0a 20 20  line, [], []).  
05e0: 52 45 41 44 4c 49 4e 45 5f 4c 49 42 53 3d 24 4c  READLINE_LIBS=$L
05f0: 49 42 53 0a 20 20 4c 49 42 53 3d 24 73 4c 49 42  IBS.  LIBS=$sLIB
0600: 53 0a 66 69 0a 41 43 5f 53 55 42 53 54 28 52 45  S.fi.AC_SUBST(RE
0610: 41 44 4c 49 4e 45 5f 4c 49 42 53 29 0a 23 2d 2d  ADLINE_LIBS).#--
0620: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0630: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0640: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0650: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0660: 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  -----..#--------
0670: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0680: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0690: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
06a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
06b0: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 74 68 72  #   --enable-thr
06c0: 65 61 64 73 61 66 65 0a 23 0a 41 43 5f 41 52 47  eadsafe.#.AC_ARG
06d0: 5f 45 4e 41 42 4c 45 28 74 68 72 65 61 64 73 61  _ENABLE(threadsa
06e0: 66 65 2c 20 5b 41 53 5f 48 45 4c 50 5f 53 54 52  fe, [AS_HELP_STR
06f0: 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61 62 6c 65  ING(.  [--enable
0700: 2d 74 68 72 65 61 64 73 61 66 65 5d 2c 20 5b 62  -threadsafe], [b
0710: 75 69 6c 64 20 61 20 74 68 72 65 61 64 2d 73 61  uild a thread-sa
0720: 66 65 20 6c 69 62 72 61 72 79 20 5b 64 65 66 61  fe library [defa
0730: 75 6c 74 3d 79 65 73 5d 5d 29 5d 2c 20 0a 20 20  ult=yes]])], .  
0740: 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 74 68 72 65  [], [enable_thre
0750: 61 64 73 61 66 65 3d 79 65 73 5d 29 0a 54 48 52  adsafe=yes]).THR
0760: 45 41 44 53 41 46 45 5f 46 4c 41 47 53 3d 2d 44  EADSAFE_FLAGS=-D
0770: 53 51 4c 49 54 45 5f 54 48 52 45 41 44 53 41 46  SQLITE_THREADSAF
0780: 45 3d 30 0a 69 66 20 74 65 73 74 20 78 22 24 65  E=0.if test x"$e
0790: 6e 61 62 6c 65 5f 74 68 72 65 61 64 73 61 66 65  nable_threadsafe
07a0: 22 20 21 3d 20 22 78 6e 6f 22 3b 20 74 68 65 6e  " != "xno"; then
07b0: 0a 20 20 54 48 52 45 41 44 53 41 46 45 5f 46 4c  .  THREADSAFE_FL
07c0: 41 47 53 3d 22 2d 44 5f 52 45 45 4e 54 52 41 4e  AGS="-D_REENTRAN
07d0: 54 3d 31 20 2d 44 53 51 4c 49 54 45 5f 54 48 52  T=1 -DSQLITE_THR
07e0: 45 41 44 53 41 46 45 3d 31 22 0a 20 20 41 43 5f  EADSAFE=1".  AC_
07f0: 53 45 41 52 43 48 5f 4c 49 42 53 28 70 74 68 72  SEARCH_LIBS(pthr
0800: 65 61 64 5f 63 72 65 61 74 65 2c 20 70 74 68 72  ead_create, pthr
0810: 65 61 64 29 0a 66 69 0a 41 43 5f 53 55 42 53 54  ead).fi.AC_SUBST
0820: 28 54 48 52 45 41 44 53 41 46 45 5f 46 4c 41 47  (THREADSAFE_FLAG
0830: 53 29 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  S).#------------
0840: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0850: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0860: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0870: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d  -----------..#--
0880: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0890: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
08c0: 2d 2d 2d 2d 2d 0a 23 20 20 20 2d 2d 65 6e 61 62  -----.#   --enab
08d0: 6c 65 2d 64 79 6e 61 6d 69 63 2d 65 78 74 65 6e  le-dynamic-exten
08e0: 73 69 6f 6e 73 0a 23 0a 41 43 5f 41 52 47 5f 45  sions.#.AC_ARG_E
08f0: 4e 41 42 4c 45 28 64 79 6e 61 6d 69 63 2d 65 78  NABLE(dynamic-ex
0900: 74 65 6e 73 69 6f 6e 73 2c 20 5b 41 53 5f 48 45  tensions, [AS_HE
0910: 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d  LP_STRING(.  [--
0920: 65 6e 61 62 6c 65 2d 64 79 6e 61 6d 69 63 2d 65  enable-dynamic-e
0930: 78 74 65 6e 73 69 6f 6e 73 5d 2c 20 5b 73 75 70  xtensions], [sup
0940: 70 6f 72 74 20 6c 6f 61 64 61 62 6c 65 20 65 78  port loadable ex
0950: 74 65 6e 73 69 6f 6e 73 20 5b 64 65 66 61 75 6c  tensions [defaul
0960: 74 3d 79 65 73 5d 5d 29 5d 2c 20 0a 20 20 5b 5d  t=yes]])], .  []
0970: 2c 20 5b 65 6e 61 62 6c 65 5f 64 79 6e 61 6d 69  , [enable_dynami
0980: 63 5f 65 78 74 65 6e 73 69 6f 6e 73 3d 79 65 73  c_extensions=yes
0990: 5d 29 0a 69 66 20 74 65 73 74 20 78 22 24 65 6e  ]).if test x"$en
09a0: 61 62 6c 65 5f 64 79 6e 61 6d 69 63 5f 65 78 74  able_dynamic_ext
09b0: 65 6e 73 69 6f 6e 73 22 20 21 3d 20 22 78 6e 6f  ensions" != "xno
09c0: 22 3b 20 74 68 65 6e 0a 20 20 41 43 5f 53 45 41  "; then.  AC_SEA
09d0: 52 43 48 5f 4c 49 42 53 28 64 6c 6f 70 65 6e 2c  RCH_LIBS(dlopen,
09e0: 20 64 6c 29 0a 65 6c 73 65 0a 20 20 44 59 4e 41   dl).else.  DYNA
09f0: 4d 49 43 5f 45 58 54 45 4e 53 49 4f 4e 5f 46 4c  MIC_EXTENSION_FL
0a00: 41 47 53 3d 2d 44 53 51 4c 49 54 45 5f 4f 4d 49  AGS=-DSQLITE_OMI
0a10: 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e  T_LOAD_EXTENSION
0a20: 3d 31 0a 66 69 0a 41 43 5f 4d 53 47 5f 43 48 45  =1.fi.AC_MSG_CHE
0a30: 43 4b 49 4e 47 28 5b 66 6f 72 20 77 68 65 74 68  CKING([for wheth
0a40: 65 72 20 74 6f 20 73 75 70 70 6f 72 74 20 64 79  er to support dy
0a50: 6e 61 6d 69 63 20 65 78 74 65 6e 73 69 6f 6e 73  namic extensions
0a60: 5d 29 0a 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54  ]).AC_MSG_RESULT
0a70: 28 24 65 6e 61 62 6c 65 5f 64 79 6e 61 6d 69 63  ($enable_dynamic
0a80: 5f 65 78 74 65 6e 73 69 6f 6e 73 29 0a 41 43 5f  _extensions).AC_
0a90: 53 55 42 53 54 28 44 59 4e 41 4d 49 43 5f 45 58  SUBST(DYNAMIC_EX
0aa0: 54 45 4e 53 49 4f 4e 5f 46 4c 41 47 53 29 0a 23  TENSION_FLAGS).#
0ab0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ac0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ad0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ae0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0af0: 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d  -------..#------
0b00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b40: 2d 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 66  -.#   --enable-f
0b50: 74 73 35 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41  ts5.#.AC_ARG_ENA
0b60: 42 4c 45 28 66 74 73 35 2c 20 5b 41 53 5f 48 45  BLE(fts5, [AS_HE
0b70: 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d  LP_STRING(.  [--
0b80: 65 6e 61 62 6c 65 2d 66 74 73 35 5d 2c 20 5b 69  enable-fts5], [i
0b90: 6e 63 6c 75 64 65 20 66 74 73 35 20 73 75 70 70  nclude fts5 supp
0ba0: 6f 72 74 20 5b 64 65 66 61 75 6c 74 3d 6e 6f 5d  ort [default=no]
0bb0: 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e 61  ])], .  [], [ena
0bc0: 62 6c 65 5f 66 74 73 35 3d 6e 6f 5d 29 0a 69 66  ble_fts5=no]).if
0bd0: 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f   test x"$enable_
0be0: 66 74 73 35 22 20 3d 3d 20 22 78 79 65 73 22 3b  fts5" == "xyes";
0bf0: 20 74 68 65 6e 0a 20 20 41 43 5f 53 45 41 52 43   then.  AC_SEARC
0c00: 48 5f 4c 49 42 53 28 6c 6f 67 2c 20 6d 29 0a 20  H_LIBS(log, m). 
0c10: 20 46 54 53 35 5f 46 4c 41 47 53 3d 2d 44 53 51   FTS5_FLAGS=-DSQ
0c20: 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53 35  LITE_ENABLE_FTS5
0c30: 0a 66 69 0a 41 43 5f 53 55 42 53 54 28 46 54 53  .fi.AC_SUBST(FTS
0c40: 35 5f 46 4c 41 47 53 29 0a 23 2d 2d 2d 2d 2d 2d  5_FLAGS).#------
0c50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0c90: 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  -..#------------
0ca0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0cd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 20 20  -----------.#   
0ce0: 2d 2d 65 6e 61 62 6c 65 2d 6a 73 6f 6e 31 0a 23  --enable-json1.#
0cf0: 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c 45 28 6a  .AC_ARG_ENABLE(j
0d00: 73 6f 6e 31 2c 20 5b 41 53 5f 48 45 4c 50 5f 53  son1, [AS_HELP_S
0d10: 54 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61 62  TRING(.  [--enab
0d20: 6c 65 2d 6a 73 6f 6e 31 5d 2c 20 5b 69 6e 63 6c  le-json1], [incl
0d30: 75 64 65 20 6a 73 6f 6e 31 20 73 75 70 70 6f 72  ude json1 suppor
0d40: 74 20 5b 64 65 66 61 75 6c 74 3d 6e 6f 5d 5d 29  t [default=no]])
0d50: 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e 61 62 6c  ], .  [], [enabl
0d60: 65 5f 6a 73 6f 6e 31 3d 6e 6f 5d 29 0a 69 66 20  e_json1=no]).if 
0d70: 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f 6a  test x"$enable_j
0d80: 73 6f 6e 31 22 20 3d 3d 20 22 78 79 65 73 22 3b  son1" == "xyes";
0d90: 20 74 68 65 6e 0a 20 20 4a 53 4f 4e 31 5f 46 4c   then.  JSON1_FL
0da0: 41 47 53 3d 2d 44 53 51 4c 49 54 45 5f 45 4e 41  AGS=-DSQLITE_ENA
0db0: 42 4c 45 5f 4a 53 4f 4e 31 0a 66 69 0a 41 43 5f  BLE_JSON1.fi.AC_
0dc0: 53 55 42 53 54 28 4a 53 4f 4e 31 5f 46 4c 41 47  SUBST(JSON1_FLAG
0dd0: 53 29 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  S).#------------
0de0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0df0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f  -----------..AC_
0e20: 43 48 45 43 4b 5f 46 55 4e 43 53 28 70 6f 73 69  CHECK_FUNCS(posi
0e30: 78 5f 66 61 6c 6c 6f 63 61 74 65 29 0a 0a 23 2d  x_fallocate)..#-
0e40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e80: 2d 2d 2d 2d 2d 2d 0a 23 20 55 50 44 41 54 45 3a  ------.# UPDATE:
0e90: 20 4d 61 79 62 65 20 69 74 27 73 20 62 65 74 74   Maybe it's bett
0ea0: 65 72 20 69 66 20 75 73 65 72 73 20 6a 75 73 74  er if users just
0eb0: 20 73 65 74 20 43 46 4c 41 47 53 20 62 65 66 6f   set CFLAGS befo
0ec0: 72 65 20 69 6e 76 6f 6b 69 6e 67 0a 23 20 63 6f  re invoking.# co
0ed0: 6e 66 69 67 75 72 65 2e 20 54 68 69 73 20 6f 70  nfigure. This op
0ee0: 74 69 6f 6e 20 64 6f 65 73 6e 27 74 20 72 65 61  tion doesn't rea
0ef0: 6c 6c 79 20 61 64 64 20 6d 75 63 68 2e 2e 2e 0a  lly add much....
0f00: 23 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 74  #.#   --enable-t
0f10: 65 6d 70 73 74 6f 72 65 0a 23 0a 23 20 41 43 5f  empstore.#.# AC_
0f20: 41 52 47 5f 45 4e 41 42 4c 45 28 74 65 6d 70 73  ARG_ENABLE(temps
0f30: 74 6f 72 65 2c 20 5b 41 53 5f 48 45 4c 50 5f 53  tore, [AS_HELP_S
0f40: 54 52 49 4e 47 28 0a 23 20 20 20 5b 2d 2d 65 6e  TRING(.#   [--en
0f50: 61 62 6c 65 2d 74 65 6d 70 73 74 6f 72 65 5d 2c  able-tempstore],
0f60: 20 0a 23 20 20 20 5b 69 6e 2d 6d 65 6d 6f 72 79   .#   [in-memory
0f70: 20 74 65 6d 70 6f 72 61 72 79 20 74 61 62 6c 65   temporary table
0f80: 73 20 28 6e 65 76 65 72 2c 20 6e 6f 2c 20 79 65  s (never, no, ye
0f90: 73 2c 20 61 6c 77 61 79 73 29 20 5b 64 65 66 61  s, always) [defa
0fa0: 75 6c 74 3d 6e 6f 5d 5d 29 5d 2c 20 0a 23 20 20  ult=no]])], .#  
0fb0: 20 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 74 65 6d   [], [enable_tem
0fc0: 70 73 74 6f 72 65 3d 6e 6f 5d 29 0a 23 20 41 43  pstore=no]).# AC
0fd0: 5f 4d 53 47 5f 43 48 45 43 4b 49 4e 47 28 5b 66  _MSG_CHECKING([f
0fe0: 6f 72 20 77 68 65 74 68 65 72 20 6f 72 20 6e 6f  or whether or no
0ff0: 74 20 74 6f 20 73 74 6f 72 65 20 74 65 6d 70 20  t to store temp 
1000: 74 61 62 6c 65 73 20 69 6e 2d 6d 65 6d 6f 72 79  tables in-memory
1010: 5d 29 0a 23 20 63 61 73 65 20 22 24 65 6e 61 62  ]).# case "$enab
1020: 6c 65 5f 74 65 6d 70 73 74 6f 72 65 22 20 69 6e  le_tempstore" in
1030: 0a 23 20 20 20 6e 65 76 65 72 20 29 20 20 54 45  .#   never )  TE
1040: 4d 50 5f 53 54 4f 52 45 3d 30 20 3b 3b 0a 23 20  MP_STORE=0 ;;.# 
1050: 20 20 6e 6f 20 29 20 20 20 20 20 54 45 4d 50 5f    no )     TEMP_
1060: 53 54 4f 52 45 3d 31 20 3b 3b 0a 23 20 20 20 61  STORE=1 ;;.#   a
1070: 6c 77 61 79 73 20 29 20 54 45 4d 50 5f 53 54 4f  lways ) TEMP_STO
1080: 52 45 3d 33 20 3b 3b 0a 23 20 20 20 79 65 73 20  RE=3 ;;.#   yes 
1090: 29 20 20 20 20 54 45 4d 50 5f 53 54 4f 52 45 3d  )    TEMP_STORE=
10a0: 33 20 3b 3b 0a 23 20 20 20 2a 20 29 0a 23 20 20  3 ;;.#   * ).#  
10b0: 20 20 20 54 45 4d 50 5f 53 54 4f 52 45 3d 31 0a     TEMP_STORE=1.
10c0: 23 20 20 20 20 20 65 6e 61 62 6c 65 5f 74 65 6d  #     enable_tem
10d0: 70 73 74 6f 72 65 3d 79 65 73 0a 23 20 20 20 3b  pstore=yes.#   ;
10e0: 3b 0a 23 20 65 73 61 63 0a 23 20 41 43 5f 4d 53  ;.# esac.# AC_MS
10f0: 47 5f 52 45 53 55 4c 54 28 24 65 6e 61 62 6c 65  G_RESULT($enable
1100: 5f 74 65 6d 70 73 74 6f 72 65 29 0a 23 20 41 43  _tempstore).# AC
1110: 5f 53 55 42 53 54 28 54 45 4d 50 5f 53 54 4f 52  _SUBST(TEMP_STOR
1120: 45 29 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  E).#------------
1130: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1140: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1150: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1160: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 41 43 5f  -----------..AC_
1170: 4f 55 54 50 55 54 0a                             OUTPUT.