Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

>>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
>
| Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
>>>>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
>>>
| Lars> | Lars> try to readd it, and see if that helps.
>>>
| Lars> | I'll do that in the configure scripts.
>>>
| Lars> | Lars> | You also nuked things like
>>>
| Lars> | Lars> I think that was a bit more automatic than you think...
>>>
| Lars> | So, what is autoconf 2.5x supposed to provide to replace this
| Lars> | config.h.bot functionality (except claiming that acconfig.h is
| Lars> | useless?)
>
| Lars> it must be done with AC_DEFINE.
>
| You can't do everything like that, I think. I append for reference
| what was there. Some of this may be old junk (like broken_headers.h),
| but some things still may be useful, like the special defines by
| system.
>
| /************************************************************ 
|  ** You should not need to change anything beyond this point */
>
| #ifndef HAVE_STRCHR
| #define strchr(a,b)     index(a,b)
| #endif

AH_VERBATIM([HAVE_STRCHR],
        [
        #ifndef HAVE_STRCHR
        # define strchr(a,b)    index(a,b)
        #endif])



| #ifndef HAVE_MEMMOVE
| #define memmove(a, b, c)  bcopy(b, a, c)
| #endif

AH_VERBATIM([HAVE_MEMMOVE],
        [
        #ifndef HAVE_MEMMOVE
        # define memmove(a,b,c) bcopy(b,a,c)
        #endif])

| #ifndef HAVE_STRERROR
| #if defined (__cplusplus)
| extern "C"
| #endif
| char * strerror(int n);
| #endif

AH_VERBATIM([HAVE_STRERROR],
        [
        #ifndef HAVE_STRERROR
        #if defined(__cplusplus)
        extern "C"
        #endif
        char * strerror(int n);
        #endif])

| #ifdef BROKEN_HEADERS
| #include "broken_headers.h"
| #endif

AH_VERBATIM([BROKEN_HEADERS],
        [
        #ifdef BROKEN_HEADERS
        #include "broken_headers.h"
        #endif])

| #ifdef HAVE_MKSTEMP
| #ifndef HAVE_DECL_MKSTEMP
| #if defined (__cplusplus)
| extern "C"
| #endif
| int mkstemp(char*);
| #endif
| #endif

AH_VERBATIM([HAVE_MKSTEMP],
        [
        #ifdef HAVE_MKSTEMP
        #ifndef HAVE_DECL_MKSTEMP
        #if defined(__cplusplus)
        extern "C"
        #endif 
        int mkstemp(char*);
        #endif
        #endif])

>
| /* C++ always support the keyword `inline' */
| #if defined inline && defined __cplusplus
| /**/#undef inline
| #endif

kill

| /* C++ always has a good enough `const' */
| #if defined const && defined __cplusplus
| /**/#undef const
| #endif

kill

| /* Check on the run if we are using exceptions during this compilation.*/
| #if defined(__sgi) || defined(__GNUC__)
| #  ifdef __EXCEPTIONS
| #    define USING_EXCEPTIONS
| #  endif
| #endif

unsure about this one

| #if defined(__USLC__) || defined(__SUNPRO_CC) || defined(__COMO__) || defined(__ICL)
| #  define USING_EXCEPTIONS
| #endif

this too

| #ifdef __EMX__
| #include "support/os2_defines.h"
| #endif

AH_VERBATIM([__EMX__],
        [
        #ifdef __EMX__
        #include "support/os2_defines.h"
        #endif])

| #if defined(__CYGWIN__) || defined( __CYGWIN32__)
| #include "support/nt_defines.h"
| #endif

AH_VERBATIM([__CYGWIN__],
        [
        #if defined(__CYGWIN__) || defined(__CYGWIN32__)
        #include "support/nt_defines.h"
        #endif])

| /* Some support for the boost library. */
| #ifndef HAVE_LIMITS
| #define BOOST_NO_LIMITS
| #endif

best to avoid if possible

| #ifndef HAVE_SSTREAM
| #define BOOST_NO_STRINGSTREAM
| #endif

best to avoid if possible.

-- 
        Lgb

Reply via email to