configure.ac revision 6df26cac
16df26cacSmrg#  Copyright 2005 Adam Jackson.
26df26cacSmrg#
36df26cacSmrg#  Permission is hereby granted, free of charge, to any person obtaining a
46df26cacSmrg#  copy of this software and associated documentation files (the "Software"),
56df26cacSmrg#  to deal in the Software without restriction, including without limitation
66df26cacSmrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
76df26cacSmrg#  license, and/or sell copies of the Software, and to permit persons to whom
86df26cacSmrg#  the Software is furnished to do so, subject to the following conditions:
96df26cacSmrg#
106df26cacSmrg#  The above copyright notice and this permission notice (including the next
116df26cacSmrg#  paragraph) shall be included in all copies or substantial portions of the
126df26cacSmrg#  Software.
136df26cacSmrg#
146df26cacSmrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
156df26cacSmrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
166df26cacSmrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
176df26cacSmrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
186df26cacSmrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
196df26cacSmrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
206df26cacSmrg#
216df26cacSmrg# Process this file with autoconf to produce a configure script
226df26cacSmrg
236df26cacSmrgAC_PREREQ(2.57)
246df26cacSmrgAC_INIT([xf86-video-vmware],
256df26cacSmrg        10.16.1,
266df26cacSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
276df26cacSmrg        xf86-video-vmware)
286df26cacSmrg
296df26cacSmrgAC_CONFIG_SRCDIR([Makefile.am])
306df26cacSmrgAM_CONFIG_HEADER([config.h])
316df26cacSmrgAC_CONFIG_AUX_DIR(.)
326df26cacSmrg
336df26cacSmrgAM_INIT_AUTOMAKE([dist-bzip2])
346df26cacSmrg
356df26cacSmrgAM_MAINTAINER_MODE
366df26cacSmrg
376df26cacSmrg# Checks for programs.
386df26cacSmrgAC_DISABLE_STATIC
396df26cacSmrgAC_PROG_LIBTOOL
406df26cacSmrgAC_PROG_CC
416df26cacSmrg
426df26cacSmrgAH_TOP([#include "xorg-server.h"])
436df26cacSmrg
446df26cacSmrgAC_ARG_WITH(xorg-module-dir,
456df26cacSmrg            AC_HELP_STRING([--with-xorg-module-dir=DIR],
466df26cacSmrg                           [Default xorg module directory [[default=$libdir/xorg/modules]]]),
476df26cacSmrg            [moduledir="$withval"],
486df26cacSmrg            [moduledir="$libdir/xorg/modules"])
496df26cacSmrg
506df26cacSmrg# Checks for extensions
516df26cacSmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto)
526df26cacSmrgXORG_DRIVER_CHECK_EXT(RENDER, renderproto)
536df26cacSmrgXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
546df26cacSmrgXORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)
556df26cacSmrgXORG_DRIVER_CHECK_EXT(XV, videoproto)
566df26cacSmrg
576df26cacSmrg# Checks for pkg-config packages
586df26cacSmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES])
596df26cacSmrgsdkdir=$(pkg-config --variable=sdkdir xorg-server)
606df26cacSmrg
616df26cacSmrg# Checks for libraries.
626df26cacSmrg
636df26cacSmrg# Checks for header files.
646df26cacSmrgAC_HEADER_STDC
656df26cacSmrgsave_CFLAGS="$CFLAGS"
666df26cacSmrgCFLAGS="$XORG_CFLAGS"
676df26cacSmrgAC_CHECK_DECL(XSERVER_LIBPCIACCESS,
686df26cacSmrg             [XSERVER_LIBPCIACCESS=yes], [XSERVER_LIBPCIACCESS=no],
696df26cacSmrg             [#include "xorg-server.h"])
706df26cacSmrgCFLAGS="$save_CFLAGS"
716df26cacSmrg
726df26cacSmrgif test x$XSERVER_LIBPCIACCESS = xyes; then
736df26cacSmrg	PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0])
746df26cacSmrgfi
756df26cacSmrg
766df26cacSmrgAM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes)
776df26cacSmrg
786df26cacSmrgAC_SUBST([XORG_CFLAGS])
796df26cacSmrgAC_SUBST([moduledir])
806df26cacSmrg
816df26cacSmrgDRIVER_NAME=vmware
826df26cacSmrgAC_SUBST([DRIVER_NAME])
836df26cacSmrg
846df26cacSmrgXORG_MANPAGE_SECTIONS
856df26cacSmrgXORG_RELEASE_VERSION
866df26cacSmrg
876df26cacSmrgAC_OUTPUT([
886df26cacSmrg	Makefile
896df26cacSmrg	src/Makefile
906df26cacSmrg	man/Makefile
916df26cacSmrg])
92