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.

23 lines
638 B

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -80,6 +80,20 @@ gl_VISIBILITY
  4. AC_CHECK_HEADERS([sys/klog.h])
  5. AC_CHECK_FUNCS([klogctl])
  6. +AC_CACHE_CHECK([for ioctl with POSIX signature],
  7. + [gl_cv_func_ioctl_posix_signature],
  8. + [AC_COMPILE_IFELSE(
  9. + [AC_LANG_PROGRAM(
  10. + [[#include <sys/ioctl.h>]],
  11. + [[int ioctl (int, int, ...);]])
  12. + ],
  13. + [gl_cv_func_ioctl_posix_signature=yes],
  14. + [gl_cv_func_ioctl_posix_signature=no])
  15. + ])
  16. +if test "x$gl_cv_func_ioctl_posix_signature" = xyes; then
  17. + AC_DEFINE([HAVE_POSIX_IOCTL], [1], [Have ioctl with POSIX signature])
  18. +fi
  19. +
  20. # Check host os
  21. case "$host_os" in
  22. linux*)