aboutsummaryrefslogtreecommitdiff
path: root/example/m4/configure.m4
blob: b02fd72a5602bb8edbee8908331dff3db3db9908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
##########################################################################
# Build and install example applications
##########################################################################
AC_ARG_WITH([examples],
	    [AS_HELP_STRING([--without-examples],
			    [don't build and install example applications]
			    [[default=with]])],
	    [],
	    [with_examples=yes])
AM_CONDITIONAL([WITH_EXAMPLES], [test x$with_examples != xno])

##########################################################################
# Test examples during 'make check'
##########################################################################
AC_ARG_ENABLE([test-example],
    [AS_HELP_STRING([--enable-test-example],
		    [run basic test against examples [default=enabled]])],
    [test_example=$enableval],
    [test_example=yes])
AM_CONDITIONAL([test_example], [test x$test_example = xyes ])

AC_CONFIG_FILES([example/classifier/Makefile
		 example/cli/Makefile
		 example/debug/Makefile
		 example/generator/Makefile
		 example/hello/Makefile
		 example/ipsec_api/Makefile
		 example/ipsec_crypto/Makefile
		 example/ipfragreass/Makefile
		 example/l2fwd_simple/Makefile
		 example/l3fwd/Makefile
		 example/packet/Makefile
		 example/ping/Makefile
		 example/simple_pipeline/Makefile
		 example/switch/Makefile
		 example/sysinfo/Makefile
		 example/time/Makefile
		 example/timer/Makefile
		 example/traffic_mgmt/Makefile
		 example/Makefile])