-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
67 lines (53 loc) · 1.6 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
dnl Autoconf file for building FoxgloveStudio codels library.
AC_PREREQ(2.59)
AC_INIT([FoxgloveStudio-genom3],[1.0],[[email protected]])
AC_CONFIG_MACRO_DIR([autoconf])
AC_CONFIG_AUX_DIR([autoconf])
AC_CONFIG_HEADERS([autoconf/acFoxgloveStudio.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, [
felix-idl
vision-idl
genom3 >= 2.99.26
])
PKG_CHECK_MODULES(codels_requires, [
opencv4, felix-g3utils, vision-idl, flatbuffers, openssl, zlib
])
AC_PATH_PROG(GENOM3, [genom3], [no])
if test "$GENOM3" = "no"; then
AC_MSG_ERROR([genom3 tool not found], 2)
fi
dnl load binary schemas
AC_ARG_WITH([flatbuffers-schema],
[AS_HELP_STRING([--with-flatbuffers-schema=DIR], [Specify the path to the external flatbuffers binary schema directory])],
[EXTERNAL_MODELS_DIR="$with_external_models"],
[EXTERNAL_MODELS_DIR="$srcdir/flatbuffers/schema"])
AC_SUBST([EXTERNAL_MODELS_DIR])
dnl --with-templates option
AG_OPT_TEMPLATES([$GENOM3 ],
[$srcdir/foxglove.gen])
dnl Doc
AM_MISSING_PROG([ASCIIDOCTOR], [asciidoctor])
dnl Output
AC_CONFIG_FILES([
FoxgloveStudio-genom3.pc
FoxgloveStudio-genom3-uninstalled.pc
Makefile
codels/Makefile
])
AC_OUTPUT
AG_OUTPUT_TEMPLATES