Using --enable-debug and defining a macro from it...?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(If this isn't the place for 'how do I...?' questions, please re-direct me, but I do see it isn't the -bugs list.)

First off, I have a very skeleton configure.in (see below). How do I add '--enable-debug' to this? (I see AC_ARG_ENABLE, but is there not a standard one for debug? I can't find one, but it seems to be a standard.)

Second, I want to add a define to config.h based on the value of --enable-debug. How do I do this?

====
AC_INIT(<...>)

AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(<pkg>, 0.1)

AC_LANG_CPLUSPLUS
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_INSTALL

AC_OUTPUT(Makefile src/Makefile <...>)
====

--
Matthew
HIPPOS feel unacknowledged. HIPPOS get angry.
> PRAISE HIPPOS
HIPPOS seem somewhat placated.



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux