aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-rw-r--r--platform/linux-generic/m4/configure.m44
-rw-r--r--platform/linux-generic/m4/odp_netmap.m42
-rw-r--r--platform/linux-generic/m4/odp_pcap.m44
-rw-r--r--platform/linux-generic/m4/performance.m42
4 files changed, 11 insertions, 1 deletions
diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4
index 7dc83bf87..68a270d89 100644
--- a/platform/linux-generic/m4/configure.m4
+++ b/platform/linux-generic/m4/configure.m4
@@ -11,6 +11,9 @@ m4_include([platform/linux-generic/m4/odp_schedule.m4])
m4_include([platform/linux-generic/m4/performance.m4])
+AC_CONFIG_COMMANDS_PRE([dnl
+AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC],
+ [test "${with_platform}" = "linux-generic"])
AC_CONFIG_FILES([platform/linux-generic/Makefile
platform/linux-generic/libodp-linux.pc
platform/linux-generic/include/odp/api/plat/static_inline.h
@@ -21,3 +24,4 @@ AC_CONFIG_FILES([platform/linux-generic/Makefile
platform/linux-generic/test/pktio_ipc/Makefile
platform/linux-generic/test/ring/Makefile
platform/linux-generic/test/performance/Makefile])
+])
diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4
index 24ed4bc1d..85462c92e 100644
--- a/platform/linux-generic/m4/odp_netmap.m4
+++ b/platform/linux-generic/m4/odp_netmap.m4
@@ -43,4 +43,6 @@ fi
##########################################################################
CPPFLAGS=$OLD_CPPFLAGS
+AC_CONFIG_COMMANDS_PRE([dnl
AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ])
+])
diff --git a/platform/linux-generic/m4/odp_pcap.m4 b/platform/linux-generic/m4/odp_pcap.m4
index 0b5b8a2e2..0a8f35186 100644
--- a/platform/linux-generic/m4/odp_pcap.m4
+++ b/platform/linux-generic/m4/odp_pcap.m4
@@ -15,4 +15,6 @@ fi
AC_SUBST([PCAP_LIBS])
-AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes])
+AC_CONFIG_COMMANDS_PRE([dnl
+AM_CONDITIONAL([HAVE_PCAP], [test x$have_pcap = xyes])
+])
diff --git a/platform/linux-generic/m4/performance.m4 b/platform/linux-generic/m4/performance.m4
index 05b3a9905..f2e7107c0 100644
--- a/platform/linux-generic/m4/performance.m4
+++ b/platform/linux-generic/m4/performance.m4
@@ -5,4 +5,6 @@ AC_ARG_ENABLE([test-perf-proc],
[AS_HELP_STRING([--enable-test-perf-proc], [run test in test/performance in process mode])],
[test_perf_proc=$enableval],
[test_perf_proc=yes])
+AC_CONFIG_COMMANDS_PRE([dnl
AM_CONDITIONAL([test_perf_proc], [test x$test_perf_proc = xyes ])
+])