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