Changeset 15247 in vbox for trunk/configure
- Timestamp:
- Dec 10, 2008 1:49:37 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 40663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r15057 r15247 84 84 LIBCRYPTO="-lcrypto" 85 85 LIBPTHREAD="-lpthread" 86 LIBCAP="-lcap" 86 87 LIBX11="-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11" 87 88 INCX11="/usr/local/include" … … 1569 1570 } 1570 1571 1572 # 1573 # Check for libcap. 1574 # Required to pass CAP_NET_RAW to our binaries to allow to open SOCK_RAW 1575 # sockets for doing ICMP requests. 1576 # 1577 check_libcap() 1578 { 1579 test_header "libcap library" 1580 cat > .tmp_src.cc << EOF 1581 #include <cstdio> 1582 #include <sys/capability.h> 1583 1584 extern "C" int main(void) 1585 { 1586 cap_t caps = cap_get_proc(); 1587 printf("Current caps are '%s'\n", cap_to_text(caps, NULL)); 1588 return 0; 1589 } 1590 EOF 1591 if test_compile $LIBCAP libcap libcap; then 1592 if test_execute; then 1593 log_success "found" 1594 fi 1595 fi 1596 } 1571 1597 1572 1598 # … … 2064 2090 cnf_append "VBOX_WITH_DBUS" "" 2065 2091 fi 2092 check_libcap 2066 2093 check_compiler_h 2067 2094 [ "$BUILD_MACHINE" = "amd64" ] && check_32bit
Note:
See TracChangeset
for help on using the changeset viewer.