Hello,

> >> Use something like
> >>   AC_ARG_ENABLE([webcam],
> >>     [AS_HELP_STRING([--disable-webcam], [disable use of webcam])],
> >>     [AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster])])

a modified example:

AC_ARG_ENABLE([webcam],
  [AS_HELP_STRING([--disable-webcam], [disable use of webcam])])
if "$enable_webcam" != no; then
  AC_DEFINE([USE_WEBCAM], [1], [enable/disable webcam broadcaster])
fi

It might also help to study the examples in
http://www.gnu.org/software/autoconf/manual/html_node/External-Software.html#External-Software

(They are about AC_ARG_WITH, but the usage of AC_ARG_ENABLE is
analogical.)

HTH,
        Stepan Kasal


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

Reply via email to