Code

Modify DPDK CFLAGS
[collectd.git] / configure.ac
index 5b7a950589334e85981be66ae9b5dfd07ea620af..82ea4bb265a118e77c5b9dce8f34da859e74097f 100644 (file)
@@ -2438,7 +2438,7 @@ then
 
        SAVE_CFLAGS="$CFLAGS"
        SAVE_LDFLAGS="$LDFLAGS"
-       CFLAGS="$CFLAGS -mavx -I$DPDK_INCLUDE"
+       CFLAGS="$CFLAGS -I$DPDK_INCLUDE"
        if test "x$LOCAL_DPDK_INSTALL" != "xtrue"
         then
             LDFLAGS="$LDFLAGS -L$DPDK_LIB_DIR"
@@ -2457,23 +2457,6 @@ then
         then
            AC_MSG_ERROR([cannot link with dpdk in $DPDK_LIB_DIR])
        fi
-       BUILD_WITH_DPDK_CFLAGS=""
-       AC_MSG_NOTICE([Checking for avx instructions])
-       AC_RUN_IFELSE(
-               [AC_LANG_PROGRAM(
-[[
-#include <immintrin.h>
-]],
-[[
-__m128i zero = _mm_setzero_si128();
-]]
-       )],
-               [HAVE_AVX=true], [HAVE_AVX=false])
-       if test "x$HAVE_AVX" = "xtrue"
-       then
-               BUILD_WITH_DPDK_CFLAGS="-mavx "
-               AC_MSG_NOTICE([avx instructions supported])
-       fi
 
        BUILD_WITH_DPDK_CFLAGS+="-fPIC -I$DPDK_INCLUDE"
        if test "x$LOCAL_DPDK_INSTALL" != "xtrue"
@@ -6379,7 +6362,7 @@ AC_MSG_RESULT([    libaquaero5 . . . . . $with_libaquaero5])
 AC_MSG_RESULT([    libatasmart . . . . . $with_libatasmart])
 AC_MSG_RESULT([    libcurl . . . . . . . $with_libcurl])
 AC_MSG_RESULT([    libdbi  . . . . . . . $with_libdbi])
-    libdpdk . . . . . . . $with_libdpdk
+AC_MSG_RESULT([    libdpdk . . . . . . . $with_libdpdk])
 AC_MSG_RESULT([    libesmtp  . . . . . . $with_libesmtp])
 AC_MSG_RESULT([    libganglia  . . . . . $with_libganglia])
 AC_MSG_RESULT([    libgcrypt . . . . . . $with_libgcrypt])
@@ -6463,10 +6446,10 @@ AC_MSG_RESULT([    curl  . . . . . . . . $enable_curl])
 AC_MSG_RESULT([    curl_json . . . . . . $enable_curl_json])
 AC_MSG_RESULT([    curl_xml  . . . . . . $enable_curl_xml])
 AC_MSG_RESULT([    dbi . . . . . . . . . $enable_dbi])
-    dpdkstat . . . . . . .$enable_dpdkstat
 AC_MSG_RESULT([    df  . . . . . . . . . $enable_df])
 AC_MSG_RESULT([    disk  . . . . . . . . $enable_disk])
 AC_MSG_RESULT([    dns . . . . . . . . . $enable_dns])
+AC_MSG_RESULT([    dpdkstat . . . . . . .$enable_dpdkstat])
 AC_MSG_RESULT([    drbd  . . . . . . . . $enable_drbd])
 AC_MSG_RESULT([    email . . . . . . . . $enable_email])
 AC_MSG_RESULT([    entropy . . . . . . . $enable_entropy])