diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-05 17:16:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-05 17:47:13 +0300 |
commit | 7e1f8b21952dda3404339bfcd3d329d5845b4396 (patch) | |
tree | 2b373296830a48d140967d3f272436a70b1c4ca5 | |
parent | 6ef633913224d860a739c7be82a59a346774250e (diff) | |
download | hercules-7e1f8b21952dda3404339bfcd3d329d5845b4396.tar.gz hercules-7e1f8b21952dda3404339bfcd3d329d5845b4396.tar.bz2 hercules-7e1f8b21952dda3404339bfcd3d329d5845b4396.tar.xz hercules-7e1f8b21952dda3404339bfcd3d329d5845b4396.zip |
Add way for detect what db to use mysql or mariadb.
-rwxr-xr-x | build.sh | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -6,7 +6,15 @@ if [[ -z "${CMD}" ]]; then export CMD="default" fi -export COMMON="--disable-lto --enable-packetver=20150000 --enable-debug=gdb --with-mysql=/usr/bin/mariadb_config" +if [ -x "/usr/bin/mariadb_config" ]; then + export SQL=" --with-mysql=/usr/bin/mariadb_config" +elif [ -x "/usr/bin/mysql_config" ]; then + export SQL=" --with-mysql=/usr/bin/mysql_config" +else + export SQL="" +fi + +export COMMON="--disable-lto --enable-packetver=20150000 --enable-debug=gdb${SQL}" autoreconf if [[ "${CMD}" == "default" || "${CMD}" == "all" ]]; then |