I am trying to automate the installation and configuration of QT for linux into my makefiles, so that other developers don't have to "know" anything to install, and my installations are consistant. However, 'configure' asks a series of questions and expects some responses. How do I deal with these in my automation of automatic installation process. I currently just look for a dependency that needs qt, then install it if it is not already installed from within a makefile.

The questions it asks are:
(1) Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.

(2) Do you accept the terms of the Qt COMMERCIAL LICENSE AGREEMENT?

Can I set some variables or something that already have the responses. How do other people deal with this.
Thanks...