Thank you Michal and Haelwenn for your advises. I'm taking as reference the documentation about functions syntax in devmanual[1] (very useful for a quickly review).
In the source code where autoreconf is being called I found a
configure.ac and Makefile.am.
Looking into autogen.sh[2] script prvided by the maintainer I confirm
that he runs the following commands:
- autoreconf -i -f
- for each supported distribution defines variable extra_opts
- "${SRC_DIR}/configure" --enable-maintainer-mode --prefix=/usr
$extra_opts "$@"
So it seems that the best approach would be the way you suggested in
your example Haelwenn.
[1] https://devmanual.gentoo.org/eclass-reference/ebuild/index.html
[2] https://github.com/snapcore/snapd/blob/master/cmd/autogen.sh
signature.asc
Description: OpenPGP digital signature
