--- rpl/Attic/configure.in 2011/09/20 19:31:15 1.90 +++ rpl/Attic/configure.in 2011/09/21 09:09:21 1.91 @@ -211,21 +211,27 @@ if test "$enableval" = "no"; then else IPCS_SYSV=yes fi], -[AC_MSG_CHECKING([for POSIX semaphores]) +REG=$LDFLAGS +LDFLAGS=-lrt +[AC_MSG_CHECKING([for POSIX semaphores and shared objects]) AC_RUN_IFELSE( [AC_LANG_PROGRAM([#include #include #include ], -[ int fd; char *sem = "/sem.test"; +[ int fd; char *sem = "/test"; fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); close(fd); shm_unlink(sem); + fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0); + close(fd); + sem_unlink(sem); return(0); ])], [IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)], [IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)] )] +LDFLAGS=$REG ) if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then