patch-configure.orig 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:31:21.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"