mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 16:11:54 +00:00
This initial commit contains the main "miracled" daemon that does link-management and peer-discovery/control. The "miraclectl" tool can be used to control this daemon during runtime. Note that this implementation is still missing a lot of stuff. All it currently does is provide link-management and basic peer-discovery. Following commits will hook everything else up. The actual Miracast/Wifi-Display related runtime control is not being worked on, yet. Feel free to use the proof-of-concept from the OpenWFD repository. The MiracleCast implementation will not get any such functionality unless the basic link-management is properly working. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
80 lines
1.8 KiB
Text
80 lines
1.8 KiB
Text
#
|
|
# MiracleCast - build configuration script
|
|
# Copyright (c) 2013-2014 David Herrmann <dh.herrmann@gmail.com>
|
|
#
|
|
|
|
AC_PREREQ(2.68)
|
|
|
|
AC_INIT([miraclecast],
|
|
[1],
|
|
[http://www.freedesktop.org/wiki/Software/miraclecast],
|
|
[miraclecast],
|
|
[http://www.freedesktop.org/wiki/Software/miraclecast])
|
|
AC_CONFIG_SRCDIR([src/miraclectl.c])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AC_CONFIG_HEADER(config.h)
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
AC_SYS_LARGEFILE
|
|
AC_CANONICAL_HOST
|
|
|
|
AM_INIT_AUTOMAKE([foreign 1.11 subdir-objects dist-xz no-dist-gzip tar-pax -Wall -Werror -Wno-portability])
|
|
AM_SILENT_RULES([yes])
|
|
|
|
AC_SUBST(PACKAGE_DESCRIPTION, ["Wifi-Display/Miracast Implementation"])
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CC_C99
|
|
AM_PROG_CC_C_O
|
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
|
AC_PROG_SED
|
|
AC_PROG_MKDIR_P
|
|
AC_PROG_LN_S
|
|
AC_PROG_GREP
|
|
AC_PROG_AWK
|
|
|
|
LT_PREREQ(2.2)
|
|
LT_INIT
|
|
|
|
#
|
|
# Mandatory dependencies
|
|
#
|
|
|
|
PKG_CHECK_MODULES([DEPS], [libwfd libsystemd-daemon >= 208])
|
|
PKG_CHECK_MODULES([GDHCP], [glib-2.0])
|
|
|
|
#
|
|
# Test for "check" which we use for our test-suite. If not found, we disable
|
|
# all tests.
|
|
#
|
|
|
|
PKG_CHECK_MODULES([CHECK], [check],
|
|
[have_check=yes], [have_check=no])
|
|
AM_CONDITIONAL([BUILD_HAVE_CHECK], [test "x$have_check" = "xyes"])
|
|
|
|
#
|
|
# Makefile vars
|
|
# After everything is configured, we create all makefiles.
|
|
#
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|
|
|
|
#
|
|
# Configuration output
|
|
# Show configuration to the user so they can check whether everything was
|
|
# configured as expected.
|
|
#
|
|
|
|
AC_MSG_NOTICE([Build configuration:
|
|
|
|
prefix: $prefix
|
|
exec-prefix: $exec_prefix
|
|
bindir: $bindir
|
|
libdir: $libdir
|
|
includedir: $includedir
|
|
|
|
Miscellaneous Options:
|
|
building tests: $have_check
|
|
|
|
Run "${MAKE-make}" to start compilation process])
|