-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
85 lines (73 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dnl Autoconf file for building realsense codels library.
dnl
dnl Copyright (c) 2019 LAAS/CNRS
dnl All rights reserved.
dnl
dnl Redistribution and use in source and binary forms, with or without
dnl modification, are permitted provided that the following conditions are met:
dnl
dnl 1. Redistributions of source code must retain the above copyright
dnl notice and this list of conditions.
dnl 2. Redistributions in binary form must reproduce the above copyright
dnl notice and this list of conditions in the documentation and/or
dnl other materials provided with the distribution.
dnl
dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
dnl IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
dnl
dnl Martin Jacquet - September 2022
dnl
dnl Modified by: Selvakumar H S - August 2023
dnl
AC_PREREQ(2.59)
AC_INIT([realsense-genom3],[1.0],[[email protected]])
AC_CONFIG_MACRO_DIR([autoconf])
AC_CONFIG_AUX_DIR([autoconf])
AC_CONFIG_HEADERS([autoconf/acrealsense.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
vision-idl
genom3 >= 2.99.26
])
PKG_CHECK_MODULES(codels_requires, [
realsense2
opencv4
])
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/realsense.gen])
dnl Doc
AM_MISSING_PROG([ASCIIDOCTOR], [asciidoctor])
dnl Output
AC_CONFIG_FILES([
realsense-genom3.pc
realsense-genom3-uninstalled.pc
Makefile
codels/Makefile
])
AC_OUTPUT
AG_OUTPUT_TEMPLATES