-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
114 lines (92 loc) · 2.43 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
dnl
dnl autoreconf --force --install ; ./configure ; make
dnl
dnl Process this file with autoconf to produce a configure script.
dnl subdir-objects
AC_INIT([LensRotaryDecoder], [1.0])
dnl AM_INIT_AUTOMAKE([no-dependencies foreign])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_HEADERS(config.h)
dnl AM_CONDITIONAL([AMDEP],true)
AM_MAINTAINER_MODE
dnl AC_PROG_RANLIB
AC_ISC_POSIX
: ${CFLAGS="-g3 -ggdb -O0 -Wall"}
AC_PROG_CC
AC_GNU_SOURCE
AM_PROG_CC_STDC
AM_PROG_CC_C_O
AC_HEADER_STDC
AC_PROG_CXX
AM_PROG_AS
dnl AC_PROG_RANLIB
dnl LT_INIT([disable-static])
AC_SUBST([LIBTOOL_DEPS])
AC_CHECK_FUNCS(localtime_r)
DATADIRNAME="share"
LIBDEP="-lpthread"
case "${host}" in
*-*-mingw32*)
LIBDEP="$LIBDEP -lws2_32 -lwsock32 -lwinmm"
win32=true
AC_CHECK_DECLS([localtime_r], [], [], [#include <time.h>])
;;
esac
AC_SUBST(LIBDEP)
AM_CONDITIONAL([WIN32], [test x$win32 = xtrue])
AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([dl], [dlopen])
AC_ARG_WITH([vrpn],
[AS_HELP_STRING([--with-vrpn=path], [path to VRPN framework])],
[VRPN_PATH=$withval],
[VRPN_PATH=/usr/local/vrpn/usr/local])
AC_SUBST(VRPN_PATH)
VRPN_CFLAGS="-I$VRPN_PATH/include"
AC_SUBST(VRPN_CFLAGS)
VRPN_LIBS="-L$VRPN_PATH/lib -lvrpnserver -lvrpn -lquat"
AC_SUBST(VRPN_LIBS)
STD_CFLAGS="-std=gnu99"
AC_SUBST(STD_CFLAGS)
PKG_CHECK_MODULES(WEBSOCKETS, [libwebsockets])
AC_SUBST(WEBSOCKETS_CFLAGS)
AC_SUBST(WEBSOCKETS_LIBS)
PKG_CHECK_MODULES(OPENCV, [opencv4])
AC_SUBST(OPENCV_CFLAGS)
AC_SUBST(OPENCV_LIBS)
PKG_CHECK_MODULES(HIDAPI, [hidapi-libusb])
AC_SUBST(HIDAPI_CFLAGS)
AC_SUBST(HIDAPI_LIBS)
PKG_CHECK_MODULES(LIBUSB, [libusb-1.0])
AC_SUBST(LIBUSB_CFLAGS)
AC_SUBST(LIBUSB_LIBS)
AM_PATH_XML2(2.4.0)
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=TheCoreElements
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE","")
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
PROGRAMNAME_LOCALEDIR=[${datadir}/locale]
AC_SUBST(PROGRAMNAME_LOCALEDIR)
dnl Add the languages which your application supports here.
dnl #ALL_LINGUAS=""
dnl #AM_GLIB_GNU_GETTEXT
dnl Use -Wall if we have gcc.
changequote(,)dnl
if test "x$GCC" = "xyes"; then
case " $CFLAGS " in
*[\ \ ]-Wall[\ \ ]*) ;;
*) CFLAGS="$CFLAGS -Wall" ;;
esac
fi
changequote([,])dnl
AC_OUTPUT([
Makefile
po/Makefile.in
src/Makefile
src/ez-usb/Makefile
src/stm32_rot_dec_1x3/Makefile
src/stm32_rot_dec_3x1/Makefile
src/stm32_fpga_uart/Makefile
src/mojo_rot_dec/Makefile
])