|
|
|
|
@ -68,6 +68,19 @@ AC_MSG_RESULT([$os_windows])
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL([OS_WINDOWS], [test "x$os_windows" = "xyes"]) |
|
|
|
|
|
|
|
|
|
# ==================== DETECT FREEBSD ==================== |
|
|
|
|
AC_MSG_CHECKING([for FreeBSD]) |
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
|
|
|
#ifndef __FreeBSD__ |
|
|
|
|
#error "Not FreeBSD" |
|
|
|
|
#endif |
|
|
|
|
]], [[ return 0; ]])], |
|
|
|
|
[os_freebsd=yes], |
|
|
|
|
[os_freebsd=no]) |
|
|
|
|
AC_MSG_RESULT([$os_freebsd]) |
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL([OS_FREEBSD], [test "x$os_freebsd" = "xyes"]) |
|
|
|
|
|
|
|
|
|
# Checks for header files, typedefs, functions... |
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h]) |
|
|
|
|
AC_TYPE_SIZE_T |
|
|
|
|
|