Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.39 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.39 KB

Devkitpro Autoconf

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.

Installation

  1. ./bootstrap

  2. ./configure --prefix=/usr

  3. make

  4. 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.

Examples

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.