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