Changeset 259 for eaccelerator/trunk/config.m4
- Timestamp:
- 07/30/06 16:56:41 (2 years ago)
- Files:
-
- eaccelerator/trunk/config.m4 (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/config.m4
r258 r259 11 11 ]) 12 12 13 dnl 14 dnl configure options for eAccelerator 15 dnl 13 16 AC_ARG_WITH(eaccelerator,[],[enable_eaccelerator=$withval]) 14 17 … … 122 125 123 126 AC_REQUIRE_CPP() 127 128 dnl 129 dnl Do some tests for OS support 130 dnl 124 131 125 132 AC_HAVE_HEADERS(unistd.h limits.h sys/param.h sched.h) … … 152 159 153 160 161 dnl Test for union semun 154 162 AC_MSG_CHECKING(whether union semun is defined in sys/sem.h) 155 163 AC_TRY_COMPILE([ … … 171 179 mm_shm_mmap_posix=no 172 180 181 dnl sysvipc shared memory 173 182 AC_MSG_CHECKING(for sysvipc shared memory support) 174 183 AC_TRY_RUN([#define MM_SEM_NONE … … 182 191 EA_REMOVE_IPC_TEST() 183 192 193 dnl mmap shared memory 184 194 AC_MSG_CHECKING(for mmap shared memory support) 185 195 AC_TRY_RUN([#define MM_SEM_NONE … … 192 202 AC_MSG_RESULT([$msg]) 193 203 204 dnl mmap zero shared memory 194 205 AC_MSG_CHECKING(for mmap on /dev/zero shared memory support) 195 206 AC_TRY_RUN([#define MM_SEM_NONE … … 202 213 AC_MSG_RESULT([$msg]) 203 214 215 dnl mmap anonymous shared memory 204 216 AC_MSG_CHECKING(for anonymous mmap shared memory support) 205 217 AC_TRY_RUN([#define MM_SEM_NONE … … 212 224 AC_MSG_RESULT([$msg]) 213 225 226 dnl posix mmap shared memory support 214 227 AC_MSG_CHECKING(for posix mmap shared memory support) 215 228 AC_TRY_RUN([#define MM_SEM_NONE … … 222 235 AC_MSG_RESULT([$msg]) 223 236 237 dnl determine the best type 224 238 AC_MSG_CHECKING(for best shared memory type) 225 239 if test "$mm_shm_ipc" = "yes"; then … … 243 257 AC_MSG_RESULT([$msg]) 244 258 if test "$msg" = "no" ; then 245 AC_MSG_WARN([eaccelerator cannot detect shared memory type, which is required]) 246 fi 247 259 AC_MSG_ERROR([eaccelerator couldn't detect the shared memory type]) 260 fi 261 262 dnl 263 dnl 264 265 dnl spinlock test 248 266 AC_MSG_CHECKING(for spinlock semaphores support) 249 267 AC_TRY_RUN([#define MM_SEM_SPINLOCK … … 255 273 AC_MSG_RESULT([$msg]) 256 274 275 oldLIBS="$LIBS" 276 LIBS="-lpthread" 277 dnl pthread support 257 278 AC_MSG_CHECKING(for pthread semaphores support) 258 279 AC_TRY_RUN([#define MM_SEM_PTHREAD … … 264 285 AC_MSG_RESULT([$msg]) 265 286 287 dnl posix semaphore support 266 288 AC_MSG_CHECKING(for posix semaphores support) 267 289 AC_TRY_RUN([#define MM_SEM_POSIX … … 273 295 AC_MSG_RESULT([$msg]) 274 296 297 LIBS="$oldLIBS" 298 dnl sysvipc semaphore support 275 299 AC_MSG_CHECKING(for sysvipc semaphores support) 276 300 AC_TRY_RUN([#define MM_SEM_IPC … … 283 307 EA_REMOVE_IPC_TEST() 284 308 309 dnl fnctl semaphore support 285 310 AC_MSG_CHECKING(for fcntl semaphores support) 286 311 AC_TRY_RUN([#define MM_SEM_FCNTL … … 292 317 AC_MSG_RESULT([$msg]) 293 318 319 dnl flock semaphore support 294 320 AC_MSG_CHECKING(for flock semaphores support) 295 321 AC_TRY_RUN([#define MM_SEM_FLOCK … … 301 327 AC_MSG_RESULT([$msg]) 302 328 329 dnl Determine the best type 303 330 AC_MSG_CHECKING(for best semaphores type) 304 331 if test "$mm_sem_spinlock" = "yes"; then … … 329 356 AC_MSG_RESULT([$msg]) 330 357 if test "$msg" = "no" ; then 331 AC_MSG_ WARN([eaccelerator cannot semaphores type, which is required])358 AC_MSG_ERROR([eaccelerator cannot semaphores type, which is required]) 332 359 fi 333 360