Commit a75884e7 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-13836 mariadb_config & mysql_config output differ

Use mariadb_config, for C/C config variables
parent 98cc7a8e
...@@ -114,6 +114,17 @@ if [ "$basedir" != "/usr" ]; then ...@@ -114,6 +114,17 @@ if [ "$basedir" != "/usr" ]; then
fi fi
cflags="$include @CFLAGS_FOR_CLIENTS@" cflags="$include @CFLAGS_FOR_CLIENTS@"
mariadb_config="$basedir/bin/mariadb_config"
if test -x "$basedir/bin/mariadb_config"; then
cflags=`"$mariadb_config" --cflags`
include=`"$mariadb_config" --include`
libs=`"$mariadb_config" --libs`
plugindir=`"$mariadb_config" --plugindir`
socket=`"$mariadb_config" --socket`
port=`"$mariadb_config" --port`
version=`"$mariadb_config" --version`
fi
usage () { usage () {
cat <<EOF cat <<EOF
Usage: $0 [OPTIONS] Usage: $0 [OPTIONS]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment