diff --git a/database/mysql/detect.py b/database/mysql/detect.py index 74c5054..980519f 100644 --- a/database/mysql/detect.py +++ b/database/mysql/detect.py @@ -58,11 +58,14 @@ def configure(env): if not mariadb_error: env.ParseConfig("pkg-config mariadb --cflags --libs") + env.Append(CPPDEFINES=["MYSQL_PRESENT"]) return if not mysql_error: env.ParseConfig("pkg-config mysql --cflags --libs") + env.Append(CPPDEFINES=["MYSQL_PRESENT"]) + # Link those statically for portability #if env["use_static_cpp"]: #env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"]) diff --git a/database/postgres/detect.py b/database/postgres/detect.py index 27700be..939ba73 100644 --- a/database/postgres/detect.py +++ b/database/postgres/detect.py @@ -47,6 +47,8 @@ def get_flags(): def configure(env): env.ParseConfig("pkg-config libpq --cflags --libs") + + env.Append(CPPDEFINES=["PGSQL_PRESENT"]) # Link those statically for portability #if env["use_static_cpp"]: diff --git a/database/sqlite/detect.py b/database/sqlite/detect.py index 5bdd2bb..c289b3b 100644 --- a/database/sqlite/detect.py +++ b/database/sqlite/detect.py @@ -48,6 +48,8 @@ def get_flags(): def configure(env): env.ParseConfig("pkg-config sqlite3 --cflags --libs") + env.Append(CPPDEFINES=["SQLITE_PRESENT"]) + # Link those statically for portability #if env["use_static_cpp"]: #env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"])