Patrick West wrote:
I am interested in doing something like this:

./configure --with-package=package1 --with-package=package2

But I am not sure how to do this. I try to use AC_ARG_WITH, but that only takes package2 and ignores package1.

Any help would be greatly appreciated.

A single switch (in your example "--with-package") can only take one value. The last one you provide wins.


While you can use any value you want as the argument to a --with-* option, anything other than "yes" or "no" usually complicates the UI and should generally be avoided unless it is a clear simplification (IMO).

So why not:

  ./configure --with-package1 --with-package2

Braden


_______________________________________________ Autoconf mailing list [email protected] http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to