Blame SOURCES/mysql_config_multilib.sh

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