22.3.1. Noninteractive Behavior

Autoconf's generated 'configure' scripts are designed to be noninteractive—they should not prompt the user for input. Many users like the fact that 'configure' can be used as part of an automated build process. By introducing code into 'configure' which prompts a user for more information, you prohibit unattended operation. Instead, you should use the AC_ARG_ENABLE macro in 'configure.in' to add extra options to 'configure' or consider runtime configuration.

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.