Blame SOURCES/mysql_config_multilib.sh

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