This is a collection of Autoconf macros to make it easier to use the devkitPro toolchain.
The macros all use the all-permissive license. They depend on Autoconf Archive macros, which are usually installed alongside base Autoconf.
-
./bootstrap
-
./configure --prefix=/usr
-
make
-
make install
Note the --prefix=
option is needed to ensure the macros are installed in
/usr/share/aclocal
. Check the output of aclocal --print-ac-dir
to see it's pointing to
a non-standard directory, and modify the --prefix=
option accordingly.
Some usage examples are provided in the examples directory.
Note that they use a ./bootstrap
script that just creates links to
the .m4
macros in the macros
directory, to make sure the examples always use
the latest version.
When you use these macros for your own project, your bootstrap
script should look like
this instead:
# Copy all non-standard macros to our local macro repository.
aclocal -I m4 --install
# Now invoke autoreconf to generate the configure script.
exec autoreconf --install "$@"
You should also add your m4
directory to the source control, so any clones will have the
exact same macro versions as you.