configure.ac revision 1d54945d
11.1Sjoerg# Copyright 2005 Adam Jackson. 21.1Sjoerg# 31.1Sjoerg# Permission is hereby granted, free of charge, to any person obtaining a 41.1Sjoerg# copy of this software and associated documentation files (the "Software"), 51.1Sjoerg# to deal in the Software without restriction, including without limitation 61.1Sjoerg# on the rights to use, copy, modify, merge, publish, distribute, sub 71.1Sjoerg# license, and/or sell copies of the Software, and to permit persons to whom 81.1Sjoerg# the Software is furnished to do so, subject to the following conditions: 91.1Sjoerg# 101.1Sjoerg# The above copyright notice and this permission notice (including the next 111.1Sjoerg# paragraph) shall be included in all copies or substantial portions of the 121.1Sjoerg# Software. 131.1Sjoerg# 141.1Sjoerg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 151.1Sjoerg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 161.1Sjoerg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 171.1Sjoerg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 181.1Sjoerg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 191.1Sjoerg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 201.1Sjoerg# 211.1Sjoerg# Process this file with autoconf to produce a configure script 221.1Sjoerg 231.1SjoergAC_PREREQ(2.57) 241.1SjoergAC_INIT([xf86-video-s3virge], 251.1Sjoerg 1.9.1, 261.1Sjoerg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 271.1Sjoerg xf86-video-s3virge) 281.1Sjoerg 291.1SjoergAC_CONFIG_SRCDIR([Makefile.am]) 301.1SjoergAM_CONFIG_HEADER([config.h]) 311.1SjoergAC_CONFIG_AUX_DIR(.) 321.1Sjoerg 331.1SjoergAM_INIT_AUTOMAKE([dist-bzip2]) 341.1Sjoerg 351.1SjoergAM_MAINTAINER_MODE 361.1Sjoerg 371.1Sjoerg# Checks for programs. 381.1SjoergAC_DISABLE_STATIC 391.1SjoergAC_PROG_LIBTOOL 401.1SjoergAC_PROG_CC 411.1Sjoerg 421.1SjoergAH_TOP([#include "xorg-server.h"]) 431.1Sjoerg 441.1SjoergAC_ARG_WITH(xorg-module-dir, 451.1Sjoerg AC_HELP_STRING([--with-xorg-module-dir=DIR], 461.1Sjoerg [Default xorg module directory [[default=$libdir/xorg/modules]]]), 471.1Sjoerg [moduledir="$withval"], 481.1Sjoerg [moduledir="$libdir/xorg/modules"]) 491.1Sjoerg 501.1Sjoerg# Checks for extensions 511.1SjoergXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 521.1SjoergXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 531.1SjoergXORG_DRIVER_CHECK_EXT(XV, videoproto) 541.1SjoergXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) 551.1Sjoerg 561.1Sjoerg# Checks for pkg-config packages 571.1SjoergPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 581.1Sjoergsdkdir=$(pkg-config --variable=sdkdir xorg-server) 591.1Sjoerg 601.1Sjoerg# Checks for libraries. 611.1Sjoerg 621.1Sjoerg# Checks for header files. 631.1SjoergAC_HEADER_STDC 641.1Sjoerg 651.1SjoergAC_SUBST([XORG_CFLAGS]) 661.1SjoergAC_SUBST([moduledir]) 671.1Sjoerg 681.1SjoergDRIVER_NAME=s3virge 691.1SjoergAC_SUBST([DRIVER_NAME]) 701.1Sjoerg 711.1SjoergXORG_MANPAGE_SECTIONS 721.1SjoergXORG_RELEASE_VERSION 731.1Sjoerg 741.1SjoergXORG_CHECK_LINUXDOC 751.1Sjoerg 761.1SjoergAC_OUTPUT([ 771.1Sjoerg Makefile 781.1Sjoerg src/Makefile 791.1Sjoerg man/Makefile 801.1Sjoerg]) 811.1Sjoerg