6df48a42f2
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/mariadb#4e960545a8a5fc83de7c79818a01beeb08c51d6b
27 lines
525 B
Bash
27 lines
525 B
Bash
#! /bin/sh
|
|
#
|
|
# Wrapper script for mysql_config to support multilib
|
|
#
|
|
# This command respects setarch
|
|
|
|
bits=$(rpm --eval %__isa_bits)
|
|
|
|
case $bits in
|
|
32|64) status=known ;;
|
|
*) status=unknown ;;
|
|
esac
|
|
|
|
if [ "$status" = "unknown" ] ; then
|
|
echo "$0: error: command 'rpm --eval %__isa_bits' returned unknown value: $bits"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
if [ -x @bindir@/mysql_config-$bits ] ; then
|
|
@bindir@/mysql_config-$bits "$@"
|
|
else
|
|
echo "$0: error: needed binary: @bindir@/mysql_config-$bits is missing"
|
|
exit 1
|
|
fi
|
|
|