autoconf-patches
[Top][All Lists]
Advanced

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

Re: Remove the rest of the comment from _AC_CACHE_DUMP


From: Stepan Kasal
Subject: Re: Remove the rest of the comment from _AC_CACHE_DUMP
Date: Mon, 10 Apr 2006 10:57:14 +0200
User-agent: Mutt/1.4.1i

Hello,

On Mon, Apr 10, 2006 at 09:39:42AM +0200, Ralf Wildenhues wrote:
> Note that this sorting business makes AC_C_INLINE output:
> 
> |     cat >>confdefs.h <<_ACEOF
> | #ifndef __cplusplus
> | #define inline $ac_val
> | #endif
> 
> clutter somewhat.

I'll add a more specific example; with configure.ac containing
        AC_INIT
        AC_C_INLINE
        exit
the resulting configure, when run against a compiler where `inline'
doesn't work, creates config.log which ends:

## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define inline __inline__
#endif
#ifndef __cplusplus

configure: exit 0

Isn't this a case where configure tries to be too smart?  Shouldn't
the sorting be removed?  A proposed patch attached (post 2.60, of course).

Stepan

Attachment: autoconf-20060410-nosort.patch
Description: Text document


reply via email to

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