/ Hex Artifact Content
Login

Artifact 573b98629d6963e6d9bf2897c3f4708fb94ce49897822526ad268181875e1736:


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 65 64 69 74 6c 69 6e 65 0a  enable-editline.
00c0: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 73 74 61  #   --enable-sta
00d0: 74 69 63 2d 73 68 65 6c 6c 0a 23 20 20 20 2d 2d  tic-shell.#   --
00e0: 65 6e 61 62 6c 65 2d 64 79 6e 61 6d 69 63 2d 65  enable-dynamic-e
00f0: 78 74 65 6e 73 69 6f 6e 73 0a 23 0a 0a 41 43 5f  xtensions.#..AC_
0100: 50 52 45 52 45 51 28 32 2e 36 31 29 0a 41 43 5f  PREREQ(2.61).AC_
0110: 49 4e 49 54 28 73 71 6c 69 74 65 2c 20 2d 2d 53  INIT(sqlite, --S
0120: 51 4c 49 54 45 2d 56 45 52 53 49 4f 4e 2d 2d 2c  QLITE-VERSION--,
0130: 20 68 74 74 70 3a 2f 2f 77 77 77 2e 73 71 6c 69   http://www.sqli
0140: 74 65 2e 6f 72 67 29 0a 41 43 5f 43 4f 4e 46 49  te.org).AC_CONFI
0150: 47 5f 53 52 43 44 49 52 28 5b 73 71 6c 69 74 65  G_SRCDIR([sqlite
0160: 33 2e 63 5d 29 0a 41 43 5f 43 4f 4e 46 49 47 5f  3.c]).AC_CONFIG_
0170: 41 55 58 5f 44 49 52 28 5b 2e 5d 29 0a 0a 23 20  AUX_DIR([.])..# 
0180: 55 73 65 20 61 75 74 6f 6d 61 6b 65 2e 0a 41 4d  Use automake..AM
0190: 5f 49 4e 49 54 5f 41 55 54 4f 4d 41 4b 45 28 5b  _INIT_AUTOMAKE([
01a0: 66 6f 72 65 69 67 6e 5d 29 0a 0a 41 43 5f 53 59  foreign])..AC_SY
01b0: 53 5f 4c 41 52 47 45 46 49 4c 45 0a 0a 23 20 43  S_LARGEFILE..# C
01c0: 68 65 63 6b 20 66 6f 72 20 72 65 71 75 69 72 65  heck for require
01d0: 64 20 70 72 6f 67 72 61 6d 73 2e 0a 41 43 5f 50  d programs..AC_P
01e0: 52 4f 47 5f 43 43 0a 41 43 5f 50 52 4f 47 5f 4c  ROG_CC.AC_PROG_L
01f0: 49 42 54 4f 4f 4c 0a 41 43 5f 50 52 4f 47 5f 4d  IBTOOL.AC_PROG_M
0200: 4b 44 49 52 5f 50 0a 0a 23 20 43 68 65 63 6b 20  KDIR_P..# Check 
0210: 66 6f 72 20 6c 69 62 72 61 72 79 20 66 75 6e 63  for library func
0220: 74 69 6f 6e 73 20 74 68 61 74 20 53 51 4c 69 74  tions that SQLit
0230: 65 20 63 61 6e 20 6f 70 74 69 6f 6e 61 6c 6c 79  e can optionally
0240: 20 75 73 65 2e 0a 41 43 5f 43 48 45 43 4b 5f 46   use..AC_CHECK_F
0250: 55 4e 43 53 28 5b 66 64 61 74 61 73 79 6e 63 20  UNCS([fdatasync 
0260: 75 73 6c 65 65 70 20 66 75 6c 6c 66 73 79 6e 63  usleep fullfsync
0270: 20 6c 6f 63 61 6c 74 69 6d 65 5f 72 20 67 6d 74   localtime_r gmt
0280: 69 6d 65 5f 72 5d 29 0a 41 43 5f 46 55 4e 43 5f  ime_r]).AC_FUNC_
0290: 53 54 52 45 52 52 4f 52 5f 52 0a 0a 41 43 5f 43  STRERROR_R..AC_C
02a0: 4f 4e 46 49 47 5f 46 49 4c 45 53 28 5b 4d 61 6b  ONFIG_FILES([Mak
02b0: 65 66 69 6c 65 20 73 71 6c 69 74 65 33 2e 70 63  efile sqlite3.pc
02c0: 5d 29 0a 42 55 49 4c 44 5f 43 46 4c 41 47 53 3d  ]).BUILD_CFLAGS=
02d0: 0a 41 43 5f 53 55 42 53 54 28 42 55 49 4c 44 5f  .AC_SUBST(BUILD_
02e0: 43 46 4c 41 47 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d  CFLAGS)..#------
02f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0300: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0310: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0320: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0330: 2d 2d 2d 0a 23 20 54 77 6f 20 6f 70 74 69 6f 6e  ---.# Two option
0340: 73 20 74 6f 20 65 6e 61 62 6c 65 20 72 65 61 64  s to enable read
0350: 6c 69 6e 65 20 63 6f 6d 70 61 74 69 62 6c 65 20  line compatible 
0360: 6c 69 62 72 61 72 69 65 73 3a 20 0a 23 0a 23 20  libraries: .#.# 
0370: 20 20 2d 2d 65 6e 61 62 6c 65 2d 65 64 69 74 6c    --enable-editl
0380: 69 6e 65 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65  ine.#   --enable
0390: 2d 72 65 61 64 6c 69 6e 65 0a 23 0a 23 20 42 6f  -readline.#.# Bo
03a0: 74 68 20 61 72 65 20 65 6e 61 62 6c 65 64 20 62  th are enabled b
03b0: 79 20 64 65 66 61 75 6c 74 2e 20 49 66 2c 20 61  y default. If, a
03c0: 66 74 65 72 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e  fter command lin
03d0: 65 20 70 72 6f 63 65 73 73 69 6e 67 20 62 6f 74  e processing bot
03e0: 68 20 61 72 65 0a 23 20 73 74 69 6c 6c 20 65 6e  h are.# still en
03f0: 61 62 6c 65 64 2c 20 74 68 65 20 73 63 72 69 70  abled, the scrip
0400: 74 20 73 65 61 72 63 68 65 73 20 66 6f 72 20 65  t searches for e
0410: 64 69 74 6c 69 6e 65 20 66 69 72 73 74 20 61 6e  ditline first an
0420: 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 0a  d automatically.
0430: 23 20 64 69 73 61 62 6c 65 73 20 72 65 61 64 6c  # disables readl
0440: 69 6e 65 20 69 66 20 69 74 20 69 73 20 66 6f 75  ine if it is fou
0450: 6e 64 2e 20 53 6f 2c 20 74 6f 20 75 73 65 20 72  nd. So, to use r
0460: 65 61 64 6c 69 6e 65 20 65 78 70 6c 69 63 69 74  eadline explicit
0470: 6c 79 2c 20 74 68 65 0a 23 20 75 73 65 72 20 6d  ly, the.# user m
0480: 75 73 74 20 70 61 73 73 20 22 2d 2d 64 69 73 61  ust pass "--disa
0490: 62 6c 65 2d 65 64 69 74 6c 69 6e 65 22 2e 20 54  ble-editline". T
04a0: 6f 20 64 69 73 61 62 6c 65 20 63 6f 6d 6d 61 6e  o disable comman
04b0: 64 20 6c 69 6e 65 20 65 64 69 74 69 6e 67 0a 23  d line editing.#
04c0: 20 73 75 70 70 6f 72 74 20 61 6c 74 6f 67 65 74   support altoget
04d0: 68 65 72 2c 20 22 2d 2d 64 69 73 61 62 6c 65 2d  her, "--disable-
04e0: 65 64 69 74 6c 69 6e 65 20 2d 2d 64 69 73 61 62  editline --disab
04f0: 6c 65 2d 72 65 61 64 6c 69 6e 65 22 2e 0a 23 0a  le-readline"..#.
0500: 23 20 57 68 65 6e 20 73 65 61 72 63 68 69 6e 67  # When searching
0510: 20 66 6f 72 20 65 69 74 68 65 72 20 6c 69 62 72   for either libr
0520: 61 72 79 2c 20 63 68 65 63 6b 20 66 6f 72 20 68  ary, check for h
0530: 65 61 64 65 72 73 20 62 65 66 6f 72 65 20 6c 69  eaders before li
0540: 62 72 61 72 69 65 73 20 0a 23 20 61 73 20 73 6f  braries .# as so
0550: 6d 65 20 64 69 73 74 72 6f 73 20 73 75 70 70 6c  me distros suppl
0560: 79 20 70 61 63 6b 61 67 65 73 20 74 68 61 74 20  y packages that 
0570: 63 6f 6e 74 61 69 6e 20 6c 69 62 72 61 72 69 65  contain librarie
0580: 73 20 62 75 74 20 6e 6f 74 20 68 65 61 64 65 72  s but not header
0590: 0a 23 20 66 69 6c 65 73 2c 20 77 68 69 63 68 20  .# files, which 
05a0: 63 6f 6d 65 20 61 73 20 61 20 73 65 70 61 72 61  come as a separa
05b0: 74 65 20 64 65 76 65 6c 6f 70 6d 65 6e 74 20 70  te development p
05c0: 61 63 6b 61 67 65 2e 0a 23 0a 41 43 5f 41 52 47  ackage..#.AC_ARG
05d0: 5f 45 4e 41 42 4c 45 28 65 64 69 74 6c 69 6e 65  _ENABLE(editline
05e0: 2c 20 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e  , [AS_HELP_STRIN
05f0: 47 28 5b 2d 2d 65 6e 61 62 6c 65 2d 65 64 69 74  G([--enable-edit
0600: 6c 69 6e 65 5d 2c 5b 75 73 65 20 42 53 44 20 6c  line],[use BSD l
0610: 69 62 65 64 69 74 5d 29 5d 29 0a 41 43 5f 41 52  ibedit])]).AC_AR
0620: 47 5f 45 4e 41 42 4c 45 28 72 65 61 64 6c 69 6e  G_ENABLE(readlin
0630: 65 2c 20 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49  e, [AS_HELP_STRI
0640: 4e 47 28 5b 2d 2d 65 6e 61 62 6c 65 2d 72 65 61  NG([--enable-rea
0650: 64 6c 69 6e 65 5d 2c 5b 75 73 65 20 72 65 61 64  dline],[use read
0660: 6c 69 6e 65 5d 29 5d 29 0a 0a 41 53 5f 49 46 28  line])])..AS_IF(
0670: 5b 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65  [ test x"$enable
0680: 5f 65 64 69 74 6c 69 6e 65 22 20 21 3d 20 78 6e  _editline" != xn
0690: 6f 20 5d 2c 5b 0a 20 20 41 43 5f 43 48 45 43 4b  o ],[.  AC_CHECK
06a0: 5f 48 45 41 44 45 52 53 28 5b 65 64 69 74 6c 69  _HEADERS([editli
06b0: 6e 65 2f 72 65 61 64 6c 69 6e 65 2e 68 5d 2c 5b  ne/readline.h],[
06c0: 0a 20 20 20 20 73 4c 49 42 53 3d 24 4c 49 42 53  .    sLIBS=$LIBS
06d0: 0a 20 20 20 20 4c 49 42 53 3d 22 22 0a 20 20 20  .    LIBS="".   
06e0: 20 41 43 5f 53 45 41 52 43 48 5f 4c 49 42 53 28   AC_SEARCH_LIBS(
06f0: 5b 72 65 61 64 6c 69 6e 65 5d 2c 5b 65 64 69 74  [readline],[edit
0700: 5d 2c 5b 0a 20 20 20 20 20 20 41 43 5f 44 45 46  ],[.      AC_DEF
0710: 49 4e 45 28 5b 48 41 56 45 5f 45 44 49 54 4c 49  INE([HAVE_EDITLI
0720: 4e 45 5d 2c 31 2c 44 65 66 69 6e 65 20 74 6f 20  NE],1,Define to 
0730: 75 73 65 20 42 53 44 20 65 64 69 74 6c 69 6e 65  use BSD editline
0740: 29 0a 20 20 20 20 20 20 52 45 41 44 4c 49 4e 45  ).      READLINE
0750: 5f 4c 49 42 53 3d 22 24 4c 49 42 53 20 2d 6c 74  _LIBS="$LIBS -lt
0760: 69 6e 66 6f 22 0a 20 20 20 20 20 20 65 6e 61 62  info".      enab
0770: 6c 65 5f 72 65 61 64 6c 69 6e 65 3d 6e 6f 0a 20  le_readline=no. 
0780: 20 20 20 5d 2c 5b 5d 2c 5b 2d 6c 74 69 6e 66 6f     ],[],[-ltinfo
0790: 5d 29 0a 20 20 20 20 41 53 5f 55 4e 53 45 54 28  ]).    AS_UNSET(
07a0: 61 63 5f 63 76 5f 73 65 61 72 63 68 5f 72 65 61  ac_cv_search_rea
07b0: 64 6c 69 6e 65 29 0a 20 20 20 20 4c 49 42 53 3d  dline).    LIBS=
07c0: 24 73 4c 49 42 53 0a 20 20 5d 29 0a 5d 29 0a 0a  $sLIBS.  ]).])..
07d0: 41 53 5f 49 46 28 5b 20 74 65 73 74 20 78 22 24  AS_IF([ test x"$
07e0: 65 6e 61 62 6c 65 5f 72 65 61 64 6c 69 6e 65 22  enable_readline"
07f0: 20 21 3d 20 78 6e 6f 20 5d 2c 5b 0a 20 20 41 43   != xno ],[.  AC
0800: 5f 43 48 45 43 4b 5f 48 45 41 44 45 52 53 28 5b  _CHECK_HEADERS([
0810: 72 65 61 64 6c 69 6e 65 2f 72 65 61 64 6c 69 6e  readline/readlin
0820: 65 2e 68 5d 2c 5b 0a 20 20 20 20 73 4c 49 42 53  e.h],[.    sLIBS
0830: 3d 24 4c 49 42 53 0a 20 20 20 20 4c 49 42 53 3d  =$LIBS.    LIBS=
0840: 22 22 0a 20 20 20 20 41 43 5f 53 45 41 52 43 48  "".    AC_SEARCH
0850: 5f 4c 49 42 53 28 74 67 65 74 65 6e 74 2c 20 74  _LIBS(tgetent, t
0860: 65 72 6d 63 61 70 20 63 75 72 73 65 73 20 6e 63  ermcap curses nc
0870: 75 72 73 65 73 20 6e 63 75 72 73 65 73 77 2c 20  urses ncursesw, 
0880: 5b 5d 2c 20 5b 5d 29 0a 20 20 20 20 41 43 5f 53  [], []).    AC_S
0890: 45 41 52 43 48 5f 4c 49 42 53 28 72 65 61 64 6c  EARCH_LIBS(readl
08a0: 69 6e 65 2c 5b 72 65 61 64 6c 69 6e 65 20 65 64  ine,[readline ed
08b0: 69 74 5d 2c 20 5b 0a 20 20 20 20 20 20 41 43 5f  it], [.      AC_
08c0: 44 45 46 49 4e 45 28 5b 48 41 56 45 5f 52 45 41  DEFINE([HAVE_REA
08d0: 44 4c 49 4e 45 5d 2c 31 2c 44 65 66 69 6e 65 20  DLINE],1,Define 
08e0: 74 6f 20 75 73 65 20 72 65 61 64 6c 69 6e 65 20  to use readline 
08f0: 6f 72 20 77 72 61 70 70 65 72 29 0a 20 20 20 20  or wrapper).    
0900: 20 20 52 45 41 44 4c 49 4e 45 5f 4c 49 42 53 3d    READLINE_LIBS=
0910: 24 4c 49 42 53 0a 20 20 20 20 5d 29 0a 20 20 20  $LIBS.    ]).   
0920: 20 4c 49 42 53 3d 24 73 4c 49 42 53 0a 20 20 5d   LIBS=$sLIBS.  ]
0930: 29 0a 5d 29 0a 0a 41 43 5f 53 55 42 53 54 28 52  ).])..AC_SUBST(R
0940: 45 41 44 4c 49 4e 45 5f 4c 49 42 53 29 0a 23 2d  EADLINE_LIBS).#-
0950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0960: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0970: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0980: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0990: 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  ------..#-------
09a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
09e0: 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 74 68  .#   --enable-th
09f0: 72 65 61 64 73 61 66 65 0a 23 0a 41 43 5f 41 52  readsafe.#.AC_AR
0a00: 47 5f 45 4e 41 42 4c 45 28 74 68 72 65 61 64 73  G_ENABLE(threads
0a10: 61 66 65 2c 20 5b 41 53 5f 48 45 4c 50 5f 53 54  afe, [AS_HELP_ST
0a20: 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61 62 6c  RING(.  [--enabl
0a30: 65 2d 74 68 72 65 61 64 73 61 66 65 5d 2c 20 5b  e-threadsafe], [
0a40: 62 75 69 6c 64 20 61 20 74 68 72 65 61 64 2d 73  build a thread-s
0a50: 61 66 65 20 6c 69 62 72 61 72 79 20 5b 64 65 66  afe library [def
0a60: 61 75 6c 74 3d 79 65 73 5d 5d 29 5d 2c 20 0a 20  ault=yes]])], . 
0a70: 20 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 74 68 72   [], [enable_thr
0a80: 65 61 64 73 61 66 65 3d 79 65 73 5d 29 0a 69 66  eadsafe=yes]).if
0a90: 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f   test x"$enable_
0aa0: 74 68 72 65 61 64 73 61 66 65 22 20 21 3d 20 22  threadsafe" != "
0ab0: 78 6e 6f 22 3b 20 74 68 65 6e 0a 20 20 42 55 49  xno"; then.  BUI
0ac0: 4c 44 5f 43 46 4c 41 47 53 3d 22 24 42 55 49 4c  LD_CFLAGS="$BUIL
0ad0: 44 5f 43 46 4c 41 47 53 20 2d 44 5f 52 45 45 4e  D_CFLAGS -D_REEN
0ae0: 54 52 41 4e 54 3d 31 20 2d 44 53 51 4c 49 54 45  TRANT=1 -DSQLITE
0af0: 5f 54 48 52 45 41 44 53 41 46 45 3d 31 22 0a 20  _THREADSAFE=1". 
0b00: 20 41 43 5f 53 45 41 52 43 48 5f 4c 49 42 53 28   AC_SEARCH_LIBS(
0b10: 70 74 68 72 65 61 64 5f 63 72 65 61 74 65 2c 20  pthread_create, 
0b20: 70 74 68 72 65 61 64 29 0a 20 20 41 43 5f 53 45  pthread).  AC_SE
0b30: 41 52 43 48 5f 4c 49 42 53 28 70 74 68 72 65 61  ARCH_LIBS(pthrea
0b40: 64 5f 6d 75 74 65 78 61 74 74 72 5f 69 6e 69 74  d_mutexattr_init
0b50: 2c 20 70 74 68 72 65 61 64 29 0a 66 69 0a 23 2d  , pthread).fi.#-
0b60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b80: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0b90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0ba0: 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  ------..#-------
0bb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0be0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0bf0: 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 64 79  .#   --enable-dy
0c00: 6e 61 6d 69 63 2d 65 78 74 65 6e 73 69 6f 6e 73  namic-extensions
0c10: 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c 45  .#.AC_ARG_ENABLE
0c20: 28 64 79 6e 61 6d 69 63 2d 65 78 74 65 6e 73 69  (dynamic-extensi
0c30: 6f 6e 73 2c 20 5b 41 53 5f 48 45 4c 50 5f 53 54  ons, [AS_HELP_ST
0c40: 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61 62 6c  RING(.  [--enabl
0c50: 65 2d 64 79 6e 61 6d 69 63 2d 65 78 74 65 6e 73  e-dynamic-extens
0c60: 69 6f 6e 73 5d 2c 20 5b 73 75 70 70 6f 72 74 20  ions], [support 
0c70: 6c 6f 61 64 61 62 6c 65 20 65 78 74 65 6e 73 69  loadable extensi
0c80: 6f 6e 73 20 5b 64 65 66 61 75 6c 74 3d 79 65 73  ons [default=yes
0c90: 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e  ]])], .  [], [en
0ca0: 61 62 6c 65 5f 64 79 6e 61 6d 69 63 5f 65 78 74  able_dynamic_ext
0cb0: 65 6e 73 69 6f 6e 73 3d 79 65 73 5d 29 0a 69 66  ensions=yes]).if
0cc0: 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f   test x"$enable_
0cd0: 64 79 6e 61 6d 69 63 5f 65 78 74 65 6e 73 69 6f  dynamic_extensio
0ce0: 6e 73 22 20 21 3d 20 22 78 6e 6f 22 3b 20 74 68  ns" != "xno"; th
0cf0: 65 6e 0a 20 20 41 43 5f 53 45 41 52 43 48 5f 4c  en.  AC_SEARCH_L
0d00: 49 42 53 28 64 6c 6f 70 65 6e 2c 20 64 6c 29 0a  IBS(dlopen, dl).
0d10: 65 6c 73 65 0a 20 20 42 55 49 4c 44 5f 43 46 4c  else.  BUILD_CFL
0d20: 41 47 53 3d 22 24 42 55 49 4c 44 5f 43 46 4c 41  AGS="$BUILD_CFLA
0d30: 47 53 20 2d 44 53 51 4c 49 54 45 5f 4f 4d 49 54  GS -DSQLITE_OMIT
0d40: 5f 4c 4f 41 44 5f 45 58 54 45 4e 53 49 4f 4e 3d  _LOAD_EXTENSION=
0d50: 31 22 0a 66 69 0a 41 43 5f 4d 53 47 5f 43 48 45  1".fi.AC_MSG_CHE
0d60: 43 4b 49 4e 47 28 5b 66 6f 72 20 77 68 65 74 68  CKING([for wheth
0d70: 65 72 20 74 6f 20 73 75 70 70 6f 72 74 20 64 79  er to support dy
0d80: 6e 61 6d 69 63 20 65 78 74 65 6e 73 69 6f 6e 73  namic extensions
0d90: 5d 29 0a 41 43 5f 4d 53 47 5f 52 45 53 55 4c 54  ]).AC_MSG_RESULT
0da0: 28 24 65 6e 61 62 6c 65 5f 64 79 6e 61 6d 69 63  ($enable_dynamic
0db0: 5f 65 78 74 65 6e 73 69 6f 6e 73 29 0a 23 2d 2d  _extensions).#--
0dc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0dd0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  -----..#--------
0e10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0e40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
0e50: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 66 74 73  #   --enable-fts
0e60: 34 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c  4.#.AC_ARG_ENABL
0e70: 45 28 66 74 73 34 2c 20 5b 41 53 5f 48 45 4c 50  E(fts4, [AS_HELP
0e80: 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e  _STRING(.  [--en
0e90: 61 62 6c 65 2d 66 74 73 34 5d 2c 20 5b 69 6e 63  able-fts4], [inc
0ea0: 6c 75 64 65 20 66 74 73 34 20 73 75 70 70 6f 72  lude fts4 suppor
0eb0: 74 20 5b 64 65 66 61 75 6c 74 3d 79 65 73 5d 5d  t [default=yes]]
0ec0: 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 65 6e 61 62  )], .  [], [enab
0ed0: 6c 65 5f 66 74 73 34 3d 79 65 73 5d 29 0a 69 66  le_fts4=yes]).if
0ee0: 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f   test x"$enable_
0ef0: 66 74 73 34 22 20 3d 20 22 78 79 65 73 22 3b 20  fts4" = "xyes"; 
0f00: 74 68 65 6e 0a 20 20 42 55 49 4c 44 5f 43 46 4c  then.  BUILD_CFL
0f10: 41 47 53 3d 22 24 42 55 49 4c 44 5f 43 46 4c 41  AGS="$BUILD_CFLA
0f20: 47 53 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42  GS -DSQLITE_ENAB
0f30: 4c 45 5f 46 54 53 34 22 0a 66 69 0a 23 2d 2d 2d  LE_FTS4".fi.#---
0f40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f60: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f70: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0f80: 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----..#---------
0f90: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fa0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fb0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0fc0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23  --------------.#
0fd0: 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 66 74 73 33     --enable-fts3
0fe0: 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c 45  .#.AC_ARG_ENABLE
0ff0: 28 66 74 73 33 2c 20 5b 41 53 5f 48 45 4c 50 5f  (fts3, [AS_HELP_
1000: 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d 65 6e 61  STRING(.  [--ena
1010: 62 6c 65 2d 66 74 73 33 5d 2c 20 5b 69 6e 63 6c  ble-fts3], [incl
1020: 75 64 65 20 66 74 73 33 20 73 75 70 70 6f 72 74  ude fts3 support
1030: 20 5b 64 65 66 61 75 6c 74 3d 6e 6f 5d 5d 29 5d   [default=no]])]
1040: 2c 20 0a 20 20 5b 5d 2c 20 5b 5d 29 0a 69 66 20  , .  [], []).if 
1050: 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f 66  test x"$enable_f
1060: 74 73 33 22 20 3d 20 22 78 79 65 73 22 20 2d 61  ts3" = "xyes" -a
1070: 20 78 22 24 65 6e 61 62 6c 65 5f 66 74 73 34 22   x"$enable_fts4"
1080: 20 3d 20 22 78 6e 6f 22 3b 20 74 68 65 6e 0a 20   = "xno"; then. 
1090: 20 42 55 49 4c 44 5f 43 46 4c 41 47 53 3d 22 24   BUILD_CFLAGS="$
10a0: 42 55 49 4c 44 5f 43 46 4c 41 47 53 20 2d 44 53  BUILD_CFLAGS -DS
10b0: 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 46 54 53  QLITE_ENABLE_FTS
10c0: 33 22 0a 66 69 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d  3".fi.#---------
10d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
10f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1100: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a  --------------..
1110: 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  #---------------
1120: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
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 0a 23 20 20 20 2d 2d 65  --------.#   --e
1160: 6e 61 62 6c 65 2d 66 74 73 35 0a 23 0a 41 43 5f  nable-fts5.#.AC_
1170: 41 52 47 5f 45 4e 41 42 4c 45 28 66 74 73 35 2c  ARG_ENABLE(fts5,
1180: 20 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47   [AS_HELP_STRING
1190: 28 0a 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d 66 74  (.  [--enable-ft
11a0: 73 35 5d 2c 20 5b 69 6e 63 6c 75 64 65 20 66 74  s5], [include ft
11b0: 73 35 20 73 75 70 70 6f 72 74 20 5b 64 65 66 61  s5 support [defa
11c0: 75 6c 74 3d 79 65 73 5d 5d 29 5d 2c 20 0a 20 20  ult=yes]])], .  
11d0: 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 66 74 73 35  [], [enable_fts5
11e0: 3d 79 65 73 5d 29 0a 69 66 20 74 65 73 74 20 78  =yes]).if test x
11f0: 22 24 65 6e 61 62 6c 65 5f 66 74 73 35 22 20 3d  "$enable_fts5" =
1200: 20 22 78 79 65 73 22 3b 20 74 68 65 6e 0a 20 20   "xyes"; then.  
1210: 41 43 5f 53 45 41 52 43 48 5f 4c 49 42 53 28 6c  AC_SEARCH_LIBS(l
1220: 6f 67 2c 20 6d 29 0a 20 20 42 55 49 4c 44 5f 43  og, m).  BUILD_C
1230: 46 4c 41 47 53 3d 22 24 42 55 49 4c 44 5f 43 46  FLAGS="$BUILD_CF
1240: 4c 41 47 53 20 2d 44 53 51 4c 49 54 45 5f 45 4e  LAGS -DSQLITE_EN
1250: 41 42 4c 45 5f 46 54 53 35 22 0a 66 69 0a 23 2d  ABLE_FTS5".fi.#-
1260: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1270: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1280: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1290: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12a0: 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  ------..#-------
12b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
12f0: 0a 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 6a 73  .#   --enable-js
1300: 6f 6e 31 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41  on1.#.AC_ARG_ENA
1310: 42 4c 45 28 6a 73 6f 6e 31 2c 20 5b 41 53 5f 48  BLE(json1, [AS_H
1320: 45 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d  ELP_STRING(.  [-
1330: 2d 65 6e 61 62 6c 65 2d 6a 73 6f 6e 31 5d 2c 20  -enable-json1], 
1340: 5b 69 6e 63 6c 75 64 65 20 6a 73 6f 6e 31 20 73  [include json1 s
1350: 75 70 70 6f 72 74 20 5b 64 65 66 61 75 6c 74 3d  upport [default=
1360: 79 65 73 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 5b  yes]])], .  [],[
1370: 65 6e 61 62 6c 65 5f 6a 73 6f 6e 31 3d 79 65 73  enable_json1=yes
1380: 5d 29 0a 69 66 20 74 65 73 74 20 78 22 24 65 6e  ]).if test x"$en
1390: 61 62 6c 65 5f 6a 73 6f 6e 31 22 20 3d 20 22 78  able_json1" = "x
13a0: 79 65 73 22 3b 20 74 68 65 6e 0a 20 20 42 55 49  yes"; then.  BUI
13b0: 4c 44 5f 43 46 4c 41 47 53 3d 22 24 42 55 49 4c  LD_CFLAGS="$BUIL
13c0: 44 5f 43 46 4c 41 47 53 20 2d 44 53 51 4c 49 54  D_CFLAGS -DSQLIT
13d0: 45 5f 45 4e 41 42 4c 45 5f 4a 53 4f 4e 31 22 0a  E_ENABLE_JSON1".
13e0: 66 69 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  fi.#------------
13f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1400: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1410: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1420: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d 2d  -----------..#--
1430: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1440: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1450: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1460: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1470: 2d 2d 2d 2d 2d 0a 23 20 20 20 2d 2d 65 6e 61 62  -----.#   --enab
1480: 6c 65 2d 72 74 72 65 65 0a 23 0a 41 43 5f 41 52  le-rtree.#.AC_AR
1490: 47 5f 45 4e 41 42 4c 45 28 72 74 72 65 65 2c 20  G_ENABLE(rtree, 
14a0: 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28  [AS_HELP_STRING(
14b0: 0a 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d 72 74 72  .  [--enable-rtr
14c0: 65 65 5d 2c 20 5b 69 6e 63 6c 75 64 65 20 72 74  ee], [include rt
14d0: 72 65 65 20 73 75 70 70 6f 72 74 20 5b 64 65 66  ree support [def
14e0: 61 75 6c 74 3d 79 65 73 5d 5d 29 5d 2c 20 0a 20  ault=yes]])], . 
14f0: 20 5b 5d 2c 20 5b 65 6e 61 62 6c 65 5f 72 74 72   [], [enable_rtr
1500: 65 65 3d 79 65 73 5d 29 0a 69 66 20 74 65 73 74  ee=yes]).if test
1510: 20 78 22 24 65 6e 61 62 6c 65 5f 72 74 72 65 65   x"$enable_rtree
1520: 22 20 3d 20 22 78 79 65 73 22 3b 20 74 68 65 6e  " = "xyes"; then
1530: 0a 20 20 42 55 49 4c 44 5f 43 46 4c 41 47 53 3d  .  BUILD_CFLAGS=
1540: 22 24 42 55 49 4c 44 5f 43 46 4c 41 47 53 20 2d  "$BUILD_CFLAGS -
1550: 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 52  DSQLITE_ENABLE_R
1560: 54 52 45 45 22 0a 66 69 0a 23 2d 2d 2d 2d 2d 2d  TREE".fi.#------
1570: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1580: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1590: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15b0: 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  -..#------------
15c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
15f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 20 20  -----------.#   
1600: 2d 2d 65 6e 61 62 6c 65 2d 73 65 73 73 69 6f 6e  --enable-session
1610: 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c 45  .#.AC_ARG_ENABLE
1620: 28 73 65 73 73 69 6f 6e 2c 20 5b 41 53 5f 48 45  (session, [AS_HE
1630: 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d  LP_STRING(.  [--
1640: 65 6e 61 62 6c 65 2d 73 65 73 73 69 6f 6e 5d 2c  enable-session],
1650: 20 5b 65 6e 61 62 6c 65 20 74 68 65 20 73 65 73   [enable the ses
1660: 73 69 6f 6e 20 65 78 74 65 6e 73 69 6f 6e 20 5b  sion extension [
1670: 64 65 66 61 75 6c 74 3d 6e 6f 5d 5d 29 5d 2c 20  default=no]])], 
1680: 0a 20 20 5b 5d 2c 20 5b 5d 29 0a 69 66 20 74 65  .  [], []).if te
1690: 73 74 20 78 22 24 65 6e 61 62 6c 65 5f 73 65 73  st x"$enable_ses
16a0: 73 69 6f 6e 22 20 3d 20 22 78 79 65 73 22 3b 20  sion" = "xyes"; 
16b0: 74 68 65 6e 0a 20 20 42 55 49 4c 44 5f 43 46 4c  then.  BUILD_CFL
16c0: 41 47 53 3d 22 24 42 55 49 4c 44 5f 43 46 4c 41  AGS="$BUILD_CFLA
16d0: 47 53 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c  GS-DSQLITE_ENABL
16e0: 45 5f 53 45 53 53 49 4f 4e 20 2d 44 53 51 4c 49  E_SESSION -DSQLI
16f0: 54 45 5f 45 4e 41 42 4c 45 5f 50 52 45 55 50 44  TE_ENABLE_PREUPD
1700: 41 54 45 5f 48 4f 4f 4b 22 0a 66 69 0a 23 2d 2d  ATE_HOOK".fi.#--
1710: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1720: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1730: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1740: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1750: 2d 2d 2d 2d 2d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d 2d  -----..#--------
1760: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1770: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1780: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1790: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a  ---------------.
17a0: 23 20 20 20 2d 2d 65 6e 61 62 6c 65 2d 64 65 62  #   --enable-deb
17b0: 75 67 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42  ug.#.AC_ARG_ENAB
17c0: 4c 45 28 64 65 62 75 67 2c 20 5b 41 53 5f 48 45  LE(debug, [AS_HE
17d0: 4c 50 5f 53 54 52 49 4e 47 28 0a 20 20 5b 2d 2d  LP_STRING(.  [--
17e0: 65 6e 61 62 6c 65 2d 64 65 62 75 67 5d 2c 20 5b  enable-debug], [
17f0: 62 75 69 6c 64 20 77 69 74 68 20 64 65 62 75 67  build with debug
1800: 67 69 6e 67 20 66 65 61 74 75 72 65 73 20 65 6e  ging features en
1810: 61 62 6c 65 64 20 5b 64 65 66 61 75 6c 74 3d 6e  abled [default=n
1820: 6f 5d 5d 29 5d 2c 20 0a 20 20 5b 5d 2c 20 5b 5d  o]])], .  [], []
1830: 29 0a 69 66 20 74 65 73 74 20 78 22 24 65 6e 61  ).if test x"$ena
1840: 62 6c 65 5f 64 65 62 75 67 22 20 3d 20 22 78 79  ble_debug" = "xy
1850: 65 73 22 3b 20 74 68 65 6e 0a 20 20 42 55 49 4c  es"; then.  BUIL
1860: 44 5f 43 46 4c 41 47 53 3d 22 24 42 55 49 4c 44  D_CFLAGS="$BUILD
1870: 5f 43 46 4c 41 47 53 20 2d 44 53 51 4c 49 54 45  _CFLAGS -DSQLITE
1880: 5f 44 45 42 55 47 20 2d 44 53 51 4c 49 54 45 5f  _DEBUG -DSQLITE_
1890: 45 4e 41 42 4c 45 5f 53 45 4c 45 43 54 54 52 41  ENABLE_SELECTTRA
18a0: 43 45 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42  CE -DSQLITE_ENAB
18b0: 4c 45 5f 57 48 45 52 45 54 52 41 43 45 22 0a 20  LE_WHERETRACE". 
18c0: 20 43 46 4c 41 47 53 3d 22 2d 67 20 2d 4f 30 22   CFLAGS="-g -O0"
18d0: 0a 66 69 0a 23 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  .fi.#-----------
18e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
18f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1900: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1910: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 23 2d  ------------..#-
1920: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1930: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1940: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1950: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1960: 2d 2d 2d 2d 2d 2d 0a 23 20 20 20 2d 2d 65 6e 61  ------.#   --ena
1970: 62 6c 65 2d 73 74 61 74 69 63 2d 73 68 65 6c 6c  ble-static-shell
1980: 0a 23 0a 41 43 5f 41 52 47 5f 45 4e 41 42 4c 45  .#.AC_ARG_ENABLE
1990: 28 73 74 61 74 69 63 2d 73 68 65 6c 6c 2c 20 5b  (static-shell, [
19a0: 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28 0a  AS_HELP_STRING(.
19b0: 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d 73 74 61 74    [--enable-stat
19c0: 69 63 2d 73 68 65 6c 6c 5d 2c 20 0a 20 20 5b 73  ic-shell], .  [s
19d0: 74 61 74 69 63 61 6c 6c 79 20 6c 69 6e 6b 20 6c  tatically link l
19e0: 69 62 73 71 6c 69 74 65 33 20 69 6e 74 6f 20 73  ibsqlite3 into s
19f0: 68 65 6c 6c 20 74 6f 6f 6c 20 5b 64 65 66 61 75  hell tool [defau
1a00: 6c 74 3d 79 65 73 5d 5d 29 5d 2c 20 0a 20 20 5b  lt=yes]])], .  [
1a10: 5d 2c 20 5b 65 6e 61 62 6c 65 5f 73 74 61 74 69  ], [enable_stati
1a20: 63 5f 73 68 65 6c 6c 3d 79 65 73 5d 29 0a 69 66  c_shell=yes]).if
1a30: 20 74 65 73 74 20 78 22 24 65 6e 61 62 6c 65 5f   test x"$enable_
1a40: 73 74 61 74 69 63 5f 73 68 65 6c 6c 22 20 3d 20  static_shell" = 
1a50: 22 78 79 65 73 22 3b 20 74 68 65 6e 0a 20 20 45  "xyes"; then.  E
1a60: 58 54 52 41 5f 53 48 45 4c 4c 5f 4f 42 4a 3d 73  XTRA_SHELL_OBJ=s
1a70: 71 6c 69 74 65 33 2d 73 71 6c 69 74 65 33 2e 24  qlite3-sqlite3.$
1a80: 4f 42 4a 45 58 54 0a 65 6c 73 65 0a 20 20 45 58  OBJEXT.else.  EX
1a90: 54 52 41 5f 53 48 45 4c 4c 5f 4f 42 4a 3d 6c 69  TRA_SHELL_OBJ=li
1aa0: 62 73 71 6c 69 74 65 33 2e 6c 61 0a 66 69 0a 41  bsqlite3.la.fi.A
1ab0: 43 5f 53 55 42 53 54 28 45 58 54 52 41 5f 53 48  C_SUBST(EXTRA_SH
1ac0: 45 4c 4c 5f 4f 42 4a 29 0a 23 2d 2d 2d 2d 2d 2d  ELL_OBJ).#------
1ad0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ae0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1af0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1b10: 2d 0a 0a 41 43 5f 43 48 45 43 4b 5f 46 55 4e 43  -..AC_CHECK_FUNC
1b20: 53 28 70 6f 73 69 78 5f 66 61 6c 6c 6f 63 61 74  S(posix_fallocat
1b30: 65 29 0a 41 43 5f 43 48 45 43 4b 5f 48 45 41 44  e).AC_CHECK_HEAD
1b40: 45 52 53 28 7a 6c 69 62 2e 68 2c 5b 0a 20 20 41  ERS(zlib.h,[.  A
1b50: 43 5f 53 45 41 52 43 48 5f 4c 49 42 53 28 64 65  C_SEARCH_LIBS(de
1b60: 66 6c 61 74 65 2c 7a 2c 5b 42 55 49 4c 44 5f 43  flate,z,[BUILD_C
1b70: 46 4c 41 47 53 3d 22 24 42 55 49 4c 44 5f 43 46  FLAGS="$BUILD_CF
1b80: 4c 41 47 53 20 2d 44 53 51 4c 49 54 45 5f 48 41  LAGS -DSQLITE_HA
1b90: 56 45 5f 5a 4c 49 42 22 5d 29 0a 5d 29 0a 0a 41  VE_ZLIB"]).])..A
1ba0: 43 5f 53 45 41 52 43 48 5f 4c 49 42 53 28 73 79  C_SEARCH_LIBS(sy
1bb0: 73 74 65 6d 2c 2c 2c 5b 53 48 45 4c 4c 5f 43 46  stem,,,[SHELL_CF
1bc0: 4c 41 47 53 3d 22 2d 44 53 51 4c 49 54 45 5f 4e  LAGS="-DSQLITE_N
1bd0: 4f 48 41 56 45 5f 53 59 53 54 45 4d 22 5d 29 0a  OHAVE_SYSTEM"]).
1be0: 41 43 5f 53 55 42 53 54 28 53 48 45 4c 4c 5f 43  AC_SUBST(SHELL_C
1bf0: 46 4c 41 47 53 29 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  FLAGS)..#-------
1c00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1c40: 0a 23 20 55 50 44 41 54 45 3a 20 4d 61 79 62 65  .# UPDATE: Maybe
1c50: 20 69 74 27 73 20 62 65 74 74 65 72 20 69 66 20   it's better if 
1c60: 75 73 65 72 73 20 6a 75 73 74 20 73 65 74 20 43  users just set C
1c70: 46 4c 41 47 53 20 62 65 66 6f 72 65 20 69 6e 76  FLAGS before inv
1c80: 6f 6b 69 6e 67 0a 23 20 63 6f 6e 66 69 67 75 72  oking.# configur
1c90: 65 2e 20 54 68 69 73 20 6f 70 74 69 6f 6e 20 64  e. This option d
1ca0: 6f 65 73 6e 27 74 20 72 65 61 6c 6c 79 20 61 64  oesn't really ad
1cb0: 64 20 6d 75 63 68 2e 2e 2e 0a 23 0a 23 20 20 20  d much....#.#   
1cc0: 2d 2d 65 6e 61 62 6c 65 2d 74 65 6d 70 73 74 6f  --enable-tempsto
1cd0: 72 65 0a 23 0a 23 20 41 43 5f 41 52 47 5f 45 4e  re.#.# AC_ARG_EN
1ce0: 41 42 4c 45 28 74 65 6d 70 73 74 6f 72 65 2c 20  ABLE(tempstore, 
1cf0: 5b 41 53 5f 48 45 4c 50 5f 53 54 52 49 4e 47 28  [AS_HELP_STRING(
1d00: 0a 23 20 20 20 5b 2d 2d 65 6e 61 62 6c 65 2d 74  .#   [--enable-t
1d10: 65 6d 70 73 74 6f 72 65 5d 2c 20 0a 23 20 20 20  empstore], .#   
1d20: 5b 69 6e 2d 6d 65 6d 6f 72 79 20 74 65 6d 70 6f  [in-memory tempo
1d30: 72 61 72 79 20 74 61 62 6c 65 73 20 28 6e 65 76  rary tables (nev
1d40: 65 72 2c 20 6e 6f 2c 20 79 65 73 2c 20 61 6c 77  er, no, yes, alw
1d50: 61 79 73 29 20 5b 64 65 66 61 75 6c 74 3d 6e 6f  ays) [default=no
1d60: 5d 5d 29 5d 2c 20 0a 23 20 20 20 5b 5d 2c 20 5b  ]])], .#   [], [
1d70: 65 6e 61 62 6c 65 5f 74 65 6d 70 73 74 6f 72 65  enable_tempstore
1d80: 3d 6e 6f 5d 29 0a 23 20 41 43 5f 4d 53 47 5f 43  =no]).# AC_MSG_C
1d90: 48 45 43 4b 49 4e 47 28 5b 66 6f 72 20 77 68 65  HECKING([for whe
1da0: 74 68 65 72 20 6f 72 20 6e 6f 74 20 74 6f 20 73  ther or not to s
1db0: 74 6f 72 65 20 74 65 6d 70 20 74 61 62 6c 65 73  tore temp tables
1dc0: 20 69 6e 2d 6d 65 6d 6f 72 79 5d 29 0a 23 20 63   in-memory]).# c
1dd0: 61 73 65 20 22 24 65 6e 61 62 6c 65 5f 74 65 6d  ase "$enable_tem
1de0: 70 73 74 6f 72 65 22 20 69 6e 0a 23 20 20 20 6e  pstore" in.#   n
1df0: 65 76 65 72 20 29 20 20 54 45 4d 50 5f 53 54 4f  ever )  TEMP_STO
1e00: 52 45 3d 30 20 3b 3b 0a 23 20 20 20 6e 6f 20 29  RE=0 ;;.#   no )
1e10: 20 20 20 20 20 54 45 4d 50 5f 53 54 4f 52 45 3d       TEMP_STORE=
1e20: 31 20 3b 3b 0a 23 20 20 20 61 6c 77 61 79 73 20  1 ;;.#   always 
1e30: 29 20 54 45 4d 50 5f 53 54 4f 52 45 3d 33 20 3b  ) TEMP_STORE=3 ;
1e40: 3b 0a 23 20 20 20 79 65 73 20 29 20 20 20 20 54  ;.#   yes )    T
1e50: 45 4d 50 5f 53 54 4f 52 45 3d 33 20 3b 3b 0a 23  EMP_STORE=3 ;;.#
1e60: 20 20 20 2a 20 29 0a 23 20 20 20 20 20 54 45 4d     * ).#     TEM
1e70: 50 5f 53 54 4f 52 45 3d 31 0a 23 20 20 20 20 20  P_STORE=1.#     
1e80: 65 6e 61 62 6c 65 5f 74 65 6d 70 73 74 6f 72 65  enable_tempstore
1e90: 3d 79 65 73 0a 23 20 20 20 3b 3b 0a 23 20 65 73  =yes.#   ;;.# es
1ea0: 61 63 0a 23 20 41 43 5f 4d 53 47 5f 52 45 53 55  ac.# AC_MSG_RESU
1eb0: 4c 54 28 24 65 6e 61 62 6c 65 5f 74 65 6d 70 73  LT($enable_temps
1ec0: 74 6f 72 65 29 0a 23 20 41 43 5f 53 55 42 53 54  tore).# AC_SUBST
1ed0: 28 54 45 4d 50 5f 53 54 4f 52 45 29 0a 23 2d 2d  (TEMP_STORE).#--
1ee0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1ef0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f00: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f10: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
1f20: 2d 2d 2d 2d 2d 0a 0a 41 43 5f 4f 55 54 50 55 54  -----..AC_OUTPUT
1f30: 0a                                               .