You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
849 B

  1. --- a/configure.in
  2. +++ b/configure.in
  3. @@ -1191,8 +1191,9 @@ AC_CHECK_FILE(/dev/zero)
  4. # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
  5. if test "$ac_cv_func_mmap" = "yes" &&
  6. test "$ac_cv_file__dev_zero" = "yes"; then
  7. - AC_MSG_CHECKING(for mmap that can map /dev/zero)
  8. - AC_TRY_RUN([
  9. + AC_CACHE_CHECK([for mmap that can map /dev/zero],
  10. + [ac_cv_mmap__dev_zero],
  11. + [AC_TRY_RUN([
  12. #include <sys/types.h>
  13. #include <sys/stat.h>
  14. #include <fcntl.h>
  15. @@ -1215,9 +1216,7 @@ if test "$ac_cv_func_mmap" = "yes" &&
  16. return 3;
  17. }
  18. return 0;
  19. - }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])
  20. -
  21. - AC_MSG_RESULT($ac_cv_file__dev_zero)
  22. + }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])])
  23. fi
  24. # Now we determine which one is our anonymous shmem preference.