CLion 2021.2 EAP: Support for GNU Autotools (Autoconf, Automake) Projects
The new CLion 2021.2 EAP build (212.4638.8) is now available from our website, via the Toolbox App, or as a snap package for Ubuntu. If you are on macOS, there is a separate build for the Apple Silicon M1 chip.
The landscape of Make-based projects is very diverse, so it was hard to cover all of them at once in CLion. When we first added support for Makefile projects, it was limited to certain kinds – the Makefile had to be present in the project directory, which meant all of the preconfiguration steps had to be called manually before loading and opening the project in CLion. Now it’s time to relax this limitation!
CLion now automatically detects GNU Autotools, Kbuild, and PERL MakeMaker projects. When these projects are loaded as Makefile projects, CLion automatically detects preconfiguration scripts and executes them to get the Makefile and load the project from it.
CLion now covers two scenarios:
- If there are configure.ac and Makefile.am in the project, CLion will require GNU Autoconf to be installed in the system (it will search for autoreconf in the system PATH). CLion will generate the Makefile, and use it to load the project.
- If there is a configure script and no configure.ac in the project, it will be called by CLion, and no autoreconf is required.
For example, let’s take Make v4.3 and open it in CLion:
For many projects, that is all you need to open them in CLion!
You can call any additional scripts, like bootstrap, from the built-in terminal, and you can tune additional preconfigure step parameters in Settings/Preferences | Build, Execution, Deployment | Makefile:
As an example, if you open a recent version of the make project from Git in CLion, you need to call
./bootstrap in the terminal first.
A few known issues are worth mentioning here:
- Interactive preconfiguration step is not yet supported (CPP-25742).
- Makefile projects unnecessarily load twice in some cases (CPP-25621).
The full release notes are available here.
Your CLion team
The Drive to Develop
Subscribe to Blog updates
Thanks, we've got you!
CLion 2023.3 Release Candidate
CLion 2023.3 is on its way, and the release candidate for v2023.3 is already available! To install CLion 2023.3 RC (build 233.11799.171), download it from the website, update via the Toolbox App, or use this snap package (for Ubuntu). You need an active subscription or a trial license to use CLi…
CLion Nova: A New Update With Various Bug Fixes
CLion Nova, a free preview of CLion with the ReSharper C++/Rider C++ language engine, was announced recently. We’re excited to see how well you liked the first build! There are about 3,700 users right now and the overall feedback is mostly positive, especially that which is related to performance an…
CLion 2023.3 Goes Beta
The Beta version of CLion Classic 2023.3 is now available with key improvements and changes that are expected in the upcoming release. Download build 233.11799.37 from our website, via the Toolbox App, or as a snap package for Ubuntu. If you are using CLion Nova, note that we do not plan to release…
CLion Nova Explodes onto the C and C++ Development Scene
TL;DR Today, we’re announcing a free early preview of CLion, which uses the ReSharper C++/Rider C++ language engine instead of the CLion "legacy" engine. The Preview build is available via our dedicated Toolbox App feed. At some point in 2024, depending on the results of the feedback coll…