-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
67 lines (51 loc) · 1.27 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
65
66
67
AC_INIT([usf],[1.0.0], [[email protected]])
AC_PREREQ(2.59)
AC_CONFIG_AUX_DIR([.])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AC_PROG_CXX
AC_PROG_RANLIB
AC_PROG_CC_STDC
AC_CHECK_HEADERS([argp.h],
[ have_argp=true ], [
AC_MSG_WARN([GNU Argp not found, some tools will be disabled.])
have_argp=false
])
AM_CONDITIONAL([HAVE_ARGP], [ test x$have_argp = xtrue ])
AC_CHECK_FUNCS([strndup strnlen])
AC_CHECK_LIB([bz2], [BZ2_bzReadOpen])
AC_ARG_ENABLE([debug-log],
AS_HELP_STRING([--enable-debug-log],
[Enable debug logging (default: disabled)]),
[
AC_DEFINE([ENABLE_DEBUG_LOG], [1], [Enable debug logging.])
])
AC_ARG_ENABLE([strict],
AS_HELP_STRING([--disable-strict],
[Disable strict compile time checks.]),
[
true
], [
CFLAGS="-Werror ${CFLAGS}"
])
AC_MSG_CHECKING([for PIN])
AC_ARG_VAR([PIN_HOME], [ Path to PIN toolkit ])
if [ test "$PIN_HOME" != "" ] && \
[ test -e ${PIN_HOME}/source/tools/makefile.gnu.config ]; then
have_pin=true
AC_MSG_RESULT([ yes ($PIN_HOME) ])
else
AC_MSG_RESULT([no])
fi
AM_CONDITIONAL([HAVE_PIN], [ test x$have_pin = xtrue ])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
include/Makefile
include/uart/Makefile
lib/Makefile
tools/Makefile
pin/Makefile
test/Makefile
])
AC_OUTPUT