ac-archive-maintainers
[Top][All Lists]
Advanced

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

Re: Contributions for ac-archive


From: Scott Pakin
Subject: Re: Contributions for ac-archive
Date: Mon, 10 Feb 2003 17:15:33 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Guido,

Om 8FEB2003 you wrote:
AC_DEFUN([AX_CHECK_PAGE_ALIGNED_MALLOC],
[AC_CACHE_CHECK([if large mallocs guarantee page-alignment],
  [ax_cv_func_malloc_aligned],
  [AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif

shouldn't that be "#ifdef" ?

Oops!  Yes, please go ahead and fix that.

btw, another trick might be to add "+0",
ie. #if HAVE_UNISTD_H+0 ... if the name
does not exist, then "#if +0" is the
result - which is the same as "#if 0".

Cute.  I'll have to remember that.

-- Scott







reply via email to

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