Blame configure.ac

Packit 5efe5e
#  Copyright 2005 Red Hat, Inc.
Packit 5efe5e
#
Packit 5efe5e
#  Permission to use, copy, modify, distribute, and sell this software and its
Packit 5efe5e
#  documentation for any purpose is hereby granted without fee, provided that
Packit 5efe5e
#  the above copyright notice appear in all copies and that both that
Packit 5efe5e
#  copyright notice and this permission notice appear in supporting
Packit 5efe5e
#  documentation, and that the name of Red Hat not be used in
Packit 5efe5e
#  advertising or publicity pertaining to distribution of the software without
Packit 5efe5e
#  specific, written prior permission.  Red Hat makes no
Packit 5efe5e
#  representations about the suitability of this software for any purpose.  It
Packit 5efe5e
#  is provided "as is" without express or implied warranty.
Packit 5efe5e
#
Packit 5efe5e
#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 5efe5e
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 5efe5e
#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 5efe5e
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 5efe5e
#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 5efe5e
#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 5efe5e
#  PERFORMANCE OF THIS SOFTWARE.
Packit 5efe5e
#
Packit 5efe5e
Packit 5efe5e
# Initialize Autoconf
Packit 5efe5e
AC_PREREQ([2.60])
Packit 5efe5e
AC_INIT([libXvMC], [1.0.12],
Packit 5efe5e
	[https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues], [libXvMC])
Packit 5efe5e
AC_CONFIG_SRCDIR([Makefile.am])
Packit 5efe5e
AC_CONFIG_HEADERS([config.h])
Packit 5efe5e
Packit 5efe5e
# Initialize Automake
Packit 5efe5e
AM_INIT_AUTOMAKE([foreign dist-bzip2])
Packit 5efe5e
Packit 5efe5e
# Initialize libtool
Packit 5efe5e
AC_PROG_LIBTOOL
Packit 5efe5e
Packit 5efe5e
# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
Packit 5efe5e
m4_ifndef([XORG_MACROS_VERSION],
Packit 5efe5e
          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
Packit 5efe5e
XORG_MACROS_VERSION(1.8)
Packit 5efe5e
XORG_DEFAULT_OPTIONS
Packit 5efe5e
XORG_CHECK_MALLOC_ZERO
Packit 5efe5e
Packit 5efe5e
# Obtain compiler/linker options for depedencies
Packit 5efe5e
PKG_CHECK_MODULES(XVMC, [x11 >= 1.6] xext xv xextproto videoproto)
Packit 5efe5e
Packit 5efe5e
# Checks for library functions.
Packit 5efe5e
AC_CHECK_FUNCS([shmat])
Packit 5efe5e
Packit 5efe5e
# Check to see if dlopen is in default libraries (like Solaris, which
Packit 5efe5e
# has it in libc), or if libdl is needed to get it.
Packit 5efe5e
AC_CHECK_FUNC([dlopen], [],
Packit 5efe5e
	AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
Packit 5efe5e
AC_SUBST(DLOPEN_LIBS)
Packit 5efe5e
Packit 5efe5e
# Allow checking code with lint, sparse, etc.
Packit 5efe5e
XORG_WITH_LINT
Packit 5efe5e
LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
Packit 5efe5e
Packit 5efe5e
AC_CONFIG_FILES([Makefile
Packit 5efe5e
		include/Makefile
Packit 5efe5e
		include/X11/Makefile
Packit 5efe5e
		include/X11/extensions/Makefile
Packit 5efe5e
		src/Makefile
Packit 5efe5e
		wrapper/Makefile
Packit 5efe5e
		xvmc.pc
Packit 5efe5e
		xvmc-wrapper.pc])
Packit 5efe5e
AC_OUTPUT