2014-07-24 08:00:55 +00:00
|
|
|
#! /bin/sh
|
2013-10-09 15:55:08 +00:00
|
|
|
#
|
|
|
|
# Wrapper script for mysql_config to support multilib
|
|
|
|
#
|
|
|
|
# This command respects setarch
|
|
|
|
|
|
|
|
bits=$(rpm --eval %__isa_bits)
|
|
|
|
|
|
|
|
case $bits in
|
|
|
|
32|64) status=known ;;
|
|
|
|
*) status=unknown ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [ "$status" = "unknown" ] ; then
|
|
|
|
echo "$0: error: command 'rpm --eval %__isa_bits' returned unknown value: $bits"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-07-24 08:00:55 +00:00
|
|
|
if [ -x @bindir@/mysql_config-$bits ] ; then
|
|
|
|
@bindir@/mysql_config-$bits "$@"
|
2013-10-09 15:55:08 +00:00
|
|
|
else
|
2014-07-24 08:00:55 +00:00
|
|
|
echo "$0: error: needed binary: @bindir@/mysql_config-$bits is missing"
|
2013-10-09 15:55:08 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|