-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
64 lines (58 loc) · 2.45 KB
/
configure.ac
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
dnl Process this file with autoconf 2.69+ to produce a configure script.
dnl
dnl Copyright (c) 2018,2019 NIC.br <[email protected]>
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation, either version 3 of the License, or
dnl (at your option) any later version. In every case, additional
dnl restrictions and permissions apply, refer to the COPYING file in the
dnl program Source for details.
dnl
dnl This program is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl General Public License and the COPYING file in the program Source
dnl for details.
AC_PREREQ([2.69])
AC_INIT([simet-ma], m4_esyscmd_s([./version.sh]),
[simet-ma],
[http://simet.nic.br])
AC_COPYRIGHT([Copyright (c) 2018,2019 NIC.br <[email protected]>])
AC_CONFIG_AUX_DIR([.])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.13 tar-pax gnu no-dist-gzip dist-xz -Wall])
AC_CONFIG_FILES([Makefile simet-api/Makefile cmake-projects/Makefile])
AC_CONFIG_SUBDIRS([twamp-client-c tcpbw-client-c inetup-client-c simet-dnsaddr-c simet-runner simet-api/utils])
AC_SUBST([CONFIG_STATUS_DEPENDENCIES], ['$(top_srcdir)/version.sh $(top_srcdir)/version'])
dnl MKDIR_P is used by our makefiles
AC_PROG_MKDIR_P
AC_ARG_ENABLE([simetbox],
[AC_HELP_STRING([--enable-simetbox],
[build for SIMETBOX (OpenWRT)])],
[case "${enableval}" in
yes) simetbox=true ;;
no) simetbox=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-simetbox]) ;;
esac],
[simetbox=false])
AM_CONDITIONAL([SIMETBOX_BUILD], [test x$simetbox = xtrue])
AM_COND_IF([SIMETBOX_BUILD],
[AC_MSG_NOTICE([building for SIMETBOX (OpenWRT)])] )
AC_ARG_ENABLE([simet-spoofer],
[AC_HELP_STRING([--disable-simet-spoofer],
[disable SIMET spoofer measurement])],
[case "${enableval}" in
yes) simetspoofer=true ;;
no) simetspoofer=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable/disable-simet-spoofer]) ;;
esac],
[simetspoofer=true])
AM_CONDITIONAL([ENABLE_SSPOOFER], [test x$simetspoofer = xtrue ])
AM_COND_IF([ENABLE_SSPOOFER],
[
AC_CONFIG_SUBDIRS([sspoofer-client-c])
AC_MSG_NOTICE([including sspoofer measurement])
] )
AC_OUTPUT