patches/dmalloc/5.5.2/160-strdup_macro.patch
branchgcc-4.4
changeset 1387 a52504ffac55
parent 569 147a29d2e81f
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/dmalloc/5.5.2/160-strdup_macro.patch	Mon May 25 19:48:42 2009 +0000
     1.3 @@ -0,0 +1,39 @@
     1.4 +--- dmalloc-5.5.2.orig/configure	2008-06-17 13:10:09.000000000 +0200
     1.5 ++++ dmalloc-5.5.2/configure	2008-06-17 13:11:25.000000000 +0200
     1.6 +@@ -4691,8 +4691,35 @@
     1.7 + echo "$as_me:$LINENO: checking strdup macro" >&5
     1.8 + echo $ECHO_N "checking strdup macro... $ECHO_C" >&6
     1.9 + if test "$cross_compiling" = yes; then
    1.10 +-  ac_cv_strdup_macro=no
    1.11 ++  cat >conftest.$ac_ext <<_ACEOF
    1.12 ++/* confdefs.h */
    1.13 ++_ACEOF
    1.14 ++cat confdefs.h >>conftest.$ac_ext
    1.15 ++cat >>conftest.$ac_ext <<_ACEOF
    1.16 ++/* end confdefs.h.  */
    1.17 ++
    1.18 ++#if HAVE_STDLIB_H
    1.19 ++#  include <string.h>
    1.20 ++#endif
    1.21 ++
    1.22 ++#ifndef strdup
    1.23 ++       choke me
    1.24 ++#endif
    1.25 + 
    1.26 ++main() { exit(0); }
    1.27 ++
    1.28 ++_ACEOF
    1.29 ++rm -f conftest.o conftest.obj
    1.30 ++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1.31 ++  (eval $ac_compile) 2>&5
    1.32 ++  ac_status=$?
    1.33 ++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1.34 ++  (exit $ac_status); }; then
    1.35 ++  ac_cv_strdup_macro=yes
    1.36 ++else
    1.37 ++  ac_cv_strdup_macro=no
    1.38 ++fi
    1.39 ++  
    1.40 + else
    1.41 +   cat >conftest.$ac_ext <<_ACEOF
    1.42 + /* confdefs.h.  */