mirror of
https://github.com/coturn/coturn.git
synced 2025-11-04 08:51:00 +01:00
Merge pull request #727 from JoKoT3/master
Support older mysql client version in configure
This commit is contained in:
commit
7340bf8e50
11
configure
vendored
11
configure
vendored
@ -46,6 +46,15 @@ testpkg_db() {
|
|||||||
DBLIBS="${DBLIBS} ${PKG_LIBS}"
|
DBLIBS="${DBLIBS} ${PKG_LIBS}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# support for older mysql version
|
||||||
|
# if mysql_config is found in path adds librairies to DBCFLAGS/DBLIBS and returns success.
|
||||||
|
# Otherwise, returns failure.
|
||||||
|
test_mysql_config() {
|
||||||
|
which mysql_config &>/dev/null || return $?
|
||||||
|
DBCFLAGS="${DBCFLAGS} $(mysql_config --cflags)"
|
||||||
|
DBLIBS="${DBLIBS} $(mysql_config --libs)"
|
||||||
|
}
|
||||||
|
|
||||||
# testpkg_common pkg1 pkg2 ...
|
# testpkg_common pkg1 pkg2 ...
|
||||||
# If all libraries are found, adds them to OSCFLAGS/OSLIBS and returns success.
|
# If all libraries are found, adds them to OSCFLAGS/OSLIBS and returns success.
|
||||||
# Otherwise, returns failure.
|
# Otherwise, returns failure.
|
||||||
@ -931,7 +940,7 @@ fi
|
|||||||
###########################
|
###########################
|
||||||
|
|
||||||
if [ -z "${TURN_NO_MYSQL}" ] ; then
|
if [ -z "${TURN_NO_MYSQL}" ] ; then
|
||||||
if testpkg_db mariadb || testpkg_db mysqlclient ; then
|
if testpkg_db mariadb || testpkg_db mysqlclient || test_mysql_config; then
|
||||||
${ECHO_CMD} "MySQL found."
|
${ECHO_CMD} "MySQL found."
|
||||||
else
|
else
|
||||||
${ECHO_CMD} "MySQL not found. Building without MySQL support."
|
${ECHO_CMD} "MySQL not found. Building without MySQL support."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user