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