patch-configure 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. --- monit-5.0.3.orig/configure 2009-05-28 23:48:01.000000000 +0200
  2. +++ monit-5.0.3/configure 2009-06-13 12:57:55.000000000 +0200
  3. @@ -10206,81 +10206,13 @@ fi
  4. # Architecture/OS detection
  5. # ------------------------------------------------------------------------
  6. -# Backward compatibility until we get ride of arch settings
  7. -if test `uname` = "SunOS"
  8. -then
  9. - ARCH="SOLARIS"
  10. - CFLAGS="$CFLAGS -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
  11. - test_kstat="true"
  12. -
  13. -cat >>confdefs.h <<\_ACEOF
  14. -#define HAVE_CPU_WAIT 1
  15. -_ACEOF
  16. -
  17. -elif test `uname` = "Linux"
  18. -then
  19. - ARCH="LINUX"
  20. - CFLAGS="$CFLAGS -D _REENTRANT"
  21. - if test `uname -r | awk -F '.' '{print$1$2}'` -ge "26"
  22. - then
  23. -
  24. -cat >>confdefs.h <<\_ACEOF
  25. -#define HAVE_CPU_WAIT 1
  26. -_ACEOF
  27. -
  28. - fi
  29. -elif test `uname` = "HP-UX"
  30. -then
  31. - ARCH="HPUX"
  32. - CFLAGS="$CFLAGS -D _REENTRANT"
  33. -
  34. -cat >>confdefs.h <<\_ACEOF
  35. -#define HAVE_CPU_WAIT 1
  36. -_ACEOF
  37. -
  38. -elif test `uname` = "OpenBSD"
  39. -then
  40. - ARCH="OPENBSD"
  41. - CFLAGS="$CFLAGS -D _REENTRANT"
  42. - test_kvm="true"
  43. -elif test `uname` = "FreeBSD"
  44. -then
  45. - ARCH="FREEBSD"
  46. - CFLAGS="$CFLAGS -D _REENTRANT"
  47. - test_kvm="true"
  48. -elif test `uname` = "NetBSD"
  49. -then
  50. - ARCH="NETBSD"
  51. - CFLAGS="$CFLAGS -D _REENTRANT"
  52. - test_kvm="true"
  53. -elif test `uname` = "Darwin"
  54. -then
  55. - ARCH="DARWIN"
  56. - CFLAGS="$CFLAGS -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED"
  57. - test_kvm="true"
  58. - LIBS="$LIBS -framework System -multiply_defined suppress"
  59. -elif test `uname` = "AIX"
  60. -then
  61. - ARCH="AIX"
  62. - CFLAGS="$CFLAGS -D _REENTRANT"
  63. - LIBS="$LIBS -lodm"
  64. - # AIX v. 5.2
  65. - LIBS="$LIBS -lcfg"
  66. - # AIX v. 5.3
  67. - LIBS="$LIBS -lperfstat"
  68. +ARCH="LINUX"
  69. +CFLAGS="$CFLAGS -D _REENTRANT"
  70. cat >>confdefs.h <<\_ACEOF
  71. #define HAVE_CPU_WAIT 1
  72. _ACEOF
  73. -else
  74. - { echo "$as_me:$LINENO: WARNING: Architecture not supported: \`uname\`." >&5
  75. -echo "$as_me: WARNING: Architecture not supported: \`uname\`." >&2;}
  76. - CFLAGS="$CFLAGS -D _REENTRANT"
  77. - ARCH="UNKNOWN"
  78. -fi
  79. -
  80. -
  81. # ------------------------------------------------------------------------
  82. # Resource code
  83. # ------------------------------------------------------------------------