Blame SOURCES/mysql_config_multilib.sh

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