as_fn_error $? "FreeRADIUS requires libtalloc" "$LINENO" 5
fi
-if test "x$ac_cv_header_sys_event_h" != "xyes"; then
- smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
+smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
ac_safe=`echo "sys/event.h" | sed 'y%./+-%__pm%'`
smart_prefix=
- if test "x$ac_cv_header_sys_event_h" != "xyes"; then
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: kqueue headers not found. Use --with-kqueue-include-dir=<path>." >&5
+if test "x$ac_cv_header_sys_event_h" != "xyes"; then
+ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: kqueue headers not found. Use --with-kqueue-include-dir=<path>." >&5
printf "%s\n" "$as_me: WARNING: kqueue headers not found. Use --with-kqueue-include-dir=<path>." >&2;}
- as_fn_error $? "FreeRADIUS requires libkqueue (or system kqueue)" "$LINENO" 5
- fi
+ as_fn_error $? "FreeRADIUS requires libkqueue (or system kqueue)" "$LINENO" 5
fi
case "$target" in
dnl #
dnl # Check for kqueue header files
dnl #
+smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
+FR_SMART_CHECK_INCLUDE([sys/event.h])
if test "x$ac_cv_header_sys_event_h" != "xyes"; then
- smart_try_dir="${kqueue_include_dir:-/usr/include/kqueue}"
- FR_SMART_CHECK_INCLUDE([sys/event.h])
- if test "x$ac_cv_header_sys_event_h" != "xyes"; then
- AC_MSG_WARN([kqueue headers not found. Use --with-kqueue-include-dir=<path>.])
- AC_MSG_ERROR([FreeRADIUS requires libkqueue (or system kqueue)])
- fi
+ AC_MSG_WARN([kqueue headers not found. Use --with-kqueue-include-dir=<path>.])
+ AC_MSG_ERROR([FreeRADIUS requires libkqueue (or system kqueue)])
fi
dnl #