-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
57 lines (46 loc) · 1.17 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
dnl Autoconf file for building T265 codels library.
AC_PREREQ(2.59)
AC_INIT([T265-genom3],[0.0],[])
AC_CONFIG_MACRO_DIR([autoconf])
AC_CONFIG_AUX_DIR([autoconf])
AC_CONFIG_HEADERS([autoconf/acT265.h])
AM_INIT_AUTOMAKE([foreign no-define])
dnl Compilers
dnl
LT_INIT([disable-static])
AC_PROG_CC
AC_PROG_CXX
dnl Require GNU make
AC_CACHE_CHECK([for GNU make], [ac_cv_path_MAKE],
[AC_PATH_PROGS_FEATURE_CHECK([MAKE], [make gmake],
[case `$ac_path_MAKE --version 2>/dev/null` in
*GNU*) ac_cv_path_MAKE=$ac_path_MAKE; ac_path_MAKE_found=:;;
esac],
[AC_MSG_ERROR([could not find GNU make])])])
AC_SUBST([MAKE], [$ac_cv_path_MAKE])
dnl External packages
PKG_CHECK_MODULES(requires, [
openrobots2-idl >= 2.0
genom3 >= 2.99.30
])
PKG_CHECK_MODULES(codels_requires, [
visp >= 3.3.1
])
AC_PATH_PROG(GENOM3, [genom3], [no])
if test "$GENOM3" = "no"; then
AC_MSG_ERROR([genom3 tool not found], 2)
fi
dnl --with-templates option
AG_OPT_TEMPLATES([$GENOM3 ],
[$srcdir/T265.gen])
dnl Doc
AM_MISSING_PROG([ASCIIDOCTOR], [asciidoctor])
dnl Output
AC_CONFIG_FILES([
T265-genom3.pc
T265-genom3-uninstalled.pc
Makefile
codels/Makefile
])
AC_OUTPUT
AG_OUTPUT_TEMPLATES