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