Projects STRLCPY neomutt Commits 4974ff3c
🤬
  • Fallback to manual detection of LMDB

    Debian [1], FreeBSD [2], and probably other OSs provide pkg-config files for lmdb.
    However, brew [3] and upstream [4] don't and don't want to.
    
    Let's fallback to manual detection of LMDB, in case the pkg-config file is not there.
    
    [1] https://salsa.debian.org/debian/lmdb/-/blob/master/debian/rules#L27-36
    [2] https://cgit.freebsd.org/ports/plain/databases/lmdb/files/lmdb.pc.in
    [3] https://github.com/Homebrew/homebrew-core/pull/115376#issuecomment-1310483540
    [4] https://github.com/Homebrew/homebrew-core/pull/115376#issuecomment-1310462073
  • Loading...
  • Pietro Cerutti committed with Richard Russon 1 year ago
    4974ff3c
    1 parent 30e89523
  • ■ ■ ■ ■ ■ ■
    auto.def
    skipped 87 lines
    88 88   kyotocabinet=0 => "Use KyotoCabinet for the header cache"
    89 89   with-kyotocabinet:path => "Location of KyotoCabinet"
    90 90   lmdb=0 => "Use LMDB for the header cache"
     91 + with-lmdb:path => "Location of LMDB"
    91 92   qdbm=0 => "Use QDBM for the header cache"
    92 93   with-qdbm:path => "Location of QDBM"
    93 94   rocksdb=0 => "Use RocksDB for the header cache"
    skipped 40 lines
    134 135   with-slang:
    135 136   with-ui:=
    136 137   with-gpgme:
    137  - with-lmdb:
    138 138   with-lz4:
    139 139   with-zstd:
    140 140  }
    skipped 747 lines
    888 888  ###############################################################################
    889 889  # Header cache - LMDB
    890 890  if {[get-define want-lmdb]} {
    891  - pkgconf true lmdb
    892  - define-feature lmdb
     891 + if {[pkgconf false lmdb]} {
     892 + define-feature lmdb
     893 + } elseif {![check-inc-and-lib lmdb [opt-val with-lmdb $prefix] \
     894 + lmdb.h mdb_env_create lmdb]} {
     895 + user-error "Unable to find LMDB"
     896 + }
    893 897   define-append HCACHE_BACKENDS "lmdb"
    894 898   define USE_HCACHE
    895 899  }
    skipped 331 lines
Please wait...
Page is in error, reload to recover