Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.in

    r3e5518a r6c09048  
    392392fi
    393393
     394# If we use DPDK we might be able to use libnuma
     395AC_CHECK_LIB(numa, numa_node_to_cpus, have_numa=1, have_numa=0)
     396
    394397# Checks for various "optional" libraries
    395398AC_CHECK_LIB(pthread, pthread_create, have_pthread=1, have_pthread=0)
     
    411414AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=1, have_clock_gettime=0)
    412415LIBS=
     416
     417if test "$have_numa" = 1; then
     418        LIBTRACE_LIBS="$LIBTRACE_LIBS -lnuma"
     419        AC_DEFINE(HAVE_LIBNUMA, 1, [Set to 1 if libnuma is supported])
     420        with_numa=yes
     421else
     422        AC_DEFINE(HAVE_LIBNUMA, 0, [Set to 1 if libnuma is supported])
     423        with_numa=no
     424fi
    413425
    414426if test "$dlfound" = 0; then
     
    445457
    446458if test "$have_clock_gettime" = 1; then
    447     LIBTRACE_LIBS="$LIBTRACE_LIBS -lrt"
     459        LIBTRACE_LIBS="$LIBTRACE_LIBS -lrt"
     460        AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Set to 1 if clock_gettime is supported])
     461        with_clock_gettime=yes
     462else
     463        AC_DEFINE(HAVE_CLOCK_GETTIME, 0, [Set to 1 if clock_gettime is supported])
     464        with_clock_gettime=no
    448465fi
    449466
     
    687704
    688705if test x"$libtrace_dpdk" = xtrue; then
    689     AC_MSG_NOTICE([Compiled with DPDK live capture support: Yes])
     706        AC_MSG_NOTICE([Compiled with DPDK live capture support: Yes])
     707        reportopt "Compiled with DPDK trace NUMA support" $with_numa
     708        reportopt "Compiled with clock_gettime support" $with_clock_gettime
    690709elif test x"$want_dpdk" != "xno"; then
    691710#   We don't officially support DPDK so only report failure if the user
    692711#   explicitly asked for DPDK. That way, we can hopefully keep it hidden
    693712#   from most users for now...
    694        
    695     AC_MSG_NOTICE([Compiled with DPDK live capture support: No])
    696     AC_MSG_NOTICE([Note: Requires DPDK v1.5 or newer])
     713
     714        AC_MSG_NOTICE([Compiled with DPDK live capture support: No])
     715        AC_MSG_NOTICE([Note: Requires DPDK v1.5 or newer])
    697716fi
    698717reportopt "Compiled with LLVM BPF JIT support" $JIT
Note: See TracChangeset for help on using the changeset viewer.