-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
39 lines (32 loc) · 1.02 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
AC_INIT([firefly-mv-utils], [0.2.1], [[email protected]])
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_DISABLE_SHARED
PKG_CHECK_MODULES(DC1394, libdc1394-2 >= 2.1)
AC_SUBST(DC1394_CFLAGS)
AC_SUBST(DC1394_LIBS)
PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_ARG_ENABLE([gtk], [ --enable-gtk build gtk+ utils],[
PKG_CHECK_MODULES(GTK, gtk+-2.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
enable_gtk=$enableval
],
enable_gtk=no)
AM_CONDITIONAL([ENABLE_GTK], [test x$enable_gtk = xyes])
AC_ARG_ENABLE([opencv], [ --enable-opencv build opencv utils],[
PKG_CHECK_MODULES(OPENCV, opencv >= 2.1.0)
AC_SUBST(OPENCV_CFLAGS)
AC_SUBST(OPENCV_LIBS)
enable_opencv=$enableval
],
enable_opencv=no)
AM_CONDITIONAL([ENABLE_OPENCV], [test x$enable_opencv = xyes])
AC_CONFIG_FILES([Makefile firefly-mv-utils-opencv.pc firefly-mv-utils-gtk.pc firefly-mv-utils.pc])
AC_OUTPUT