Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 370945
Collapse All | Expand All

(-)configure.in.ori (-16 / +28 lines)
Lines 423-432 Link Here
423
)
423
)
424
424
425
dnl Checking if interprocess posix semaphores works....
425
dnl Checking if interprocess posix semaphores works....
426
POSIX_SEMAPHORES="0"
426
AC_CACHE_CHECK([if posix 1003.1b interprocess semaphores works], ac_cv_10031b_ipc_sem,
427
AC_MSG_CHECKING(if posix 1003.1b interprocess semaphores works)
427
[AC_TRY_RUN([
428
AC_TRY_RUN(
429
[
430
#include <semaphore.h>
428
#include <semaphore.h>
431
#include <sys/wait.h>
429
#include <sys/wait.h>
432
430
Lines 452-469 Link Here
452
      exit(0);
450
      exit(0);
453
}
451
}
454
],
452
],
455
AC_DEFINE(HAVE_POSIX_SEMAPHORES,1,[Define HAVE_POSIX_SEMAPHORES if posix 1003.1b semaphores works])
453
ac_cv_10031b_ipc_sem=yes,
456
POSIX_SEMAPHORES="1"
454
ac_cv_10031b_ipc_sem=no,
457
AC_MSG_RESULT(yes),
455
[AC_MSG_ERROR([cross-compiling,
458
AC_MSG_RESULT(no)
456
	presetting ac_cv_10031b_ipc_sem=(yes|no) will help])]
459
)
457
)
458
])
459
AS_IF(
460
 [test $ac_cv_10031b_ipc_sem = yes],
461
 [AC_DEFINE(HAVE_POSIX_SEMAPHORES,1,[Define HAVE_POSIX_SEMAPHORES if posix 1003.1b semaphores works])
462
  POSIX_SEMAPHORES="1"
463
 ],[
464
  POSIX_SEMAPHORES="0"
465
 ])
460
AC_SUBST(POSIX_SEMAPHORES)
466
AC_SUBST(POSIX_SEMAPHORES)
461
467
462
dnl Checking for file locking
468
dnl Checking for file locking
463
POSIX_FILE_LOCK="0"
469
AC_CACHE_CHECK([if fcntl file locking works], ac_cv_fcntl,
464
AC_MSG_CHECKING(if fcntl file locking works)	
470
[AC_TRY_RUN([
465
AC_TRY_RUN(
466
[
467
#include <unistd.h>
471
#include <unistd.h>
468
#include <fcntl.h>
472
#include <fcntl.h>
469
473
Lines 487-497 Link Here
487
     return 0;
491
     return 0;
488
}
492
}
489
],
493
],
490
AC_DEFINE(HAVE_POSIX_FILE_LOCK,1,[Define HAVE_POSIX_FILE_LOCK if posix fcntl file locking works])
494
ac_cv_fcntl=yes,
491
POSIX_FILE_LOCK="1"
495
ac_cv_fcntl=no,
492
AC_MSG_RESULT(yes),
496
[AC_MSG_ERROR([cross-compiling,
493
AC_MSG_RESULT(no)
497
	presetting ac_cv_fcntl=(yes|no) will help])]
494
)
498
)
499
])
500
AS_IF(
501
 [test $ac_cv_fcntl = yes],
502
 [AC_DEFINE(HAVE_POSIX_FILE_LOCK,1,[Define HAVE_POSIX_FILE_LOCK if posix fcntl file locking works])
503
  POSIX_FILE_LOCK="1"
504
 ],[
505
  POSIX_FILE_LOCK="0"
506
 ])
495
AC_SUBST(POSIX_FILE_LOCK)
507
AC_SUBST(POSIX_FILE_LOCK)
496
508
497
#pthread_rwlock
509
#pthread_rwlock

Return to bug 370945