[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using --enable-debug and defining a macro from it...?
From: |
Matthew Woehlke |
Subject: |
Using --enable-debug and defining a macro from it...? |
Date: |
Wed, 17 Jan 2007 13:57:10 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 |
(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.
- Using --enable-debug and defining a macro from it...?,
Matthew Woehlke <=