[Top][All Lists]

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

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

From: Ed Hartnett
Subject: Re: Using --enable-debug and defining a macro from it...?
Date: Wed, 17 Jan 2007 13:35:20 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Matthew Woehlke <address@hidden> writes:

> (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 (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.)

Here's one way. Any comments welcome:

# Does the user want to run tests for large files (> 2GiB)?
AC_MSG_CHECKING([whether large file (> 2GB) tests should be run])
                              [Run tests which create very large data files 
(~13 GB disk space
                              required, but it will be recovered when tests are 
complete). See
                              option --with-large-file to specify temporary 
test "x$enable_large_file_tests" = xyes || enable_large_file_tests=no
AM_CONDITIONAL(LARGE_FILE_TESTS, [test x$enable_large_file_tests = xyes])

This uses AM_CONDITIONAL (because I need to know the answer in my
Makefile, not my C code.) To get the answer in config.h, use
AC_DEFINE to define something.

Good luck!


Ed Hartnett  -- address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]