File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
308
308
else ()
309
309
set (WITH_CAPSICUM OFF )
310
310
endif ()
311
- option (WITH_CAP_NG "Use libcap-ng, if available" ON )
311
+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
312
+ option (WITH_CAP_NG "Use libcap-ng, if available" ON )
313
+ else ()
314
+ set (WITH_CAP_NG OFF )
315
+ endif ()
312
316
option (ENABLE_SMB "Build with the SMB dissector" OFF )
313
317
314
318
#
Original file line number Diff line number Diff line change 1070
1070
# Check for libcap-ng
1071
1071
AC_MSG_CHECKING ( whether to use libcap-ng )
1072
1072
# Specify location for both includes and libraries.
1073
- want_libcap_ng=ifavailable
1074
1073
AC_ARG_WITH ( cap_ng ,
1075
1074
AS_HELP_STRING ( [ --with-cap-ng] ,
1076
1075
[ use libcap-ng @<:@ default=yes, if available@:>@ ] ) ,
@@ -1091,6 +1090,10 @@ AC_ARG_WITH(cap_ng,
1091
1090
want_libcap_ng=ifavailable
1092
1091
AC_MSG_RESULT ( [ yes, if available] )
1093
1092
] )
1093
+
1094
+ # libcap-ng is available on Linux only.
1095
+ expr "$host_os" : linux >/dev/null || want_libcap_ng=no
1096
+
1094
1097
if test "$want_libcap_ng" != "no"; then
1095
1098
AC_CHECK_LIB ( cap-ng , capng_change_id )
1096
1099
AC_CHECK_HEADERS ( cap-ng.h )
You can’t perform that action at this time.
0 commit comments