Gnokii - latest git version packaging

Hi,
I just went on to update gnokii and add the contained smsd daemon to LEDE/OpenWrt. The package, in it's latest iteration has several steps and accompanying autogen.sh.

This is autogen.sh after pulling out conditionals for Darwin & FreeBSD]:

#!/bin/sh -e
libtoolize -c -f
glib-gettextize -f -c
intltoolize --force --copy --automake
aclocal -I m4/
autoheader -I m4/
automake --add-missing
autoconf
./configure "$@"

I tried using

CONFIGURE_CMD =./autogen.sh

but it does not seem to execute the file.

How do i get autogen.sh to be executed in the staging environment?
Is it possible to just replace autogen.sh with multiple calls to PKG_FIXUP dor each row in the autogen.sh above?

Cheers & Happy to first post.