Blame SOURCES/net-snmp-config

4dcf3f
#!/bin/sh
4dcf3f
#
4dcf3f
# net-snmp-config
4dcf3f
#
4dcf3f
# this shell script is designed to merely dump the configuration
4dcf3f
# information about how the net-snmp package was compiled.  The
4dcf3f
# information is particularily useful for applications that need to
4dcf3f
# link against the net-snmp libraries and hence must know about any
4dcf3f
# other libraries that must be linked in as well.
4dcf3f
4dcf3f
# this particular shell script calls arch specific script to avoid
4dcf3f
# multilib conflicts
4dcf3f
4dcf3f
# Supported arches ix86 ia64 ppc ppc64 s390 s390x x86_64 alpha sparc sparc64
4dcf3f
4dcf3f
arch=`arch`
4dcf3f
echo $arch | grep -q i.86
4dcf3f
if [ $? -eq 0 ] ; then
4dcf3f
    net-snmp-config-i386 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "ia64" ] ; then
4dcf3f
    net-snmp-config-ia64 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "ppc" ] ; then
4dcf3f
    net-snmp-config-ppc $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "ppc64" ] ; then
4dcf3f
    net-snmp-config-ppc64 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "s390" ] ; then
4dcf3f
    net-snmp-config-s390 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "s390x" ] ; then
4dcf3f
    net-snmp-config-s390x $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "x86_64" ] ; then
4dcf3f
    net-snmp-config-x86_64 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "alpha" ] ; then
4dcf3f
    net-snmp-config-alpha $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "sparc" ] ; then
4dcf3f
    net-snmp-config-sparc $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "sparc64" ] ; then
4dcf3f
    net-snmp-config-sparc64 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
if [ "$arch" = "aarch64" ] ; then
4dcf3f
    net-snmp-config-aarch64 $*
4dcf3f
    exit 0
4dcf3f
fi
4dcf3f
echo "Cannot determine architecture"