mirror of
https://codeberg.org/scip/dbtool.git
synced 2025-12-18 20:00:57 +01:00
add error if no db lib found, add better ci build and test
This commit is contained in:
@@ -46,15 +46,19 @@ pcre2 = dependency('libpcre2-8')
|
||||
|
||||
|
||||
# manually check for libraries
|
||||
lib_berkeley = cpp.find_library('db_cxx',
|
||||
lib_berkeley = cpp.find_library('db_cxx', required: false,
|
||||
dirs : ['/usr', '/usr/local'])
|
||||
inc_berkeley = include_directories('/usr', '/usr/local')
|
||||
|
||||
lib_gdbm = cpp.find_library('gdbm',
|
||||
lib_gdbm = cpp.find_library('gdbm', required: false,
|
||||
dirs : ['/usr', '/usr/local'])
|
||||
inc_gdbm = include_directories('/usr', '/usr/local')
|
||||
|
||||
|
||||
if not lib_gdbm.found() and not lib_berkeley.found()
|
||||
error('neither GDBM nor BerkeleyDB are installed')
|
||||
endif
|
||||
|
||||
# check commandline options
|
||||
prefix = get_option('prefix')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user