patches/dmalloc/5.5.2/120-g++_check.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 20 19:05:52 2009 +0000 (2009-01-20)
changeset 1147 86930cd9340a
permissions -rw-r--r--
Fix building ltrace on PowerPC.

On 20090115.0012+0100, "Andy Johnson" <ajohnson@aecno.com> wrote:
ltrace wouldn't build on PowerPC because in the
sysdeps/linux-gnu directory in the ltrace source tree
the powerpc directory is called ppc. I added some code
in 400-ltrace.sh to create a symlink for it so it will
build now.

Patch slightly modified by me before applying.

/trunk/scripts/build/debug/400-ltrace.sh | 5 5 0 0 +++++
1 file changed, 5 insertions(+)
     1 Correctly check for g++ existence.
     2 
     3 Copyright 2007 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     4 Licensed to you as dmalloc-5.5.2 is.
     5 
     6 diff -dur dmalloc-5.5.2.orig/configure dmalloc-5.5.2/configure
     7 --- dmalloc-5.5.2.orig/configure	2007-05-18 11:40:31.000000000 +0200
     8 +++ dmalloc-5.5.2/configure	2007-05-18 11:42:02.000000000 +0200
     9 @@ -2643,7 +2643,7 @@
    10  
    11  
    12  # see if we actually have a CXX program
    13 -if test "$ac_cv_prog_CXX" = "" -o ! -x "$ac_cv_prog_CXX"; then
    14 +if test "$ac_cv_prog_CXX" = "" -o ! -x `which "$ac_cv_prog_CXX"`; then
    15      { echo "$as_me:$LINENO: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&5
    16  echo "$as_me: WARNING: could not find C++ compiler $ac_cv_prog_CXX" >&2;}
    17      enable_cxx=no