1ba0eab60Smacallan# Copyright 2005 Adam Jackson. 2ba0eab60Smacallan# 3ba0eab60Smacallan# Permission is hereby granted, free of charge, to any person obtaining a 4ba0eab60Smacallan# copy of this software and associated documentation files (the "Software"), 5ba0eab60Smacallan# to deal in the Software without restriction, including without limitation 6ba0eab60Smacallan# on the rights to use, copy, modify, merge, publish, distribute, sub 7ba0eab60Smacallan# license, and/or sell copies of the Software, and to permit persons to whom 8ba0eab60Smacallan# the Software is furnished to do so, subject to the following conditions: 9ba0eab60Smacallan# 10ba0eab60Smacallan# The above copyright notice and this permission notice (including the next 11ba0eab60Smacallan# paragraph) shall be included in all copies or substantial portions of the 12ba0eab60Smacallan# Software. 13ba0eab60Smacallan# 14ba0eab60Smacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15ba0eab60Smacallan# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16ba0eab60Smacallan# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17ba0eab60Smacallan# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18ba0eab60Smacallan# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19ba0eab60Smacallan# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20ba0eab60Smacallan# 21ba0eab60Smacallan# Process this file with autoconf to produce a configure script 22ba0eab60Smacallan 23aee7dae4Smrg# Initialize Autoconf 24aee7dae4SmrgAC_PREREQ([2.60]) 25ba0eab60SmacallanAC_INIT([xf86-video-newport], 26aee7dae4Smrg [0.2.4], 27ba0eab60Smacallan [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 28aee7dae4Smrg [xf86-video-newport]) 29ba0eab60SmacallanAC_CONFIG_SRCDIR([Makefile.am]) 30aee7dae4SmrgAC_CONFIG_HEADERS([config.h]) 31ba0eab60SmacallanAC_CONFIG_AUX_DIR(.) 32ba0eab60Smacallan 33aee7dae4Smrg# Initialize Automake 34aee7dae4SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 35ba0eab60SmacallanAM_MAINTAINER_MODE 36ba0eab60Smacallan 37aee7dae4Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 38aee7dae4Smrgm4_ifndef([XORG_MACROS_VERSION], 39aee7dae4Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 40aee7dae4SmrgXORG_MACROS_VERSION(1.8) 41aee7dae4SmrgXORG_DEFAULT_OPTIONS 42aee7dae4Smrg 43aee7dae4Smrg# Initialize libtool 44ba0eab60SmacallanAC_DISABLE_STATIC 45ba0eab60SmacallanAC_PROG_LIBTOOL 46ba0eab60Smacallan 47ba0eab60SmacallanAH_TOP([#include "xorg-server.h"]) 48ba0eab60Smacallan 49aee7dae4Smrg# Define a configure option for an alternate module directory 50ba0eab60SmacallanAC_ARG_WITH(xorg-module-dir, 51aee7dae4Smrg AS_HELP_STRING([--with-xorg-module-dir=DIR], 52ba0eab60Smacallan [Default xorg module directory [[default=$libdir/xorg/modules]]]), 53ba0eab60Smacallan [moduledir="$withval"], 54ba0eab60Smacallan [moduledir="$libdir/xorg/modules"]) 55ba0eab60Smacallan 56aee7dae4Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES 57ba0eab60SmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 58ba0eab60SmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 59ba0eab60SmacallanXORG_DRIVER_CHECK_EXT(XV, videoproto) 60ba0eab60Smacallan 61aee7dae4Smrg# Obtain compiler/linker options for the driver dependencies 62ba0eab60SmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 63ba0eab60Smacallan 64ba0eab60Smacallan# Checks for libraries. 65ba0eab60Smacallan 66ba0eab60SmacallanAC_SUBST([moduledir]) 67ba0eab60Smacallan 68ba0eab60SmacallanDRIVER_NAME=newport 69ba0eab60SmacallanAC_SUBST([DRIVER_NAME]) 70ba0eab60Smacallan 71aee7dae4SmrgAC_CONFIG_FILES([ 72aee7dae4Smrg Makefile 73aee7dae4Smrg src/Makefile 74aee7dae4Smrg man/Makefile 75ba0eab60Smacallan]) 76aee7dae4SmrgAC_OUTPUT 77