Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbadlop <badlop@process-one.net>2021-03-09 03:18:00 +0300
committerGitHub <noreply@github.com>2021-03-09 03:18:00 +0300
commit75a4e239963b081675713e7c3b7ac12436e893a8 (patch)
treefe088fcce591e342e126e6bdbdb4012939b80d9c /configure.ac
parent404ae56e073253de08604c4137239b7e8248058d (diff)
parent1f60f5d8afc6fd2507c494d13aeaee31752803c1 (diff)
Merge pull request #3458 from nosnilmot/sqlite3-macos
Remove external dependency on sqlite3 for macos
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 13 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 4dd19c122..9c5613227 100644
--- a/configure.ac
+++ b/configure.ac
@@ -269,12 +269,19 @@ AC_ARG_ENABLE(zlib,
*) AC_MSG_ERROR(bad value ${enableval} for --enable-zlib) ;;
esac],[if test "x$zlib" = "x"; then zlib=true; fi])
-if test "$sqlite" = "true"; then
- AX_LIB_SQLITE3([3.6.19])
- if test "x$SQLITE3_VERSION" = "x"; then
- AC_MSG_ERROR(SQLite3 library >= 3.6.19 was not found)
- fi
-fi
+case "`uname`" in
+ "Darwin")
+ # Darwin (macos) erlang-sqlite is built using amalgamated lib, so no external dependency
+ ;;
+ *)
+ if test "$sqlite" = "true"; then
+ AX_LIB_SQLITE3([3.6.19])
+ if test "x$SQLITE3_VERSION" = "x"; then
+ AC_MSG_ERROR(SQLite3 library >= 3.6.19 was not found)
+ fi
+ fi
+ ;;
+esac
enabled_backends=""
for backend in odbc mysql pgsql sqlite redis mssql; do