configure.ac revision 5eefee25
15eefee25Smacallan# Copyright 2005 Adam Jackson. 25eefee25Smacallan# 35eefee25Smacallan# Permission is hereby granted, free of charge, to any person obtaining a 45eefee25Smacallan# copy of this software and associated documentation files (the "Software"), 55eefee25Smacallan# to deal in the Software without restriction, including without limitation 65eefee25Smacallan# on the rights to use, copy, modify, merge, publish, distribute, sub 75eefee25Smacallan# license, and/or sell copies of the Software, and to permit persons to whom 85eefee25Smacallan# the Software is furnished to do so, subject to the following conditions: 95eefee25Smacallan# 105eefee25Smacallan# The above copyright notice and this permission notice (including the next 115eefee25Smacallan# paragraph) shall be included in all copies or substantial portions of the 125eefee25Smacallan# Software. 135eefee25Smacallan# 145eefee25Smacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 155eefee25Smacallan# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 165eefee25Smacallan# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 175eefee25Smacallan# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 185eefee25Smacallan# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 195eefee25Smacallan# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 205eefee25Smacallan# 215eefee25Smacallan# Process this file with autoconf to produce a configure script 225eefee25Smacallan 235eefee25SmacallanAC_PREREQ(2.57) 245eefee25SmacallanAC_INIT([xf86-video-suncg6], 255eefee25Smacallan 1.1.0, 265eefee25Smacallan [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 275eefee25Smacallan xf86-video-suncg6) 285eefee25Smacallan 295eefee25SmacallanAC_CONFIG_SRCDIR([Makefile.am]) 305eefee25SmacallanAM_CONFIG_HEADER([config.h]) 315eefee25SmacallanAC_CONFIG_AUX_DIR(.) 325eefee25Smacallan 335eefee25SmacallanAM_INIT_AUTOMAKE([dist-bzip2]) 345eefee25Smacallan 355eefee25SmacallanAM_MAINTAINER_MODE 365eefee25Smacallan 375eefee25Smacallan# Checks for programs. 385eefee25SmacallanAC_DISABLE_STATIC 395eefee25SmacallanAC_PROG_LIBTOOL 405eefee25SmacallanAC_PROG_CC 415eefee25Smacallan 425eefee25SmacallanAH_TOP([#include "xorg-server.h"]) 435eefee25Smacallan 445eefee25SmacallanAC_ARG_WITH(xorg-module-dir, 455eefee25Smacallan AC_HELP_STRING([--with-xorg-module-dir=DIR], 465eefee25Smacallan [Default xorg module directory [[default=$libdir/xorg/modules]]]), 475eefee25Smacallan [moduledir="$withval"], 485eefee25Smacallan [moduledir="$libdir/xorg/modules"]) 495eefee25Smacallan 505eefee25Smacallan# Checks for extensions 515eefee25SmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 525eefee25SmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 535eefee25Smacallan 545eefee25Smacallan# Checks for pkg-config packages 555eefee25SmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 565eefee25Smacallansdkdir=$(pkg-config --variable=sdkdir xorg-server) 575eefee25Smacallan 585eefee25Smacallan# Checks for libraries. 595eefee25Smacallan 605eefee25Smacallan# Checks for header files. 615eefee25SmacallanAC_HEADER_STDC 625eefee25Smacallan 635eefee25SmacallanAC_SUBST([XORG_CFLAGS]) 645eefee25SmacallanAC_SUBST([moduledir]) 655eefee25Smacallan 665eefee25SmacallanDRIVER_NAME=suncg6 675eefee25SmacallanAC_SUBST([DRIVER_NAME]) 685eefee25Smacallan 695eefee25SmacallanXORG_MANPAGE_SECTIONS 705eefee25SmacallanXORG_RELEASE_VERSION 715eefee25Smacallan 725eefee25SmacallanAC_OUTPUT([ 735eefee25Smacallan Makefile 745eefee25Smacallan src/Makefile 755eefee25Smacallan man/Makefile 765eefee25Smacallan]) 77