File: configure.ac

package info (click to toggle)
biometric-authentication 0.9.61-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,040 kB
  • sloc: ansic: 8,332; python: 646; makefile: 345; xml: 232; sh: 170
file content (134 lines) | stat: -rw-r--r-- 4,564 bytes parent folder | download
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([biometric-authentication], [0.9.61], [https://github.com/ukui/biometric-authentication/issues])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/biometric-authenticationd.c])
AC_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_LIBTOOL

PKG_PROG_PKG_CONFIG

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])
IT_PROG_INTLTOOL([0.40])

# Checks for libraries.

PKG_CHECK_MODULES(GLIB_2, glib-2.0 >= 2.48)
PKG_CHECK_MODULES(GIO_2, gio-2.0 >= 2.48)
PKG_CHECK_MODULES(GIO_UNIX_2, gio-unix-2.0 >= 2.48)
PKG_CHECK_MODULES(GOBJECT_2, gobject-2.0 >= 2.48)
PKG_CHECK_MODULES(GTK_3, gtk+-3.0 >= 3.18)
PKG_CHECK_MODULES(LIBFPRINT, libfprint >= 0.7.0)
PKG_CHECK_MODULES(LIBUSB_1, libusb-1.0 >= 1.0.20)
PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.8)
PKG_CHECK_MODULES(UUID, uuid >= 2.27)
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1 >= 0.105)
AC_CHECK_LIB([dl], [dlsym])
AC_CHECK_LIB([m], [pow])
AC_CHECK_LIB([pthread], [pthread_mutex_trylock])
AC_CHECK_LIB([sqlite3], [sqlite3_prepare_v2])
AC_CHECK_LIB([libfprint], [fp_discover_devs])
AC_CHECK_LIB([usb-1.0], [libusb_hotplug_register_callback])
AC_CHECK_LIB([glib-2.0], [g_key_file_get_string])
AC_CHECK_LIB([uuid], [uuid_generate])

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h memory.h stdint.h stdlib.h \
				  string.h termios.h unistd.h dlfcn.h libgen.h \
				  libfprint/fprint.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([bzero memset mkdir pow strerror dlopen dlclose dlsym dlerror \
				pthread_create pthread_mutex_init pthread_mutex_trylock pthread_mutex_unlock \
				sqlite3_bind_int64 sqlite3_bind_parameter_index sqlite3_bind_text \
				sqlite3_column_int sqlite3_column_text sqlite3_close_v2 sqlite3_errmsg \
				sqlite3_exec sqlite3_finalize sqlite3_open_v2 sqlite3_close_v2 \
				sqlite3_prepare_v2 sqlite3_reset sqlite3_step \
				libusb_error_name libusb_exit libusb_get_device_descriptor \
				libusb_hotplug_register_callback libusb_init \
				g_error_free g_key_file_free g_key_file_get_boolean g_key_file_get_groups \
				g_key_file_get_string g_key_file_load_from_file g_key_file_new \
				g_list_append g_list_foreach g_list_free g_list_index g_list_remove \
				uuid_generate uuid_unparse_lower uuid_parse])

GETTEXT_PACKAGE=${PACKAGE_TARNAME}
AC_SUBST([GETTEXT_PACKAGE])

AC_CANONICAL_HOST

case "$host_cpu" in
	aarch64*)
		HOST_ARCH=arm64
		;;
	x86?64*)
		HOST_ARCH=amd64
		;;
esac

AM_CONDITIONAL(NEED_UD650, [test "X$HOST_ARCH" = "Xamd64" -o "X$HOST_ARCH" = "Xarm64"])


AC_ARG_WITH([bio-db-dir],
		AS_HELP_STRING([--with-bio-db-dir=DIR], [Directory for database file]),
		[BIO_DB_DIR="$withval"],
		[BIO_DB_DIR=""])
AC_SUBST([BIO_DB_DIR])
AM_CONDITIONAL(HAS_BIO_DB_DIR, test "X$BIO_DB_DIR" != "X")

AC_ARG_WITH([bio-db-name],
		AS_HELP_STRING([--with-bio-db-name=FILE], [Database file name]),
		[BIO_DB_NAME="$withval"],
		[BIO_DB_NAME=""])
AC_SUBST([BIO_DB_NAME])
AM_CONDITIONAL(HAS_BIO_DB_NAME, test "X$BIO_DB_NAME" != "X")

AC_ARG_WITH([bio-config-dir],
		AS_HELP_STRING([--with-bio-config-dir=DIR], [Directory for biometric config file]),
		[BIO_CONFIG_DIR="$withval"],
		[BIO_CONFIG_DIR="$"])
AC_SUBST([BIO_CONFIG_DIR])
AM_CONDITIONAL(HAS_BIO_CONFIG_DIR, test "X$BIO_CONFIG_DIR" != "X")

AC_ARG_WITH([bio-driver-dir],
		AS_HELP_STRING([--with-bio-driver-dir=DIR], [Directory for driver files]),
		[BIO_DRIVER_DIR="$withval"],
		[BIO_DRIVER_DIR=""])
AC_SUBST([BIO_DRIVER_DIR])
AM_CONDITIONAL(HAS_BIO_DRIVER_DIR, test "X$BIO_DRIVER_DIR" != "X")

AC_ARG_WITH([bio-extra-dir],
		AS_HELP_STRING([--with-bio-extra-dir=DIR], [Directory for extra files(driver and extra tools)]),
		[BIO_EXTRA_DIR="$withval"],
		[BIO_EXTRA_DIR=""])
AC_SUBST([BIO_EXTRA_DIR])
AM_CONDITIONAL(HAS_BIO_EXTRA_DIR, test "X$BIO_EXTRA_DIR" != "X")

AC_CONFIG_FILES([Makefile
				data/Makefile
				src/Makefile
				src/lib/Makefile
				src/lib/libbiometric.pc
				src/drivers/Makefile
				src/drivers/community-multidevice/Makefile
				src/drivers/community-multidevice/drivers/Makefile
				src/utils/Makefile
				src/utils/biometric-auth-client/Makefile
				src/utils/biometric-config-tool/Makefile
				src/utils/biometric-device-discover/Makefile
				src/utils/biometric-device-discover/community-multidevice/Makefile
				po/Makefile.in])
AC_OUTPUT