Changeset 860 for vendor/current/lib/replace/libreplace.m4
- Timestamp:
- May 12, 2014, 8:58:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/replace/libreplace.m4
r740 r860 67 67 68 68 AC_CHECK_HEADERS(stdbool.h stdint.h sys/select.h) 69 AC_CHECK_HEADERS(setjmp.h utime.h )69 AC_CHECK_HEADERS(setjmp.h utime.h sys/wait.h) 70 70 71 71 LIBREPLACE_PROVIDE_HEADER([stdint.h]) … … 106 106 AC_CHECK_HEADERS(stropts.h) 107 107 AC_CHECK_HEADERS(unix.h) 108 AC_CHECK_HEADERS(sys/ucontext.h) 108 109 109 110 AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror strerror_r) … … 267 268 268 269 270 dnl Check if the C compiler understands volatile (it should, being ANSI). 271 AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [ 272 AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0], 273 libreplace_cv_volatile=yes,libreplace_cv_volatile=no)]) 274 if test x"$libreplace_cv_volatile" = x"yes"; then 275 AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile]) 276 fi 277 278 m4_include(system/config.m4) 279 269 280 AC_CACHE_CHECK([for O_DIRECT flag to open(2)],libreplace_cv_HAVE_OPEN_O_DIRECT,[ 270 281 AC_TRY_COMPILE([ … … 278 289 AC_DEFINE(HAVE_OPEN_O_DIRECT,1,[Whether the open(2) accepts O_DIRECT]) 279 290 fi 280 281 282 dnl Check if the C compiler understands volatile (it should, being ANSI).283 AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [284 AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0],285 libreplace_cv_volatile=yes,libreplace_cv_volatile=no)])286 if test x"$libreplace_cv_volatile" = x"yes"; then287 AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])288 fi289 290 m4_include(system/config.m4)291 291 292 292 m4_include(dlfcn.m4) … … 325 325 if test x"$libreplace_cv_struct_timespec" = x"yes"; then 326 326 AC_DEFINE(HAVE_STRUCT_TIMESPEC,1,[Whether we have struct timespec]) 327 fi 328 329 AC_CACHE_CHECK([for ucontext_t type],libreplace_cv_ucontext_t, [ 330 AC_TRY_COMPILE([ 331 #include <signal.h> 332 #if HAVE_SYS_UCONTEXT_H 333 #include <sys/ucontext.h> 334 # endif 335 ],[ucontext_t uc; sigaddset(&uc.uc_sigmask, SIGUSR1);], 336 libreplace_cv_ucontext_t=yes,libreplace_cv_ucontext_t=no)]) 337 if test x"$libreplace_cv_ucontext_t" = x"yes"; then 338 AC_DEFINE(HAVE_UCONTEXT_T,1,[Whether we have ucontext_t]) 327 339 fi 328 340
Note:
See TracChangeset
for help on using the changeset viewer.