Blame configure.ac

rpm-build 34167a
#
rpm-build 34167a
#  Copyright © 2003 Keith Packard, Noah Levitt
rpm-build 34167a
#
rpm-build 34167a
#  Permission to use, copy, modify, distribute, and sell this software and its
rpm-build 34167a
#  documentation for any purpose is hereby granted without fee, provided that
rpm-build 34167a
#  the above copyright notice appear in all copies and that both that
rpm-build 34167a
#  copyright notice and this permission notice appear in supporting
rpm-build 34167a
#  documentation, and that the name of Keith Packard not be used in
rpm-build 34167a
#  advertising or publicity pertaining to distribution of the software without
rpm-build 34167a
#  specific, written prior permission.  Keith Packard makes no
rpm-build 34167a
#  representations about the suitability of this software for any purpose.  It
rpm-build 34167a
#  is provided "as is" without express or implied warranty.
rpm-build 34167a
#
rpm-build 34167a
#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
rpm-build 34167a
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
rpm-build 34167a
#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
rpm-build 34167a
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
rpm-build 34167a
#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
rpm-build 34167a
#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
rpm-build 34167a
#  PERFORMANCE OF THIS SOFTWARE.
rpm-build 34167a
#
rpm-build 34167a
rpm-build 34167a
# Initialize Autoconf
rpm-build 34167a
AC_PREREQ([2.60])
rpm-build 34167a
AC_INIT([libXdmcp], [1.1.3],
rpm-build 34167a
        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXdmcp])
rpm-build 34167a
AC_CONFIG_SRCDIR([Makefile.am])
rpm-build 34167a
AC_CONFIG_HEADERS([config.h])
rpm-build 34167a
# Set common system defines for POSIX extensions, such as _GNU_SOURCE
rpm-build 34167a
# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
rpm-build 34167a
# to avoid autoconf errors.
rpm-build 34167a
AC_USE_SYSTEM_EXTENSIONS
rpm-build 34167a
rpm-build 34167a
# Initialize Automake
rpm-build 34167a
AM_INIT_AUTOMAKE([foreign dist-bzip2])
rpm-build 34167a
rpm-build 34167a
# Initialize libtool
rpm-build 34167a
AC_LIBTOOL_WIN32_DLL
rpm-build 34167a
AC_PROG_LIBTOOL
rpm-build 34167a
rpm-build 34167a
# Require xorg-macros minimum of 1.16 for unit testing with memory checks
rpm-build 34167a
m4_ifndef([XORG_MACROS_VERSION],
rpm-build 34167a
          [m4_fatal([must install xorg-macros 1.16 or later before running autoconf/autogen])])
rpm-build 34167a
XORG_MACROS_VERSION(1.16)
rpm-build 34167a
XORG_DEFAULT_OPTIONS
rpm-build 34167a
XORG_ENABLE_DOCS
rpm-build 34167a
XORG_WITH_XMLTO(0.0.22)
rpm-build 34167a
XORG_WITH_FOP
rpm-build 34167a
XORG_WITH_XSLTPROC
rpm-build 34167a
XORG_CHECK_SGML_DOCTOOLS(1.8)
rpm-build 34167a
rpm-build 34167a
# Checks for programs.
rpm-build 34167a
AC_PROG_LN_S
rpm-build 34167a
rpm-build 34167a
# Checks for libraries.
rpm-build 34167a
AC_SEARCH_LIBS([recvfrom],[socket])
rpm-build 34167a
rpm-build 34167a
case $host_os in
rpm-build 34167a
     *mingw*)
rpm-build 34167a
        AC_CHECK_LIB([ws2_32],[main])
rpm-build 34167a
        ;;
rpm-build 34167a
     *)
rpm-build 34167a
        ;;
rpm-build 34167a
esac
rpm-build 34167a
rpm-build 34167a
# Checks for library functions.
rpm-build 34167a
AC_CHECK_LIB([bsd], [arc4random_buf])
rpm-build 34167a
AC_CHECK_FUNCS([srand48 lrand48 arc4random_buf getentropy])
rpm-build 34167a
rpm-build 34167a
# Obtain compiler/linker options for depedencies
rpm-build 34167a
PKG_CHECK_MODULES(XDMCP, xproto)
rpm-build 34167a
rpm-build 34167a
if test -f ${srcdir}/Wraphelp.c; then
rpm-build 34167a
	AC_DEFINE(HASXDMAUTH,1,[Has Wraphelp.c needed for XDM AUTH protocols])
rpm-build 34167a
	HASXDMAUTH=yes
rpm-build 34167a
else
rpm-build 34167a
	HASXDMAUTH=no
rpm-build 34167a
fi
rpm-build 34167a
rpm-build 34167a
AM_CONDITIONAL(HASXDMAUTH,test x$HASXDMAUTH = xyes)
rpm-build 34167a
rpm-build 34167a
# Allow checking code with lint, sparse, etc.
rpm-build 34167a
XORG_WITH_LINT
rpm-build 34167a
XORG_LINT_LIBRARY([Xdmcp])
rpm-build 34167a
rpm-build 34167a
#  --enable-unit-tests
rpm-build 34167a
XORG_ENABLE_UNIT_TESTS([yes])
rpm-build 34167a
rpm-build 34167a
AC_CONFIG_FILES([Makefile
rpm-build 34167a
		doc/Makefile
rpm-build 34167a
		test/Makefile
rpm-build 34167a
		xdmcp.pc])
rpm-build 34167a
AC_OUTPUT