-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
68 lines (60 loc) · 2.81 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
AC_PREREQ([2.68])
AC_INIT([fmradioservice], [1.0], [https://github.com/PDXostc/fm_radio-native/issues], [], [https://github.com/PDXostc/fm_radio-native])
AC_CONFIG_SRCDIR([src/fm_radio_service.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([Makefile src/Makefile data/Makefile])
AC_CONFIG_SUBDIRS([gst-sdr-j-fm])
AM_INIT_AUTOMAKE([1.12 foreign tar-ustar dist-xz no-dist-gzip -Wall -Werror -Wno-portability])
AM_SILENT_RULES([yes])
LT_PREREQ([2.4])
LT_INIT([disable-static])
AC_PROG_CC
AC_PROG_SED
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.36])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.36])
PKG_CHECK_MODULES([GOBJECT], [gobject-2.0 >= 2.36])
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 1.6])
PKG_CHECK_MODULES([DBUS_GLIB], [dbus-glib-1])
PKG_CHECK_MODULES([GST], [gstreamer-1.0])
PKG_CHECK_MODULES([GST_AUDIO], [gstreamer-audio-1.0])
PKG_CHECK_MODULES([GST_BASE], [gstreamer-base-1.0])
PKG_CHECK_MODULES([SNDFILE], [sndfile])
PKG_CHECK_MODULES([USB], [libusb-1.0])
PKG_PROG_PKG_CONFIG
## ---------------------------------------------------------- ##
## Check for systemd and set the user unit directory variable ##
## ---------------------------------------------------------- ##
AC_ARG_WITH([systemduserunitdir],
[AS_HELP_STRING([--with-systemduserunitdir=DIR], [Directory for systemd user unit files])],
[],
[with_systemduserunitdir=auto])
AS_IF([test "x$with_systemduserunitdir" = "xyes" -o "x$with_systemduserunitdir" = "xauto"],
[def_systemduserunitdir=$($PKG_CONFIG --variable=systemduserunitdir systemd)
AS_IF([test "x$def_systemduserunitdir" = "x"],
[AS_IF([test "x$with_systemduserunitdir" = "xyes"],
[AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
with_systemduserunitdir=no],
[with_systemduserunitdir="$def_systemduserunitdir"])])
AS_IF([test "x$with_systemduserunitdir" != "xno"],
[AC_SUBST([systemduserunitdir], [$with_systemduserunitdir])])
AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemduserunitdir" != "xno"])
## --------------------- ##
## Weird Collabora stuff ##
## --------------------- ##
APP_CFLAGS="-Wall -fno-strict-aliasing $GLIB_CFLAGS $GIO_CFLAGS $GOBJECT_CFLAGS $DBUS_CFLAGS $APP_CFLAGS"
APP_LIBS="$GLIB_LIBS $GIO_LIBS $GOBJECT_LIBS $DBUS_LIBS $DBUS_GLIB $APP_LIBS"
AC_SUBST([APP_CFLAGS])
AC_SUBST([APP_LIBS])
AS_AC_EXPAND([DATADIR], [$datadir])
AS_AC_EXPAND([LIBDIR], [$libdir])
DBUS_SERVICES_DIR="$DATADIR/dbus-1/services"
AC_SUBST([DBUS_SERVICES_DIR])
AC_DEFINE_UNQUOTED([DBUS_SERVICES_DIR], "$DBUS_SERVICES_DIR", [Where services dir for DBUS is])
SYSTEMD_USER_SERVICE_PATH="$LIBDIR/systemd/user"
AC_SUBST([SYSTEMD_USER_SERVICE_PATH])
DBUS_SESSION_SERVICE_PATH="$DATADIR/dbus-1/services"
AC_SUBST([DBUS_SESSION_SERVICE_PATH])
TIZEN_XWALK_EXTENSION_PATH="$LIBDIR/tizen-extensions-crosswalk"
AC_SUBST([TIZEN_XWALK_EXTENSION_PATH])
AC_OUTPUT