Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Modify auto.def to detect the case where the system SQLite is too old for WAL support (used by fossil).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5fe55cb10331cd85bab4fd79e405691e1ac32fd5
User & Date: dan 2011-07-14 11:09:20
Context
2011-07-14
11:24
Fix the "fossil setting" command so that it can change the manifest setting even when not within a local check-out. check-in: fd13b1a1 user: drh tags: trunk
11:09
Modify auto.def to detect the case where the system SQLite is too old for WAL support (used by fossil). check-in: 5fe55cb1 user: dan tags: trunk
10:24
Small changes to autosetup build system so that the --disable-internal-sqlite switch works and is compatible with BSD make. check-in: 734af429 user: dan tags: trunk
Changes

Changes to auto.def.

24
25
26
27
28
29
30














31
32
33
34
35
36
37
38
39
40


41








42
43
44
45
46
47
48
cc-check-progs tclsh

define EXTRA_CFLAGS ""
define EXTRA_LDFLAGS ""
define USE_SYSTEM_SQLITE ""

if {![opt-bool internal-sqlite]} {














    if {![cc-check-function-in-lib sqlite3_open sqlite3]} {
      if {![cc-check-function-in-lib sqlite3_open sqlite3 {-ldl}]} {
        user-error "system sqlite3 not found"
      } else {
        # On some systems (slackware), the libsqlite3.so file cannot be
        # linked without also specifying -ldl. This is a bug in the 
        # distribution.
        define-append EXTRA_LDFLAGS -ldl
      }
    }


    define USE_SYSTEM_SQLITE 1








}

if {[opt-bool fossil-debug]} {
    define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
}

if {[opt-bool static]} {







>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
|
<
<
<
<
<
|
|
>
>
|
>
>
>
>
>
>
>
>







24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47





48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
cc-check-progs tclsh

define EXTRA_CFLAGS ""
define EXTRA_LDFLAGS ""
define USE_SYSTEM_SQLITE ""

if {![opt-bool internal-sqlite]} {
  proc find_internal_sqlite {} {

    # On some systems (slackware), libsqlite3 requires -ldl to link. So
    # search for the system SQLite once with -ldl, and once without. If
    # the library can only be found with $extralibs set to -ldl, then 
    # the code below will append -ldl to LIBS.
    #
    foreach extralibs {{} {-ldl}} {

      # Locate the system SQLite by searching for sqlite3_open(). Then check
      # if sqlite3_wal_checkpoint() can be found as well. If we can find
      # open() but not wal_checkpoint(), then the system SQLite is too old
      # to link against fossil.
      #
      if {[cc-check-function-in-lib sqlite3_open sqlite3 $extralibs]} {
        if {![cc-check-function-in-lib sqlite3_wal_checkpoint sqlite3 $extralibs]} {
          user-error "system sqlite3 too old (require >= 3.7.0)"





        }

        # Success. Update symbols and return.
        #
        define USE_SYSTEM_SQLITE 1
        define-append LIBS $extralibs
        return
      }
    }
    user-error "system sqlite3 not found"
  }

  find_internal_sqlite
}

if {[opt-bool fossil-debug]} {
    define-append EXTRA_CFLAGS -DFOSSIL_DEBUG
}

if {[opt-bool static]} {