patch-configure.orig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- pacemaker-1.0.11.orig/configure 2011-05-24 17:00:37.000000000 +0200
  2. +++ pacemaker-1.0.11/configure 2011-05-24 17:39:43.000000000 +0200
  3. @@ -12484,7 +12484,7 @@ $as_echo_n "checking for $2 in $1... " >
  4. printf "#include <stdio.h>\n" > ${Cfile}.c
  5. printf "#include <%s>\n" $1 >> ${Cfile}.c
  6. printf "int main(int argc, char **argv) { printf(\"%%s\", %s); return 0; }\n" $2 >> ${Cfile}.c
  7. - $CC $CFLAGS ${Cfile}.c -o ${Cfile}
  8. + $CC_FOR_BUILD $CFLAGS_FOR_BUILD ${Cfile}.c -o ${Cfile}
  9. value=`${Cfile}`
  10. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $value" >&5
  11. $as_echo "$value" >&6; }
  12. @@ -12713,33 +12713,11 @@ $as_echo "$as_me: WARNING: $j directory
  13. done
  14. -case "$host_os" in
  15. -*bsd*) LIBS="-L/usr/local/lib"
  16. - CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  17. - INIT_EXT=".sh"
  18. - ;;
  19. -*solaris*)
  20. - ;;
  21. -*linux*)
  22. -
  23. cat >>confdefs.h <<_ACEOF
  24. #define ON_LINUX 1
  25. _ACEOF
  26. - CFLAGS="$CFLAGS -I${prefix}/include"
  27. - ;;
  28. -darwin*)
  29. -
  30. -cat >>confdefs.h <<_ACEOF
  31. -#define ON_DARWIN 1
  32. -_ACEOF
  33. -
  34. - LIBS="$LIBS -L${prefix}/lib"
  35. - CFLAGS="$CFLAGS -I${prefix}/include"
  36. - ;;
  37. -esac
  38. -
  39. -CFLAGS="$CFLAGS -I${prefix}/include/heartbeat"
  40. +CFLAGS="$CFLAGS -I${includedir}/heartbeat"
  41. @@ -17159,7 +17137,6 @@ else
  42. # We had to eliminate -Wnested-externs because of libtool changes
  43. EXTRA_FLAGS="-fgnu89-inline
  44. - -fstack-protector-all
  45. -Wall
  46. -Waggregate-return
  47. -Wbad-function-cast