Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- support for vde network
- support for netmap network
- Linux io_uring support
- ##########################################
- # vde libraries probe
- if test "$vde" != "no" ; then
- vde_libs="-lvdeplug"
- cat > $TMPC << EOF
- #include <libvdeplug.h>
- int main(void)
- {
- struct vde_open_args a = {0, 0, 0};
- char s[] = "";
- vde_open(s, s, &a);
- return 0;
- }
- EOF
- if compile_prog "" "$vde_libs" ; then
- vde=yes
- else
- if test "$vde" = "yes" ; then
- feature_not_found "vde" "Install vde (Virtual Distributed Ethernet) devel"
- fi
- vde=no
- fi
- fi
- ##########################################
- # vmnet.framework probe
- if test "$vmnet" != "no" ; then
- vmnet_flags="-framework vmnet"
- cat > $TMPC << EOF
- #include <vmnet/vmnet.h>
- int main(void)
- {
- (void) vmnet_allocate_mac_address_key;
- return 0;
- }
- EOF
- if compile_prog "" "$vmnet_flags" ; then
- vmnet=yes
- else
- if test "$vmnet" = "yes" ; then
- feature_not_found "vmnet" "'vmnet.framework' in unsupported in this build"
- fi
- vmnet=no
- fi
- fi
- ##########################################
- # netmap support probe
- # Apart from looking for netmap headers, we make sure that the host API version
- # supports the netmap backend (>=11). The upper bound (15) is meant to simulate
- # a minor/major version number. Minor new features will be marked with values up
- # to 15, and if something happens that requires a change to the backend we will
- # move above 15, submit the backend fixes and modify this two bounds.
- if test "$netmap" != "no" ; then
- cat > $TMPC << EOF
- #include <inttypes.h>
- #include <net/if.h>
- #include <net/netmap.h>
- #include <net/netmap_user.h>
- #if (NETMAP_API < 11) || (NETMAP_API > 15)
- #error
- #endif
- int main(void) { return 0; }
- EOF
- if compile_prog "" "" ; then
- netmap=yes
- else
- if test "$netmap" = "yes" ; then
- feature_not_found "netmap"
- fi
- netmap=no
- fi
- fi
- ##########################################
- # detect CoreAudio
- if test "$coreaudio" != "no" ; then
- coreaudio_libs="-framework CoreAudio"
- cat > $TMPC << EOF
- #include <CoreAudio/CoreAudio.h>
- int main(void)
- {
- return (int)AudioGetCurrentHostTime();
- }
- EOF
- if compile_prog "" "$coreaudio_libs" ; then
- coreaudio=yes
- else
- coreaudio=no
- fi
- fi
Add Comment
Please, Sign In to add comment