Changeset 2042

Show
Ignore:
Timestamp:
08/18/08 11:40:10 (4 months ago)
Author:
kraftche
Message:

As of version 4.3, g++ no longer includes backwards-compatible headers
ending in '.h' for C++ standard headers. ACIS (at least up to version
16) includes "new.h" in many headers that are included indirectly by
CGM code. Provide our own version of new.h and conditionally use it
if building with ACIS support and the system does not provide a new.h.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cgm/trunk/configure.in

    r2034 r2042  
    194194  HAVE_ACIS_DEF=-DHAVE_ACIS 
    195195fi 
     196 
     197# ACIS (at least up to version 16) requires new.h.  
     198# Newer C++ compilers may not provide this backwards-compatibility 
     199# file.  Check if it is present, and if not, use our own. 
     200ACIS_NEW_COMPAT_INC='-I${top_srcdir}/compat/new' 
     201if test "x$ACIS_DIR" != "xno"; then 
     202  AC_LANG_PUSH(C++) 
     203  AC_CHECK_HEADER([new.h],[],[ACIS_INCLUDES="$ACIS_INCLUDES $ACIS_NEW_COMPAT_INC"]) 
     204  AC_LANG_POP(C++) 
     205fi 
     206 
    196207AC_SUBST(ACIS_DEFS) 
    197208AC_SUBST(ACIS_DIR)