How to list features that can be turned on and off in. / configure script?

Many open source programs are distributed in source code with the autotools build system. To create such software, I release ./configure && make . But for some software, I need to build only a subset of it - for example, in SRP, I am only interested in the library, and not the terminal client or ftp. To indicate that for the build, the ./configure script accepts the command line options --disable- , --enable- , --with- , --without- etc, etc., which are listed in the ./configure --help section , "Features and packages."

Given a third-party open source archive with a ./configure script, in any way, can I easily get a list of all the functions available to enable / disable? Of course, such information is available in source code, for example, in makefile.am and makefile.in - but they are huge and difficult to read. Maybe an easier way exists, something like ./configure --list-features ?

+6
source share
2 answers

./configure --help will do the trick.

+9
source

AFAIK, if configure.ac uses the macros AC_ARG_ENABLE and AC_ARG_WITH , the parameters should be displayed in the help output. I don't know why the package would try to get around this if not the old script. Finding a configure.ac or configure.in script for these macros may help.

+3
source

Source: https://habr.com/ru/post/903259/


All Articles