--- fglrx-driver-8.47.3.orig/debian/man/NEWS
+++ fglrx-driver-8.47.3/debian/man/NEWS
@@ -0,0 +1,175 @@
+Revision History
+Revision 8.32.5         2006-12-13      dale, ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.32.5.
+
+  * See the file ChangeLog.
+
+Revision 8.28.8         2006-08-18      dale, ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.28.8.
+
+Because I did not made manpage releases for ATI Proprietary Linux Driver
+Versions 8.25.18, 8.26.18 and 8.27.10, this ChangeLog is quite long.
+
+[Important] Important
+            Be aware, that this driver is the last with support for RADEON®
+            8500/9000/9100/9200/9250, MOBILITY? RADEON® 9000/9100/9200 and
+            RADEON® IGP 9000/9100/9200 chipsets.
+
+General changes:
+
+  * The license has changed to a MIT license.
+
+  * Updated the list of supported chipsets.
+
+  * Fixed many build issues and improved the build system in several ways.
+
+  * Added a XML-based revision history and dropped the plain-text based one
+    (this means, that there is still a text version, but it's created from the
+    XML file and a HTML version was added).
+
+  * Fixed format issues in all manpages, that clashed with the format
+    recommendations of manpages.
+
+  * Fixed many markup issues in aticonfig(1x), fgl_glxgears(1x), fglrxinfo(1x),
+    fglrx_xgamma(1x) and fglrx(4x).
+
+  * Fixed several typos in aticonfig(1x) and fglrx(4x).
+
+  * The HTML form of the manpages now uses HTML 4.01 transitional.
+
+Special changes for aticonfig(1x):
+
+  * Fixed copyright.
+
+  * Added some information if and how options affect the configuration file
+    (taken from aticonfig --help output).
+
+  * Added some general section descriptions based on the information given by
+    the --help of aticonfig(1x).
+
+  * Added the description for the newly introduced options:
+
+    --add-pairmode
+    --enable-monitor
+    --list-pairmode
+    --locked-userpages
+    --max-gart-size
+    --nobackup
+    --query-monitor
+    --remove-pairmode
+    --swap-monitor
+    --set-policy
+    --tv-geometry
+    --tv-info
+    --tv-overscan
+
+with descriptions.
+
+  * Improved and updated the description for the options:
+
+    --initial
+    --tvf,--tv-format-type
+    -o, --output
+
+  * Removed the description for the no longer available options:
+
+    --agpl, --agp-locked-userpages
+    --dw,--disable-workstation
+    --iagp, --internal-agp
+
+  * Removed solved or obsolete bugs:
+
+      o The --tv-format-type option does not longer try to manipulate the
+        Option "TVStandard" value of fglrx(4x).
+
+      o Trying to use --dw timmo-extreme returns the following error message:
+        ?aticonfig: parsing the command-line failed?.
+
+    Added newly observed bugs:
+
+      o The --tvf option does not accept all values mentioned in the --help
+        output.
+
+      o The --tv-info option could freeze with 100% CPU usage.
+
+      o The --tv-geometry may break the configuration file or output a wrong
+        error message.
+
+      o The --help output is wrong in a few cases.
+
+    Check the ?BUGS? section of aticonfig(1x) for more information.
+
+Special changes for fglrx(4x):
+
+  * Fixed copyright.
+
+  * Updated, sorted and reorganized the list of supported chipsets and their
+    supported features.
+
+  * Added new explanations for the options:
+
+    Option "MaxGARTSize"
+    Option "TVOverscan"
+
+    Updated and improved explanations for the options:
+
+    Option "ForceMonitors"
+    Option "TVFormat"
+    Option "TVHPosAdj"
+    Option "TVHSizeAdj"
+    Option "TVVPosAdj"
+    Option "TVVSizeAdj"
+
+Special changes for fglrxrc(5):
+
+  * Added the involved files, this manpage is about.
+
+New driver options (may be incomplete):
+
+Option "EnableMonitor"
+Option "MaxGARTSize"
+Option "PairModes"
+Option "TVOverscan"
+
+Obsoleted driver options (may be incomplete): unknown
+
+Revision 8.27.10        2006-07-27      ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.27.10.
+
+Revision 8.26.18        2006-06-26      ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.26.18.
+
+Revision 8.25.18        2006-05-24      ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.25.18.
+
+Revision 8.24.8         2006-04-12      dale, ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.24.8.
+
+Changes:
+
+  * Added newly supported chipsets for RADEON X1x000 products to fglrx(4x).
+
+  * Removed fglrxconfig(1x) from Makefile. This file is not longer shipped with
+    the driver. All references to this application were removed.
+
+  * Make it compatible with X.org 7 (left the suffixes as suggested by the
+    http://webcvs.freedesktop.org/xorg/util/macros/xorg-macros.m4 macro).
+
+Revision 8.23.7         2006-03-08      dale, ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.23.7.
+
+Changes:
+
+  * Added newly supported chipsets to fglrx(4x).
+
+Revision 8.22.5         2006-02-08      ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.22.5.
+
+Revision 8.21.7         2006-01-18      ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.21.7.
+
+Revision 8.20.8         2005-12-08      dale, ATI Technologies Inc.
+New upstream release ATI Proprietary Linux Driver Version 8.20.8.
+
+This is the first official release of the manpages.
+
--- fglrx-driver-8.47.3.orig/debian/man/TODO
+++ fglrx-driver-8.47.3/debian/man/TODO
@@ -0,0 +1,77 @@
+# Document  $WgDD: fglrx_man/TODO,v 1.17 2006-11-25 07:59:32 dleidert Exp $
+# Summary   Things to do in the fglrx_man project.
+
+File TODOs
+----------
+
+* Rename stylesheets.
+
+
+fglrx.4x.xml:
+
+  * restructure the "CONFIGURATION DETAILS" section into logical parts
+  using the <refsect2> element
+
+  * options to verify: MemClock (mem clock, DDR speed / 2?), ASICClock
+  (core clock), SWcursor, AGPSpeed, ...
+  http://www.rage3d.com/board/printthread.php?t=33774712
+  http://www.abclinuxu.cz/forum/show/53112
+  http://wiki.ubuntuusers.de/ATI/Config
+
+  * diagnostics:
+  (WW) fglrx(0): Failed to set up write-combining range (0xe0000000,0x8000000) 
+  (WW) fglrx(0): could not detect XFree86 version (query_status=-3) 
+  (WW) fglrx(0): Cannot read colourmap from VGA.  Will restore with default
+
+  * obsoleted options: AGPMode, DDCMode
+  
+  * verify chipsets
+  http://rage3d.de/grafikkartendb.php
+  http://de.wikipedia.org/wiki/Radeon
+
+
+aticonfig.1x.xml:
+
+  * add cross-references, which driver options are supported
+
+  * add more examples (probably often requested usage examples found at the
+  web)
+
+
+fglrxrc.5x.xml:
+	
+  * sources and discussions:
+    http://dri.freedesktop.org/wiki/ConfigurationOptions
+    http://dri.freedesktop.org/wiki/ConfigurationInfrastructure
+    http://wiki2.archlinux.org/index.php/ATI_Radeon_%26_Kernel_2.6
+    http://rage3d.com/board/showthread.php?t=33838895
+
+
+acinclude.m4:
+
+  * AM_XSERVER_MAN_DIR: add an automatic detection of the manpage-dirs -
+  maybe analyze the result of 'Xorg|Xfree86 -version' and depending on the
+  version, set the path
+
+
+fglrx_man.xsl:
+
+  * I think about adding the revision history and the legalnotice as comments
+  to the manpage.
+  (https://sourceforge.net/tracker/index.php?func=detail&aid=1243027&group_id=21935&atid=373750)
+
+
+General TODOs
+-------------
+
+  * other suggested environment variables to mention:
+  LIBGL_ALWAYS_INDIRECT=0|1 and LIBGL_VERBOSE=0|1 (add these environment
+  variables also to fglrx.4x?)
+
+  * 8.26.18:
+  https://www2.ati.com/drivers/linux/linux_8.25.18.html
+  https://www2.ati.com/drivers/linux/linux_8.26.18.html
+  http://www.phoronix.com/scan.php?page=article&item=501&num=1
+  http://www.rage3d.com/board/showthread.php?t=33859654
+
+# UTF-8
--- fglrx-driver-8.47.3.orig/debian/man/fglrx.4x.xml
+++ fglrx-driver-8.47.3/debian/man/fglrx.4x.xml
@@ -0,0 +1,2281 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx.4x.xml,v 1.62 2007-06-02 12:51:31 dleidert Exp $
+  Summary   Manpage for the fglrx kernel module. Contains a
+            description of all available supported X.org/XFree86 options.
+
+  Copyright (C) 2005-2007 Daniel Leidert <daniel.leidert@wgdd.de>.
+  Copyright (C) 2005-2006 Flavio Stanchina <flavio@stanchina.net>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "fglrx">
+	<!ENTITY dhucname  "FGLRX">
+	<!ENTITY dhsection "4x">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+	
+]>
+
+<refentry id="fglrx_4x" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2007-06-02 12:51:31 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+			<author>
+				<firstname>Flavio</firstname>
+				<surname>Stanchina</surname>
+				<affiliation>
+					<address>
+						<email>flavio@stanchina.net</email>
+					</address>
+				</affiliation>
+				<contrib>Author and Debian package maintainer.</contrib>
+			</author>
+			<author>
+				<firstname>Mathieu</firstname>
+				<surname>Malaterre</surname>
+				<affiliation>
+					<address>
+						<email>mathieu@malaterre.com</email>
+					</address>
+				</affiliation>
+			</author>
+			<othercredit>
+				<firstname>Matthijs</firstname>
+				<surname>Kooijman</surname>
+				<contrib>Debian Bug report <ulink url="http://bugs.debian.org/360819"/>.</contrib>
+				<affiliation>
+					<address>
+						<email>m.kooijman@student.utwente.nl</email>
+					</address>
+				</affiliation>
+			</othercredit>
+			<othercredit>
+				<othername>Gentoo ATI Radeon FAQ</othername>
+				<contrib>Many things in DIAGNOSTICS. Information about several options.</contrib>
+			</othercredit>
+		</authorgroup>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<year>2007</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<holder>Flavio Stanchina</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>proprietary ATI RADEON and FireGL display driver</refpurpose>
+	</refnamediv>
+	<refsynopsisdiv id="synopsis">
+		<synopsis>
+<option>Section "Device"</option>
+  <option>Identifier</option> "<replaceable>devname</replaceable>"
+  <option>Driver "fglrx"</option>
+  <option>...</option>
+<option>EndSection</option>
+		</synopsis>
+	</refsynopsisdiv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para><package>&dhname;</package> is a <citerefentry>
+				<refentrytitle>&dhxserver;</refentrytitle>
+				<manvolnum>7x</manvolnum>
+			</citerefentry> driver for
+			ATI (<trademark>MOBILITY</trademark>) <productname class="registered">RADEON</productname>
+			and (<trademark>MOBILITY</trademark>) <productname class="trade">FireGL</productname>
+			based video cards. The driver provides hardware acceleration for 3D graphics and video
+			playback. It includes support for dual displays, TV Output and as of version 8.21.7 also
+			OpenGL 2.0 (<acronym>GLSL</acronym>).
+		</para>
+	</refsect1>
+	<refsect1 id="supported_hardware">
+		<title>SUPPORTED HARDWARE</title>
+		<para>The driver supports the following chipsets and graphics cards:</para>
+		<refsect2>
+			<title>Desktop products</title>
+			<variablelist>
+				<varlistentry>
+					<term>
+						<hardware><type>R300</type></hardware>,
+						<hardware><type>R350</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON 9500 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>R300</type></hardware>,
+						<hardware><type>RV350</type></hardware>,
+						<hardware><type>RV351</type></hardware>,
+						<hardware><type>RV360</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON 9600 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>R300</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON 9700 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>R350</type></hardware>,
+						<hardware><type>R360</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON 9800 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV350</type></hardware></term>
+					<listitem>
+						<para>RADEON 9550 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV370</type></hardware></term>
+					<listitem>
+						<para>RADEON X300 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>RV370</type></hardware>,
+						<hardware><type>RV380</type></hardware>,
+						<hardware><type>RV410</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON X550 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV380</type></hardware></term>
+					<listitem>
+						<para>RADEON X600 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV410</type></hardware></term>
+					<listitem>
+						<para>RADEON X700 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>R420</type></hardware>,
+						<hardware><type>R423</type></hardware>,
+						<hardware><type>R430</type></hardware>,
+						<hardware><type>R480</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON X800 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>R480</type></hardware>,
+						<hardware><type>R481</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON X850 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>RV505</type></hardware>,
+						<hardware><type>RV515</type></hardware>,
+						<hardware><type>RV516</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON X1300 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>RV515</type></hardware>,
+						<hardware><type>RV516</type></hardware>
+					</term>
+					<listitem>
+						<para>RADEON X1600 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R520</type></hardware></term>
+					<listitem>
+						<para>RADEON X1800 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV530</type></hardware></term>
+					<listitem>
+						<para>RADEON X1600 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R580</type></hardware></term>
+					<listitem>
+						<para>RADEON X1900 Series</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+			<note>
+				<para>ATI <trademark class="registered">All-in-Wonder</trademark> variants
+					based on the above products are also supported. Video capture however is not
+					supported.
+				</para>
+			</note>
+		</refsect2>
+		<refsect2>
+			<title>Workstation products</title>
+			<variablelist>
+				<varlistentry>
+					<term><hardware><type>RV280M</type></hardware></term>
+					<listitem>
+						<para>FireMV 2200 PCI Series (single card configuration only)</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R300W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL X1 Series</member>
+								<member>FireGL Z1 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R350W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL X2-256 Series</member>
+								<member>FireGL X2-256t Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV350W</type></hardware></term>
+					<listitem>
+						<para>FireGL T2 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV370W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL V3100 Series</member>
+								<member>FireMV 2200 Series (single card configuration only)</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV380W</type></hardware></term>
+					<listitem>
+						<para>FireGL V3200 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV410W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL V3300 Series</member>
+								<member>FireGL V5000 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R420W</type></hardware></term>
+					<listitem>
+						<para>FireGL X3-256 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R423W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL V5100 Series</member>
+								<member>FireGL V7100 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>R480W</type></hardware>
+					</term>
+					<listitem>
+						<para>FireGL V7200 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term>
+						<hardware><type>RV515W</type></hardware>
+					</term>
+					<listitem>
+						<para>FireGL V3300 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>R520W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL V5300 Series</member>
+								<member>FireGL V7200 Series</member>
+								<member>FireGL V7300 Series</member>
+								<member>FireGL V7350 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<term><hardware><type>RV530W</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>FireGL V3400 Series</member>
+								<member>FireGL V5200 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2>
+			<title>Mobile desktop and workstation products</title>
+			<variablelist>
+				<varlistentry>
+					<!-- RV350/RV360 -->
+					<term>
+						<hardware><type>M10</type></hardware>,
+						<hardware><type>M11</type></hardware>
+					</term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL T2 Series</member>
+								<member>MOBILITY FireGL T2e Series</member>
+								<member>MOBILITY RADEON 9500 Series</member>
+								<member>MOBILITY RADEON 9600 Series</member>
+								<member>MOBILITY RADEON 9700 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- ??? -->
+					<term><hardware><type>M12</type></hardware></term>
+					<listitem>
+						<para>MOBILITY RADEON 9550 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- R420 -->
+					<term><hardware><type>M18</type></hardware></term>
+					<listitem>
+						<para>MOBILITY RADEON 9800 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- RV370 -->
+					<term><hardware><type>M22</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL V3100 Series</member>
+								<member>MOBILITY RADEON X300 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- RV380 -->
+					<term><hardware><type>M24</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL V3200 Series</member>
+								<member>MOBILITY RADEON X600 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- RV410 -->
+					<term>
+						<hardware><type>M26</type></hardware>,
+						<hardware><type>M26-XC</type></hardware>
+					</term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL V5000 Series</member>
+								<member>MOBILITY RADEON X700 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- R420 -->
+					<term><hardware><type>M28</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL V5100 Series</member>
+								<member>MOBILITY RADEON X800 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- RV515 -->
+					<term><hardware><type>M52</type></hardware></term>
+					<listitem>
+						<para>MOBILITY RADEON X1300 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- RV515 -->
+					<term><hardware><type>M54</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL GL Series</member>
+								<member>MOBILITY RADEON X1400 Series</member>
+							</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- R520 -->
+					<term><hardware><type>M58</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL V7100 Series</member>
+								<member>MOBILITY FireGL V7200 Series</member>
+								<member>MOBILITY RADEON X1800 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- RV530 -->
+					<term><hardware><type>M56</type></hardware></term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>MOBILITY FireGL V5200 Series</member>
+								<member>MOBILITY RADEON X1600 Series</member>
+						</simplelist></para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- ?? -->
+					<term>
+						<hardware><type>M62S</type></hardware>,
+						<hardware><type>M62P</type></hardware>,
+						<hardware><type>M62CSP64</type></hardware>
+					</term>
+					<listitem>
+						<para>MOBILITY RADEON X1350 Series</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry>
+					<!-- ?? -->
+					<term><hardware><type>M62CSP128</type></hardware></term>
+					<listitem>
+						<para>MOBILITY RADEON X1450 Series</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2>
+			<title>Integrated products</title>
+	 		<variablelist>
+				<varlistentry>
+					<term>
+						<hardware><type>RS400</type></hardware>,
+						<hardware><type>RS480</type></hardware>,
+						<hardware><type>RS482</type></hardware>,
+						<hardware><type>RC410</type></hardware>
+					</term>
+					<listitem>
+						<para><simplelist type="inline">
+								<member>RADEON XPRESS 200 Series</member>
+								<member>RADEON XPRESS 200M Series</member>
+							</simplelist>
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+	</refsect1>
+	<refsect1 id="configuration_details">
+		<title>CONFIGURATION DETAILS</title>
+		<para>Please refer to <citerefentry>
+				<refentrytitle>&dhxserverconf;</refentrytitle>
+				<manvolnum>5x</manvolnum>
+			</citerefentry> for general configuration details. This section only covers
+			configuration details specific to this driver. The driver auto-detects a lot of
+			device information necessary to initialize the card. However, if you have problems
+			with auto-detection, you can specify:
+		</para>
+		<segmentedlist>
+			<!-- <title>Application profiles</title> -->
+			<segtitle>Option</segtitle>
+			<segtitle>Value</segtitle>
+			<seglistitem>
+				<seg><option>VideoRam</option></seg>
+				<seg>in kilobytes</seg>
+			</seglistitem>
+			<seglistitem>
+				<seg><option>ChipID</option></seg>
+				<seg>PCI device ID</seg>
+			</seglistitem>
+		</segmentedlist>
+		<para>See <citerefentry>
+				<refentrytitle>&dhxserverconf;</refentrytitle>
+				<manvolnum>5x</manvolnum>
+			</citerefentry> for more information about these options. With the <option>ChipID</option>
+			option, you can force the driver to recognize your model as a different one by overriding
+			the Chip-ID. This could be useful, if your card is not supported by default.
+			Look up the PCI ID of your card with <command>lspci -n</command> (see <citerefentry>
+				<refentrytitle>lspci</refentrytitle>
+				<manvolnum>8</manvolnum>
+			</citerefentry>) and then search for the ID of a similar but supported model in the
+			file <filename path="/usr/share/misc/">pci.ids</filename> (<citerefentry>
+				<refentrytitle>update-pciids</refentrytitle>
+				<manvolnum>8</manvolnum>
+			</citerefentry>), which is also available online
+			at <ulink url="http://pciids.sourceforge.net/pci.ids"/>. ATI itself provides a similar list
+			at <ulink url="http://www.ati.com/developer/vendorid.html"/>.
+		</para>
+		<variablelist>
+			<para>In addition, the following driver options are supported:</para>
+			<varlistentry>
+				<term>
+					<option id="option_agpmask">Option
+						"<varname>AGPMask</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>This option applies to <acronym>AGP</acronym>v1/2. To
+						handle an <acronym>AGP</acronym>v3 interface, you will additionally
+						need <link linkend="option_agpv3mask"><option>Option
+						"<varname>AGPv3Mask</varname>"</option></link>.
+					</para>
+					<segmentedlist>
+						<!-- <title>Possible values for AGPMask</title> -->
+						<segtitle>Value</segtitle>
+						<segtitle>Effect</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000001</parameter>"</seg>
+							<seg>Disable <acronym>AGP</acronym> 1x (forces 2x or 4x).</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000002</parameter>"</seg>
+							<seg>Disable <acronym>AGP</acronym> 2x (forces 1x or 4x).</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000004</parameter>"</seg>
+							<seg>Disable <acronym>AGP</acronym> 4x (forces 1x or 2x).</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000010</parameter>"</seg>
+							<seg>Disable fast-writes.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000200</parameter>"</seg>
+							<seg>Disable sidebanding.</seg>
+						</seglistitem>
+					</segmentedlist>
+					<para>To combine several settings, only add the values. Let me show an
+						example: "<parameter class="option">0x00000216</parameter>"
+						means: force <acronym>AGP</acronym> 1x (disable <acronym>AGP</acronym>
+						2x and 4x), disable fast-writes and sidebanding.
+					</para>
+					<para>You can check, if fast-writes has been disabled by searching your kernel log
+						for '<errortext>AgpCommand = <replaceable>hex-integer</replaceable></errortext>'.
+						The second last hex digit should be <parameter>0</parameter> (zero) if
+						fast-writes is off, or <parameter>1</parameter> (one) if it is on.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_agpv3mask">Option
+						"<varname>AGPv3Mask</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>This option only applies to <acronym>AGP</acronym>v3.</para>
+					<important>
+						<para>It is used in addition to <link linkend="option_agpmask"><option>Option
+							"<varname>AGPMask</varname>"</option></link>. That means, that you
+							turn off fast-writes or sidebanding with <link linkend="option_agpmask">
+							<option>Option "<varname>AGPMask</varname>"</option></link>.
+						</para>
+					</important>
+					<segmentedlist>
+						<!-- <title>Possible option values for AGPv3Mask</title> -->
+						<segtitle>Value</segtitle>
+						<segtitle>Effect</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000001</parameter>"</seg>
+							<seg>Disable <acronym>AGP</acronym> 4x (forces 8x).</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000002</parameter>"</seg>
+							<seg>Disable <acronym>AGP</acronym> 8x (forces 4x).</seg>
+						</seglistitem>
+					</segmentedlist>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_agp8xdisablefix">Option
+						"<varname>AGP8XDisableFix</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_asicclock">Option
+						"<varname>ASICClock</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_backingstore">Option
+						"<varname>BackingStore</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable or disable the <quote>Backing store</quote> mechanism. If
+						this option is enabled, the X-server stores (parts of) the window
+						content. The default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_blocksignalsonlock">Option
+						"<varname>BlockSignalsOnLock</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>To allow the debugging
+						(using <citerefentry>
+							<refentrytitle>gdb</refentrytitle>
+							<manvolnum>1</manvolnum>
+						</citerefentry>, <citerefentry>
+							<refentrytitle>totalview</refentrytitle>
+							<manvolnum>1</manvolnum>
+						</citerefentry> and others) of multi-threaded OpenGL applications it can
+						become necessary to disable the blocking of task interruption signals.
+						The default is: "<parameter class="option">on</parameter>".
+					</para>
+					<variablelist>
+						<varlistentry>
+							<term>"<parameter class="option">off</parameter>"</term>
+							<listitem>
+								<para>The driver will not use signal blocking. This introduces the risk
+									of suffering memory leaks in combination with specific user
+									activity.
+								</para>
+								<caution>
+									<para>Only use it, if you really know what you are doing.</para>
+								</caution>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term>"<parameter class="option">on</parameter>"</term>
+							<listitem>
+								<para>The default value. The driver does not block signals for locking.</para>
+							</listitem>
+						</varlistentry>
+					</variablelist>
+					<para>As of now it is uncertain which is the real origin of the problem.
+						As of now it does look like the debugger application is getting in some
+						trouble because of not getting back the debugging control after the lock
+						condition was removed by the driver. This might be further investigated.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_buffertiling">Option
+						"<varname>BufferTiling</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_bustype">Option
+						"<varname>BusType</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>This option allows to overwrite the detected bus type. Use it,
+						when the drivers bus detection is incorrect or when you want to force
+						an <acronym>AGP</acronym> card to <acronym>PCI</acronym> bus. The
+						default situation is, that the driver <emphasis>auto-detects</emphasis>
+						the bus type. Possible values for this option are:
+					</para>
+					<segmentedlist>
+						<!-- <title>Possible option values for AGPv3Mask</title> -->
+						<segtitle>Value</segtitle>
+						<segtitle>Effect</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">AGP</parameter>"</seg>
+							<seg><acronym>AGP</acronym> bus.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">PCI</parameter>"</seg>
+							<seg><acronym>PCI</acronym> bus.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">PCIE</parameter>"</seg>
+							<seg><acronym>PCI</acronym> Express bus
+								(fallback: <acronym>PCI</acronym>).</seg>
+						</seglistitem>
+					</segmentedlist>
+					<caution>
+						<para><emphasis role="bold">NEVER</emphasis> try to force a <acronym>PCI</acronym>
+							card to <acronym>AGP</acronym> bus.
+						</para>
+					</caution>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_capabilities">Option
+						"<varname>Capabilities</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>... hex ... Needs to be documented.</para>
+					<segmentedlist>
+						<!-- <title>Application profiles</title> -->
+						<segtitle>Parameter</segtitle>
+						<segtitle>Profile</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000000</parameter>"</seg>
+							<seg>Default.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000800</parameter>"</seg>
+							<seg>Disable VSync.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00008000</parameter>"</seg>
+							<seg>Maya, Houdini 4.0, Houdini 5.0, Houdini 5.5.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x20008000</parameter>"</seg>
+							<seg>SOFTIMAGE|XSI, SOFTIMAGE|3D.</seg>
+						</seglistitem>
+					</segmentedlist>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_capabilitiesex">Option
+						"<varname>CapabilitiesEx</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>... hex ... Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_centermode">Option
+						"<varname>CenterMode</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>The Center-Mode allows "real" screen display in non-"panel native modes"
+						(e.g. a resolution of 1280x1024 on a 1600x1200 LCD): one pixel of the frame
+						buffer is one pixel on the screen. The display is centered on the screen and
+						the surrounding screen area remains black.  Note that some panels may not
+						work in Center-Mode, so the screen remains black then. The default
+						is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_clientdrivername">Option
+						"<varname>ClientDriverName</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_dac6bit">Option
+						"<varname>Dac6Bit</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enables or disables the use of 6 bits per color component when in 8 bpp mode
+						(emulates VGA mode). By default, all 8 bits per color component are used. The
+						default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_defaultvisualtruecolor">Option
+						"<varname>DefaultVisualTrueColor</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Set the X-server to use a TrueColor visual as default. You can check
+						the result with <citerefentry>
+							<refentrytitle>xpdyinfo</refentrytitle>
+							<manvolnum>1</manvolnum>
+						</citerefentry>. The default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_desktopsetup">Option
+						"<varname>DesktopSetup</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_desktopsetup2">Option
+						"<varname>DesktopSetup</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>This option defines the desktop setup. The driver can work with the
+						following modes:
+					</para>
+					<segmentedlist>
+						<!-- <title>DesktopSetup modes</title> -->
+						<segtitle>Parameter (integer)</segtitle>
+						<segtitle>Parameter (string)</segtitle>
+						<segtitle>Mode</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000000</parameter>"</seg>
+							<seg>"<parameter class="option">single</parameter>"</seg>
+							<seg>Single head mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000100</parameter>"</seg>
+							<seg>"<parameter class="option">clone</parameter>"</seg>
+							<seg>Clone mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000101</parameter>"</seg>
+							<seg>"<parameter class="option">mirror</parameter>"</seg>
+							<seg>Mirror mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000200</parameter>"</seg>
+							<seg>"<parameter class="option">horizontal</parameter>"</seg>
+							<seg>Big Desktop mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000201</parameter>"</seg>
+							<seg>"<parameter class="option">horizontal,reverse</parameter>"</seg>
+							<seg>Big Desktop mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000300</parameter>"</seg>
+							<seg>"<parameter class="option">vertical,reverse</parameter>"</seg>
+							<seg>Big Desktop mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000301</parameter>"</seg>
+							<seg>"<parameter class="option">vertical</parameter>"</seg>
+							<seg>Big Desktop mode.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">0x00000000</parameter>"</seg>
+							<seg/>
+							<seg>Dual head mode.</seg>
+						</seglistitem>
+					</segmentedlist>
+					<para>The modes are:</para>
+					<variablelist>
+						<varlistentry>
+							<term><emphasis role="bold">Single head mode:</emphasis></term>
+							<listitem>
+								<para>Single monitor operation only. If a second monitor is connected, it remains dark.
+									Only in this mode a full overlay functionality is available.
+								</para>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term><emphasis role="bold">Clone mode:</emphasis></term>
+							<listitem>
+								<para>The contents of the primary monitor are duplicated on the second
+									monitor. If one monitor cannot display the selected resolution, a lower
+									resolution is automatically selected for this monitor. The original
+									resolution is used then as it was specified as the virtual resolution.
+									This means the second screen will do panning when the mouse moves ahead.
+								</para>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term><emphasis role="bold">Mirror mode:</emphasis></term>
+							<listitem>
+								<para>The contents of the primary monitor are duplicated on the second
+									monitor. Both monitors have an identical refresh rate and resolution.
+								</para>
+								<important>
+									<para>This mode is not supported on RADEON X1x00 and FireGL <simplelist type="inline">
+											<member>V3300</member>
+											<member>V3400</member>
+											<member>V5200</member>
+											<member>V7200</member>
+											<member>V7300</member>
+											<member>V7350</member>
+										</simplelist> cards.
+									</para>
+								</important>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term><emphasis role="bold">Big Desktop mode(s):</emphasis></term>
+							<listitem>
+								<para>There is a single big frame buffer that gets split either
+									horizontally or vertically and each half is sent to a single monitor.
+									Both monitors have to operate with the same video mode settings and
+									only one window manager can be used. The orientation is set with:
+								</para>
+								<segmentedlist>
+									<!-- <title>Desktop modes</title> -->
+									<segtitle>Parameter (integer)</segtitle>
+									<segtitle>Mode</segtitle>
+									<seglistitem>
+										<seg>"<parameter class="option">0x00000200</parameter>"</seg>
+										<seg>Primary display is left.</seg>
+									</seglistitem>
+									<seglistitem>
+										<seg>"<parameter class="option">0x00000201</parameter>"</seg>
+										<seg>Primary display is right.</seg>
+									</seglistitem>
+									<seglistitem>
+										<seg>"<parameter class="option">0x00000300</parameter>"</seg>
+										<seg>Primary display is top.</seg>
+									</seglistitem>
+									<seglistitem>
+										<seg>"<parameter class="option">0x00000301</parameter>"</seg>
+										<seg>Primary display is bottom.</seg>
+									</seglistitem>
+								</segmentedlist>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term><emphasis role="bold">Dual head mode:</emphasis></term>
+							<listitem>
+								<para>A dual head setup uses separate frame buffers, independent displays and
+									video modes for each monitor. Two window managers can be used.
+								</para>
+							</listitem>
+						</varlistentry>
+					</variablelist>
+					<note>
+						<para>A connected digital display is always the primary display. If two
+							display devices are connected, the primary head is: the bottom DVI port
+							on FireGL X1, LCD output on MOBILITY RADEON M9 and the only DVI port
+							on other cards. The secondary head is: the top DVI port on FireGL X1
+							and the VGA port on all other cards.
+						</para>
+					</note>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_disableovscaler">Option
+						"<varname>DisableOvScaler</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_drm_bufsize">Option
+						"<varname>DRM_bufsize</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented. (number of DRM buffers - default 100, max 127) </para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_drm_nbufs">Option
+						"<varname>DRM_nbufs</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented. (DRM buffer size, default 65536 Byte, value in Byte)</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_enabledepthmoves">Option
+						"<varname>EnableDepthMoves</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_enablehpv">Option
+						"<varname>EnableHPV</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_enablelogo">Option
+						"<varname>EnableLogo</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_enablemonitor">Option
+						"<varname>EnableMonitor</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_enableopaqueoverlayvisual">Option
+						"<varname>EnableOpaqueOverlayVisual</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable a depth 8 PseudoColor visual in the overlay planes that does not reserve
+						index 255 for transparency.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_enableprivatebackz">Option
+						"<varname>EnablePrivateBackZ</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_forcegenericcpu">Option
+						"<varname>ForceGenericCPU</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_forcemonitors">Option
+						"<varname>ForceMonitors</varname>"
+						"<replaceable class="option">string[,string,...]</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>... Available values are: <simplelist type="inline">
+								<member><parameter class="option">crt1</parameter></member>
+								<member><parameter class="option">crt2</parameter></member>
+								<member><parameter class="option">lvds</parameter></member>
+								<member><parameter class="option">tmds1</parameter></member>
+								<member><parameter class="option">tmds2</parameter></member>
+								<member><parameter class="option">tmds2i</parameter></member>
+								<member><parameter class="option">tv</parameter></member>
+								<member><parameter class="option">nocrt1</parameter></member>
+								<member><parameter class="option">nocrt2</parameter></member>
+								<member><parameter class="option">nolvds</parameter></member>
+								<member><parameter class="option">notmds1</parameter></member>
+								<member><parameter class="option">notmds2</parameter></member>
+								<member><parameter class="option">notmds2i</parameter></member>
+								<member><parameter class="option">notv</parameter></member>
+							</simplelist>.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_fsaaenable">Option
+						"<varname>FSAAEnable</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_fsaadisablegamma">Option
+						"<varname>FSAADisableGamma</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>By default the Full scene Anti Aliasing (<acronym>FSAA</acronym>) gamma
+						is set to 2.2, which is typical for CRT displays. Use this option to
+						disable FSAA gamma. The default is: "<parameter class="option">no</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_fsaacustomizemspos">Option
+						"<varname>FSAACustomizeMSPos</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Use this option, if you want to customize the sample points, set
+						with <link linkend="option_fsaascale"><option>Option
+						"<varname>FSAAScale</varname>"</option></link>. The default is:
+						"<parameter class="option">no</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_fsaamsposx0">Option
+						"<varname>FSAAMSPosX0</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposy0">Option
+						"<varname>FSAAMSPosY0</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposx1">Option
+						"<varname>FSAAMSPosX1</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposy1">Option
+						"<varname>FSAAMSPosY1</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposx2">Option
+						"<varname>FSAAMSPosX2</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposy2">Option
+						"<varname>FSAAMSPosY2</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposx3">Option
+						"<varname>FSAAMSPosX3</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposy3">Option
+						"<varname>FSAAMSPosY3</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposx4">Option
+						"<varname>FSAAMSPosX4</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposy4">Option
+						"<varname>FSAAMSPosY4</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposx5">Option
+						"<varname>FSAAMSPosX5</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_fsaamsposy5">Option
+						"<varname>FSAAMSPosY5</varname>"
+						"<replaceable class="option">real</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Use this to customize the 1st, 2nd, ... 6th sample point. Depending on your
+						setting for <link linkend="option_fsaascale"><option>Option
+						"<varname>FSAAScale</varname>"</option></link>, you have to set 2, 4 or all
+						6 points. The pixel size is 1x1, so the range for these values
+						is "<parameter class="option">0..1</parameter>".
+					</para>
+					<note>
+						<para>These options are only relevant, if <link linkend="option_fsaacustomizemspos">
+							<option>Option "<varname>FSAACustomizeMSPos</varname>"</option></link>
+							is enabled.
+						</para>
+					</note>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_fsaascale">Option
+						"<varname>FSAAScale</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Set, enable or disable Full Scene Anti Aliasing (<acronym>FSAA</acronym>)
+						for cards using a multi-sampling technique to implement anti-aliasing.
+						Possible values are:
+					</para>
+					<segmentedlist>
+						<!-- <title>Desktop modes</title> -->
+						<segtitle>Parameter</segtitle>
+						<segtitle>Mode</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">1</parameter>"</seg>
+							<seg>Disable <acronym>FSAA</acronym> (default).</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">2</parameter>"</seg>
+							<seg>Uses 2 multi sample points.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">4</parameter>"</seg>
+							<seg>Uses 4 multi sample points.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">6</parameter>"</seg>
+							<seg>Uses 6 multi sample points.</seg>
+						</seglistitem>
+					</segmentedlist>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_gammacorrection1">Option
+						"<varname>GammaCorrectionI</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<term>
+					<option id="option_gammacorrection2">Option
+						"<varname>GammaCorrectionII</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Adjust the gamma correction factor. This setting can be made individual for each
+						monitor. Normally the first is for the VGA device and the second is for the DVI device.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_hsync2">Option
+						"<varname>HSync2</varname>"
+						"<replaceable class="option">frequency</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Horizontal sync range of the second monitor in e.g. big desktop mode.</para>
+					<note>
+						<para>You can skip this value, if you define an appropriate
+							<option>HorizSync</option> line in the related <option>Section "Monitor"</option>.
+						</para>
+					</note>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_ignoreedid">Option
+						"<varname>IgnoreEDID</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Do not use <acronym>EDID</acronym> data for mode validation,
+						but <acronym>DDC</acronym> is still used for monitor detection. This is
+						different from <link linkend="option_noddc"><option>Option
+						"<varname>NoDDC</varname>"</option></link>. The default
+						is: "<parameter class="option">off</parameter>".
+					</para>
+					<para>If the server is ignoring your modlines, set this option
+						to "<parameter class="option">on</parameter>" and try again.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_kernelmoduleparm">Option
+						"<varname>KernelModuleParm</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>If you change this option during runtime, you have to remove and reload
+						the <package>&dhname;</package> kernel module with <command>rmmod fglrx
+						&amp;&amp; modprobe fglrx</command> (see <citerefentry>
+							<refentrytitle>modprobe</refentrytitle>
+							<manvolnum>8</manvolnum>
+						</citerefentry>, <citerefentry>
+							<refentrytitle>rmmod</refentrytitle>
+							<manvolnum>8</manvolnum>
+						</citerefentry>). Possible values you can provide with this option are
+						(separate them by semicolon):</para>
+					<segmentedlist>
+						<!-- <title>AGP locked user page modes</title> -->
+						<segtitle>Parameter</segtitle>
+						<segtitle>Mode</segtitle>
+						<!-- found this at rage3d.com:
+						     agpgart=0,1,2
+						     0 = disabled agp
+						     1 = disabled external agp
+						     2 = disabled internal agp
+						     
+						     ... drm_parse_option are valid options
+						     
+						     su_flags removed in 8.10.19?
+						-->
+						<seglistitem>
+							<seg>"<parameter class="option">agplock=0</parameter>"</seg>
+							<seg>Disable AGP locked user pages.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">agplock=1</parameter>"</seg>
+							<seg>Enable AGP locked user pages (default).</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">agpgart=0</parameter>"</seg>
+							<seg>Use built-in AGP <acronym>GART</acronym> support.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">agpgart=2</parameter>"</seg>
+							<seg>Same, but only if no agpgart module is loaded.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">agpgart=3</parameter>"</seg>
+							<seg>Disable built-in AGP <acronym>GART</acronym> support.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">agp_try_unsupported=1</parameter>"</seg>
+							<seg>Try unsupported chipsets [1].</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">debug=0</parameter>"</seg>
+							<seg>Turn debugging off.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">debug=1</parameter>"</seg>
+							<seg>Turn debugging on.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">debug=0x00040003</parameter>"</seg>
+							<seg>???</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">maxlockedmem=256</parameter>"</seg>
+							<seg>Maximum locked DMA (Direct Memory Access) memory in MB.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">noauth</parameter>"</seg>
+							<seg>???</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">su_flags=0xdead0003</parameter>"</seg>
+							<seg>Recognize card as FireGL model and enable 3DNow.</seg>
+						</seglistitem>
+					</segmentedlist>
+					<note>
+						<para>If neither the built-in nor the kernel AGPGart support work, you can use
+							[1] as a fallback.
+						</para>
+					</note>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_maxgartsize">Option
+						"<varname>MaxGARTSize</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Configure the ATI AGP <acronym>GART</acronym> (Graphic Address Remapping Table) size.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_mode2">Option
+						"<varname>Mode2</varname>"
+						"<replaceable class="option">resolution1</replaceable>"
+						"<replaceable class="option">resolution2</replaceable>"
+						"<replaceable class="option">...</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_mtrr">Option
+						"<varname>mtrr</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable or disable <acronym>DRI</acronym> Memory Type Range Registers
+						(<acronym>MTRR</acronym>) mapper. Be aware, that the driver has its own
+						code for <acronym>MTRR</acronym>. The default
+						is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_no_accel">Option
+						"<varname>no_accel</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enables or disables all hardware acceleration (<acronym>XAA</acronym>).
+						The default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_no_dri">Option
+						"<varname>no_dri</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enables or disables <acronym>DRI</acronym> extension.
+						The default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_noddc">Option
+						"<varname>NoDDC</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Disable probing of DDC-information from your monitor.
+						The default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_notv">Option
+						"<varname>NoTV</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable or disable TV-Out for a monitor.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_opengloverlay">Option
+						"<varname>OpenGLOverlay</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>If you enable this option, <link linkend="option_videooverlay"><option>Option
+						"<varname>VideoOverlay</varname>"</option></link> will be disabled automatically.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_pbuffer">Option
+						"<varname>PBuffer</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+					<segmentedlist>
+						<!-- <title>PBuffer area sizes</title> -->
+						<segtitle>Parameter</segtitle>
+						<segtitle>PBuffer area size</segtitle>
+						<seglistitem>
+							<seg>"<parameter class="option">0</parameter>"</seg>
+							<seg>PBuffer area disabled.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">1</parameter>"</seg>
+							<seg>Size of PBuffer area 1280x1024.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">2</parameter>"</seg>
+							<seg>Size of PBuffer area 1600x1200.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">3</parameter>"</seg>
+							<seg>Size of PBuffer area 1920x1200.</seg>
+						</seglistitem>
+						<seglistitem>
+							<seg>"<parameter class="option">4</parameter>"</seg>
+							<seg>Size of PBuffer area 2048x1536.</seg>
+						</seglistitem>
+					</segmentedlist>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_powerstate">Option
+						"<varname>PowerState</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_pseudocolorvisuals">Option
+						"<varname>PseudoColorVisuals</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enabling this options allows the usage of pseudo color visuals at the same time
+						with true color visuals using the overlay technique. The default
+						is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_ringsize">Option
+						"<varname>RingSize</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Needs to be documented. (ring buffer size, default = "1", values in MB)</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_screenoverlap">Option
+						"<varname>ScreenOverlap</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>This option is intended to allow image overlapping with e.g. two video projectors.
+						It only applies to big desktops (see <link linkend="option_desktopsetup"><option>Option
+						"<varname>DesktopSetup</varname>"</option></link>).
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_silkenmouse">Option
+						"<varname>SilkenMouse</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable or disable the hardware cursor to be updated asynchronously by
+						the signal handler associated with mouse events. The default
+						is: "<parameter class="option">on</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_stereo">Option
+						"<varname>Stereo</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>To enable Stereo mode of Quad Buffer Stereo ("Active Stereo") capable cards, 
+						set this value to "<parameter class="option">on</parameter>" and
+						disable <link linkend="option_videooverlay"><option>Option
+						"<varname>VideoOverlay</varname>"</option></link>
+						and <link linkend="option_opengloverlay"><option>Option
+						"<varname>OpenGLOverlay</varname>"</option></link>.
+						The default is: "<parameter class="option">off</parameter>".
+					</para>
+					<para>If you enable Stereo Quad Buffering then you should not use virtual desktops
+						bigger than the selected resolution. Further the stereo feature will only
+						initialize if your adapter is in text-mode when launching X and the respective
+						display mode. The adapter can not switch between multiple resolutions while
+						keeping the stereo setup. For that reason it is highly recommended that you
+						have only one single <option>modes</option> in your config file
+						at <option>Section "Screen"</option> -&gt; <option>SubSection "Display"</option>.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_stereosyncenable">Option
+						"<varname>StereoSyncEnable</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_swcursor">Option
+						"<varname>SWCursor</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Disable or enable the use of a software cursor.
+						The default is: "<parameter class="option">off</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tmdscoherentmode">Option
+						"<varname>TMDSCoherentMode</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Internal TMDS transmitter can be programmed in 2 different ways to get
+						best signal qualities depending on connected transmitter chips in the panel.
+						The noise must appear in 1600x1200 mode, but can also come up in
+						1280x1024x75Hz. You can enable or disable the coherent mode using this option.
+						The default is: "<parameter class="option">on</parameter>".
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvformat">Option
+						"<varname>TVFormat</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Choose the TV format. Available values are: <simplelist type="inline">
+							<member><parameter class="option">NTSC-JPN</parameter></member>
+							<member><parameter class="option">NTSC-M</parameter></member>
+							<member><parameter class="option">NTSC-N</parameter></member>
+							<member><parameter class="option">PAL-B</parameter></member>
+							<member><parameter class="option">PAL-CN</parameter></member>
+							<member><parameter class="option">PAL-D</parameter></member>
+							<member><parameter class="option">PAL-G</parameter></member>
+							<member><parameter class="option">PAL-H</parameter></member>
+							<member><parameter class="option">PAL-I</parameter></member>
+							<member><parameter class="option">PAL-K</parameter></member>
+							<member><parameter class="option">PAL-K1</parameter></member>
+							<member><parameter class="option">PAL-L</parameter></member>
+							<member><parameter class="option">PAL-M</parameter></member>
+							<member><parameter class="option">PAL-N</parameter></member>
+							<member><parameter class="option">PAL-SCART</parameter></member>
+						</simplelist>
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvoverscan">Option
+						"<varname>TVOverscan</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable or disable TV overscan. Available values are: <simplelist type="inline">
+							<member><parameter class="option">on</parameter></member>
+							<member><parameter class="option">off</parameter></member>
+						</simplelist>. The default is: "<parameter class="option">on</parameter>".
+					</para>
+					<note>
+						<para>Not all TV formats support overscan. Try to toggle overscan
+							<parameter class="option">off</parameter> before changing
+							<link linkend="option_agpv3mask"><option>Option "<varname>TVFormat</varname>"</option></link>
+							if an error occurs.
+						</para>
+					</note>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvstandard">Option
+						"<varname>TVStandard</varname>"
+						"<replaceable class="option">string</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Choose the TV standard. Available values are: <simplelist type="inline">
+							<member><parameter class="option">VIDEO</parameter></member>
+							<member><parameter class="option">SCART</parameter></member>
+							<member><parameter class="option">YUF</parameter></member>
+						</simplelist>
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvcoloradj">Option
+						"<varname>TVColorAdj</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvhposadj">Option
+						"<varname>TVHPosAdj</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Define the horizontal pixel offset from the center of the screen. The
+						range for <parameter class="option">integer</parameter> depends on the
+						<acronym>ASIC</acronym>. Try to use <citerefentry>
+							<refentrytitle>aticonfig</refentrytitle>
+							<manvolnum>1x</manvolnum>
+						</citerefentry> with option <option>--tv-info</option> to get a valid range.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvvposadj">Option
+						"<varname>TVVPosAdj</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Define the vertical pixel offset from the center of the screen. The
+						range for <parameter class="option">integer</parameter> depends on the
+						<acronym>ASIC</acronym>. Try to use <citerefentry>
+							<refentrytitle>aticonfig</refentrytitle>
+							<manvolnum>1x</manvolnum>
+						</citerefentry> with option <option>--tv-info</option> to get a valid range.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvhsizeadj">Option
+						"<varname>TVHSizeAdj</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Define the height of the TV geometry (as percentage unit). As a rule of
+						thumb the value is valid in the range of <parameter class="option">[1..100]</parameter>,
+						but it depends on what has been chosen for <link linkend="option_tvformat">
+						<option>Option "<varname>TVFormat</varname>"</option></link>.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvvsizeadj">Option
+						"<varname>TVVSizeAdj</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Define the width of the TV geometry (as percentage unit). As a rule of
+						thumb the value is valid in the range of <parameter class="option">[1..100]</parameter>,
+						but it depends on what has been chosen for <link linkend="option_tvformat">
+						<option>Option "<varname>TVFormat</varname>"</option></link>.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_tvhstartadj">Option
+						"<varname>TVHStartAdj</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_usefasttls">Option
+						"<varname>UseFastTLS</varname>"
+						"<replaceable class="option">integer</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Use this option to set the method to maintain the so called
+						Thread Local Storage (<acronym>TLS</acronym>) locations.
+						The default is: "<parameter class="option">0</parameter>".
+					</para>
+					<variablelist>
+						<varlistentry>
+							<term>"<parameter class="option">0</parameter>"</term>
+							<listitem>
+								<para>Fast operations. Provides the highest possible OpenGL performance.
+									The method makes use of a quite limited resource. This is the default.
+								</para>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term>"<parameter class="option">1</parameter>"</term>
+							<listitem>
+								<para>Fast operations.</para>
+							</listitem>
+						</varlistentry>
+						<varlistentry>
+							<term>"<parameter class="option">2</parameter>"</term>
+							<listitem>
+								<para>Compatible mode. Fast operations are turned off. This method is some
+									10% slower and uses a less limited resource. Preferred for Wine(X),
+									emulators and other VM manipulating programs.
+								</para>
+							</listitem>
+						</varlistentry>
+					</variablelist>
+					<para>If you do spot an immediate segmentation fault after launching a program
+						that makes use of OpenGL and further when the fault can be traced down to
+						the OpenGL implementation of the graphics driver, then you should try to
+						tune the TLS settings.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_useinternalagpgart">Option
+						"<varname>UseInternalAGPGART</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Enable or disable the usage of an internal agpgart module. If you
+						set this option to "<parameter class="option">yes</parameter>", the
+						driver will not use the kernel's AGPGart module. Instead it will make
+						use of the "built-in" AGP support. The default
+						is "<parameter class="option">no</parameter>", as long as the graphics
+						driver's kernel module detects the presence of an agpgart kernel
+						module.
+					</para>
+					<warning>
+						<para>If you set this option to "<parameter class="option">yes</parameter>"
+							you must ensure, that you don't have the kernel AGP support
+							compiled in. Instead compile it as modules.
+						</para>
+					</warning>
+					<para>The AGP support in the driver may not always work, depending on the type of motherboard
+						and/or card that you have. But there is a possibility, which maybe still works. Refer to
+						the "<parameter class="option">agp_try_unsupported=1</parameter>" value
+						for <link linkend="option_kernelmoduleparm"><option>Option
+						"<varname>KernelModuleParm</varname>"</option></link>.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_videooverlay">Option
+						"<varname>VideoOverlay</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>... Video Overlay for the Xv extension ...
+						If you want enable this option, <link linkend="option_opengloverlay"><option>Option
+						"<varname>OpenGLOverlay</varname>"</option></link> must not be enabled.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<option id="option_vrefresh2">Option
+						"<varname>VRefresh2</varname>"
+						"<replaceable class="option">frequency</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Vertical refresh rate range for the second monitor in e.g. big desktop mode.</para>
+					<note>
+						<para>You can skip this value, if you define an
+							appropriate <option>VertRefresh</option> line
+							in the related <option>Section "Monitor"</option>.
+						</para>
+					</note>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+		<variablelist>
+			<para>The following options are obsolete. Don't use them or use their proper replacement.</para>
+			<varlistentry>
+				<term>
+					<option id="option_enablepageflip">Option
+						"<varname>EnablePageFlip</varname>"
+						"<replaceable class="option">boolean</replaceable>"
+					</option>
+				</term>
+				<listitem>
+					<para>Obsoleted with driver version xxx.</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="diagnostics">
+		<title>DIAGNOSTICS</title>
+		<variablelist>
+			<para>The following diagnostics may be issued
+				in <filename>&dhxserverstring;.0.log</filename>:
+			</para>
+			<varlistentry>
+				<term>
+					<errortext>(II)	fglrx(0): Composite extension enabled, disabling direct rendering</errortext>
+				</term>
+				<listitem>
+					<para>At the moment, the driver will automatically disable direct rendering if you
+						enable the Composite extension. To get 3D acceleration back, simply comment or remove
+						the line in your <citerefentry>
+							<refentrytitle>&dhxserverconf;</refentrytitle>
+							<manvolnum>5x</manvolnum>
+						</citerefentry> that loads the Composite extension..
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx: No matching Device section for instance (BusID PCI:x:x:x) found</errortext>
+				</term>
+				<listitem>
+					<para>You may see this message if you aren't using the secondary monitor connector on
+						your card. X is just saying that you haven't given any configuration details for
+						it, but this doesn't matter if you only have a single monitor in use. Note that
+						the number represented by the "x" will vary depending on your system.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx(0): board is an unknown third party board, chipset is supported</errortext>
+				</term>
+				<listitem>
+					<para>Don't care. The driver detected, that you have a "Powered-by-ATI" and
+						not a "Built-by-ATI" board.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx(0): Direct rendering is not supported when Xinerama is enabled</errortext>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx(0): Only single display is connected, DesktopOption will be ignored</errortext>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx(0): Option "..." is not used</errortext>
+				</term>
+				<listitem>
+					<para>Don't care. Some options became obsolete over time. Others are maybe not
+						supported by your hardware.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx(0): Specified desktop setup not supported: 8</errortext>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(WW) fglrx(0): * DRI initialization failed!</errortext>
+				</term>
+				<listitem>
+					<para>... various reasons (e.g. running the driver without the kernel module) ...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(EE) fglrx(0): Failed to initialize UMM driver.</errortext>
+				</term>
+				<listitem>
+					<para>...</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENODEV"</errortext></term>
+				<term><errortext>(EE) fglrx(0): cannot init AGP</errortext></term>
+				<listitem>
+					<para>This error can have many causes, but the most common is, that
+						AGP support was not compiled into the kernel or it was compiled as module 
+						but not loaded. On 2.6 kernels make sure you've loaded the generic
+						and the specific AGPGart module (see <citerefentry>
+							<refentrytitle>modprobe</refentrytitle>
+							<manvolnum>8</manvolnum>
+						</citerefentry>). For example: If you have
+						a <hardware>VIA motherboard</hardware>, load the
+						"<parameter class="command">agpgart</parameter>" and
+						"<parameter class="command">via-agp</parameter>" modules.
+						If you have a <hardware>nForce board</hardware>, you would load
+						"<parameter class="command">agpgart</parameter>" and
+						"<parameter class="command">nvidia-agp</parameter>"
+						... and so on for the other chipset types.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>(EE) fglrx(0): [agp] unable to acquire AGP, error "xf86_ENOMEM"</errortext></term>
+				<term><errortext>(EE) fglrx(0): cannot init AGP</errortext></term>
+				<listitem>
+					<para>This error is generally more difficult to diagnose and fix. A few things you could try:
+						<itemizedlist>
+							<listitem>
+								<para>If you are using the kernel <acronym>AGP</acronym> support
+									(<link linkend="option_useinternalagpgart"><option>Option
+									"<varname>UseInternalAGPGART</varname>"</option></link> is set to
+									"<parameter class="option">no</parameter>"), ensure that you have the
+									necessary modules loaded (see also the error message above). If you are not using
+									the kernel <acronym>AGP</acronym> support
+									(<link linkend="option_useinternalagpgart"><option>Option
+									"<varname>UseInternalAGPGART</varname>"</option></link> is set to
+									"<parameter class="option">yes</parameter>"), ensure that you don't
+									have your kernel <acronym>AGP</acronym> settings compiled in.
+								</para>
+							</listitem>
+							<listitem>
+								<para>Set <link linkend="option_usefasttls"><option>Option
+									"<varname>UseFastTLS</varname>"</option></link> to
+									"<parameter class="option">2</parameter>" in your <citerefentry>
+										<refentrytitle>&dhxserverconf;</refentrytitle>
+										<manvolnum>5x</manvolnum>
+									</citerefentry>.
+								</para>
+							</listitem>
+							<listitem>
+								<para>Try <link linkend="option_kernelmoduleparm"><option>Option
+									"<varname>KernelModuleParm</varname>"</option></link> with
+									"<parameter class="option">agplock=0</parameter>" in your <citerefentry>
+										<refentrytitle>&dhxserverconf;</refentrytitle>
+										<manvolnum>5x</manvolnum>
+									</citerefentry>.
+								</para>
+							</listitem>
+							<listitem>
+								<para>Increase your AGP aperture size in the <acronym>BIOS</acronym> (particularly
+									for <hardware>nForce2 boards</hardware>).
+								</para>
+							</listitem>
+							<listitem>
+								<para>Users of <hardware>nForce2 boards</hardware> can also try disabling the AGP 8x support
+									in the <acronym>BIOS</acronym>.
+								</para>
+							</listitem>
+						</itemizedlist>
+					</para>
+					<para>If that all didn't work, check the output of <citerefentry>
+						<refentrytitle>dmesg</refentrytitle>
+						<manvolnum>8</manvolnum>
+					</citerefentry>. Verify, that your kernel configuration is correct and if so,
+					try a newer kernel.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>(EE) fglrx(0): incompatible kernel module detected [..]</errortext>
+				</term>
+				<listitem>
+					<para>The version of the <package>&dhname;</package> kernel module you have loaded does not
+						match the version of the driver you have installed. This can happen if you change the
+						driver version without unloading and reloading the <package>&dhname;</package> module
+						(or rebooting). To fix this error, you can simply reboot or unload the old module and
+						load the new one: <command>rmmod fglrx &amp;&amp; modprobe fglrx</command>
+						(see <citerefentry>
+							<refentrytitle>modprobe</refentrytitle>
+							<manvolnum>8</manvolnum>
+						</citerefentry>, <citerefentry>
+							<refentrytitle>rmmod</refentrytitle>
+							<manvolnum>8</manvolnum>
+						</citerefentry>).
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>(EE) AIGLX error: dlsym for __driCreateNewScreen_xxx failed (..)</errortext></term>
+				<term><errortext>(EE) AIGLX: reverting to software rendering</errortext></term>
+				<listitem>
+					<para>This error only occurs for <citerefentry>
+							<refentrytitle>X.org</refentrytitle>
+							<manvolnum>7</manvolnum>
+						</citerefentry> versions, which use <acronym>AIGLX</acronym> rather than <acronym>XGL</acronym>.
+						Disable <acronym>AIGLX</acronym> with <option>Option "<varname>AIGLX</varname>"
+						"<parameter class="option">off</parameter>"</option> in <option>Section
+						"ServerFlags"</option> in your <citerefentry>
+							<refentrytitle>xorg.conf</refentrytitle>
+							<manvolnum>5x</manvolnum>
+						</citerefentry>
+					</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="bugs">
+		<title>BUGS</title>
+		<para>Known issues with the current driver can be found
+			at <ulink url="http://www2.ati.com/drivers/linux/linux_8.32.5.html#183417"/>.
+		</para>
+		<para>Report any further issues
+			to <ulink url="http://support.ati.com"/>. There is also an unofficial <abbrev>BTS</abbrev>
+			at <ulink url="http://ati.cchtml.com"/>, which is known by the ATI driver team.
+		</para>
+	</refsect1>
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<para><citerefentry>
+				<refentrytitle>aticonfig</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>&dhxserverconfig;</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>&dhxserverstring;</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>Xserver</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>&dhxserverconf;</refentrytitle>
+				<manvolnum>5x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>X</refentrytitle>
+				<manvolnum>7x</manvolnum>
+			</citerefentry>
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_man_history.xml
+++ fglrx-driver-8.47.3/debian/man/fglrx_man_history.xml
@@ -0,0 +1,277 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE revhistory PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd">
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx_man_history.xml,v 1.9 2007-06-26 11:58:23 dleidert Exp $
+  Summary   Revision history for the proprietary ATI driver and the manpages.
+-->
+
+<!--
+  Note: This file should also contain information, when and which options became obsolet
+-->
+<revhistory id="fglrx_man_history" lang="en">
+	<revision>
+		<revnumber>8.32.5</revnumber>
+		<date>2006-12-13</date>
+		<authorinitials>dale</authorinitials>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_32_5"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.32.5.html">ATI Proprietary Linux Driver Version 8.32.5</ulink>.</para>
+			<itemizedlist>
+				<listitem>
+					<para>See the file <filename>ChangeLog</filename>.</para>
+				</listitem>
+			</itemizedlist>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.28.8</revnumber>
+		<date>2006-08-18</date>
+		<authorinitials>dale</authorinitials>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_28_8"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.28.8.html">ATI Proprietary Linux Driver Version 8.28.8</ulink>.</para>
+			<para>Because I did not made manpage releases for ATI Proprietary Linux Driver Versions <link linkend="revision_8_25_18">8.25.18</link>, <link linkend="revision_8_26_18">8.26.18</link> and <link linkend="revision_8_27_10">8.27.10</link>, this ChangeLog is quite long.</para>
+			<important>
+				<para><emphasis role="bold">Be aware, that this driver is the last with support for <productname class="registered">RADEON</productname> 8500/9000/9100/9200/9250, <productname class="trade">MOBILITY</productname> <productname class="registered">RADEON</productname> 9000/9100/9200 and <productname class="registered">RADEON</productname> IGP 9000/9100/9200 chipsets.</emphasis></para>
+			</important>
+			<itemizedlist>
+				<para>General changes:</para>
+				<listitem>
+					<para><emphasis role="bold">The license has changed to a MIT license.</emphasis></para>
+				</listitem>
+				<listitem>
+					<para>Updated the list of supported chipsets.</para>
+				</listitem>
+				<listitem>
+					<para>Fixed many build issues and improved the build system in several ways.</para>
+				</listitem>
+				<listitem>
+					<para>Added a XML-based revision history and dropped the plain-text based one (this means, that there is still a text version, but it's created from the XML file and a HTML version was added).</para>
+				</listitem>
+				<listitem>
+					<para>Fixed format issues in all manpages, that clashed with the format recommendations of manpages.</para>
+				</listitem>
+				<listitem>
+					<para>Fixed many markup issues in <citerefentry><refentrytitle>aticonfig</refentrytitle><manvolnum>1x</manvolnum></citerefentry>, <citerefentry><refentrytitle>fgl_glxgears</refentrytitle><manvolnum>1x</manvolnum></citerefentry>, <citerefentry><refentrytitle>fglrxinfo</refentrytitle><manvolnum>1x</manvolnum></citerefentry>, <citerefentry><refentrytitle>fglrx_xgamma</refentrytitle><manvolnum>1x</manvolnum></citerefentry> and <citerefentry><refentrytitle>fglrx</refentrytitle><manvolnum>4x</manvolnum></citerefentry>.</para>
+				</listitem>
+				<listitem>
+					<para>Fixed several typos in <citerefentry><refentrytitle>aticonfig</refentrytitle><manvolnum>1x</manvolnum></citerefentry> and <citerefentry><refentrytitle>fglrx</refentrytitle><manvolnum>4x</manvolnum></citerefentry>.</para>
+				</listitem>
+				<listitem>
+					<para>The HTML form of the manpages now uses HTML 4.01 transitional.</para>
+				</listitem>
+			</itemizedlist>
+			<itemizedlist>
+				<para>Special changes for <citerefentry><refentrytitle>aticonfig</refentrytitle><manvolnum>1x</manvolnum></citerefentry>:</para>
+				<listitem>
+					<para>Fixed copyright.</para>
+				</listitem>
+				<listitem>
+					<para>Added some information if and how options affect the configuration file (taken from <command>aticonfig --help</command> output).</para>
+				</listitem>
+				<listitem>
+					<para>Added some general section descriptions based on the information given by the <option>--help</option> of <citerefentry><refentrytitle>aticonfig</refentrytitle><manvolnum>1x</manvolnum></citerefentry>.</para>
+				</listitem>
+				<listitem>
+					<para>Added the description for the newly introduced options: <simplelist type="vert">
+							<member><option>--add-pairmode</option></member>
+							<member><option>--enable-monitor</option></member>
+							<member><option>--list-pairmode</option></member>
+							<member><option>--locked-userpages</option></member>
+							<member><option>--max-gart-size</option></member>
+							<member><option>--nobackup</option></member>
+							<member><option>--query-monitor</option></member>
+							<member><option>--remove-pairmode</option></member>
+							<member><option>--swap-monitor</option></member>
+							<member><option>--set-policy</option></member>
+							<member><option>--tv-geometry</option></member>
+							<member><option>--tv-info</option></member>
+							<member><option>--tv-overscan</option></member>
+						</simplelist> with descriptions.
+					</para>
+				</listitem>
+				<listitem>
+					<para>Improved and updated the description for the options: <simplelist type="vert">
+							<member><option>--initial</option></member>
+							<member><option>--tvf</option>,<option>--tv-format-type</option></member>
+							<member><option>-o</option>, <option>--output</option></member>
+						</simplelist>
+					</para>
+				</listitem>
+				<listitem>
+					<para>Removed the description for the no longer available options: <simplelist type="vert">
+							<member><option>--agpl</option>, <option>--agp-locked-userpages</option></member>
+							<member><option>--dw</option>,<option>--disable-workstation</option></member>
+							<member><option>--iagp</option>, <option>--internal-agp</option></member>
+						</simplelist>
+					</para>
+				</listitem>
+				<listitem>
+					<para>Removed solved or obsolete bugs: <itemizedlist>
+							<listitem>
+								<para>The <option>--tv-format-type</option> option does not longer try to manipulate the <option>Option "TVStandard"</option> value of <citerefentry><refentrytitle>fglrx</refentrytitle><manvolnum>4x</manvolnum></citerefentry>.</para>
+							</listitem>
+							<listitem>
+								<para>Trying to use <option>--dw timmo-extreme</option> returns the following error message: <quote><errortext>aticonfig: parsing the command-line failed</errortext></quote>.</para>
+							</listitem>
+						</itemizedlist>
+					</para>
+					<para>Added newly observed bugs: <itemizedlist>
+							<listitem>
+								<para>The <option>--tvf</option> option does not accept all values mentioned in the <option>--help</option> output.</para>
+							</listitem>
+							<listitem>
+								<para>The <option>--tv-info</option> option could freeze with 100% CPU usage.</para>
+							</listitem>
+							<listitem>
+								<para>The <option>--tv-geometry</option> may break the configuration file or output a wrong error message.</para>
+							</listitem>
+							<listitem>
+								<para>The <option>--help</option> output is wrong in a few cases.</para>
+							</listitem>
+						</itemizedlist>
+					</para>
+					<para>Check the <quote>BUGS</quote> section of <citerefentry><refentrytitle>aticonfig</refentrytitle><manvolnum>1x</manvolnum></citerefentry> for more information.</para>
+				</listitem>
+			</itemizedlist>
+			<itemizedlist>
+				<para>Special changes for <citerefentry><refentrytitle>fglrx</refentrytitle><manvolnum>4x</manvolnum></citerefentry>:</para>
+				<listitem>
+					<para>Fixed copyright.</para>
+				</listitem>
+				<listitem>
+					<para>Updated, sorted and reorganized the list of supported chipsets and their supported features.</para>
+				</listitem>
+				<listitem>
+					<para>Added new explanations for the options: <simplelist type="vert">
+							<member><option>Option "MaxGARTSize"</option></member>
+							<member><option>Option "TVOverscan"</option></member>
+						</simplelist>
+					</para>
+					<para>Updated and improved explanations for the options: <simplelist type="vert">
+							<member><option>Option "ForceMonitors"</option></member>
+							<member><option>Option "TVFormat"</option></member>
+							<member><option>Option "TVHPosAdj"</option></member>
+							<member><option>Option "TVHSizeAdj"</option></member>
+							<member><option>Option "TVVPosAdj"</option></member>
+							<member><option>Option "TVVSizeAdj"</option></member>
+						</simplelist>
+					</para>
+				</listitem>
+			</itemizedlist>
+			<itemizedlist>
+				<para>Special changes for <citerefentry><refentrytitle>fglrxrc</refentrytitle><manvolnum>5</manvolnum></citerefentry>:</para>
+				<listitem>
+					<para>Added the involved files, this manpage is about.</para>
+				</listitem>
+			</itemizedlist>
+			<para>New driver options (may be incomplete): <simplelist type="vert">
+					<member><option>Option "EnableMonitor"</option></member>
+					<member><option>Option "MaxGARTSize"</option></member>
+					<member><option>Option "PairModes"</option></member>
+					<member><option>Option "TVOverscan"</option></member>
+				</simplelist>
+			</para>
+			<para>Obsoleted driver options (may be incomplete): unknown</para>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.27.10</revnumber>
+		<date>2006-07-27</date>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_27_10"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.27.10.html">ATI Proprietary Linux Driver Version 8.27.10</ulink>.</para>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.26.18</revnumber>
+		<date>2006-06-26</date>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_26_18"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.26.18.html">ATI Proprietary Linux Driver Version 8.26.18</ulink>.</para>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.25.18</revnumber>
+		<date>2006-05-24</date>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_25_18"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.25.18.html">ATI Proprietary Linux Driver Version 8.25.18</ulink>.</para>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.24.8</revnumber>
+		<date>2006-04-12</date>
+		<authorinitials>dale</authorinitials>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_24_8"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.24.8.html">ATI Proprietary Linux Driver Version 8.24.8</ulink>.</para>
+			<itemizedlist>
+				<para>Changes:</para>
+				<listitem>
+					<para>Added newly supported chipsets for RADEON X1x000 products to <citerefentry><refentrytitle>fglrx</refentrytitle><manvolnum>4x</manvolnum></citerefentry>.</para>
+				</listitem>
+				<listitem>
+					<para>Removed <citerefentry><refentrytitle>fglrxconfig</refentrytitle><manvolnum>1x</manvolnum></citerefentry> from Makefile. This file is not longer shipped with the driver. All references to this application were removed.</para>
+				</listitem>
+				<listitem>
+					<para>Make it compatible with <package>X.org</package> 7 (left the suffixes as suggested by the <ulink url="http://webcvs.freedesktop.org/xorg/util/macros/xorg-macros.m4"/>	macro).</para>
+				</listitem>
+			</itemizedlist>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.23.7</revnumber>
+		<date>2006-03-08</date>
+		<authorinitials>dale</authorinitials>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_23_7"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.23.7.html">ATI Proprietary Linux Driver Version 8.23.7</ulink>.</para>
+			<itemizedlist>
+				<para>Changes:</para>
+				<listitem>
+					<para>Added newly supported chipsets to <citerefentry><refentrytitle>fglrx</refentrytitle><manvolnum>4x</manvolnum></citerefentry>.</para>
+				</listitem>
+			</itemizedlist>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.22.5</revnumber>
+		<date>2006-02-08</date>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_22_5"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.22.5.html">ATI Proprietary Linux Driver Version 8.22.5</ulink>.</para>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.21.7</revnumber>
+		<date>2006-01-18</date>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_21_7"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.21.7.html">ATI Proprietary Linux Driver Version 8.21.7</ulink>.</para>
+		</revdescription>
+	</revision>
+	<revision>
+		<revnumber>8.20.8</revnumber>
+		<date>2005-12-08</date>
+		<authorinitials>dale</authorinitials>
+		<author><othername>ATI Technologies Inc.</othername></author>
+		<revdescription>
+			<anchor id="revision_8_20_8"/>
+			<para>New upstream release <ulink url="http://www2.ati.com/drivers/linux/linux_8.20.8.html">ATI Proprietary Linux Driver Version 8.20.8</ulink>.</para>
+		<para>This is the first official release of the manpages.</para>
+		</revdescription>
+	</revision>
+</revhistory>
+
--- fglrx-driver-8.47.3.orig/debian/man/aclocal.m4
+++ fglrx-driver-8.47.3/debian/man/aclocal.m4
@@ -0,0 +1,1021 @@
+# generated automatically by aclocal 1.10 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006  Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_if(m4_PACKAGE_VERSION, [2.61],,
+[m4_fatal([this file was generated for autoconf 2.61.
+You have another version of autoconf.  If you want to use that,
+you should regenerate the build system entirely.], [63])])
+
+# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
+# 
+# Copyright Â© 2004 Scott James Remnant <scott@netsplit.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
+# ----------------------------------
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+fi
+if test -n "$PKG_CONFIG"; then
+	_pkg_min_version=m4_default([$1], [0.9.0])
+	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
+	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+		AC_MSG_RESULT([yes])
+	else
+		AC_MSG_RESULT([no])
+		PKG_CONFIG=""
+	fi
+		
+fi[]dnl
+])# PKG_PROG_PKG_CONFIG
+
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+#
+# Check to see whether a particular set of modules exists.  Similar
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
+#
+#
+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
+# this or PKG_CHECK_MODULES is called, or make sure to call
+# PKG_CHECK_EXISTS manually
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_EXISTS],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+if test -n "$PKG_CONFIG" && \
+    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
+  m4_ifval([$2], [$2], [:])
+m4_ifvaln([$3], [else
+  $3])dnl
+fi])
+
+
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
+# ---------------------------------------------
+m4_define([_PKG_CONFIG],
+[if test -n "$PKG_CONFIG"; then
+    if test -n "$$1"; then
+        pkg_cv_[]$1="$$1"
+    else
+        PKG_CHECK_EXISTS([$3],
+                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
+			 [pkg_failed=yes])
+    fi
+else
+	pkg_failed=untried
+fi[]dnl
+])# _PKG_CONFIG
+
+# _PKG_SHORT_ERRORS_SUPPORTED
+# -----------------------------
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi[]dnl
+])# _PKG_SHORT_ERRORS_SUPPORTED
+
+
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
+# [ACTION-IF-NOT-FOUND])
+#
+#
+# Note that if there is a possibility the first call to
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
+#
+#
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_MODULES],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
+
+pkg_failed=no
+AC_MSG_CHECKING([for $1])
+
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
+
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
+and $1[]_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.])
+
+if test $pkg_failed = yes; then
+        _PKG_SHORT_ERRORS_SUPPORTED
+        if test $_pkg_short_errors_supported = yes; then
+	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
+        else 
+	        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
+        fi
+	# Put the nasty error message in config.log where it belongs
+	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
+
+	ifelse([$4], , [AC_MSG_ERROR(dnl
+[Package requirements ($2) were not met:
+
+$$1_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+_PKG_TEXT
+])],
+		[AC_MSG_RESULT([no])
+                $4])
+elif test $pkg_failed = untried; then
+	ifelse([$4], , [AC_MSG_FAILURE(dnl
+[The pkg-config script could not be found or is too old.  Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+_PKG_TEXT
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
+		[$4])
+else
+	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
+	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
+        AC_MSG_RESULT([yes])
+	ifelse([$3], , :, [$3])
+fi[]dnl
+])# PKG_CHECK_MODULES
+
+# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.10'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version.  Point them to the right macro.
+m4_if([$1], [1.10], [],
+      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too.  Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.10])dnl
+_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
+
+# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory.  The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run.  This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+#    fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+#    fails if $ac_aux_dir is absolute,
+#    fails when called from a subdirectory in a VPATH build with
+#          a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir.  In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
+#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+#   MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH.  The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL                                            -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 8
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
+	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+if $2; then
+  $1_TRUE=
+  $1_FALSE='#'
+else
+  $1_TRUE='#'
+  $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+  AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 9
+
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery.  Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "GCJ", or "OBJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
+       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
+       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
+       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
+                   [depcc="$$1"   am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+               [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_$1_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+  fi
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    case $depmode in
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test "x$enable_dependency_tracking" = xyes; then
+	continue
+      else
+	break
+      fi
+      ;;
+    none) break ;;
+    esac
+    # We check with `-c' and `-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.
+    if depmode=$depmode \
+       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_$1_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE(dependency-tracking,
+[  --disable-dependency-tracking  speeds up one-time build
+  --enable-dependency-tracking   do not reject slow dependency extractors])
+if test "x$enable_dependency_tracking" != xno; then
+  am_depcomp="$ac_aux_dir/depcomp"
+  AMDEPBACKSLASH='\'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+])
+
+# Generate code to set up dependency tracking.              -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+#serial 3
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[for mf in $CONFIG_FILES; do
+  # Strip MF so we end up with the name of the file.
+  mf=`echo "$mf" | sed -e 's/:.*$//'`
+  # Check whether this is an Automake generated Makefile or not.
+  # We used to match only the files named `Makefile.in', but
+  # some people rename them; so instead we look at the file content.
+  # Grep'ing the first line is not enough: some people post-process
+  # each Makefile.in and add a new line on top of each file to say so.
+  # Grep'ing the whole file is not good either: AIX grep has a line
+  # limit of 2048, but all sed's we know have understand at least 4000.
+  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
+    dirpart=`AS_DIRNAME("$mf")`
+  else
+    continue
+  fi
+  # Extract the definition of DEPDIR, am__include, and am__quote
+  # from the Makefile without running `make'.
+  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+  test -z "$DEPDIR" && continue
+  am__include=`sed -n 's/^am__include = //p' < "$mf"`
+  test -z "am__include" && continue
+  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+  # When using ansi2knr, U may be empty or an underscore; expand it
+  U=`sed -n 's/^U = //p' < "$mf"`
+  # Find all dependency output files, they are included files with
+  # $(DEPDIR) in their names.  We invoke sed twice because it is the
+  # simplest approach to changing $(DEPDIR) to its actual value in the
+  # expansion.
+  for file in `sed -n "
+    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+    # Make sure the directory exists.
+    test -f "$dirpart/$file" && continue
+    fdir=`AS_DIRNAME(["$file"])`
+    AS_MKDIR_P([$dirpart/$fdir])
+    # echo "creating $dirpart/$file"
+    echo '# dummy' > "$dirpart/$file"
+  done
+done
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled.  FIXME.  This creates each `.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+])
+
+# Do all the work for Automake.                             -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 12
+
+# This macro actually does too much.  Some checks are only needed if
+# your package does certain things.  But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out.  PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition.  After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.60])dnl
+dnl Autoconf wants to disallow AM_ names.  We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+  # is not polluted with repeated "-I."
+  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+  # test to see if srcdir already configured
+  if test -f $srcdir/config.status; then
+    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+  fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+  if (cygpath --version) >/dev/null 2>/dev/null; then
+    CYGPATH_W='cygpath -w'
+  else
+    CYGPATH_W=echo
+  fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AM_PROG_INSTALL_SH
+AM_PROG_INSTALL_STRIP
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the "check" target.  The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+	      		     [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+                  [_AM_DEPENDENCIES(CC)],
+                  [define([AC_PROG_CC],
+                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+                  [_AM_DEPENDENCIES(CXX)],
+                  [define([AC_PROG_CXX],
+                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+                  [_AM_DEPENDENCIES(OBJC)],
+                  [define([AC_PROG_OBJC],
+                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+])
+])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated.  The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+  case $_am_header in
+    $1 | $1:* )
+      break ;;
+    * )
+      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+  esac
+done
+echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot.  For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+  am__leading_dot=.
+else
+  am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Check to see how 'make' treats includes.	            -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+	@echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+   am__include=include
+   am__quote=
+   _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+   echo '.include "confinc"' > confmf
+   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+      am__include=.include
+      am__quote="\""
+      _am_result=BSD
+   fi
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+  am_missing_run="$MISSING --run "
+else
+  am_missing_run=
+  AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+  [[\\/$]]* | ?:[[\\/]]*) ;;
+  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling.                     -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# ------------------------------
+# Set option NAME.  Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ----------------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Check to make sure that the build environment is sane.    -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments.  Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+   if test "$[*]" = "X"; then
+      # -L didn't work.
+      set X `ls -t $srcdir/configure conftest.file`
+   fi
+   rm -f conftest.file
+   if test "$[*]" != "X $srcdir/configure conftest.file" \
+      && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+      # If neither matched, then we have a broken ls.  This can happen
+      # if, for instance, CONFIG_SHELL is bash and it inherits a
+      # broken ls alias from the environment.  This has actually
+      # happened.  Such a system could not be considered "sane".
+      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
+alias in your environment])
+   fi
+
+   test "$[2]" = conftest.file
+   )
+then
+   # Ok.
+   :
+else
+   AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries.  This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'.  However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test "$cross_compiling" != no; then
+  AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# Check how to create a tarball.                            -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+#     tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+#     $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.
+AM_MISSING_PROG([AMTAR], [tar])
+m4_if([$1], [v7],
+     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+     [m4_case([$1], [ustar],, [pax],,
+              [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+  case $_am_tool in
+  gnutar)
+    for _am_tar in tar gnutar gtar;
+    do
+      AM_RUN_LOG([$_am_tar --version]) && break
+    done
+    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+    am__untar="$_am_tar -xf -"
+    ;;
+  plaintar)
+    # Must skip GNU tar: if it does not support --format= it doesn't create
+    # ustar tarball either.
+    (tar --version) >/dev/null 2>&1 && continue
+    am__tar='tar chf - "$$tardir"'
+    am__tar_='tar chf - "$tardir"'
+    am__untar='tar xf -'
+    ;;
+  pax)
+    am__tar='pax -L -x $1 -w "$$tardir"'
+    am__tar_='pax -L -x $1 -w "$tardir"'
+    am__untar='pax -r'
+    ;;
+  cpio)
+    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+    am__untar='cpio -i -H $1 -d'
+    ;;
+  none)
+    am__tar=false
+    am__tar_=false
+    am__untar=false
+    ;;
+  esac
+
+  # If the value was cached, stop now.  We just wanted to have am__tar
+  # and am__untar set.
+  test -n "${am_cv_prog_tar_$1}" && break
+
+  # tar/untar a dummy directory, and stop if the command works
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  echo GrepMe > conftest.dir/file
+  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+  rm -rf conftest.dir
+  if test -s conftest.tar; then
+    AM_RUN_LOG([$am__untar <conftest.tar])
+    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+  fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([acinclude.m4])
--- fglrx-driver-8.47.3.orig/debian/man/NEWS.html
+++ fglrx-driver-8.47.3/debian/man/NEWS.html
@@ -0,0 +1,259 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title></title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="revhistory"><table border="0" width="100%" summary="Revision history">
+<tr><th align="left" valign="top" colspan="3"><b>Revision History</b></th></tr>
+<tr>
+<td align="left">Revision 8.32.5</td>
+<td align="left">2006-12-13</td>
+<td align="left">dale, <span class="author"><span class="othername">ATI Technologies Inc.</span></span>
+</td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_32_5"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.32.5.html" target="_top">ATI Proprietary Linux Driver Version 8.32.5</a>.</p>
+			<div class="itemizedlist"><ul type="disc"><li><p>See the file <code class="filename">ChangeLog</code>.</p></li></ul></div>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.28.8</td>
+<td align="left">2006-08-18</td>
+<td align="left">dale, <span class="author"><span class="othername">ATI Technologies Inc.</span></span>
+</td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_28_8"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.28.8.html" target="_top">ATI Proprietary Linux Driver Version 8.28.8</a>.</p>
+			<p>Because I did not made manpage releases for ATI Proprietary Linux Driver Versions <a class="link" href="#revision_8_25_18">8.25.18</a>, <a class="link" href="#revision_8_26_18">8.26.18</a> and <a class="link" href="#revision_8_27_10">8.27.10</a>, this ChangeLog is quite long.</p>
+			<div class="important"><table border="0" summary="Important">
+<tr>
+<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="http://docbook.sourceforge.net/release/xsl/current/images/important.png"></td>
+<th align="left">Important</th>
+</tr>
+<tr><td align="left" valign="top"><p><span class="bold"><strong>Be aware, that this driver is the last with support for <span class="productname">RADEON</span>® 8500/9000/9100/9200/9250, <span class="productname">MOBILITY</span>&#8482; <span class="productname">RADEON</span>® 9000/9100/9200 and <span class="productname">RADEON</span>® IGP 9000/9100/9200 chipsets.</strong></span></p></td></tr>
+</table></div>
+			<div class="itemizedlist">
+<p>General changes:</p>
+<ul type="disc">
+<li><p><span class="bold"><strong>The license has changed to a MIT license.</strong></span></p></li>
+<li><p>Updated the list of supported chipsets.</p></li>
+<li><p>Fixed many build issues and improved the build system in several ways.</p></li>
+<li><p>Added a XML-based revision history and dropped the plain-text based one (this means, that there is still a text version, but it's created from the XML file and a HTML version was added).</p></li>
+<li><p>Fixed format issues in all manpages, that clashed with the format recommendations of manpages.</p></li>
+<li><p>Fixed many markup issues in <span class="citerefentry"><span class="refentrytitle">aticonfig</span>(1x)</span>, <span class="citerefentry"><span class="refentrytitle">fgl_glxgears</span>(1x)</span>, <span class="citerefentry"><span class="refentrytitle">fglrxinfo</span>(1x)</span>, <span class="citerefentry"><span class="refentrytitle">fglrx_xgamma</span>(1x)</span> and <span class="citerefentry"><span class="refentrytitle">fglrx</span>(4x)</span>.</p></li>
+<li><p>Fixed several typos in <span class="citerefentry"><span class="refentrytitle">aticonfig</span>(1x)</span> and <span class="citerefentry"><span class="refentrytitle">fglrx</span>(4x)</span>.</p></li>
+<li><p>The HTML form of the manpages now uses HTML 4.01 transitional.</p></li>
+</ul>
+</div>
+			<div class="itemizedlist">
+<p>Special changes for <span class="citerefentry"><span class="refentrytitle">aticonfig</span>(1x)</span>:</p>
+<ul type="disc">
+<li><p>Fixed copyright.</p></li>
+<li><p>Added some information if and how options affect the configuration file (taken from <span class="command"><strong>aticonfig --help</strong></span> output).</p></li>
+<li><p>Added some general section descriptions based on the information given by the <code class="option">--help</code> of <span class="citerefentry"><span class="refentrytitle">aticonfig</span>(1x)</span>.</p></li>
+<li>
+<p>Added the description for the newly introduced options: </p>
+<table class="simplelist" border="0" summary="Simple list">
+<tr><td><code class="option">--add-pairmode</code></td></tr>
+<tr><td><code class="option">--enable-monitor</code></td></tr>
+<tr><td><code class="option">--list-pairmode</code></td></tr>
+<tr><td><code class="option">--locked-userpages</code></td></tr>
+<tr><td><code class="option">--max-gart-size</code></td></tr>
+<tr><td><code class="option">--nobackup</code></td></tr>
+<tr><td><code class="option">--query-monitor</code></td></tr>
+<tr><td><code class="option">--remove-pairmode</code></td></tr>
+<tr><td><code class="option">--swap-monitor</code></td></tr>
+<tr><td><code class="option">--set-policy</code></td></tr>
+<tr><td><code class="option">--tv-geometry</code></td></tr>
+<tr><td><code class="option">--tv-info</code></td></tr>
+<tr><td><code class="option">--tv-overscan</code></td></tr>
+</table>
+<p> with descriptions.
+					</p>
+</li>
+<li>
+<p>Improved and updated the description for the options: </p>
+<table class="simplelist" border="0" summary="Simple list">
+<tr><td><code class="option">--initial</code></td></tr>
+<tr><td>
+<code class="option">--tvf</code>,<code class="option">--tv-format-type</code>
+</td></tr>
+<tr><td>
+<code class="option">-o</code>, <code class="option">--output</code>
+</td></tr>
+</table>
+<p>
+					</p>
+</li>
+<li>
+<p>Removed the description for the no longer available options: </p>
+<table class="simplelist" border="0" summary="Simple list">
+<tr><td>
+<code class="option">--agpl</code>, <code class="option">--agp-locked-userpages</code>
+</td></tr>
+<tr><td>
+<code class="option">--dw</code>,<code class="option">--disable-workstation</code>
+</td></tr>
+<tr><td>
+<code class="option">--iagp</code>, <code class="option">--internal-agp</code>
+</td></tr>
+</table>
+<p>
+					</p>
+</li>
+<li>
+<p>Removed solved or obsolete bugs: </p>
+<div class="itemizedlist"><ul type="circle">
+<li><p>The <code class="option">--tv-format-type</code> option does not longer try to manipulate the <code class="option">Option "TVStandard"</code> value of <span class="citerefentry"><span class="refentrytitle">fglrx</span>(4x)</span>.</p></li>
+<li><p>Trying to use <code class="option">--dw timmo-extreme</code> returns the following error message: &#8220;<span class="quote"><span class="errortext">aticonfig: parsing the command-line failed</span></span>&#8221;.</p></li>
+</ul></div>
+<p>
+					</p>
+<p>Added newly observed bugs: </p>
+<div class="itemizedlist"><ul type="circle">
+<li><p>The <code class="option">--tvf</code> option does not accept all values mentioned in the <code class="option">--help</code> output.</p></li>
+<li><p>The <code class="option">--tv-info</code> option could freeze with 100% CPU usage.</p></li>
+<li><p>The <code class="option">--tv-geometry</code> may break the configuration file or output a wrong error message.</p></li>
+<li><p>The <code class="option">--help</code> output is wrong in a few cases.</p></li>
+</ul></div>
+<p>
+					</p>
+<p>Check the &#8220;<span class="quote">BUGS</span>&#8221; section of <span class="citerefentry"><span class="refentrytitle">aticonfig</span>(1x)</span> for more information.</p>
+</li>
+</ul>
+</div>
+			<div class="itemizedlist">
+<p>Special changes for <span class="citerefentry"><span class="refentrytitle">fglrx</span>(4x)</span>:</p>
+<ul type="disc">
+<li><p>Fixed copyright.</p></li>
+<li><p>Updated, sorted and reorganized the list of supported chipsets and their supported features.</p></li>
+<li>
+<p>Added new explanations for the options: </p>
+<table class="simplelist" border="0" summary="Simple list">
+<tr><td><code class="option">Option "MaxGARTSize"</code></td></tr>
+<tr><td><code class="option">Option "TVOverscan"</code></td></tr>
+</table>
+<p>
+					</p>
+<p>Updated and improved explanations for the options: </p>
+<table class="simplelist" border="0" summary="Simple list">
+<tr><td><code class="option">Option "ForceMonitors"</code></td></tr>
+<tr><td><code class="option">Option "TVFormat"</code></td></tr>
+<tr><td><code class="option">Option "TVHPosAdj"</code></td></tr>
+<tr><td><code class="option">Option "TVHSizeAdj"</code></td></tr>
+<tr><td><code class="option">Option "TVVPosAdj"</code></td></tr>
+<tr><td><code class="option">Option "TVVSizeAdj"</code></td></tr>
+</table>
+<p>
+					</p>
+</li>
+</ul>
+</div>
+			<div class="itemizedlist">
+<p>Special changes for <span class="citerefentry"><span class="refentrytitle">fglrxrc</span>(5)</span>:</p>
+<ul type="disc"><li><p>Added the involved files, this manpage is about.</p></li></ul>
+</div>
+			<p>New driver options (may be incomplete): </p>
+<table class="simplelist" border="0" summary="Simple list">
+<tr><td><code class="option">Option "EnableMonitor"</code></td></tr>
+<tr><td><code class="option">Option "MaxGARTSize"</code></td></tr>
+<tr><td><code class="option">Option "PairModes"</code></td></tr>
+<tr><td><code class="option">Option "TVOverscan"</code></td></tr>
+</table>
+<p>
+			</p>
+			<p>Obsoleted driver options (may be incomplete): unknown</p>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.27.10</td>
+<td align="left">2006-07-27</td>
+<td align="left"><span class="author"><span class="othername">ATI Technologies Inc.</span></span></td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_27_10"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.27.10.html" target="_top">ATI Proprietary Linux Driver Version 8.27.10</a>.</p>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.26.18</td>
+<td align="left">2006-06-26</td>
+<td align="left"><span class="author"><span class="othername">ATI Technologies Inc.</span></span></td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_26_18"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.26.18.html" target="_top">ATI Proprietary Linux Driver Version 8.26.18</a>.</p>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.25.18</td>
+<td align="left">2006-05-24</td>
+<td align="left"><span class="author"><span class="othername">ATI Technologies Inc.</span></span></td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_25_18"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.25.18.html" target="_top">ATI Proprietary Linux Driver Version 8.25.18</a>.</p>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.24.8</td>
+<td align="left">2006-04-12</td>
+<td align="left">dale, <span class="author"><span class="othername">ATI Technologies Inc.</span></span>
+</td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_24_8"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.24.8.html" target="_top">ATI Proprietary Linux Driver Version 8.24.8</a>.</p>
+			<div class="itemizedlist">
+<p>Changes:</p>
+<ul type="disc">
+<li><p>Added newly supported chipsets for RADEON X1x000 products to <span class="citerefentry"><span class="refentrytitle">fglrx</span>(4x)</span>.</p></li>
+<li><p>Removed <span class="citerefentry"><span class="refentrytitle">fglrxconfig</span>(1x)</span> from Makefile. This file is not longer shipped with the driver. All references to this application were removed.</p></li>
+<li><p>Make it compatible with <span class="package">X.org</span> 7 (left the suffixes as suggested by the <a class="ulink" href="http://webcvs.freedesktop.org/xorg/util/macros/xorg-macros.m4" target="_top">http://webcvs.freedesktop.org/xorg/util/macros/xorg-macros.m4</a>	macro).</p></li>
+</ul>
+</div>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.23.7</td>
+<td align="left">2006-03-08</td>
+<td align="left">dale, <span class="author"><span class="othername">ATI Technologies Inc.</span></span>
+</td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_23_7"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.23.7.html" target="_top">ATI Proprietary Linux Driver Version 8.23.7</a>.</p>
+			<div class="itemizedlist">
+<p>Changes:</p>
+<ul type="disc"><li><p>Added newly supported chipsets to <span class="citerefentry"><span class="refentrytitle">fglrx</span>(4x)</span>.</p></li></ul>
+</div>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.22.5</td>
+<td align="left">2006-02-08</td>
+<td align="left"><span class="author"><span class="othername">ATI Technologies Inc.</span></span></td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_22_5"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.22.5.html" target="_top">ATI Proprietary Linux Driver Version 8.22.5</a>.</p>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.21.7</td>
+<td align="left">2006-01-18</td>
+<td align="left"><span class="author"><span class="othername">ATI Technologies Inc.</span></span></td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_21_7"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.21.7.html" target="_top">ATI Proprietary Linux Driver Version 8.21.7</a>.</p>
+		</td></tr>
+<tr>
+<td align="left">Revision 8.20.8</td>
+<td align="left">2005-12-08</td>
+<td align="left">dale, <span class="author"><span class="othername">ATI Technologies Inc.</span></span>
+</td>
+</tr>
+<tr><td align="left" colspan="3">
+			<a name="revision_8_20_8"></a>
+			<p>New upstream release <a class="ulink" href="http://www2.ati.com/drivers/linux/linux_8.20.8.html" target="_top">ATI Proprietary Linux Driver Version 8.20.8</a>.</p>
+		<p>This is the first official release of the manpages.</p>
+		</td></tr>
+</table></div></body>
+</html>
--- fglrx-driver-8.47.3.orig/debian/man/fireglcontrol.1.xml
+++ fglrx-driver-8.47.3/debian/man/fireglcontrol.1.xml
@@ -0,0 +1,98 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/fireglcontrol.1.xml,v 1.18 2006-11-25 07:59:32 dleidert Exp $
+  Summary   Manpage for the fireglcontrol application.
+
+  Copyright (C) 2005-2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "fireglcontrol">
+	<!ENTITY dhucname  "FIREGLCONTROL">
+	<!ENTITY dhsection "1">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+
+]>
+
+<refentry id="fireglcontrol_1" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2006-11-25 07:59:32 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+		</authorgroup>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>
+			a GUI to setup a users desktop
+		</refpurpose>
+	</refnamediv>
+	<refsynopsisdiv id="synopsis">
+		<cmdsynopsis>
+			<command>&dhname;</command>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para><command>&dhname;</command> ...
+		</para>
+	</refsect1>
+	<refsect1 id="options">
+		<title>OPTIONS</title>
+		<para>This program has no options.
+		</para>
+	</refsect1>
+	<refsect1 id="bugs">
+		<title>BUGS</title>
+		<para>Report any issues with the <command>&dhname;</command> program
+			to <ulink url="http://support.ati.com"/>.
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/man/README
+++ fglrx-driver-8.47.3/debian/man/README
@@ -0,0 +1,44 @@
+# Document  $WgDD: fglrx_man/README,v 1.12 2007-06-02 12:51:31 dleidert Exp $
+# Summary   Information about the fglrx_man project.
+
+This project tries to provide manpages for the proprietary ATI Linux driver. It
+was created for the Debian project but applies to other distributions as well.
+
+Copyright (C) 2005-2007 Daniel Leidert <daniel.leidert@wgdd.de>.
+Copyright (C) 2005-2006 Flavio Stanchina <flavio@stanchina.net>.
+All rights reserved.
+
+See the COPYING file for information on your legal rights to this software.
+
+To 'compile' the package, the following packages are necessary:
+
+  - xsltproc (http://xmlsoft.org/XSLT/)
+  (Debian package: xsltproc)
+
+To pass the check target, the following packages are additionally necessary:
+
+  - xmllint [>= 2.6.24] (http://xmlsoft.org/)
+  (Debian package: libxml2-utils and libxml2-dev)
+
+  - man (http://savannah.nongnu.org/projects/man-db/)
+  (Debian package: man-db)
+
+The following packages are necessary if you have don't have access to the net:
+
+  - docbook-xml [>= 4.4] (http://www.docbook.org/xml/4.4/)
+  (Debian package: docbook-xml)
+	
+  - docbook-xsl [>= 1.71.0] (http://docbook.sourceforge.net/projects/xsl/)
+  (Debian package: docbook-xsl)
+
+To try to automatically determine the path for the docbook-xsl utils via the
+systems catalog system, the following packages are necessary:
+
+  - xmlcatalog (http://xmlsoft.org/)
+  (Debian package: libxml2-utils)
+  
+  - /etc/xml/catalog
+  (Debian package: xml-core)
+   
+For detailed installation instructions read the file INSTALL.
+
--- fglrx-driver-8.47.3.orig/debian/man/aticonfig.1x.xml
+++ fglrx-driver-8.47.3/debian/man/aticonfig.1x.xml
@@ -0,0 +1,1179 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/aticonfig.1x.xml,v 1.39 2007-06-02 12:51:31 dleidert Exp $
+  Summary   Manpage for the aticonfig application.
+
+  Copyright (C) 2005-2007 Daniel Leidert <daniel.leidert@wgdd.de>.
+  Copyright (C) 2005-2006 Flavio Stanchina <flavio@stanchina.net>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "aticonfig">
+	<!ENTITY dhucname  "ATICONFIG">
+	<!ENTITY dhsection "1x">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+
+]>
+
+<refentry id="aticonfig_1x" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2007-06-02 12:51:31 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+			<author>
+				<firstname>Flavio</firstname>
+				<surname>Stanchina</surname>
+				<affiliation>
+					<address>
+						<email>flavio@stanchina.net</email>
+					</address>
+				</affiliation>
+				<contrib>Author and Debian package maintainer.</contrib>
+			</author>
+			<othercredit>
+				<firstname>Matthijs</firstname>
+				<surname>Kooijman</surname>
+				<affiliation>
+					<address>
+						<email>m.kooijman@student.utwente.nl</email>
+					</address>
+				</affiliation>
+				<contrib>Debian Bug report #360822.</contrib>
+			</othercredit>
+		</authorgroup>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<year>2007</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<holder>Flavio Stanchina</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>
+			parse an existing X-Server configuration file and modify it to operate with ATI products
+		</refpurpose>
+	</refnamediv>
+	<refsynopsisdiv id="synopsis">
+		<cmdsynopsis>
+			<command>&dhname;</command>
+			<arg choice="opt" rep="repeat"><option>OPTIONS</option></arg>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para><command>&dhname;</command> is a tool which should help you to create an
+			(initial) X-server configuration file using the <citerefentry>
+				<refentrytitle>fglrx</refentrytitle>
+				<manvolnum>4x</manvolnum>
+			</citerefentry> video driver. You can enable or disable special driver options.
+		</para>
+	</refsect1>
+	<refsect1 id="options">
+		<title>OPTIONS</title>
+		<para><command>&dhname;</command> currently supports the following options:
+		</para>
+		<refsect2 id="options_initial">
+			<title>ATI Initial Configuration</title>
+			<variablelist>
+				<varlistentry id="option_initial">
+					<term><option>--initial<parameter class="option">[=dual-head]</parameter></option></term>
+					<listitem>
+						<para>If this option is given without any parameter, a default ATI device
+							section is generated in the configuration file which is capable of
+							loading the <package>fglrx</package> driver.
+						</para>
+						<para>If this option is used with the <parameter class="option">dual-head</parameter>
+							parameter, it further generates a dual head setup configuration. See <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry> for an explanation of a dual head setup. 
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_tv">
+			<title>TV Options</title>
+			<variablelist>
+				<varlistentry id="option_tv_format_type">
+					<term><option>--tvf <replaceable class="parameter">string</replaceable></option></term>
+					<term><option>--tv-format-type=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Change the TV signal format. <replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">NTSC-JPN</parameter></member>
+								<member><parameter class="option">NTSC-M</parameter></member>
+								<member><parameter class="option">NTSC-N</parameter></member>
+								<member><parameter class="option">PAL-B</parameter></member>
+								<member><parameter class="option">PAL-COMB-N</parameter></member>
+								<member><parameter class="option">PAL-D</parameter></member>
+								<member><parameter class="option">PAL-G</parameter></member>
+								<member><parameter class="option">PAL-H</parameter></member>
+								<member><parameter class="option">PAL-I</parameter></member>
+								<member><parameter class="option">PAL-K</parameter></member>
+								<member><parameter class="option">PAL-K1</parameter></member>
+								<member><parameter class="option">PAL-L</parameter></member>
+								<member><parameter class="option">PAL-M</parameter></member>
+								<member><parameter class="option">PAL-N</parameter></member>
+								<member><parameter class="option">PAL-SECAM-D</parameter></member>
+								<member><parameter class="option">PAL-SECAM-K</parameter></member>
+								<member><parameter class="option">PAL-SECAM-K1</parameter></member>
+								<member><parameter class="option">PAL-SECAM-L</parameter></member>
+							</simplelist>. Using this option affects <option>Option "TVFormat"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+						<note>
+							<para>Not all graphics cards support every mode. Regional
+								settings are applicable.</para>
+						</note>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_tv_standard_type">
+					<term><option>--tvs <replaceable class="parameter">string</replaceable></option></term>
+					<term><option>--tv-standard-type=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Change the TV standard for TV output. 
+							<replaceable class="parameter">string</replaceable>	can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">VIDEO</parameter></member>
+								<member><parameter class="option">SCART</parameter></member>
+								<member><parameter class="option">YUV</parameter></member>
+							</simplelist>. Using this option affects <option>Option "TVStandard"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_tv_overscan">
+					<term><option>--tv-overscan=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable overscan mode for TV-Out.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">yes</parameter></member>
+								<member><parameter class="option">no</parameter></member>
+							</simplelist>. Using this option affects <option>Option "TVOverscan"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+						<note>
+							<para>Not all TV formats support overscan. Try to toggle overscan
+								"<parameter class="option">off</parameter>" before changing the TV format if
+								an error occurs.
+							</para>
+						</note>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_tv_info">
+					<term><option>--tv-info</option></term>
+					<listitem>
+						<para>Print out the current TV geometry, TV format and if the TV is physically
+							connected.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_tv_geometry">
+					<term>
+						<option>--tv-geometry=<replaceable class="parameter">width</replaceable>x<replaceable class="parameter">height</replaceable>{+|-}<replaceable class="parameter">vertical_offset</replaceable>{+|-}<replaceable class="parameter">horizontal_offset</replaceable></option>
+					</term>
+					<listitem>
+						<para>Change the size and position of the TV-Out display. The <emphasis>integer</emphasis>
+							values for <replaceable class="parameter">width</replaceable> and
+							<replaceable class="parameter">height</replaceable> are given in
+							percentage units. Please note that the valid range for these values depends
+							on the TV format, but as a rule of thumb they are valid in the range
+							of <parameter class="option">[1..100]</parameter>. You can further specify
+							the <replaceable class="parameter">vertical_offset</replaceable>
+							and <replaceable class="parameter">horizontal_offset</replaceable> values as
+							offset from the center of the screen in <emphasis>pixels</emphasis>.
+							Their ranges depend on the <acronym>ASIC</acronym> and you
+							should use <xref linkend="option_tv_info"/> to get valid ranges for these
+							values. Using this option affects <option>Option "TVHSizeAdj"</option>,
+							<option>Option "TVVSizeAdj"</option> and - if given - <option>Option "TVHPosAdj"</option>
+							and <option>Option "TVVPosAdj"</option> of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>. If you invoke this option only with height and width, the offset
+							values are automatically set to "<parameter class="option">0</parameter>".
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_firegl">
+			<title>FireGL Workstation Board Features</title>
+			<variablelist>
+				<varlistentry id="option_use_app_profile">
+					<term><option>--app <replaceable class="parameter">string</replaceable></option></term>
+					<term><option>--use-app-profile=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Change the application profile for a FireGL workstation board.
+							<replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">default</parameter></member>
+								<member><parameter class="option">maya</parameter></member>
+								<member><parameter class="option">softimage-xsi</parameter></member>
+								<member><parameter class="option">softimage-3d</parameter></member>
+								<member><parameter class="option">houdini4.0</parameter></member>
+								<member><parameter class="option">houdini5.0</parameter></member>
+								<member><parameter class="option">houdini5.5</parameter></member>
+							</simplelist>. Using this option affects <option>Option "Capabilities"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_fsaa">
+			<title>FSAA Options</title>
+			<variablelist>
+				<varlistentry id="option_fsaa">
+					<term>
+						<option>--fsaa=<replaceable class="parameter">boolean</replaceable></option>
+					</term>
+					<listitem>
+						<para>Enable or disable full scene anti-aliasing (<acronym>FSAA</acronym>).
+							Enable this option to enhance photo-realism in 3D rendering. Disable
+							it to get the most accurate 3D image.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. Using this option affects <option>Option "FSAAEnable"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_fsaa_samples">
+					<term><option>--fs <replaceable class="parameter">integer</replaceable></option></term>
+					<term><option>--fsaa-samples=<replaceable class="parameter">integer</replaceable></option></term>
+					<listitem>
+						<para>Set the number of <acronym>FSAA</acronym> samples per pixel.
+							<replaceable class="parameter">integer</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">0</parameter></member>
+								<member><parameter class="option">2</parameter></member>
+								<member><parameter class="option">4</parameter></member>
+								<member><parameter class="option">6</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. <parameter class="option">off</parameter> is the same
+							as <parameter class="option">0</parameter>. Using this option
+							affects <option>Option "FSAAScale"</option> of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_fsaa_gamma">
+					<term><option>--fsg <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--fsaa-gamma=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable <acronym>FSAA</acronym> gamma.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. Using this option affects <option>Option "FSAADisableGamma"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_fsaa_ms_positions">
+					<term><option>--fmsp <replaceable class="parameter">real,real,...,real</replaceable></option></term>
+					<term><option>--fsaa-ms-positions=<replaceable class="parameter">real,real,...,real</replaceable></option></term>
+					<listitem>
+						<para>Change the <acronym>FSAA</acronym> Multi-Sample Positions for x0,y0 to x5,y5.
+							You must specify exactly 12 real number values separated by commas. Using this
+							option affects <option>Option "FSAAMSPosX0..5"</option>, <option>Option
+							"FSAAMSPosY0..5"</option> and <option>Option "FSAACustomizeMSPos"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_screen">
+			<title>Screen-Related Options</title>
+			<variablelist>
+				<varlistentry id="option_overlay_type">
+					<term><option>--ovt <replaceable class="parameter">string</replaceable></option></term>
+					<term><option>--overlay-type=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Change the overlay for the X server.
+							<replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">opengl</parameter></member>
+								<member><parameter class="option">Xv</parameter></member>
+								<member><parameter class="option">disable</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "OpenGLOverlay"</option>
+									and <option>Option "VideoOverlay"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_overlay_on">
+					<term><option>--ovon <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--overlay-on=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Choose which head the hardware overlay should be visible on. The hardware
+							overlay can be used for either OpenGL, video, pseudo-color or stereo.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">0</parameter></member>
+								<member><parameter class="option">1</parameter></member>
+							</simplelist>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_lcd_mode">
+					<term><option>--lcd <replaceable class="parameter">string</replaceable></option></term>
+					<term><option>--lcd-mode=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Change the LCD mode. <replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">center</parameter></member>
+								<member><parameter class="option">full</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "CenterMode"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_desktop_setup">
+					<term><option>--dtop <replaceable class="parameter">string</replaceable></option></term>
+					<term><option>--desktop-setup=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Change the desktop setup for multiple display adapters.
+							<replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">single</parameter></member>
+								<member><parameter class="option">clone</parameter></member>
+								<member><parameter class="option">mirror</parameter></member>
+								<member><parameter class="option">horizontal</parameter></member>
+								<member><parameter class="option">horizontal,reverse</parameter></member>
+								<member><parameter class="option">vertical</parameter></member>
+								<member><parameter class="option">vertical,reverse</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "DesktopSetup"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_sync_vsync">
+					<term><option>--vs <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--sync-vsync=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable sync buffer swaps with vsync. Enable this option to
+							prevent tearing during 3D rendering.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "Capabilities"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_pseudo_color">
+					<term><option>--psc <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--pseudo-color=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable pseudo-color visuals. Enable this option to get 8-bit
+							color support. <replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "PseudoColorVisuals"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_stereo">
+					<term>
+						<option>--stereo=<replaceable class="parameter">boolean</replaceable></option>
+					</term>
+					<listitem>
+						<para>Enable or disable quad-buffer stereo support. Enable this option only for
+							using applications that support the use of hardware 3D shutter
+							glasses. <replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "Stereo"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_stereo_sync">
+					<term><option>--ss <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--stereo-sync=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable quad-buffer stereo sync. Enable this option to get 3D
+							glasses to synchronize with the infrared transmitter.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "StereoSyncEnable"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_resolution">
+					<term>
+						<option>--resolution=<replaceable class="parameter">resolution1[,resolution2,...]</replaceable></option>
+					</term>
+					<listitem>
+						<para>Set the modes for the first screen. You may specify several resolutions
+							separated by commas. <note>
+								<para>Affects <option>Modes</option>
+									in <option>SubSection "Display"</option> (<option>Section "Screen"</option>).
+									See <citerefentry>
+										<refentrytitle>&dhxserverconf;</refentrytitle>
+										<manvolnum>5x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_hsync">
+					<term>
+						<option>--hsync=<replaceable class="parameter">frequency</replaceable></option>
+					</term>
+					<listitem>
+						<para>Change the horizontal sync range of the first monitor. Make sure you
+							know the capabilities of your monitor before changing this
+							option. <replaceable class="parameter">frequency</replaceable> should be understood as a
+							range of frequencies. <note>
+								<para>Affects <option>HorizSync</option> in <option>Section "Monitor"</option>.
+									See <citerefentry>
+										<refentrytitle>&dhxserverconf;</refentrytitle>
+										<manvolnum>5x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_vrefresh">
+					<term>
+						<option>--vrefresh=<replaceable class="parameter">frequency</replaceable></option>
+					</term>
+					<listitem>
+						<para>Change the vertical refresh range of the first monitor. Make sure you
+							know the capabilities of your monitor before changing this
+							option. <replaceable class="parameter">frequency</replaceable> should be understood as a
+							range of frequencies. <note>
+								<para>Affects <option>VertRefresh</option> in <option>Section "Monitor"</option>.
+									See <citerefentry>
+										<refentrytitle>&dhxserverconf;</refentrytitle>
+										<manvolnum>5x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_resolution2">
+					<term>
+						<option>--resolution2=<replaceable class="parameter">resolution1[,resolution2,...]</replaceable></option>
+					</term>
+					<listitem>
+						<para>Set the modes for the second screen for dual head. You may specify
+							several resolutions separated by commas. <note>
+								<para>The secondary screen must exist.</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_hsync2">
+					<term>
+						<option>--hsync2=<replaceable class="parameter">frequency</replaceable></option>
+					</term>
+					<listitem>
+						<para>Change the horizontal sync range of the second display. Make sure you
+							know the capabilities of your monitor before changing this
+							option. <replaceable class="parameter">frequency</replaceable> should be understood as a
+							range of frequencies.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_vrefresh2">
+					<term>
+						<option>--vrefresh2=<replaceable class="parameter">frequency</replaceable></option>
+					</term>
+					<listitem>
+						<para>Change the vertical refresh range of the second display. Make sure you
+							know the capabilities of your monitor before changing this
+							option. <replaceable class="parameter">frequency</replaceable> should be understood as a
+							range of frequencies.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_mode2">
+					<term>
+						<option>--mode2=<replaceable class="parameter">mode1[,mode2,...]</replaceable></option>
+					</term>
+					<listitem>
+						<para>Change the modes for the second display. You may specify several
+							resolutions separated by commas. This option is only valid for clone and big
+							desktop mode settings. <note>
+								<para>Affects <option>Option "Mode2"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_screen_layout">
+					<term>
+						<option>--screen-layout=<replaceable class="parameter">string</replaceable></option>
+					</term>
+					<listitem>
+						<para>Set the secondary screen position for dual head.
+							<replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">left</parameter></member>
+								<member><parameter class="option">right</parameter></member>
+								<member><parameter class="option">above</parameter></member>
+								<member><parameter class="option">below</parameter></member>
+							</simplelist>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_screen_overlap">
+					<term>
+						<option>--screen-overlap=<replaceable class="parameter">integer</replaceable></option>
+					</term>
+					<listitem>
+						<para>Set the screen overlap region in big desktop mode in pixels. <note>
+								<para>Affects <option>Option "ScreenOverlap"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_force_monitor">
+					<term>
+						<option>--force-monitor=<replaceable class="parameter">string[,string,...]</replaceable></option>
+					</term>
+					<listitem>
+						<para>Describe all displays that are to be enabled and/or disabled regardless of their
+							physical connection. <replaceable class="parameter">string</replaceable> can be one or
+							more of the following set, separated by commas: <simplelist type="inline">
+								<member><parameter class="option">crt1</parameter></member>
+								<member><parameter class="option">crt2</parameter></member>
+								<member><parameter class="option">lvds</parameter></member>
+								<member><parameter class="option">tv</parameter></member>
+								<member><parameter class="option">tmds1</parameter></member>
+								<member><parameter class="option">tmds2</parameter></member>
+								<member><parameter class="option">tmds2i</parameter></member>
+								<member><parameter class="option">nocrt1</parameter></member>
+								<member><parameter class="option">nocrt2</parameter></member>
+								<member><parameter class="option">nolvds</parameter></member>
+								<member><parameter class="option">notv</parameter></member>
+								<member><parameter class="option">notmds1</parameter></member>
+								<member><parameter class="option">notmds2</parameter></member>
+								<member><parameter class="option">notmds2i</parameter></member>
+							</simplelist>. <note>
+								<para>Affects <option>Option "ForceMonitors"</option>. See <citerefentry>
+										<refentrytitle>fglrx</refentrytitle>
+										<manvolnum>4x</manvolnum>
+									</citerefentry>.
+								</para>
+							</note>
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_powerplay">
+			<title>POWERplay Options</title>
+			<para>The following options will not change the configuration file and take
+				affect immediately. Other options given on the (same) command line will be ignored.
+			</para>
+			<variablelist>
+				<varlistentry id="option_list_powerstates">
+					<term><option>--lsp</option></term>
+					<term><option>--list-powerstates</option></term>
+					<listitem>
+						<para>Print information about power states and exit.</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_set_powerstate">
+					<term>
+						<option>--set-powerstate=<replaceable class="parameter">state</replaceable></option>
+					</term>
+					<listitem>
+						<para>Set a power state listed by <xref linkend="option_list_powerstates"/>.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_advanced">
+			<title>Advanced Options</title>
+			<variablelist>
+				<varlistentry id="option_tls">
+					<term>
+						<option>--tls=<replaceable class="parameter">boolean</replaceable></option>
+					</term>
+					<listitem>
+						<para>Enable or disable fast thread local storage. Disable this option when
+							virtual machines or <package>Wine(X)</package> fail to work properly.
+							<replaceable class="parameter">boolean</replaceable> can be one of:
+							<simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. Using this option affects <option>Option "UseFastTLS"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_signal_block">
+					<term><option>--sb <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--signal-block=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable signal blocking. Disable this option when debugging a
+							multi-threaded OpenGL application. <replaceable class="parameter">boolean</replaceable>
+							can be one of: <simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. Using this option affects <option>Option "BlockSignalsOnLock"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_locked_userpages">
+					<term><option>--locked-userpages=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable locked user pages. Disable this option if the system
+							hangs when running <citerefentry>
+								<refentrytitle>fgl_glxgears</refentrytitle>
+								<manvolnum>1x</manvolnum>
+							</citerefentry>. <replaceable class="parameter">boolean</replaceable>
+							can be one of: <simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. Using this option affects <option>Option "KernelModuleParm"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+						<important>
+							<para>As of version 8.28.8 of the ATI Linux Driver, user page lock is no longer
+								available on AGP systems.
+							</para>
+						</important>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_generic_cpu">
+					<term><option>--gcpu <replaceable class="parameter">boolean</replaceable></option></term>
+					<term><option>--generic-cpu=<replaceable class="parameter">boolean</replaceable></option></term>
+					<listitem>
+						<para>Enable or disable generic <acronym>CPU</acronym>. Use this option if the
+							<acronym>CPU</acronym> is being reported improperly. For example: If you have
+							an <acronym>AMD</acronym> <acronym>CPU</acronym> that is being reported as
+							Intel. <replaceable class="parameter">boolean</replaceable> can be one
+							of: <simplelist type="inline">
+								<member><parameter class="option">on</parameter></member>
+								<member><parameter class="option">off</parameter></member>
+							</simplelist>. Using this option affects <option>Option "ForceGenericCPU"</option>
+							of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_max_gart_size">
+					<term><option>--max-gart-size=<replaceable class="parameter">integer</replaceable></option></term>
+					<listitem>
+						<para>Set user-defined max GART size for <emphasis>non-AGP</emphasis> systems.
+							Possible <replaceable class="parameter">integer</replaceable> values are
+							<parameter class="option">[64..512]</parameter> MB. Using this option
+							affects <option>Option "MaxGARTSize"</option> of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_dynamic_display">
+			<title>Dynamic Display Management Options</title>
+			<para>The following options are used to query or set the driver, controller and
+				adaptor information. Changes will take effect immediately. Other options given
+				on the (same) command line will be ignored.
+			</para>
+			<variablelist>
+				<varlistentry id="option_enable_monitor">
+					<term><option>--enable-monitor=<replaceable class="parameter">string,string</replaceable></option></term>
+					<listitem>
+						<para>Setting current monitor to be enabled. Only 2 displays can be enabled at
+							the same time. Any displays that are not on the list will be disabled.
+							<replaceable class="parameter">string</replaceable> can be one of:
+							<simplelist type="inline">
+								<!-- ForceMonitors accepts more options. What about them? -->
+								<member><parameter class="option">none</parameter></member>
+								<member><parameter class="option">auto</parameter></member>
+								<member><parameter class="option">crt1</parameter></member>
+								<member><parameter class="option">crt2</parameter></member>
+								<member><parameter class="option">lvds</parameter></member>
+								<member><parameter class="option">tmds1</parameter></member>
+								<member><parameter class="option">tmds2</parameter></member>
+								<member><parameter class="option">tv</parameter></member>
+							</simplelist>. To use the default policy to enable the displays use
+							<parameter class="option">auto</parameter>. Using this option affects
+							<option>Option "EnableMonitor"</option> of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_query_monitor">
+					<term><option>--query-monitor</option></term>
+					<listitem>
+						<para>Return information about connected and enabled monitors.</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_swap_monitor">
+					<term><option>--swap-monitor</option></term>
+					<listitem>
+						<para>Swap the contents on the two monitors.</para>
+						<note>
+							<para>Only effective to big desktop setups. See <citerefentry>
+									<refentrytitle>fglrx</refentrytitle>
+									<manvolnum>4x</manvolnum>
+								</citerefentry>
+							</para>
+						</note>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_pair_mode">
+			<title>Pair Mode Options</title>
+			<para>The following options are used to query, add and/or remove pair modes. Changes will
+				will take effect immediately. Other options given on the (same) command line will be ignored.
+			</para>
+			<variablelist>
+				<varlistentry id="option_list_pairmode">
+					<term><option>--list-pairmode</option></term>
+					<listitem>
+						<para>List all current existing pair modes the driver can use.</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_add_pairmode">
+					<term><option>--add-pairmode=<replaceable class="parameter">width0</replaceable>x<replaceable class="parameter">height0</replaceable>+<replaceable class="parameter">width1</replaceable>x<replaceable class="parameter">height1</replaceable></option></term>
+					<listitem>
+						<para>Add one pair mode to the list.
+							<replaceable class="parameter">width0</replaceable>x<replaceable class="parameter">height0</replaceable>
+							specifies the size of primary and
+							<replaceable class="parameter">width1</replaceable>x<replaceable class="parameter">height1</replaceable>
+							the size of the secondary display. Using this option affects
+							<option>Option "PairModes"</option> of <citerefentry>
+								<refentrytitle>fglrx</refentrytitle>
+								<manvolnum>4x</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_remove_pairmode">
+					<term><option>--remove-pairmode=<replaceable class="parameter">index-number</replaceable></option></term>
+					<listitem>
+						<para>Remove one pair mode from the list. The
+							<replaceable class="parameter">index-number</replaceable> can be get from
+							the <xref linkend="option_list_pairmode"/> option.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_atieventsd">
+			<title>External Events Daemon Options</title>
+			<para>The following options will not change the configuration file. Instead they are used
+				to send commands to <citerefentry>
+					<refentrytitle>atieventsd</refentrytitle>
+					<manvolnum>8</manvolnum>
+				</citerefentry>, ATI's external events daemon.
+			</para>
+			<variablelist>
+				<varlistentry id="option_set_policy">
+					<term><option>--set-policy=<replaceable class="parameter">string</replaceable></option></term>
+					<listitem>
+						<para>Sets the event policy for the daemon. <replaceable class="parameter">string</replaceable>
+							can be one of: <simplelist type="inline">
+								<member><parameter class="option">handle_lid</parameter></member>
+								<member><parameter class="option">ignore_lid</parameter></member>
+							</simplelist>. For more information see <citerefentry>
+								<refentrytitle>atieventsd</refentrytitle>
+								<manvolnum>8</manvolnum>
+							</citerefentry>.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+		<refsect2 id="options_misc">
+			<title>Miscellaneous Options</title>
+			<variablelist>
+				<varlistentry id="option_verbose">
+					<term><option>-v</option></term>
+					<term><option>--verbose</option></term>
+					<listitem>
+						<para>Show what <application>&dhname;</application> is doing on a verbose level.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_quiet">
+					<term><option>-q</option></term>
+					<term><option>--quiet</option></term>
+					<listitem>
+						<para>Disable all information output except for errors.</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_effective">
+					<term>
+						<option>--effective=<replaceable class="parameter">string</replaceable></option>
+					</term>
+					<listitem>
+						<para>Choose when the requested changes should take effect:</para>
+						<variablelist>
+							<varlistentry>
+								<term><parameter class="option">now</parameter></term>
+								<listitem>
+									<para>Changes take effect immediately. This change will affect the
+										running X session if applicable.
+										Only <link linkend="option_set_powerstate"><option>--set-powerstate</option></link>
+										and <link linkend="option_overlay_on"><option>--ovon</option></link>
+										options are applicable for now.
+									</para>
+								</listitem>
+							</varlistentry>
+							<varlistentry>
+								<term><parameter class="option">startup</parameter></term>
+								<listitem>
+									<para>Changes take effect on future X server startups. This change will
+										modify the X server configuration file if applicable.
+									</para>
+								</listitem>
+							</varlistentry>
+						</variablelist>
+						<para>The default is <parameter class="option">now,startup</parameter>,
+							i.e., do both as applicable.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_nobackup">
+					<term><option>--nobackup</option></term>
+					<listitem>
+						<para>Do not make an automatic backup of the configuration file.</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_input">
+					<term><option>-i <replaceable class="parameter">file</replaceable></option></term>
+					<term><option>--input=<replaceable class="parameter">file</replaceable></option></term>
+					<listitem>
+						<para>Select a <replaceable class="parameter">file</replaceable> to input as the
+							configuration file. Without this option, <command>&dhname;</command> will
+							search <filename>/etc/X11</filename> for the default configuration file.
+						</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_output">
+					<term><option>-o <replaceable class="parameter">file</replaceable></option></term>
+					<term><option>--output=<replaceable class="parameter">file</replaceable></option></term>
+					<listitem>
+						<para>Select a <replaceable class="parameter">file</replaceable> to output
+							the new configuration file to. Without this option, <command>&dhname;</command>
+							will replace the input file with the newly generated file.
+						</para>
+						<note>
+							<para>If the (given) file is already existing, it will be backuped as
+								<filename>file.fglrx-<replaceable>integer</replaceable></filename>. To suppress
+								this behavior, use the <xref linkend="option_nobackup"/> option.
+							</para>
+						</note>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_help">
+					<term><option>-h</option></term>
+					<term><option>--help</option></term>
+					<listitem>
+						<para>Display the help screen.</para>
+					</listitem>
+				</varlistentry>
+				<varlistentry id="option_force">
+					<term><option>-f</option></term>
+					<term><option>--force</option></term>
+					<listitem>
+						<para>Force <command>&dhname;</command> to generate default Monitor, Device and
+							Screen sections even if the original configuration file has invalid settings
+							in these sections. Only valid with
+							the <link linkend="option_initial"><option>--initial</option></link> option.
+						</para>
+					</listitem>
+				</varlistentry>
+			</variablelist>
+		</refsect2>
+	</refsect1>
+	<refsect1 id="examples">
+		<title>EXAMPLES</title>
+		<para>This paragraph should show you some examples, how you can use
+			the <application>&dhname;</application> application.
+		</para>
+		<refsect2 id="examples_initial_single">
+			<title>Initial single-head X</title>
+			<para>To set up a configuration for a single headed X server, you can use the following command.
+				Note, that only giving an input file will overwrite this file. If you want to save your
+				original file, you should also use the <xref linkend="option_force"/> option.
+			</para>
+			<cmdsynopsis>
+				<command>&dhname;</command>
+				<arg choice="plain"><option>--initial</option></arg>
+				<arg choice="plain"><option>--input=/etc/X11/&dhxserverconf;</option></arg>
+			</cmdsynopsis>
+		</refsect2>
+		<refsect2 id="examples_initial_dual">
+			<title>Initial dual-head X</title>
+			<para>To set up a configuration for a dual-head X server, you can use the following command.
+				The resulting dual-head will give you one monitor upon the other.
+			</para>
+			<cmdsynopsis>
+				<command>&dhname;</command>
+				<arg choice="plain"><option>--initial=dual-head</option></arg>
+				<arg choice="plain"><option>--screen-layout=above</option></arg>
+				<arg choice="plain"><option>--input=/etc/X11/&dhxserverconf;</option></arg>
+			</cmdsynopsis>
+		</refsect2>
+		<refsect2 id="examples_desktop_modes">
+			<title>Desktop modes</title>
+			<para>The following command will set up the big desktop to horizontal and overlay
+				on secondary display.
+			</para>
+			<cmdsynopsis>
+				<command>&dhname;</command>
+				<arg choice="plain"><option>--dtop=horizontal</option></arg>
+				<arg choice="plain"><option>--overlay-on=1</option></arg>
+			</cmdsynopsis>
+		</refsect2>
+		<refsect2 id="examples_primary_display">
+			<title>Primary display modes</title>
+			<para>To set up the modes for the primary display, use:</para>
+			<cmdsynopsis>
+				<command>&dhname;</command>
+				<arg choice="plain"><option>--resolution=1600x1200,1280x1024,1024x768</option></arg>
+			</cmdsynopsis>
+		</refsect2>
+		<refsect2 id="examples_monitor_layout">
+			<title>Monitor layout</title>
+			<para>Force CRT on primary display with TV-Out disabled.</para>
+			<cmdsynopsis>
+				<command>&dhname;</command>
+				<arg choice="plain"><option>--force-monitor=crt1,notv</option></arg>
+			</cmdsynopsis>
+		</refsect2>
+		<refsect2 id="examples_tv_geometry">
+			<title>TV Geometry</title>
+			<para>Change the TV geometry to 85% width (where 100% == overscan) and 90% height.
+				Shift 10 pixels right and 10 pixels down from the center of the screen.
+			</para>
+			<cmdsynopsis>
+				<command>&dhname;</command>
+				<arg choice="plain"><option>--tv-geometry=85x90+10-10</option></arg>
+			</cmdsynopsis>
+			<para>This command sets </para>
+		</refsect2>
+	</refsect1>
+	<refsect1 id="bugs">
+		<title>BUGS</title>
+		<para>Report any issues with the <command>&dhname;</command> program
+			to <ulink url="http://support.ati.com"/>.
+		</para>
+		<para>We currently know these bugs:
+			<itemizedlist>
+				<listitem>
+					<para>Trying to use <link linkend="option_tv_geometry"><option>--tv-geometry</option></link>
+						option only giving width and height results in a broken entry <option>Option "TVVSizeAdj"
+						"<parameter>--tv-geometry=value</parameter>"</option> in <citerefentry>
+							<refentrytitle>aticonfig</refentrytitle>
+							<manvolnum>1x</manvolnum>
+						</citerefentry>. Also the leading sign of the given pixels offsets from center
+						are not preserved, when creating the entries for <option>Option "TVHPosAdj"</option>
+						and <option>TVVPosAdj</option>.
+					</para>
+					<para>Using this option may also output the following error:
+						<quote><errortext>failed to set tv geometry. check help for possible
+						causes.</errortext></quote> But <option>--help</option> doesn't
+						tell anything useful here. Possible reasons for this issue are:
+						<remark>needs to be written - maybe TV needs to be
+						connected?</remark></para>
+				</listitem>
+				<listitem>
+					<para>The options <option>--dw</option> and <option>--disable-workstation</option> are
+						still accepted, but it seems, they are obsolete and they always result in a
+						<option>Option "Capabilities" "<parameter>0x00000000</parameter>"</option>
+						entry in <citerefentry>
+							<refentrytitle>fglrx</refentrytitle>
+							<manvolnum>4x</manvolnum>
+						</citerefentry>. So just don't use it.
+					</para>
+				</listitem>
+				<listitem>
+					<para>Following the <xref linkend="option_help"/> output, <command>&dhname;</command>
+						should support reading from <filename class="devicefile">stdin</filename>
+						and writing to <filename class="devicefile">stdout</filename> when using
+						the <link linkend="option_input"><option>--input</option></link>
+						or <link linkend="option_output"><option>--output</option></link> options.
+						But it doesn't work as expected and you will receive error messages or a file
+						named <filename>-</filename>.
+					</para>
+				</listitem>
+				<listitem>
+					<para>Following the <xref linkend="option_help"/> output, the options described in
+						<xref linkend="options_dynamic_display"/> will not affect the config file. This is
+						of course wrong. The <xref linkend="option_enable_monitor"/> has an affect to
+						<citerefentry>
+							<refentrytitle>&dhxserverconf;</refentrytitle>
+							<manvolnum>5x</manvolnum>
+						</citerefentry>.
+					</para>
+				</listitem>
+			</itemizedlist>
+		</para>
+	</refsect1>
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<para><citerefentry>
+				<refentrytitle>atieventsd</refentrytitle>
+				<manvolnum>8</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>fglrx</refentrytitle>
+				<manvolnum>4x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>&dhxserverconfig;</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>&dhxserverconf;</refentrytitle>
+				<manvolnum>5x</manvolnum>
+			</citerefentry>
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/man/THANKS
+++ fglrx-driver-8.47.3/debian/man/THANKS
@@ -0,0 +1,12 @@
+# Document  $WgDD: fglrx_man/THANKS,v 1.1 2006-04-14 14:52:01 dleidert Exp $
+# Summary   Contributors of the fglrx_man project.
+
+Thanks to those people:
+
+  Matthijs Kooijman <m.kooijman@student.utwente.nl>.
+    Debian bug reports #360819 and #360822.
+
+  Wedge_ (the Gentoo ATI Radeon FAQ maintainer)
+    Information taken from the Gentoo ATI Radeon FAQ by kind courtesy of
+    Wedge_.
+
--- fglrx-driver-8.47.3.orig/debian/man/configure
+++ fglrx-driver-8.47.3/debian/man/configure
@@ -0,0 +1,6278 @@
+#! /bin/sh
+# From configure.ac Revision: 1.25 .
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.61 for fglrx-driver 8.32.5.
+#
+# Report bugs to <http://bugs.debian.org/fglrx-driver>.
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in
+  *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  echo "#! /bin/sh" >conf$$.sh
+  echo  "exit 0"   >>conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+as_nl='
+'
+IFS=" ""	$as_nl"
+
+# Find who we are.  Look in the path if we contain no directory separator.
+case $0 in
+  *[\\/]* ) as_myself=$0 ;;
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+     ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+  as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+  { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+if test "x$CONFIG_SHELL" = x; then
+  if (eval ":") 2>/dev/null; then
+  as_have_required=yes
+else
+  as_have_required=no
+fi
+
+  if test $as_have_required = yes && 	 (eval ":
+(as_func_return () {
+  (exit \$1)
+}
+as_func_success () {
+  as_func_return 0
+}
+as_func_failure () {
+  as_func_return 1
+}
+as_func_ret_success () {
+  return 0
+}
+as_func_ret_failure () {
+  return 1
+}
+
+exitcode=0
+if as_func_success; then
+  :
+else
+  exitcode=1
+  echo as_func_success failed.
+fi
+
+if as_func_failure; then
+  exitcode=1
+  echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+  :
+else
+  exitcode=1
+  echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+  exitcode=1
+  echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+  :
+else
+  exitcode=1
+  echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0) || { (exit 1); exit 1; }
+
+(
+  as_lineno_1=\$LINENO
+  as_lineno_2=\$LINENO
+  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
+  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
+") 2> /dev/null; then
+  :
+else
+  as_candidate_shells=
+    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  case $as_dir in
+	 /*)
+	   for as_base in sh bash ksh sh5; do
+	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
+	   done;;
+       esac
+done
+IFS=$as_save_IFS
+
+
+      for as_shell in $as_candidate_shells $SHELL; do
+	 # Try only shells that exist, to save several forks.
+	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+		{ ("$as_shell") 2> /dev/null <<\_ASEOF
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in
+  *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+_ASEOF
+}; then
+  CONFIG_SHELL=$as_shell
+	       as_have_required=yes
+	       if { "$as_shell" 2> /dev/null <<\_ASEOF
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in
+  *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+(as_func_return () {
+  (exit $1)
+}
+as_func_success () {
+  as_func_return 0
+}
+as_func_failure () {
+  as_func_return 1
+}
+as_func_ret_success () {
+  return 0
+}
+as_func_ret_failure () {
+  return 1
+}
+
+exitcode=0
+if as_func_success; then
+  :
+else
+  exitcode=1
+  echo as_func_success failed.
+fi
+
+if as_func_failure; then
+  exitcode=1
+  echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+  :
+else
+  exitcode=1
+  echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+  exitcode=1
+  echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = "$1" ); then
+  :
+else
+  exitcode=1
+  echo positional parameters were not saved.
+fi
+
+test $exitcode = 0) || { (exit 1); exit 1; }
+
+(
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
+
+_ASEOF
+}; then
+  break
+fi
+
+fi
+
+      done
+
+      if test "x$CONFIG_SHELL" != x; then
+  for as_var in BASH_ENV ENV
+        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+        done
+        export CONFIG_SHELL
+        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+fi
+
+
+    if test $as_have_required = no; then
+  echo This script requires a shell more modern than all the
+      echo shells that I found on your system.  Please install a
+      echo modern shell, or manually run the script under such a
+      echo shell if you do have one.
+      { (exit 1); exit 1; }
+fi
+
+
+fi
+
+fi
+
+
+
+(eval "as_func_return () {
+  (exit \$1)
+}
+as_func_success () {
+  as_func_return 0
+}
+as_func_failure () {
+  as_func_return 1
+}
+as_func_ret_success () {
+  return 0
+}
+as_func_ret_failure () {
+  return 1
+}
+
+exitcode=0
+if as_func_success; then
+  :
+else
+  exitcode=1
+  echo as_func_success failed.
+fi
+
+if as_func_failure; then
+  exitcode=1
+  echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+  :
+else
+  exitcode=1
+  echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+  exitcode=1
+  echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+  :
+else
+  exitcode=1
+  echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0") || {
+  echo No shell found that supports shell functions.
+  echo Please tell autoconf@gnu.org about your system,
+  echo including any error possibly output before this
+  echo message
+}
+
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line after each line using $LINENO; the second 'sed'
+  # does the real work.  The second script uses 'N' to pair each
+  # line-number line with the line containing $LINENO, and appends
+  # trailing '-' during substitution so that $LINENO is not a special
+  # case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # scripts with optimization help from Paolo Bonzini.  Blame Lee
+  # E. McMahon (1931-1989) for sed's syntax.  :-)
+  sed -n '
+    p
+    /[$]LINENO/=
+  ' <$as_myself |
+    sed '
+      s/[$]LINENO.*/&-/
+      t lineno
+      b
+      :lineno
+      N
+      :loop
+      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+      t loop
+      s/-\n.*//
+    ' >$as_me.lineno &&
+  chmod +x "$as_me.lineno" ||
+    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensitive to this).
+  . "./$as_me.lineno"
+  # Exit status is that of the last command.
+  exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+  as_dirname=dirname
+else
+  as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+  case `echo 'x\c'` in
+  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
+  *)   ECHO_C='\c';;
+  esac;;
+*)
+  ECHO_N='-n';;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+  rm -f conf$$.dir/conf$$.file
+else
+  rm -f conf$$.dir
+  mkdir conf$$.dir
+fi
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s='ln -s'
+  # ... but there are two gotchas:
+  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+  # In both cases, we have to default to `cp -p'.
+  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+    as_ln_s='cp -p'
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+  as_test_x='test -x'
+else
+  if ls -dL / >/dev/null 2>&1; then
+    as_ls_L_option=L
+  else
+    as_ls_L_option=
+  fi
+  as_test_x='
+    eval sh -c '\''
+      if test -d "$1"; then
+        test -d "$1/.";
+      else
+	case $1 in
+        -*)set "./$1";;
+	esac;
+	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+	???[sx]*):;;*)false;;esac;fi
+    '\'' sh
+  '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+
+exec 7<&0 </dev/null 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Identity of this package.
+PACKAGE_NAME='fglrx-driver'
+PACKAGE_TARNAME='fglrx-driver'
+PACKAGE_VERSION='8.32.5'
+PACKAGE_STRING='fglrx-driver 8.32.5'
+PACKAGE_BUGREPORT='http://bugs.debian.org/fglrx-driver'
+
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+#  include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='SHELL
+PATH_SEPARATOR
+PACKAGE_NAME
+PACKAGE_TARNAME
+PACKAGE_VERSION
+PACKAGE_STRING
+PACKAGE_BUGREPORT
+exec_prefix
+prefix
+program_transform_name
+bindir
+sbindir
+libexecdir
+datarootdir
+datadir
+sysconfdir
+sharedstatedir
+localstatedir
+includedir
+oldincludedir
+docdir
+infodir
+htmldir
+dvidir
+pdfdir
+psdir
+libdir
+localedir
+mandir
+DEFS
+ECHO_C
+ECHO_N
+ECHO_T
+LIBS
+build_alias
+host_alias
+target_alias
+INSTALL_PROGRAM
+INSTALL_SCRIPT
+INSTALL_DATA
+am__isrc
+CYGPATH_W
+PACKAGE
+VERSION
+ACLOCAL
+AUTOCONF
+AUTOMAKE
+AUTOHEADER
+MAKEINFO
+install_sh
+STRIP
+INSTALL_STRIP_PROGRAM
+mkdir_p
+AWK
+SET_MAKE
+am__leading_dot
+AMTAR
+am__tar
+am__untar
+CC
+CFLAGS
+LDFLAGS
+CPPFLAGS
+ac_ct_CC
+EXEEXT
+OBJEXT
+DEPDIR
+am__include
+am__quote
+AMDEP_TRUE
+AMDEP_FALSE
+AMDEPBACKSLASH
+CCDEPMODE
+am__fastdepCC_TRUE
+am__fastdepCC_FALSE
+CPP
+GREP
+EGREP
+ENABLE_BUILD_CHECKS_TRUE
+ENABLE_BUILD_CHECKS_FALSE
+DRIVER_PACKAGE
+ATI_DRIVER_NAME
+ATI_DRIVER_VERSION
+ATI_DRIVER_PACKAGE
+LICENSE_FILE
+PACKAGE_LICENSE_FILE
+XSLTPROC
+XSLTPROC_FLAGS
+PKG_CONFIG
+XMLLINT
+XMLLINT_FLAGS
+MAN
+XMLCATALOG
+XML_CATALOG_FILE
+PATH_DOCBOOK_XSL
+PROG_XSERVER_STRING
+PROG_XSERVER_NAME
+PROG_XSERVER_CONF
+PROG_XSERVER_CONFIG
+PATH_XSERVER_MAN_APP
+PATH_XSERVER_MAN_DRIVER
+PATH_XSERVER_MAN_FILE
+LIBOBJS
+LTLIBOBJS'
+ac_subst_files=''
+      ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP
+DRIVER_PACKAGE
+LICENSE_FILE
+XSLTPROC
+XSLTPROC_FLAGS
+PKG_CONFIG
+XMLLINT
+XMLLINT_FLAGS
+MAN
+XMLCATALOG
+XML_CATALOG_FILE'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+  # If the previous option needs an argument, assign it.
+  if test -n "$ac_prev"; then
+    eval $ac_prev=\$ac_option
+    ac_prev=
+    continue
+  fi
+
+  case $ac_option in
+  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+  *)	ac_optarg=yes ;;
+  esac
+
+  # Accept the important Cygnus configure options, so we can diagnose typos.
+
+  case $ac_dashdash$ac_option in
+  --)
+    ac_dashdash=yes ;;
+
+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
+    ac_prev=bindir ;;
+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+    bindir=$ac_optarg ;;
+
+  -build | --build | --buil | --bui | --bu)
+    ac_prev=build_alias ;;
+  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+    build_alias=$ac_optarg ;;
+
+  -cache-file | --cache-file | --cache-fil | --cache-fi \
+  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+    ac_prev=cache_file ;;
+  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+    cache_file=$ac_optarg ;;
+
+  --config-cache | -C)
+    cache_file=config.cache ;;
+
+  -datadir | --datadir | --datadi | --datad)
+    ac_prev=datadir ;;
+  -datadir=* | --datadir=* | --datadi=* | --datad=*)
+    datadir=$ac_optarg ;;
+
+  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+  | --dataroo | --dataro | --datar)
+    ac_prev=datarootdir ;;
+  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+    datarootdir=$ac_optarg ;;
+
+  -disable-* | --disable-*)
+    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
+    eval enable_$ac_feature=no ;;
+
+  -docdir | --docdir | --docdi | --doc | --do)
+    ac_prev=docdir ;;
+  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+    docdir=$ac_optarg ;;
+
+  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+    ac_prev=dvidir ;;
+  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+    dvidir=$ac_optarg ;;
+
+  -enable-* | --enable-*)
+    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
+   { (exit 1); exit 1; }; }
+    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
+    eval enable_$ac_feature=\$ac_optarg ;;
+
+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+  | --exec | --exe | --ex)
+    ac_prev=exec_prefix ;;
+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+  | --exec=* | --exe=* | --ex=*)
+    exec_prefix=$ac_optarg ;;
+
+  -gas | --gas | --ga | --g)
+    # Obsolete; use --with-gas.
+    with_gas=yes ;;
+
+  -help | --help | --hel | --he | -h)
+    ac_init_help=long ;;
+  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+    ac_init_help=recursive ;;
+  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+    ac_init_help=short ;;
+
+  -host | --host | --hos | --ho)
+    ac_prev=host_alias ;;
+  -host=* | --host=* | --hos=* | --ho=*)
+    host_alias=$ac_optarg ;;
+
+  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+    ac_prev=htmldir ;;
+  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+  | --ht=*)
+    htmldir=$ac_optarg ;;
+
+  -includedir | --includedir | --includedi | --included | --include \
+  | --includ | --inclu | --incl | --inc)
+    ac_prev=includedir ;;
+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+  | --includ=* | --inclu=* | --incl=* | --inc=*)
+    includedir=$ac_optarg ;;
+
+  -infodir | --infodir | --infodi | --infod | --info | --inf)
+    ac_prev=infodir ;;
+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+    infodir=$ac_optarg ;;
+
+  -libdir | --libdir | --libdi | --libd)
+    ac_prev=libdir ;;
+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
+    libdir=$ac_optarg ;;
+
+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+  | --libexe | --libex | --libe)
+    ac_prev=libexecdir ;;
+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+  | --libexe=* | --libex=* | --libe=*)
+    libexecdir=$ac_optarg ;;
+
+  -localedir | --localedir | --localedi | --localed | --locale)
+    ac_prev=localedir ;;
+  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+    localedir=$ac_optarg ;;
+
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
+  | --localstate | --localstat | --localsta | --localst | --locals)
+    ac_prev=localstatedir ;;
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+    localstatedir=$ac_optarg ;;
+
+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+    ac_prev=mandir ;;
+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+    mandir=$ac_optarg ;;
+
+  -nfp | --nfp | --nf)
+    # Obsolete; use --without-fp.
+    with_fp=no ;;
+
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+  | --no-cr | --no-c | -n)
+    no_create=yes ;;
+
+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+    no_recursion=yes ;;
+
+  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+  | --oldin | --oldi | --old | --ol | --o)
+    ac_prev=oldincludedir ;;
+  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+    oldincludedir=$ac_optarg ;;
+
+  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+    ac_prev=prefix ;;
+  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+    prefix=$ac_optarg ;;
+
+  -program-prefix | --program-prefix | --program-prefi | --program-pref \
+  | --program-pre | --program-pr | --program-p)
+    ac_prev=program_prefix ;;
+  -program-prefix=* | --program-prefix=* | --program-prefi=* \
+  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+    program_prefix=$ac_optarg ;;
+
+  -program-suffix | --program-suffix | --program-suffi | --program-suff \
+  | --program-suf | --program-su | --program-s)
+    ac_prev=program_suffix ;;
+  -program-suffix=* | --program-suffix=* | --program-suffi=* \
+  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+    program_suffix=$ac_optarg ;;
+
+  -program-transform-name | --program-transform-name \
+  | --program-transform-nam | --program-transform-na \
+  | --program-transform-n | --program-transform- \
+  | --program-transform | --program-transfor \
+  | --program-transfo | --program-transf \
+  | --program-trans | --program-tran \
+  | --progr-tra | --program-tr | --program-t)
+    ac_prev=program_transform_name ;;
+  -program-transform-name=* | --program-transform-name=* \
+  | --program-transform-nam=* | --program-transform-na=* \
+  | --program-transform-n=* | --program-transform-=* \
+  | --program-transform=* | --program-transfor=* \
+  | --program-transfo=* | --program-transf=* \
+  | --program-trans=* | --program-tran=* \
+  | --progr-tra=* | --program-tr=* | --program-t=*)
+    program_transform_name=$ac_optarg ;;
+
+  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+    ac_prev=pdfdir ;;
+  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+    pdfdir=$ac_optarg ;;
+
+  -psdir | --psdir | --psdi | --psd | --ps)
+    ac_prev=psdir ;;
+  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+    psdir=$ac_optarg ;;
+
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil)
+    silent=yes ;;
+
+  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+    ac_prev=sbindir ;;
+  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+  | --sbi=* | --sb=*)
+    sbindir=$ac_optarg ;;
+
+  -sharedstatedir | --sharedstatedir | --sharedstatedi \
+  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+  | --sharedst | --shareds | --shared | --share | --shar \
+  | --sha | --sh)
+    ac_prev=sharedstatedir ;;
+  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+  | --sha=* | --sh=*)
+    sharedstatedir=$ac_optarg ;;
+
+  -site | --site | --sit)
+    ac_prev=site ;;
+  -site=* | --site=* | --sit=*)
+    site=$ac_optarg ;;
+
+  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+    ac_prev=srcdir ;;
+  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+    srcdir=$ac_optarg ;;
+
+  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+  | --syscon | --sysco | --sysc | --sys | --sy)
+    ac_prev=sysconfdir ;;
+  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+    sysconfdir=$ac_optarg ;;
+
+  -target | --target | --targe | --targ | --tar | --ta | --t)
+    ac_prev=target_alias ;;
+  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+    target_alias=$ac_optarg ;;
+
+  -v | -verbose | --verbose | --verbos | --verbo | --verb)
+    verbose=yes ;;
+
+  -version | --version | --versio | --versi | --vers | -V)
+    ac_init_version=: ;;
+
+  -with-* | --with-*)
+    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid package name: $ac_package" >&2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
+    eval with_$ac_package=\$ac_optarg ;;
+
+  -without-* | --without-*)
+    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid package name: $ac_package" >&2
+   { (exit 1); exit 1; }; }
+    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
+    eval with_$ac_package=no ;;
+
+  --x)
+    # Obsolete; use --with-x.
+    with_x=yes ;;
+
+  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+  | --x-incl | --x-inc | --x-in | --x-i)
+    ac_prev=x_includes ;;
+  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+    x_includes=$ac_optarg ;;
+
+  -x-libraries | --x-libraries | --x-librarie | --x-librari \
+  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+    ac_prev=x_libraries ;;
+  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+    x_libraries=$ac_optarg ;;
+
+  -*) { echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+   { (exit 1); exit 1; }; }
+    ;;
+
+  *=*)
+    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+   { (exit 1); exit 1; }; }
+    eval $ac_envvar=\$ac_optarg
+    export $ac_envvar ;;
+
+  *)
+    # FIXME: should be removed in autoconf 3.0.
+    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+    ;;
+
+  esac
+done
+
+if test -n "$ac_prev"; then
+  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+  { echo "$as_me: error: missing argument to $ac_option" >&2
+   { (exit 1); exit 1; }; }
+fi
+
+# Be sure to have absolute directory names.
+for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
+		datadir sysconfdir sharedstatedir localstatedir includedir \
+		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+		libdir localedir mandir
+do
+  eval ac_val=\$$ac_var
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* )  continue;;
+    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+  esac
+  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; }
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+  if test "x$build_alias" = x; then
+    cross_compiling=maybe
+    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+    If a cross compiler is detected then cross compile mode will be used." >&2
+  elif test "x$build_alias" != "x$host_alias"; then
+    cross_compiling=yes
+  fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+  { echo "$as_me: error: Working directory cannot be determined" >&2
+   { (exit 1); exit 1; }; }
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+  { echo "$as_me: error: pwd does not report name of working directory" >&2
+   { (exit 1); exit 1; }; }
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+  ac_srcdir_defaulted=yes
+  # Try the directory containing this script, then the parent directory.
+  ac_confdir=`$as_dirname -- "$0" ||
+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$0" : 'X\(//\)[^/]' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+echo X"$0" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+  srcdir=$ac_confdir
+  if test ! -r "$srcdir/$ac_unique_file"; then
+    srcdir=..
+  fi
+else
+  ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+   { (exit 1); exit 1; }; }
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
+   { (exit 1); exit 1; }; }
+	pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+  srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+  eval ac_env_${ac_var}_set=\${${ac_var}+set}
+  eval ac_env_${ac_var}_value=\$${ac_var}
+  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+  eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+  # Omit some internal or obsolete options to make the list less imposing.
+  # This message is too long to be a string in the A/UX 3.1 sh.
+  cat <<_ACEOF
+\`configure' configures fglrx-driver 8.32.5 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE.  See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+  -h, --help              display this help and exit
+      --help=short        display options specific to this package
+      --help=recursive    display the short help of all the included packages
+  -V, --version           display version information and exit
+  -q, --quiet, --silent   do not print \`checking...' messages
+      --cache-file=FILE   cache test results in FILE [disabled]
+  -C, --config-cache      alias for \`--cache-file=config.cache'
+  -n, --no-create         do not create output files
+      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+  --prefix=PREFIX         install architecture-independent files in PREFIX
+			  [$ac_default_prefix]
+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+			  [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+  --bindir=DIR           user executables [EPREFIX/bin]
+  --sbindir=DIR          system admin executables [EPREFIX/sbin]
+  --libexecdir=DIR       program executables [EPREFIX/libexec]
+  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+  --libdir=DIR           object code libraries [EPREFIX/lib]
+  --includedir=DIR       C header files [PREFIX/include]
+  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
+  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
+  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
+  --infodir=DIR          info documentation [DATAROOTDIR/info]
+  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
+  --mandir=DIR           man documentation [DATAROOTDIR/man]
+  --docdir=DIR           documentation root [DATAROOTDIR/doc/fglrx-driver]
+  --htmldir=DIR          html documentation [DOCDIR]
+  --dvidir=DIR           dvi documentation [DOCDIR]
+  --pdfdir=DIR           pdf documentation [DOCDIR]
+  --psdir=DIR            ps documentation [DOCDIR]
+_ACEOF
+
+  cat <<\_ACEOF
+
+Program names:
+  --program-prefix=PREFIX            prepend PREFIX to installed program names
+  --program-suffix=SUFFIX            append SUFFIX to installed program names
+  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+  case $ac_init_help in
+     short | recursive ) echo "Configuration of fglrx-driver 8.32.5:";;
+   esac
+  cat <<\_ACEOF
+
+Optional Features:
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --disable-dependency-tracking  speeds up one-time build
+  --enable-dependency-tracking   do not reject slow dependency extractors
+  --enable-build-checks   enable the checks in the check-target (rewuires more
+                          applications) [default=no (yes for distcheck)]
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-docbook-xsl-dir[=DIR]
+                          Specify the path to Norman Walsh's XSL stylesheets.
+                          [DIR=autodetect]
+  --with-xserver[=[Xorg|XFree86]]
+                          Specify, which X-server is used
+                          [default=autodetect].
+  --with-xserver-app-man-dir[=DIR]
+                          Specify the path, where X application-manpages
+                          should be installed. [DIR=$mandir/man1]
+  --with-xserver-driver-man-dir[=DIR]
+                          Specify the path, where X driver-manpages should be
+                          installed. [DIR=$mandir/man4]
+  --with-xserver-file-man-dir[=DIR]
+                          Specify the path, where X file-manpages should be
+                          installed. [DIR=$mandir/man5]
+
+Some influential environment variables:
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+              nonstandard directory <lib dir>
+  LIBS        libraries to pass to the linker, e.g. -l<library>
+  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+              you have headers in a nonstandard directory <include dir>
+  CPP         C preprocessor
+  DRIVER_PACKAGE
+              The package string you want to have at the top of the manpage
+              instead of the default string [default="Debian GNU/Linux
+              fglrx-driver package"].
+  LICENSE_FILE
+              Change the place, where the license can be found.
+              [default="$datadir/doc/fglrx_man/COPYING"]
+  XSLTPROC    The 'xsltproc' binary with path. Use it to define or override
+              the location of 'xsltproc'.
+  XSLTPROC_FLAGS
+              More options, which should be used along with 'xsltproc', like
+              e.g. '--nonet'.
+  PKG_CONFIG  path to pkg-config utility
+  XMLLINT     The 'xmllint' binary with path. Use it to define or override the
+              location of 'xmllint'.
+  XMLLINT_FLAGS
+              More options, which should be used along with 'xmllint', like
+              e.g. '--nonet'.
+  MAN         The 'man' binary with path. Use it to define or override the
+              location of 'man'.
+  XMLCATALOG  The 'xmlcatalog' binary with path. Use it to define or override
+              the location of 'xmlcatalog'.
+  XML_CATALOG_FILE
+              The default system catalog. Use it to define or override the
+              systems catalog '/etc/xml/catalog'.
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <http://bugs.debian.org/fglrx-driver>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+  # If there are subdirs, report their specific --help.
+  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+    test -d "$ac_dir" || continue
+    ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A ".." for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
+  case $ac_top_builddir_sub in
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+    cd "$ac_dir" || { ac_status=$?; continue; }
+    # Check for guested configure.
+    if test -f "$ac_srcdir/configure.gnu"; then
+      echo &&
+      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+    elif test -f "$ac_srcdir/configure"; then
+      echo &&
+      $SHELL "$ac_srcdir/configure" --help=recursive
+    else
+      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+    fi || ac_status=$?
+    cd "$ac_pwd" || { ac_status=$?; break; }
+  done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+  cat <<\_ACEOF
+fglrx-driver configure 8.32.5
+generated by GNU Autoconf 2.61
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+  exit
+fi
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by fglrx-driver $as_me 8.32.5, which was
+generated by GNU Autoconf 2.61.  Invocation command line was
+
+  $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
+
+/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
+/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
+/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  echo "PATH: $as_dir"
+done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+  for ac_arg
+  do
+    case $ac_arg in
+    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+    | -silent | --silent | --silen | --sile | --sil)
+      continue ;;
+    *\'*)
+      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    case $ac_pass in
+    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
+    2)
+      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
+      if test $ac_must_keep_next = true; then
+	ac_must_keep_next=false # Got value, back to normal.
+      else
+	case $ac_arg in
+	  *=* | --config-cache | -C | -disable-* | --disable-* \
+	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+	  | -with-* | --with-* | -without-* | --without-* | --x)
+	    case "$ac_configure_args0 " in
+	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+	    esac
+	    ;;
+	  -* ) ac_must_keep_next=true ;;
+	esac
+      fi
+      ac_configure_args="$ac_configure_args '$ac_arg'"
+      ;;
+    esac
+  done
+done
+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log.  We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+  # Save into config.log some information that might help in debugging.
+  {
+    echo
+
+    cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+    echo
+    # The following way of writing the cache mishandles newlines in values,
+(
+  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+    eval ac_val=\$$ac_var
+    case $ac_val in #(
+    *${as_nl}*)
+      case $ac_var in #(
+      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
+      esac
+      case $ac_var in #(
+      _ | IFS | as_nl) ;; #(
+      *) $as_unset $ac_var ;;
+      esac ;;
+    esac
+  done
+  (set) 2>&1 |
+    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+    *${as_nl}ac_space=\ *)
+      sed -n \
+	"s/'\''/'\''\\\\'\'''\''/g;
+	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+      ;; #(
+    *)
+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+      ;;
+    esac |
+    sort
+)
+    echo
+
+    cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+    echo
+    for ac_var in $ac_subst_vars
+    do
+      eval ac_val=\$$ac_var
+      case $ac_val in
+      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+      esac
+      echo "$ac_var='\''$ac_val'\''"
+    done | sort
+    echo
+
+    if test -n "$ac_subst_files"; then
+      cat <<\_ASBOX
+## ------------------- ##
+## File substitutions. ##
+## ------------------- ##
+_ASBOX
+      echo
+      for ac_var in $ac_subst_files
+      do
+	eval ac_val=\$$ac_var
+	case $ac_val in
+	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+	esac
+	echo "$ac_var='\''$ac_val'\''"
+      done | sort
+      echo
+    fi
+
+    if test -s confdefs.h; then
+      cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+      echo
+      cat confdefs.h
+      echo
+    fi
+    test "$ac_signal" != 0 &&
+      echo "$as_me: caught signal $ac_signal"
+    echo "$as_me: exit $exit_status"
+  } >&5
+  rm -f core *.core core.conftest.* &&
+    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+    exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer explicitly selected file to automatically selected ones.
+if test -n "$CONFIG_SITE"; then
+  set x "$CONFIG_SITE"
+elif test "x$prefix" != xNONE; then
+  set x "$prefix/share/config.site" "$prefix/etc/config.site"
+else
+  set x "$ac_default_prefix/share/config.site" \
+	"$ac_default_prefix/etc/config.site"
+fi
+shift
+for ac_site_file
+do
+  if test -r "$ac_site_file"; then
+    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+echo "$as_me: loading site script $ac_site_file" >&6;}
+    sed 's/^/| /' "$ac_site_file" >&5
+    . "$ac_site_file"
+  fi
+done
+
+if test -r "$cache_file"; then
+  # Some versions of bash will fail to source /dev/null (special
+  # files actually), so we avoid doing that.
+  if test -f "$cache_file"; then
+    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
+echo "$as_me: loading cache $cache_file" >&6;}
+    case $cache_file in
+      [\\/]* | ?:[\\/]* ) . "$cache_file";;
+      *)                      . "./$cache_file";;
+    esac
+  fi
+else
+  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
+echo "$as_me: creating cache $cache_file" >&6;}
+  >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+  eval ac_new_set=\$ac_env_${ac_var}_set
+  eval ac_old_val=\$ac_cv_env_${ac_var}_value
+  eval ac_new_val=\$ac_env_${ac_var}_value
+  case $ac_old_set,$ac_new_set in
+    set,)
+      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,set)
+      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,);;
+    *)
+      if test "x$ac_old_val" != "x$ac_new_val"; then
+	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
+echo "$as_me:   former value:  $ac_old_val" >&2;}
+	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
+echo "$as_me:   current value: $ac_new_val" >&2;}
+	ac_cache_corrupted=:
+      fi;;
+  esac
+  # Pass precious variables to config.status.
+  if test "$ac_new_set" = set; then
+    case $ac_new_val in
+    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+    *) ac_arg=$ac_var=$ac_new_val ;;
+    esac
+    case " $ac_configure_args " in
+      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
+      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+    esac
+  fi
+done
+if $ac_cache_corrupted; then
+  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+am__api_version='1.10'
+
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+  if test -f "$ac_dir/install-sh"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install-sh -c"
+    break
+  elif test -f "$ac_dir/install.sh"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install.sh -c"
+    break
+  elif test -f "$ac_dir/shtool"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/shtool install -c"
+    break
+  fi
+done
+if test -z "$ac_aux_dir"; then
+  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
+echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
+
+
+# Find a good install program.  We prefer a C program (faster),
+# so one script is as good as another.  But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+  ./ | .// | /cC/* | \
+  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+  /usr/ucb/* ) ;;
+  *)
+    # OSF1 and SCO ODT 3.0 have their own names for install.
+    # Don't use installbsd from OSF since it installs stuff as root
+    # by default.
+    for ac_prog in ginstall scoinst install; do
+      for ac_exec_ext in '' $ac_executable_extensions; do
+	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+	  if test $ac_prog = install &&
+	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+	    # AIX install.  It has an incompatible calling convention.
+	    :
+	  elif test $ac_prog = install &&
+	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+	    # program-specific install script used by HP pwplus--don't use.
+	    :
+	  else
+	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+	    break 3
+	  fi
+	fi
+      done
+    done
+    ;;
+esac
+done
+IFS=$as_save_IFS
+
+
+fi
+  if test "${ac_cv_path_install+set}" = set; then
+    INSTALL=$ac_cv_path_install
+  else
+    # As a last resort, use the slow shell script.  Don't cache a
+    # value for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the value is a relative name.
+    INSTALL=$ac_install_sh
+  fi
+fi
+{ echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
+echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments.  Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+   if test "$*" = "X"; then
+      # -L didn't work.
+      set X `ls -t $srcdir/configure conftest.file`
+   fi
+   rm -f conftest.file
+   if test "$*" != "X $srcdir/configure conftest.file" \
+      && test "$*" != "X conftest.file $srcdir/configure"; then
+
+      # If neither matched, then we have a broken ls.  This can happen
+      # if, for instance, CONFIG_SHELL is bash and it inherits a
+      # broken ls alias from the environment.  This has actually
+      # happened.  Such a system could not be considered "sane".
+      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
+alias in your environment" >&5
+echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
+alias in your environment" >&2;}
+   { (exit 1); exit 1; }; }
+   fi
+
+   test "$2" = conftest.file
+   )
+then
+   # Ok.
+   :
+else
+   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
+Check your system clock" >&5
+echo "$as_me: error: newly created file is older than distributed files!
+Check your system clock" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+{ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+test "$program_prefix" != NONE &&
+  program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.  echo might interpret backslashes.
+# By default was `s,x,x', remove it if useless.
+cat <<\_ACEOF >conftest.sed
+s/[\\$]/&&/g;s/;s,x,x,$//
+_ACEOF
+program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
+rm -f conftest.sed
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+  am_missing_run="$MISSING --run "
+else
+  am_missing_run=
+  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
+echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
+fi
+
+{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
+echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
+if test -z "$MKDIR_P"; then
+  if test "${ac_cv_path_mkdir+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_prog in mkdir gmkdir; do
+	 for ac_exec_ext in '' $ac_executable_extensions; do
+	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+	     'mkdir (GNU coreutils) '* | \
+	     'mkdir (coreutils) '* | \
+	     'mkdir (fileutils) '4.1*)
+	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+	       break 3;;
+	   esac
+	 done
+       done
+done
+IFS=$as_save_IFS
+
+fi
+
+  if test "${ac_cv_path_mkdir+set}" = set; then
+    MKDIR_P="$ac_cv_path_mkdir -p"
+  else
+    # As a last resort, use the slow shell script.  Don't cache a
+    # value for MKDIR_P within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the value is a relative name.
+    test -d ./--version && rmdir ./--version
+    MKDIR_P="$ac_install_sh -d"
+  fi
+fi
+{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
+echo "${ECHO_T}$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+  [\\/$]* | ?:[\\/]*) ;;
+  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+for ac_prog in gawk mawk nawk awk
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_AWK+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$AWK"; then
+  ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_AWK="$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+  { echo "$as_me:$LINENO: result: $AWK" >&5
+echo "${ECHO_T}$AWK" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+  test -n "$AWK" && break
+done
+
+{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
+set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+	@echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+  *@@@%%%=?*=@@@%%%*)
+    eval ac_cv_prog_make_${ac_make}_set=yes;;
+  *)
+    eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+  { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+  SET_MAKE=
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+  SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+  am__leading_dot=.
+else
+  am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+  # is not polluted with repeated "-I."
+  am__isrc=' -I$(srcdir)'
+  # test to see if srcdir already configured
+  if test -f $srcdir/config.status; then
+    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
+echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+  if (cygpath --version) >/dev/null 2>/dev/null; then
+    CYGPATH_W='cygpath -w'
+  else
+    CYGPATH_W=echo
+  fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE=fglrx-driver-man
+ VERSION=8.32.5
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'.  However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+  if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$STRIP"; then
+  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+  { echo "$as_me:$LINENO: result: $STRIP" >&5
+echo "${ECHO_T}$STRIP" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+  ac_ct_STRIP=$STRIP
+  # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_STRIP"; then
+  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_STRIP="strip"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
+echo "${ECHO_T}$ac_ct_STRIP" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+  if test "x$ac_ct_STRIP" = x; then
+    STRIP=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+    STRIP=$ac_ct_STRIP
+  fi
+else
+  STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+# We need awk for the "check" target.  The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.
+
+AMTAR=${AMTAR-"${am_missing_run}tar"}
+
+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
+
+
+
+
+
+
+
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+	@echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
+echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+   am__include=include
+   am__quote=
+   _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+   echo '.include "confinc"' > confmf
+   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+      am__include=.include
+      am__quote="\""
+      _am_result=BSD
+   fi
+fi
+
+
+{ echo "$as_me:$LINENO: result: $_am_result" >&5
+echo "${ECHO_T}$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then
+  enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+  am_depcomp="$ac_aux_dir/depcomp"
+  AMDEPBACKSLASH='\'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+  AMDEP_TRUE=
+  AMDEP_FALSE='#'
+else
+  AMDEP_TRUE='#'
+  AMDEP_FALSE=
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_CC="${ac_tool_prefix}gcc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_CC="gcc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+          if test -n "$ac_tool_prefix"; then
+    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_CC="${ac_tool_prefix}cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+  fi
+fi
+if test -z "$CC"; then
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+       ac_prog_rejected=yes
+       continue
+     fi
+    ac_cv_prog_CC="cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+  # We found a bogon in the path, so make sure we never use it.
+  set dummy $ac_cv_prog_CC
+  shift
+  if test $# != 0; then
+    # We chose a different compiler from the bogus one.
+    # However, it has the same basename, so the bogon will be chosen
+    # first if we set CC to just the basename; use the full file name.
+    shift
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+  fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  for ac_prog in cl.exe
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { echo "$as_me:$LINENO: result: $CC" >&5
+echo "${ECHO_T}$CC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+    test -n "$CC" && break
+  done
+fi
+if test -z "$CC"; then
+  ac_ct_CC=$CC
+  for ac_prog in cl.exe
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_ac_ct_CC="$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+echo "${ECHO_T}$ac_ct_CC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+  test -n "$ac_ct_CC" && break
+done
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+fi
+
+fi
+
+
+test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&5
+echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+
+# Provide some information about the compiler.
+echo "$as_me:$LINENO: checking for C compiler version" >&5
+ac_compiler=`set X $ac_compile; echo $2`
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compiler --version >&5") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compiler -v >&5") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compiler -V >&5") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
+echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
+ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+#
+# List of possible output files, starting from the most likely.
+# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
+# only as a last resort.  b.out is created by i960 compilers.
+ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
+#
+# The IRIX 6 linker writes into existing files which may not be
+# executable, retaining their permissions.  Remove them first so a
+# subsequent execution test works.
+ac_rmfiles=
+for ac_file in $ac_files
+do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
+    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+  esac
+done
+rm -f $ac_rmfiles
+
+if { (ac_try="$ac_link_default"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link_default") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile.  We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
+	;;
+    [ab].out )
+	# We found the default executable, but exeext='' is most
+	# certainly right.
+	break;;
+    *.* )
+        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+	then :; else
+	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+	fi
+	# We set ac_cv_exeext here because the later test for it is not
+	# safe: cross compilers may not add the suffix if given an `-o'
+	# argument, so we may need to know it at that point already.
+	# Even if this section looks crufty: it has the advantage of
+	# actually working.
+	break;;
+    * )
+	break;;
+  esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+  ac_file=''
+fi
+
+{ echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6; }
+if test -z "$ac_file"; then
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
+See \`config.log' for more details." >&5
+echo "$as_me: error: C compiler cannot create executables
+See \`config.log' for more details." >&2;}
+   { (exit 77); exit 77; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+
+# Check that the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+  if { ac_try='./$ac_file'
+  { (case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+    cross_compiling=no
+  else
+    if test "$cross_compiling" = maybe; then
+	cross_compiling=yes
+    else
+	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+    fi
+  fi
+fi
+{ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+
+rm -f a.out a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+# Check that the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
+echo "${ECHO_T}$cross_compiling" >&6; }
+
+{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
+echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+	  break;;
+    * ) break;;
+  esac
+done
+else
+  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+echo "${ECHO_T}$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
+echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
+if test "${ac_cv_objext+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  for ac_file in conftest.o conftest.obj conftest.*; do
+  test -f "$ac_file" || continue;
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
+    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+       break;;
+  esac
+done
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&5
+echo "$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+echo "${ECHO_T}$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_compiler_gnu=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_compiler_gnu=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
+GCC=`test $ac_compiler_gnu = yes && echo yes`
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_save_c_werror_flag=$ac_c_werror_flag
+   ac_c_werror_flag=yes
+   ac_cv_prog_cc_g=no
+   CFLAGS="-g"
+   cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_prog_cc_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	CFLAGS=""
+      cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_c_werror_flag=$ac_save_c_werror_flag
+	 CFLAGS="-g"
+	 cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_prog_cc_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+  CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+  if test "$GCC" = yes; then
+    CFLAGS="-g -O2"
+  else
+    CFLAGS="-g"
+  fi
+else
+  if test "$GCC" = yes; then
+    CFLAGS="-O2"
+  else
+    CFLAGS=
+  fi
+fi
+{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
+echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
+   function prototypes and stuff, but not '\xHH' hex character constants.
+   These don't provoke an error unfortunately, instead are silently treated
+   as 'x'.  The following induces an error, until -std is added to get
+   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
+   array size at least.  It's necessary to write '\x00'==0 to get something
+   that's true only with -std.  */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+   inside strings and character constants.  */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_prog_cc_c89=$ac_arg
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+  test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+  x)
+    { echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6; } ;;
+  xno)
+    { echo "$as_me:$LINENO: result: unsupported" >&5
+echo "${ECHO_T}unsupported" >&6; } ;;
+  *)
+    CC="$CC $ac_cv_prog_cc_c89"
+    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CC"   am_compiler_list=
+
+{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named `D' -- because `-MD' means `put the output
+  # in D'.
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CC_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+  fi
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+      # Solaris 8's {/usr,}/bin/sh.
+      touch sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    case $depmode in
+    nosideeffect)
+      # after this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested
+      if test "x$enable_dependency_tracking" = xyes; then
+	continue
+      else
+	break
+      fi
+      ;;
+    none) break ;;
+    esac
+    # We check with `-c' and `-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle `-M -o', and we need to detect this.
+    if depmode=$depmode \
+       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_CC_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
+echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+  am__fastdepCC_TRUE=
+  am__fastdepCC_FALSE='#'
+else
+  am__fastdepCC_TRUE='#'
+  am__fastdepCC_FALSE=
+fi
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+  CPP=
+fi
+if test -z "$CPP"; then
+  if test "${ac_cv_prog_CPP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+      # Double quotes because CPP needs to be expanded
+    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+		     Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null && {
+	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Broken: fails on valid input.
+continue
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null && {
+	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       }; then
+  # Broken: success on invalid input.
+continue
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  break
+fi
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+{ echo "$as_me:$LINENO: result: $CPP" >&5
+echo "${ECHO_T}$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+		     Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null && {
+	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Broken: fails on valid input.
+continue
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } >/dev/null && {
+	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       }; then
+  # Broken: success on invalid input.
+continue
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+  :
+else
+  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&5
+echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
+echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  # Extract the first word of "grep ggrep" to use in msg output
+if test -z "$GREP"; then
+set dummy grep ggrep; ac_prog_name=$2
+if test "${ac_cv_path_GREP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_path_GREP_found=false
+# Loop through the user's path and test for each of PROGNAME-LIST
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_prog in grep ggrep; do
+  for ac_exec_ext in '' $ac_executable_extensions; do
+    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+    # Check for GNU ac_path_GREP and select it if it is found.
+  # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+  ac_count=0
+  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    echo 'GREP' >> "conftest.nl"
+    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    ac_count=`expr $ac_count + 1`
+    if test $ac_count -gt ${ac_path_GREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_GREP="$ac_path_GREP"
+      ac_path_GREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+
+    $ac_path_GREP_found && break 3
+  done
+done
+
+done
+IFS=$as_save_IFS
+
+
+fi
+
+GREP="$ac_cv_path_GREP"
+if test -z "$GREP"; then
+  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+else
+  ac_cv_path_GREP=$GREP
+fi
+
+
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
+echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ echo "$as_me:$LINENO: checking for egrep" >&5
+echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
+if test "${ac_cv_path_EGREP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+   then ac_cv_path_EGREP="$GREP -E"
+   else
+     # Extract the first word of "egrep" to use in msg output
+if test -z "$EGREP"; then
+set dummy egrep; ac_prog_name=$2
+if test "${ac_cv_path_EGREP+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_path_EGREP_found=false
+# Loop through the user's path and test for each of PROGNAME-LIST
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_prog in egrep; do
+  for ac_exec_ext in '' $ac_executable_extensions; do
+    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+    # Check for GNU ac_path_EGREP and select it if it is found.
+  # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+  ac_count=0
+  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    echo 'EGREP' >> "conftest.nl"
+    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    ac_count=`expr $ac_count + 1`
+    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_EGREP="$ac_path_EGREP"
+      ac_path_EGREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+
+    $ac_path_EGREP_found && break 3
+  done
+done
+
+done
+IFS=$as_save_IFS
+
+
+fi
+
+EGREP="$ac_cv_path_EGREP"
+if test -z "$EGREP"; then
+  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+else
+  ac_cv_path_EGREP=$EGREP
+fi
+
+
+   fi
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
+echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_header_stdc=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_cv_header_stdc=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "memchr" >/dev/null 2>&1; then
+  :
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "free" >/dev/null 2>&1; then
+  :
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+  if test "$cross_compiling" = yes; then
+  :
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+		   (('a' <= (c) && (c) <= 'i') \
+		     || ('j' <= (c) && (c) <= 'r') \
+		     || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+  int i;
+  for (i = 0; i < 256; i++)
+    if (XOR (islower (i), ISLOWER (i))
+	|| toupper (i) != TOUPPER (i))
+      return 2;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+
+
+
+
+
+
+
+
+
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+		  inttypes.h stdint.h unistd.h
+do
+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ echo "$as_me:$LINENO: checking for $ac_header" >&5
+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  eval "$as_ac_Header=yes"
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval echo '${'$as_ac_Header'}'`
+	       { echo "$as_me:$LINENO: result: $ac_res" >&5
+echo "${ECHO_T}$ac_res" >&6; }
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+  cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
+echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
+if test "${ac_cv_c_bigendian+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  # See if sys/param.h defines the BYTE_ORDER macro.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <sys/types.h>
+#include <sys/param.h>
+
+int
+main ()
+{
+#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
+	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
+ bogus endian macros
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  # It does; now see whether it defined to BIG_ENDIAN or not.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+#include <sys/types.h>
+#include <sys/param.h>
+
+int
+main ()
+{
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  ac_cv_c_bigendian=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_cv_c_bigendian=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	# It does not; compile a test program.
+if test "$cross_compiling" = yes; then
+  # try to guess the endianness by grepping values into an object file
+  ac_cv_c_bigendian=unknown
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
+short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
+int
+main ()
+{
+ _ascii (); _ebcdic ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_compile") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then
+  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
+  ac_cv_c_bigendian=yes
+fi
+if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+  if test "$ac_cv_c_bigendian" = unknown; then
+    ac_cv_c_bigendian=no
+  else
+    # finding both strings is unlikely to happen, but who knows?
+    ac_cv_c_bigendian=unknown
+  fi
+fi
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_includes_default
+int
+main ()
+{
+
+  /* Are we little or big endian?  From Harbison&Steele.  */
+  union
+  {
+    long int l;
+    char c[sizeof (long int)];
+  } u;
+  u.l = 1;
+  return u.c[sizeof (long int) - 1] == 1;
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+  { (case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_c_bigendian=no
+else
+  echo "$as_me: program exited with status $ac_status" >&5
+echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_c_bigendian=yes
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
+echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
+case $ac_cv_c_bigendian in
+  yes)
+
+cat >>confdefs.h <<\_ACEOF
+#define WORDS_BIGENDIAN 1
+_ACEOF
+ ;;
+  no)
+     ;;
+  *)
+    { { echo "$as_me:$LINENO: error: unknown endianness
+presetting ac_cv_c_bigendian=no (or yes) will help" >&5
+echo "$as_me: error: unknown endianness
+presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
+   { (exit 1); exit 1; }; } ;;
+esac
+
+
+# Check whether --enable-build-checks was given.
+if test "${enable_build_checks+set}" = set; then
+  enableval=$enable_build_checks;
+else
+  enable_build_checks=no
+
+fi
+
+ if test "x$enable_build_checks" != "xno"; then
+  ENABLE_BUILD_CHECKS_TRUE=
+  ENABLE_BUILD_CHECKS_FALSE='#'
+else
+  ENABLE_BUILD_CHECKS_TRUE='#'
+  ENABLE_BUILD_CHECKS_FALSE=
+fi
+
+
+ATI_DRIVER_NAME="ATI Linux driver"
+ATI_DRIVER_VERSION="$VERSION"
+
+if test "x$DRIVER_PACKAGE" = "x"; then
+	ATI_DRIVER_PACKAGE="Debian GNU/Linux fglrx-driver package"
+else
+	ATI_DRIVER_PACKAGE=$DRIVER_PACKAGE
+	{ echo "$as_me:$LINENO: DRIVER_PACKAGE has been overwritten with: '$DRIVER_PACKAGE'" >&5
+echo "$as_me: DRIVER_PACKAGE has been overwritten with: '$DRIVER_PACKAGE'" >&6;}
+fi
+
+
+
+
+if test "$prefix" = "NONE" ; then prefix=/usr/local ; fi
+{ echo "$as_me:$LINENO: checking for prefix." >&5
+echo $ECHO_N "checking for prefix.... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: result: $prefix" >&5
+echo "${ECHO_T}$prefix" >&6; }
+{ echo "$as_me:$LINENO: checking for datadir" >&5
+echo $ECHO_N "checking for datadir... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: result: $datadir" >&5
+echo "${ECHO_T}$datadir" >&6; }
+{ echo "$as_me:$LINENO: checking for mandir" >&5
+echo $ECHO_N "checking for mandir... $ECHO_C" >&6; }
+{ echo "$as_me:$LINENO: result: $mandir" >&5
+echo "${ECHO_T}$mandir" >&6; }
+
+
+if test -z "$LICENSE_FILE"; then
+	eval eval dt=`echo $datadir`
+	PACKAGE_LICENSE_FILE="$dt/doc/fglrx_man/COPYING"
+else
+	PACKAGE_LICENSE_FILE=$LICENSE_FILE
+	{ echo "$as_me:$LINENO: LICENSE shall be found at... $LICENSE_FILE" >&5
+echo "$as_me: LICENSE shall be found at... $LICENSE_FILE" >&6;}
+fi
+
+
+# Find a good install program.  We prefer a C program (faster),
+# so one script is as good as another.  But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+  ./ | .// | /cC/* | \
+  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+  /usr/ucb/* ) ;;
+  *)
+    # OSF1 and SCO ODT 3.0 have their own names for install.
+    # Don't use installbsd from OSF since it installs stuff as root
+    # by default.
+    for ac_prog in ginstall scoinst install; do
+      for ac_exec_ext in '' $ac_executable_extensions; do
+	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+	  if test $ac_prog = install &&
+	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+	    # AIX install.  It has an incompatible calling convention.
+	    :
+	  elif test $ac_prog = install &&
+	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+	    # program-specific install script used by HP pwplus--don't use.
+	    :
+	  else
+	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+	    break 3
+	  fi
+	fi
+      done
+    done
+    ;;
+esac
+done
+IFS=$as_save_IFS
+
+
+fi
+  if test "${ac_cv_path_install+set}" = set; then
+    INSTALL=$ac_cv_path_install
+  else
+    # As a last resort, use the slow shell script.  Don't cache a
+    # value for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the value is a relative name.
+    INSTALL=$ac_install_sh
+  fi
+fi
+{ echo "$as_me:$LINENO: result: $INSTALL" >&5
+echo "${ECHO_T}$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+
+
+
+	# Extract the first word of "xsltproc", so it can be a program name with args.
+set dummy xsltproc; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_XSLTPROC+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $XSLTPROC in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+XSLTPROC=$ac_cv_path_XSLTPROC
+if test -n "$XSLTPROC"; then
+  { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
+echo "${ECHO_T}$XSLTPROC" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+	if test -z $XSLTPROC ; then
+		{ { echo "$as_me:$LINENO: error: 'xsltproc' was not found! We cannot proceed. See README." >&5
+echo "$as_me: error: 'xsltproc' was not found! We cannot proceed. See README." >&2;}
+   { (exit 1); exit 1; }; } ;
+	fi
+
+
+	{ echo "$as_me:$LINENO: checking for optional xsltproc options to use" >&5
+echo $ECHO_N "checking for optional xsltproc options to use... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $XSLTPROC_FLAGS" >&5
+echo "${ECHO_T}$XSLTPROC_FLAGS" >&6; }
+
+
+
+
+if test "x$enable_build_checks" != "xno" ; then
+
+
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+	if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $PKG_CONFIG in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+echo "${ECHO_T}$PKG_CONFIG" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_path_PKG_CONFIG"; then
+  ac_pt_PKG_CONFIG=$PKG_CONFIG
+  # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $ac_pt_PKG_CONFIG in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
+if test -n "$ac_pt_PKG_CONFIG"; then
+  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
+echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+  if test "x$ac_pt_PKG_CONFIG" = x; then
+    PKG_CONFIG=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&5
+echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
+whose name does not start with the host triplet.  If you think this
+configuration is useful to you, please write to autoconf@gnu.org." >&2;}
+ac_tool_warned=yes ;;
+esac
+    PKG_CONFIG=$ac_pt_PKG_CONFIG
+  fi
+else
+  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
+fi
+
+fi
+if test -n "$PKG_CONFIG"; then
+	_pkg_min_version=0.9.0
+	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
+echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
+	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+		{ echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+	else
+		{ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+		PKG_CONFIG=""
+	fi
+
+fi
+
+
+
+
+	# Extract the first word of "xmllint", so it can be a program name with args.
+set dummy xmllint; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_XMLLINT+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $XMLLINT in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+XMLLINT=$ac_cv_path_XMLLINT
+if test -n "$XMLLINT"; then
+  { echo "$as_me:$LINENO: result: $XMLLINT" >&5
+echo "${ECHO_T}$XMLLINT" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+	if test -z $XMLLINT ; then
+		{ { echo "$as_me:$LINENO: error: 'xmllint' was not found. We cannot validate the XML sources." >&5
+echo "$as_me: error: 'xmllint' was not found. We cannot validate the XML sources." >&2;}
+   { (exit 1); exit 1; }; } ;
+	else
+		{ echo "$as_me:$LINENO: checking for xmllint >= 2.6.24" >&5
+echo $ECHO_N "checking for xmllint >= 2.6.24... $ECHO_C" >&6; }
+
+			 if test -n "$PKG_CONFIG" && \
+    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.24\"") >&5
+  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.24") 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+else
+
+				  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+				  { { echo "$as_me:$LINENO: error: 'xmllint' too old. We cannot validate the XML sources." >&5
+echo "$as_me: error: 'xmllint' too old. We cannot validate the XML sources." >&2;}
+   { (exit 1); exit 1; }; }
+				  XMLLINT=""
+
+
+fi
+
+	fi
+
+
+	{ echo "$as_me:$LINENO: checking for optional xmllint options to use" >&5
+echo $ECHO_N "checking for optional xmllint options to use... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $XMLLINT_FLAGS" >&5
+echo "${ECHO_T}$XMLLINT_FLAGS" >&6; }
+
+
+
+
+
+
+
+	# Extract the first word of "man", so it can be a program name with args.
+set dummy man; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_MAN+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $MAN in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+MAN=$ac_cv_path_MAN
+if test -n "$MAN"; then
+  { echo "$as_me:$LINENO: result: $MAN" >&5
+echo "${ECHO_T}$MAN" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+	if test -z $MAN ; then
+		{ { echo "$as_me:$LINENO: error: 'man' was not found. We cannot check the manpages for errors. See README." >&5
+echo "$as_me: error: 'man' was not found. We cannot check the manpages for errors. See README." >&2;}
+   { (exit 1); exit 1; }; } ;
+	fi
+
+
+
+fi
+
+
+
+# Check whether --with-docbook-xsl-dir was given.
+if test "${with_docbook_xsl_dir+set}" = set; then
+  withval=$with_docbook_xsl_dir; PATH_DOCBOOK_XSL=$withval
+fi
+
+
+
+	# Extract the first word of "xmlcatalog", so it can be a program name with args.
+set dummy xmlcatalog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_path_XMLCATALOG+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  case $XMLCATALOG in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+XMLCATALOG=$ac_cv_path_XMLCATALOG
+if test -n "$XMLCATALOG"; then
+  { echo "$as_me:$LINENO: result: $XMLCATALOG" >&5
+echo "${ECHO_T}$XMLCATALOG" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+
+
+	if test -z $XML_CATALOG_FILE ; then
+		XML_CATALOG_FILE="/etc/xml/catalog"
+	fi
+
+			if test -z $PATH_DOCBOOK_XSL -a $XMLCATALOG ; then
+		if { (echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/\" >&2") >&5
+  ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/" >&2) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } ; then
+			PATH_DOCBOOK_XSL="http://docbook.sourceforge.net/release/xsl/current"
+		fi
+	fi
+
+		if test -z $PATH_DOCBOOK_XSL ; then
+		db_xsl_dir_list="
+			/usr/share/sgml/docbook/xsl-stylesheets
+			/usr/share/sgml/docbook/stylesheet/xsl/nwalsh
+			/usr/share/xml/docbook/stylesheet/nwalsh
+			/usr/local/share/sgml/docbook/xsl-stylesheets
+			/usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh
+			/usr/local/share/xml/docbook/stylesheet/nwalsh
+			/opt/share/sgml/docbook/xsl-stylesheets
+			$datadir/sgml/docbook/xsl-stylesheets
+			$datadir/sgml/docbook/stylesheet/xsl/nwalsh
+			$datadir/xml/docbook/stylesheet/nwalsh
+		"
+		for dir in $db_xsl_dir_list ; do
+			if test -f $dir/catalog.xml ; then
+				PATH_DOCBOOK_XSL=$dir
+				break
+			fi
+		done
+	fi
+
+		if test -z $PATH_DOCBOOK_XSL ; then
+		PATH_DOCBOOK_XSL="http://docbook.sourceforge.net/release/xsl/current"
+	fi
+
+	{ echo "$as_me:$LINENO: checking for XSL stylesheet dir" >&5
+echo $ECHO_N "checking for XSL stylesheet dir... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $PATH_DOCBOOK_XSL" >&5
+echo "${ECHO_T}$PATH_DOCBOOK_XSL" >&6; }
+
+
+
+
+
+
+
+# Check whether --with-xserver was given.
+if test "${with_xserver+set}" = set; then
+  withval=$with_xserver;
+		 if test -z $withval ; then
+			 for ac_prog in Xorg XFree86
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_PROG_XSERVER_STRING+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$PROG_XSERVER_STRING"; then
+  ac_cv_prog_PROG_XSERVER_STRING="$PROG_XSERVER_STRING" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_PROG_XSERVER_STRING="$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+PROG_XSERVER_STRING=$ac_cv_prog_PROG_XSERVER_STRING
+if test -n "$PROG_XSERVER_STRING"; then
+  { echo "$as_me:$LINENO: result: $PROG_XSERVER_STRING" >&5
+echo "${ECHO_T}$PROG_XSERVER_STRING" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+  test -n "$PROG_XSERVER_STRING" && break
+done
+
+		 else
+			 PROG_XSERVER_STRING=$withval
+		 fi
+
+else
+  for ac_prog in Xorg XFree86
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
+if test "${ac_cv_prog_PROG_XSERVER_STRING+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$PROG_XSERVER_STRING"; then
+  ac_cv_prog_PROG_XSERVER_STRING="$PROG_XSERVER_STRING" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for ac_exec_ext in '' $ac_executable_extensions; do
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+    ac_cv_prog_PROG_XSERVER_STRING="$ac_prog"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+PROG_XSERVER_STRING=$ac_cv_prog_PROG_XSERVER_STRING
+if test -n "$PROG_XSERVER_STRING"; then
+  { echo "$as_me:$LINENO: result: $PROG_XSERVER_STRING" >&5
+echo "${ECHO_T}$PROG_XSERVER_STRING" >&6; }
+else
+  { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+fi
+
+
+  test -n "$PROG_XSERVER_STRING" && break
+done
+
+
+fi
+
+
+	if test "x$PROG_XSERVER_STRING" = "xXorg" ; then
+		PROG_XSERVER_NAME="X.org"
+		PROG_XSERVER_CONF="xorg.conf"
+		PROG_XSERVER_CONFIG="xorgconfig"
+	elif test "x$PROG_XSERVER_STRING" = "xXFree86" ; then
+		PROG_XSERVER_NAME="XFree86"
+		PROG_XSERVER_CONF="XF86Config-4"
+		PROG_XSERVER_CONFIG="xf86config"
+	else
+		{ { echo "$as_me:$LINENO: error: Unknown X-server." >&5
+echo "$as_me: error: Unknown X-server." >&2;}
+   { (exit 1); exit 1; }; }
+	fi
+
+	{ echo "$as_me:$LINENO: checking for X-server" >&5
+echo $ECHO_N "checking for X-server... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $PROG_XSERVER_NAME" >&5
+echo "${ECHO_T}$PROG_XSERVER_NAME" >&6; }
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-xserver-app-man-dir was given.
+if test "${with_xserver_app_man_dir+set}" = set; then
+  withval=$with_xserver_app_man_dir;
+		 if test -z $withval ; then
+			 PATH_XSERVER_MAN_APP="$mandir/man1"
+		 else
+			 PATH_XSERVER_MAN_APP=$withval
+		 fi
+
+else
+  PATH_XSERVER_MAN_APP="$mandir/man1"
+
+fi
+
+
+
+# Check whether --with-xserver-driver-man-dir was given.
+if test "${with_xserver_driver_man_dir+set}" = set; then
+  withval=$with_xserver_driver_man_dir;
+		 if test -z $withval ; then
+			 PATH_XSERVER_MAN_DRIVER="$mandir/man4"
+		 else
+			 PATH_XSERVER_MAN_DRIVER=$withval
+		 fi
+
+else
+  PATH_XSERVER_MAN_DRIVER="$mandir/man4"
+
+fi
+
+
+
+# Check whether --with-xserver-file-man-dir was given.
+if test "${with_xserver_file_man_dir+set}" = set; then
+  withval=$with_xserver_file_man_dir;
+		 if test -z $withval ; then
+			 PATH_XSERVER_MAN_FILE="$mandir/man5"
+		 else
+			 PATH_XSERVER_MAN_FILE=$withval
+		 fi
+
+else
+  PATH_XSERVER_MAN_FILE="$mandir/man5"
+
+fi
+
+
+	{ echo "$as_me:$LINENO: checking for X-server application-manpages dir" >&5
+echo $ECHO_N "checking for X-server application-manpages dir... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $PATH_XSERVER_MAN_APP" >&5
+echo "${ECHO_T}$PATH_XSERVER_MAN_APP" >&6; }
+	{ echo "$as_me:$LINENO: checking for X-server driver-manpages dir" >&5
+echo $ECHO_N "checking for X-server driver-manpages dir... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $PATH_XSERVER_MAN_DRIVER" >&5
+echo "${ECHO_T}$PATH_XSERVER_MAN_DRIVER" >&6; }
+	{ echo "$as_me:$LINENO: checking for X-server file-manpages dir" >&5
+echo $ECHO_N "checking for X-server file-manpages dir... $ECHO_C" >&6; }
+	{ echo "$as_me:$LINENO: result: $PATH_XSERVER_MAN_FILE" >&5
+echo "${ECHO_T}$PATH_XSERVER_MAN_FILE" >&6; }
+
+
+
+
+
+
+ac_config_files="$ac_config_files Makefile fglrx_man_entities.dtd fglrx_html_stylesheet.xsl fglrx_man_stylesheet.xsl"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+    eval ac_val=\$$ac_var
+    case $ac_val in #(
+    *${as_nl}*)
+      case $ac_var in #(
+      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
+      esac
+      case $ac_var in #(
+      _ | IFS | as_nl) ;; #(
+      *) $as_unset $ac_var ;;
+      esac ;;
+    esac
+  done
+
+  (set) 2>&1 |
+    case $as_nl`(ac_space=' '; set) 2>&1` in #(
+    *${as_nl}ac_space=\ *)
+      # `set' does not quote correctly, so add quotes (double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \).
+      sed -n \
+	"s/'/'\\\\''/g;
+	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+      ;; #(
+    *)
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+      ;;
+    esac |
+    sort
+) |
+  sed '
+     /^ac_cv_env_/b end
+     t clear
+     :clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+     :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+  if test -w "$cache_file"; then
+    test "x$cache_file" != "x/dev/null" &&
+      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
+echo "$as_me: updating cache $cache_file" >&6;}
+    cat confcache >$cache_file
+  else
+    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
+echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+  fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+# Transform confdefs.h into DEFS.
+# Protect against shell expansion while executing Makefile rules.
+# Protect against Makefile macro expansion.
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then branch to the quote section.  Otherwise,
+# look for a macro that doesn't take arguments.
+ac_script='
+t clear
+:clear
+s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
+t quote
+s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
+t quote
+b any
+:quote
+s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
+s/\[/\\&/g
+s/\]/\\&/g
+s/\$/$$/g
+H
+:any
+${
+	g
+	s/^\n//
+	s/\n/ /g
+	p
+}
+'
+DEFS=`sed -n "$ac_script" confdefs.h`
+
+
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+  # 1. Remove the extension, and $U if already installed.
+  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+  ac_i=`echo "$ac_i" | sed "$ac_script"`
+  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
+  #    will be set to the directory where LIBOBJS objects are built.
+  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+if test -z "${ENABLE_BUILD_CHECKS_TRUE}" && test -z "${ENABLE_BUILD_CHECKS_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BUILD_CHECKS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"ENABLE_BUILD_CHECKS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+: ${CONFIG_STATUS=./config.status}
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+## --------------------- ##
+## M4sh Initialization.  ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in
+  *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  echo "#! /bin/sh" >conf$$.sh
+  echo  "exit 0"   >>conf$$.sh
+  chmod +x conf$$.sh
+  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
+    PATH_SEPARATOR=';'
+  else
+    PATH_SEPARATOR=:
+  fi
+  rm -f conf$$.sh
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+as_nl='
+'
+IFS=" ""	$as_nl"
+
+# Find who we are.  Look in the path if we contain no directory separator.
+case $0 in
+  *[\\/]* ) as_myself=$0 ;;
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+     ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+  as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+  { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+for as_var in \
+  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
+  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
+  LC_TELEPHONE LC_TIME
+do
+  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
+    eval $as_var=C; export $as_var
+  else
+    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+	 X"$0" : 'X\(//\)$' \| \
+	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\/\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+  # uniformly replaced by the line number.  The first 'sed' inserts a
+  # line-number line after each line using $LINENO; the second 'sed'
+  # does the real work.  The second script uses 'N' to pair each
+  # line-number line with the line containing $LINENO, and appends
+  # trailing '-' during substitution so that $LINENO is not a special
+  # case at line end.
+  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+  # scripts with optimization help from Paolo Bonzini.  Blame Lee
+  # E. McMahon (1931-1989) for sed's syntax.  :-)
+  sed -n '
+    p
+    /[$]LINENO/=
+  ' <$as_myself |
+    sed '
+      s/[$]LINENO.*/&-/
+      t lineno
+      b
+      :lineno
+      N
+      :loop
+      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+      t loop
+      s/-\n.*//
+    ' >$as_me.lineno &&
+  chmod +x "$as_me.lineno" ||
+    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+   { (exit 1); exit 1; }; }
+
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensitive to this).
+  . "./$as_me.lineno"
+  # Exit status is that of the last command.
+  exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+  as_dirname=dirname
+else
+  as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+  case `echo 'x\c'` in
+  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
+  *)   ECHO_C='\c';;
+  esac;;
+*)
+  ECHO_N='-n';;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+  rm -f conf$$.dir/conf$$.file
+else
+  rm -f conf$$.dir
+  mkdir conf$$.dir
+fi
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s='ln -s'
+  # ... but there are two gotchas:
+  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+  # In both cases, we have to default to `cp -p'.
+  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+    as_ln_s='cp -p'
+elif ln conf$$.file conf$$ 2>/dev/null; then
+  as_ln_s=ln
+else
+  as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+  as_test_x='test -x'
+else
+  if ls -dL / >/dev/null 2>&1; then
+    as_ls_L_option=L
+  else
+    as_ls_L_option=
+  fi
+  as_test_x='
+    eval sh -c '\''
+      if test -d "$1"; then
+        test -d "$1/.";
+      else
+	case $1 in
+        -*)set "./$1";;
+	esac;
+	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+	???[sx]*):;;*)false;;esac;fi
+    '\'' sh
+  '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+
+# Save the log message, to keep $[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by fglrx-driver $as_me 8.32.5, which was
+generated by GNU Autoconf 2.61.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTIONS] [FILE]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number and configuration settings, then exit
+  -q, --quiet      do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+  --file=FILE[:TEMPLATE]
+		   instantiate the configuration file FILE
+
+Configuration files:
+$config_files
+
+Configuration commands:
+$config_commands
+
+Report bugs to <bug-autoconf@gnu.org>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+fglrx-driver config.status 8.32.5
+configured by $0, generated by GNU Autoconf 2.61,
+  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2006 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# If no file are specified by the user, then we need to provide default
+# value.  By we need to know if files were specified by the user.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=*)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  *)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+    echo "$ac_cs_version"; exit ;;
+  --debug | --debu | --deb | --de | --d | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    $ac_shift
+    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+    ac_need_defaults=false;;
+  --he | --h |  --help | --hel | -h )
+    echo "$ac_cs_usage"; exit ;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2
+   { (exit 1); exit 1; }; } ;;
+
+  *) ac_config_targets="$ac_config_targets $1"
+     ac_need_defaults=false ;;
+
+  esac
+  shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6>/dev/null
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+if \$ac_cs_recheck; then
+  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
+  CONFIG_SHELL=$SHELL
+  export CONFIG_SHELL
+  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+  echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+  case $ac_config_target in
+    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+    "fglrx_man_entities.dtd") CONFIG_FILES="$CONFIG_FILES fglrx_man_entities.dtd" ;;
+    "fglrx_html_stylesheet.xsl") CONFIG_FILES="$CONFIG_FILES fglrx_html_stylesheet.xsl" ;;
+    "fglrx_man_stylesheet.xsl") CONFIG_FILES="$CONFIG_FILES fglrx_man_stylesheet.xsl" ;;
+
+  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+  tmp=
+  trap 'exit_status=$?
+  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+' 0
+  trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=./conf$$-$RANDOM
+  (umask 077 && mkdir "$tmp")
+} ||
+{
+   echo "$me: cannot create a temporary directory in ." >&2
+   { (exit 1); exit 1; }
+}
+
+#
+# Set up the sed scripts for CONFIG_FILES section.
+#
+
+# No need to generate the scripts if there are no CONFIG_FILES.
+# This happens for instance when ./config.status config.h
+if test -n "$CONFIG_FILES"; then
+
+_ACEOF
+
+
+
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+  cat >conf$$subs.sed <<_ACEOF
+SHELL!$SHELL$ac_delim
+PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
+PACKAGE_NAME!$PACKAGE_NAME$ac_delim
+PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
+PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
+PACKAGE_STRING!$PACKAGE_STRING$ac_delim
+PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
+exec_prefix!$exec_prefix$ac_delim
+prefix!$prefix$ac_delim
+program_transform_name!$program_transform_name$ac_delim
+bindir!$bindir$ac_delim
+sbindir!$sbindir$ac_delim
+libexecdir!$libexecdir$ac_delim
+datarootdir!$datarootdir$ac_delim
+datadir!$datadir$ac_delim
+sysconfdir!$sysconfdir$ac_delim
+sharedstatedir!$sharedstatedir$ac_delim
+localstatedir!$localstatedir$ac_delim
+includedir!$includedir$ac_delim
+oldincludedir!$oldincludedir$ac_delim
+docdir!$docdir$ac_delim
+infodir!$infodir$ac_delim
+htmldir!$htmldir$ac_delim
+dvidir!$dvidir$ac_delim
+pdfdir!$pdfdir$ac_delim
+psdir!$psdir$ac_delim
+libdir!$libdir$ac_delim
+localedir!$localedir$ac_delim
+mandir!$mandir$ac_delim
+DEFS!$DEFS$ac_delim
+ECHO_C!$ECHO_C$ac_delim
+ECHO_N!$ECHO_N$ac_delim
+ECHO_T!$ECHO_T$ac_delim
+LIBS!$LIBS$ac_delim
+build_alias!$build_alias$ac_delim
+host_alias!$host_alias$ac_delim
+target_alias!$target_alias$ac_delim
+INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
+INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
+INSTALL_DATA!$INSTALL_DATA$ac_delim
+am__isrc!$am__isrc$ac_delim
+CYGPATH_W!$CYGPATH_W$ac_delim
+PACKAGE!$PACKAGE$ac_delim
+VERSION!$VERSION$ac_delim
+ACLOCAL!$ACLOCAL$ac_delim
+AUTOCONF!$AUTOCONF$ac_delim
+AUTOMAKE!$AUTOMAKE$ac_delim
+AUTOHEADER!$AUTOHEADER$ac_delim
+MAKEINFO!$MAKEINFO$ac_delim
+install_sh!$install_sh$ac_delim
+STRIP!$STRIP$ac_delim
+INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
+mkdir_p!$mkdir_p$ac_delim
+AWK!$AWK$ac_delim
+SET_MAKE!$SET_MAKE$ac_delim
+am__leading_dot!$am__leading_dot$ac_delim
+AMTAR!$AMTAR$ac_delim
+am__tar!$am__tar$ac_delim
+am__untar!$am__untar$ac_delim
+CC!$CC$ac_delim
+CFLAGS!$CFLAGS$ac_delim
+LDFLAGS!$LDFLAGS$ac_delim
+CPPFLAGS!$CPPFLAGS$ac_delim
+ac_ct_CC!$ac_ct_CC$ac_delim
+EXEEXT!$EXEEXT$ac_delim
+OBJEXT!$OBJEXT$ac_delim
+DEPDIR!$DEPDIR$ac_delim
+am__include!$am__include$ac_delim
+am__quote!$am__quote$ac_delim
+AMDEP_TRUE!$AMDEP_TRUE$ac_delim
+AMDEP_FALSE!$AMDEP_FALSE$ac_delim
+AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
+CCDEPMODE!$CCDEPMODE$ac_delim
+am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
+am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
+CPP!$CPP$ac_delim
+GREP!$GREP$ac_delim
+EGREP!$EGREP$ac_delim
+ENABLE_BUILD_CHECKS_TRUE!$ENABLE_BUILD_CHECKS_TRUE$ac_delim
+ENABLE_BUILD_CHECKS_FALSE!$ENABLE_BUILD_CHECKS_FALSE$ac_delim
+DRIVER_PACKAGE!$DRIVER_PACKAGE$ac_delim
+ATI_DRIVER_NAME!$ATI_DRIVER_NAME$ac_delim
+ATI_DRIVER_VERSION!$ATI_DRIVER_VERSION$ac_delim
+ATI_DRIVER_PACKAGE!$ATI_DRIVER_PACKAGE$ac_delim
+LICENSE_FILE!$LICENSE_FILE$ac_delim
+PACKAGE_LICENSE_FILE!$PACKAGE_LICENSE_FILE$ac_delim
+XSLTPROC!$XSLTPROC$ac_delim
+XSLTPROC_FLAGS!$XSLTPROC_FLAGS$ac_delim
+PKG_CONFIG!$PKG_CONFIG$ac_delim
+XMLLINT!$XMLLINT$ac_delim
+XMLLINT_FLAGS!$XMLLINT_FLAGS$ac_delim
+MAN!$MAN$ac_delim
+XMLCATALOG!$XMLCATALOG$ac_delim
+XML_CATALOG_FILE!$XML_CATALOG_FILE$ac_delim
+PATH_DOCBOOK_XSL!$PATH_DOCBOOK_XSL$ac_delim
+PROG_XSERVER_STRING!$PROG_XSERVER_STRING$ac_delim
+PROG_XSERVER_NAME!$PROG_XSERVER_NAME$ac_delim
+_ACEOF
+
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
+    break
+  elif $ac_last_try; then
+    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+   { (exit 1); exit 1; }; }
+  else
+    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+  fi
+done
+
+ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
+if test -n "$ac_eof"; then
+  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
+  ac_eof=`expr $ac_eof + 1`
+fi
+
+cat >>$CONFIG_STATUS <<_ACEOF
+cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+_ACEOF
+sed '
+s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
+s/^/s,@/; s/!/@,|#_!!_#|/
+:n
+t n
+s/'"$ac_delim"'$/,g/; t
+s/$/\\/; p
+N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
+' >>$CONFIG_STATUS <conf$$subs.sed
+rm -f conf$$subs.sed
+cat >>$CONFIG_STATUS <<_ACEOF
+CEOF$ac_eof
+_ACEOF
+
+
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+  cat >conf$$subs.sed <<_ACEOF
+PROG_XSERVER_CONF!$PROG_XSERVER_CONF$ac_delim
+PROG_XSERVER_CONFIG!$PROG_XSERVER_CONFIG$ac_delim
+PATH_XSERVER_MAN_APP!$PATH_XSERVER_MAN_APP$ac_delim
+PATH_XSERVER_MAN_DRIVER!$PATH_XSERVER_MAN_DRIVER$ac_delim
+PATH_XSERVER_MAN_FILE!$PATH_XSERVER_MAN_FILE$ac_delim
+LIBOBJS!$LIBOBJS$ac_delim
+LTLIBOBJS!$LTLIBOBJS$ac_delim
+_ACEOF
+
+  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
+    break
+  elif $ac_last_try; then
+    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+   { (exit 1); exit 1; }; }
+  else
+    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+  fi
+done
+
+ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
+if test -n "$ac_eof"; then
+  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
+  ac_eof=`expr $ac_eof + 1`
+fi
+
+cat >>$CONFIG_STATUS <<_ACEOF
+cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
+_ACEOF
+sed '
+s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
+s/^/s,@/; s/!/@,|#_!!_#|/
+:n
+t n
+s/'"$ac_delim"'$/,g/; t
+s/$/\\/; p
+N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
+' >>$CONFIG_STATUS <conf$$subs.sed
+rm -f conf$$subs.sed
+cat >>$CONFIG_STATUS <<_ACEOF
+:end
+s/|#_!!_#|//g
+CEOF$ac_eof
+_ACEOF
+
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
+s/:*\$(srcdir):*/:/
+s/:*\${srcdir}:*/:/
+s/:*@srcdir@:*/:/
+s/^\([^=]*=[	 ]*\):*/\1/
+s/:*$//
+s/^[^=]*=[	 ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+fi # test -n "$CONFIG_FILES"
+
+
+for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
+do
+  case $ac_tag in
+  :[FHLC]) ac_mode=$ac_tag; continue;;
+  esac
+  case $ac_mode$ac_tag in
+  :[FHL]*:*);;
+  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
+echo "$as_me: error: Invalid tag $ac_tag." >&2;}
+   { (exit 1); exit 1; }; };;
+  :[FH]-) ac_tag=-:-;;
+  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+  esac
+  ac_save_IFS=$IFS
+  IFS=:
+  set x $ac_tag
+  IFS=$ac_save_IFS
+  shift
+  ac_file=$1
+  shift
+
+  case $ac_mode in
+  :L) ac_source=$1;;
+  :[FH])
+    ac_file_inputs=
+    for ac_f
+    do
+      case $ac_f in
+      -) ac_f="$tmp/stdin";;
+      *) # Look for the file first in the build tree, then in the source tree
+	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
+	 # because $ac_f cannot contain `:'.
+	 test -f "$ac_f" ||
+	   case $ac_f in
+	   [\\/$]*) false;;
+	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+	   esac ||
+	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
+echo "$as_me: error: cannot find input file: $ac_f" >&2;}
+   { (exit 1); exit 1; }; };;
+      esac
+      ac_file_inputs="$ac_file_inputs $ac_f"
+    done
+
+    # Let's still pretend it is `configure' which instantiates (i.e., don't
+    # use $as_me), people would be surprised to read:
+    #    /* config.h.  Generated by config.status.  */
+    configure_input="Generated from "`IFS=:
+	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
+    if test x"$ac_file" != x-; then
+      configure_input="$ac_file.  $configure_input"
+      { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+    fi
+
+    case $ac_tag in
+    *:-:* | *:-) cat >"$tmp/stdin";;
+    esac
+    ;;
+  esac
+
+  ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$ac_file" : 'X\(//\)[^/]' \| \
+	 X"$ac_file" : 'X\(//\)$' \| \
+	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+  { as_dir="$ac_dir"
+  case $as_dir in #(
+  -*) as_dir=./$as_dir;;
+  esac
+  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+    as_dirs=
+    while :; do
+      case $as_dir in #(
+      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
+      *) as_qdir=$as_dir;;
+      esac
+      as_dirs="'$as_qdir' $as_dirs"
+      as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$as_dir" : 'X\(//\)[^/]' \| \
+	 X"$as_dir" : 'X\(//\)$' \| \
+	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+      test -d "$as_dir" && break
+    done
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
+  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+echo "$as_me: error: cannot create directory $as_dir" >&2;}
+   { (exit 1); exit 1; }; }; }
+  ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A ".." for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
+  case $ac_top_builddir_sub in
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+  case $ac_mode in
+  :F)
+  #
+  # CONFIG_FILE
+  #
+
+  case $INSTALL in
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+  esac
+  ac_MKDIR_P=$MKDIR_P
+  case $MKDIR_P in
+  [\\/$]* | ?:[\\/]* ) ;;
+  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+  esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+
+case `sed -n '/datarootdir/ {
+  p
+  q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p
+' $ac_file_inputs` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF
+  ac_datarootdir_hack='
+  s&@datadir@&$datadir&g
+  s&@docdir@&$docdir&g
+  s&@infodir@&$infodir&g
+  s&@localedir@&$localedir&g
+  s&@mandir@&$mandir&g
+    s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF
+  sed "$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s&@configure_input@&$configure_input&;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined.  Please make sure it is defined." >&5
+echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined.  Please make sure it is defined." >&2;}
+
+  rm -f "$tmp/stdin"
+  case $ac_file in
+  -) cat "$tmp/out"; rm -f "$tmp/out";;
+  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
+  esac
+ ;;
+
+
+  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
+echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+  esac
+
+
+  case $ac_file$ac_mode in
+    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
+  # Strip MF so we end up with the name of the file.
+  mf=`echo "$mf" | sed -e 's/:.*$//'`
+  # Check whether this is an Automake generated Makefile or not.
+  # We used to match only the files named `Makefile.in', but
+  # some people rename them; so instead we look at the file content.
+  # Grep'ing the first line is not enough: some people post-process
+  # each Makefile.in and add a new line on top of each file to say so.
+  # Grep'ing the whole file is not good either: AIX grep has a line
+  # limit of 2048, but all sed's we know have understand at least 4000.
+  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
+    dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$mf" : 'X\(//\)[^/]' \| \
+	 X"$mf" : 'X\(//\)$' \| \
+	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+echo X"$mf" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+  else
+    continue
+  fi
+  # Extract the definition of DEPDIR, am__include, and am__quote
+  # from the Makefile without running `make'.
+  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+  test -z "$DEPDIR" && continue
+  am__include=`sed -n 's/^am__include = //p' < "$mf"`
+  test -z "am__include" && continue
+  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+  # When using ansi2knr, U may be empty or an underscore; expand it
+  U=`sed -n 's/^U = //p' < "$mf"`
+  # Find all dependency output files, they are included files with
+  # $(DEPDIR) in their names.  We invoke sed twice because it is the
+  # simplest approach to changing $(DEPDIR) to its actual value in the
+  # expansion.
+  for file in `sed -n "
+    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+    # Make sure the directory exists.
+    test -f "$dirpart/$file" && continue
+    fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$file" : 'X\(//\)[^/]' \| \
+	 X"$file" : 'X\(//\)$' \| \
+	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+echo X"$file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+    { as_dir=$dirpart/$fdir
+  case $as_dir in #(
+  -*) as_dir=./$as_dir;;
+  esac
+  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+    as_dirs=
+    while :; do
+      case $as_dir in #(
+      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
+      *) as_qdir=$as_dir;;
+      esac
+      as_dirs="'$as_qdir' $as_dirs"
+      as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	 X"$as_dir" : 'X\(//\)[^/]' \| \
+	 X"$as_dir" : 'X\(//\)$' \| \
+	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)[^/].*/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\/\)$/{
+	    s//\1/
+	    q
+	  }
+	  /^X\(\/\).*/{
+	    s//\1/
+	    q
+	  }
+	  s/.*/./; q'`
+      test -d "$as_dir" && break
+    done
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
+  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+echo "$as_me: error: cannot create directory $as_dir" >&2;}
+   { (exit 1); exit 1; }; }; }
+    # echo "creating $dirpart/$file"
+    echo '# dummy' > "$dirpart/$file"
+  done
+done
+ ;;
+
+  esac
+done # for ac_tag
+
+
+{ (exit 0); exit 0; }
+_ACEOF
+chmod +x $CONFIG_STATUS
+ac_clean_files=$ac_clean_files_save
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded.  So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status.  When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+  ac_cs_success=:
+  ac_config_status_args=
+  test "$silent" = yes &&
+    ac_config_status_args="$ac_config_status_args --quiet"
+  exec 5>/dev/null
+  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+  exec 5>>config.log
+  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+  # would make configure fail if this is the last instruction.
+  $ac_cs_success || { (exit 1); exit 1; }
+fi
+
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_man.css
+++ fglrx-driver-8.47.3/debian/man/fglrx_man.css
@@ -0,0 +1,64 @@
+/*
+ * Document  $WgDD: fglrx_man/fglrx_man.css,v 1.3 2006-04-22 18:01:18 dleidert Exp $
+ * Summary   CSS stylesheet for the HTML formatted fglrx manpages.
+ *
+ * Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+ *
+ * This file is free software. The copyright owner gives unlimited
+ * permission to copy, distribute and modify it.
+ */
+
+html {
+	font-size: 100.01%;
+}
+
+h2 {
+	font-size: 1.3em;
+	font-weight: bold;
+	text-transform: uppercase;
+}
+
+a > .option {
+	font-weight: normal;
+	color: blue;
+}
+
+/*
+div.refnamediv p,
+div.cmdsynopsis,
+pre.synopsis,
+div.refsect1 p,
+div.refsect1 div {
+	padding-left: 3em;
+}
+*/
+
+div.important,
+div.note,
+div.tip {
+	padding: 0.1em 0 1.5em 0;
+}
+
+div.segmentedlist {
+	padding: 0.3em 0 1.5em 0;
+}
+
+span.errortext {
+	color: red;
+}
+
+span.refentrytitle,
+.command,
+.envar,
+.option,
+.type {
+	font-weight: bold;
+	color: black;
+}
+
+.replaceable,
+.parameter {
+	font-weight: normal;
+	text-decoration: underline;
+} 
+
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_man.xsl
+++ fglrx-driver-8.47.3/debian/man/fglrx_man.xsl
@@ -0,0 +1,135 @@
+<?xml version='1.0'?>
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx_man.xsl,v 1.31 2007-06-02 12:51:31 dleidert Exp $
+  Summary   XSLT stylesheet to convert XML sources into manpages.
+  
+  Copyright (C) 2005, 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+
+  This file is free software. The copyright owner gives unlimited
+  permission to copy, distribute and modify it.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0"
+                xmlns="http://www.w3.org/TR/xhtml1/transitional"
+                exclude-result-prefixes="#default">
+
+	<xsl:import href="fglrx_man_stylesheet.xsl"/>
+
+<!-- Paramaters -->
+
+	<xsl:param name="make.single.year.ranges" select="1"/>
+	<xsl:param name="make.year.ranges" select="1"/>
+	<xsl:param name="man.base.dir" select="''"/>
+	<xsl:param name="man.charmap.enabled" select="1"/>
+	<xsl:param name="man.charmap.use.subset" select="0"/>
+	<xsl:param name="man.hyphenate.computer.inlines" select="0"/>
+	<xsl:param name="man.hyphenate.filenames" select="0"/>
+	<xsl:param name="man.hyphenate.urls" select="0"/>
+	<xsl:param name="man.segtitle.suppress" select="1"/>
+	<xsl:param name="man.subdirs.enabled" select="0"/>
+	<xsl:param name="refentry.manual.profile.enabled" select="1"/>
+	<xsl:param name="refentry.manual.profile">($info/title)[1]/node()</xsl:param>
+	<xsl:param name="variablelist.term.break.after">
+		<xsl:choose>
+			<xsl:when test="//refentry[@id='fglrx_4x' or @id='fgl_glxgears_1x']">
+				<xsl:value-of select="1"/>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="0"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:param>
+	<xsl:param name="variablelist.term.separator">
+		<xsl:choose>
+			<xsl:when test="//refentry[@id='fglrx_4x' or @id='fgl_glxgears_1x']">
+				<xsl:value-of select="''"/>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="', '"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:param>
+
+<!-- Customization layer -->
+
+	<!-- commands, applications and package should be bold -->
+	<xsl:template match="application|package">
+		<xsl:if test="$man.hyphenate.computer.inlines = 0">
+			<xsl:call-template name="suppress.hyphenation"/>
+		</xsl:if>
+		<xsl:apply-templates mode="bold" select="."/>
+	</xsl:template>
+
+	<!-- varnames in options should be bold (mainly for driver manpage) -->
+	<xsl:template match="varname">
+		<xsl:choose>
+			<xsl:when test="parent::option">
+				<xsl:apply-templates/>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:apply-imports/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:template>
+	
+	<!-- handle tags/sgmltags -->
+	<xsl:template match="tag|sgmltag">
+		<xsl:param name="class">
+			<xsl:choose>
+				<xsl:when test="@class">
+					<xsl:value-of select="@class"/>
+				</xsl:when>
+				<xsl:otherwise>element</xsl:otherwise>
+			</xsl:choose>
+		</xsl:param>
+		<!-- first let's see, if we need an opening symbol/string -->
+		<xsl:choose>
+			<xsl:when test="$class='element' or $class='emptytag' or $class='starttag'">
+				<xsl:text><![CDATA[<]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='endtag'">
+				<xsl:text><![CDATA[</]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='genentity'">
+				<xsl:text><![CDATA[&]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='numcharref'">
+				<xsl:text><![CDATA[&#]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='paramentity'">
+				<xsl:text><![CDATA[%]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='pi' or $class='xmlpi'">
+				<xsl:text><![CDATA[<?]]></xsl:text>
+			</xsl:when>
+		</xsl:choose>
+		<!-- now let's see, if we have a namespace -->
+		<!-- maybe only apply it for tags? test needs to be added in this case -->
+		<xsl:if test="@namespace">
+			<xsl:value-of select="@namespace"/>
+			<xsl:text>:</xsl:text>
+		</xsl:if>
+		<!-- and now close all possible tags -->
+		<xsl:apply-templates/>
+		<xsl:choose>
+			<xsl:when test="$class='element'">
+				<xsl:text><![CDATA[ ... >]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='endtag' or $class='pi' or $class='starttag'">
+				<xsl:text><![CDATA[>]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='emptytag'">
+				<xsl:text><![CDATA[/>]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='genentity' or $class='numcharref' or $class='paramentity'">
+				<xsl:text><![CDATA[;]]></xsl:text>
+			</xsl:when>
+			<xsl:when test="$class='xmlpi'">
+				<xsl:text><![CDATA[?>]]></xsl:text>
+			</xsl:when>
+		</xsl:choose>
+	</xsl:template>
+
+</xsl:stylesheet>
--- fglrx-driver-8.47.3.orig/debian/man/configure.ac
+++ fglrx-driver-8.47.3/debian/man/configure.ac
@@ -0,0 +1,91 @@
+dnl Document  $WgDD: fglrx_man/configure.ac,v 1.25 2007-06-26 11:58:23 dleidert Exp $
+dnl Summary   Configure script for the fglrx_man project.
+dnl
+dnl Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+dnl All rights reserved.
+dnl
+dnl This file is free software. The copyright owner gives unlimited
+dnl permission to copy, distribute and modify it.
+
+dnl Inititlize the package and the source.
+AC_INIT([fglrx-driver],[8.32.5],[http://bugs.debian.org/fglrx-driver])
+AM_INIT_AUTOMAKE([fglrx-driver-man], AC_PACKAGE_VERSION)
+AC_REVISION($Revision: 1.25 $)
+
+AC_C_BIGENDIAN
+
+dnl Initialize any configure options.
+AC_ARG_ENABLE(
+	[build-checks],
+	AC_HELP_STRING(
+		[--enable-build-checks],
+		[enable the checks in the check-target (rewuires more applications) @<:@default=no (yes for distcheck)@:>@]
+	),
+	[],
+	[enable_build_checks=no]
+)
+AM_CONDITIONAL([ENABLE_BUILD_CHECKS], [test "x$enable_build_checks" != "xno"])
+
+dnl Initialize the package and product strings.
+dnl Allow to override the ATI driver version.
+ATI_DRIVER_NAME="ATI Linux driver"
+ATI_DRIVER_VERSION="$VERSION"
+dnl Shall be set to "ATI Linux driver documentation" when used for official
+dnl ATI packages.
+AC_ARG_VAR(
+	[DRIVER_PACKAGE],
+	[The package string you want to have at the top of the manpage instead
+	 of the default string @<:@default="Debian GNU/Linux fglrx-driver package"@:>@.]
+)
+if test "x$DRIVER_PACKAGE" = "x"; then
+	ATI_DRIVER_PACKAGE="Debian GNU/Linux fglrx-driver package"
+else
+	ATI_DRIVER_PACKAGE=$DRIVER_PACKAGE
+	AC_MSG_NOTICE([DRIVER_PACKAGE has been overwritten with: '$DRIVER_PACKAGE'])
+fi
+AC_SUBST([ATI_DRIVER_NAME])
+AC_SUBST([ATI_DRIVER_VERSION])
+AC_SUBST([ATI_DRIVER_PACKAGE])
+
+dnl Initialize paths.
+if test "$prefix" = "NONE" ; then prefix=/usr/local ; fi
+AC_MSG_CHECKING([for prefix.])
+AC_MSG_RESULT([$prefix])
+AC_MSG_CHECKING([for datadir])
+AC_MSG_RESULT([$datadir])
+AC_MSG_CHECKING([for mandir])
+AC_MSG_RESULT([$mandir])
+
+dnl Change the location if necessary, e.g. for Debian.
+AC_ARG_VAR(
+	[LICENSE_FILE],
+	[
+	 Change the place, where the license can be found.
+	 @<:@default="$datadir/doc/fglrx_man/COPYING"@:>@
+	]
+)
+if test -z "$LICENSE_FILE"; then
+	eval eval dt=`echo $datadir`
+	PACKAGE_LICENSE_FILE="$dt/doc/fglrx_man/COPYING"
+else
+	PACKAGE_LICENSE_FILE=$LICENSE_FILE
+	AC_MSG_NOTICE([LICENSE shall be found at... $LICENSE_FILE])
+fi
+AC_SUBST([PACKAGE_LICENSE_FILE])
+
+dnl Initialize packages and program search.
+AC_PROG_INSTALL
+MP_PROG_XSLTPROC
+if test "x$enable_build_checks" != "xno" ; then
+MP_PROG_XMLLINT
+MP_PROG_MAN
+fi
+MP_PATH_DOCBOOK_XSL
+
+dnl Determine X stuff.
+MP_PROG_XSERVER
+MP_PATH_XSERVER_MAN
+
+dnl Parse and output files.
+AC_CONFIG_FILES([Makefile fglrx_man_entities.dtd fglrx_html_stylesheet.xsl fglrx_man_stylesheet.xsl])
+AC_OUTPUT
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_xgamma.1x.xml
+++ fglrx-driver-8.47.3/debian/man/fglrx_xgamma.1x.xml
@@ -0,0 +1,225 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx_xgamma.1x.xml,v 1.25 2006-11-25 07:59:32 dleidert Exp $
+  Summary   Manpage for the fglrx_xgamma application.
+
+  Copyright (C) 2005-2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+  Copyright (C) 2005-2006 Flavio Stanchina <flavio@stanchina.net>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "fglrx_xgamma">
+	<!ENTITY dhucname  "FGLRX_XGAMMA">
+	<!ENTITY dhsection "1x">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+
+]>
+
+<refentry id="fglrx_xgamma_1x" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2006-11-25 07:59:32 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+			<author>
+				<firstname>Flavio</firstname>
+				<surname>Stanchina</surname>
+				<affiliation>
+					<address>
+						<email>flavio@stanchina.net</email>
+					</address>
+				</affiliation>
+				<contrib>Author and Debian package maintainer.</contrib>
+			</author>
+		</authorgroup>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>alter a monitor's gamma correction</refpurpose>
+	</refnamediv>
+	<refsynopsisdiv id="synopsis">
+		<cmdsynopsis>
+			<command>&dhname;</command>
+			<arg choice="opt">
+				<group choice="req">
+					<arg choice="plain"><option>-d</option></arg>
+					<arg choice="plain"><option>-display</option></arg>
+				</group>
+				<replaceable class="option">display</replaceable>
+			</arg>
+			<group choice="opt">
+					<arg choice="plain"><option>-q</option></arg>
+					<arg choice="plain"><option>-quiet</option></arg>
+			</group>
+			<arg choice="opt">
+				<group choice="req">
+					<arg choice="plain"><option>-c</option></arg>
+					<arg choice="plain"><option>-controller</option></arg>
+				</group>
+				<group choice="req">
+					<arg choice="plain"><replaceable class="option">0</replaceable></arg>
+					<arg choice="plain"><replaceable class="option">1</replaceable></arg>
+				</group>
+			</arg>
+			<arg choice="opt">
+				<group choice="req">
+					<arg choice="plain"><option>-s</option></arg>
+					<arg choice="plain"><option>-screen</option></arg>
+				</group>
+				<replaceable class="option">screen</replaceable>
+			</arg>
+			<group choice="opt">
+				<group choice="req">
+					<arg choice="plain"><option>-rgamma <replaceable class="option">value</replaceable></option></arg>
+					<arg choice="plain"><option>-ggamma <replaceable class="option">value</replaceable></option></arg>
+					<arg choice="plain"><option>-bgamma <replaceable class="option">value</replaceable></option></arg>
+				</group>
+				<arg choice="req"><option>-gamma <replaceable class="option">value</replaceable></option></arg>
+			</group>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para><command>&dhname;</command> is a program similar to <citerefentry>
+				<refentrytitle>xgamma</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>. It allows to query and alter the gamma correction of a monitor.
+		</para>
+	</refsect1>
+	<refsect1 id="options">
+		<title>OPTIONS</title>
+		<para>Without an option or gamma value, <command>&dhname;</command> returns the
+			current setting. It further supports the following options:
+		</para>
+		<variablelist>
+			<varlistentry>
+				<term><option>-d</option></term>
+				<term><option>-display</option> <replaceable>display</replaceable></term>
+				<listitem>
+					<para>Specify the display. Use the <envar>DISPLAY</envar> environment
+						variable to get the default host, display number and screen.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-q</option></term>
+				<term><option>-quiet</option></term>
+				<listitem>
+					<para>Silence the normal output.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-c</option></term>
+				<term><option>-controller</option> <replaceable>0|1</replaceable></term>
+				<listitem>
+					<para>Select the controller.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-s</option></term>
+				<term><option>-screen</option> <replaceable>screen</replaceable></term>
+				<listitem>
+					<para>Select the screen you wish to change.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-gamma</option> <replaceable>value</replaceable></term>
+				<listitem>
+					<para>The gamma correction can either be defined as a single value with
+						this option or separately for the red, green and blue components
+						with the <option>-rgamma</option>, <option>-ggamma</option>
+						and <option>-bgamma</option> options.
+						The <replaceable>value</replaceable> argument specifies the gamma
+						correction as a single value.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-rgamma</option> <replaceable>value</replaceable></term>
+				<listitem>
+					<para>Specify the red component of the gamma correction.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-ggamma</option> <replaceable>value</replaceable></term>
+				<listitem>
+					<para>Specify the green component of the gamma correction.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-bgamma</option> <replaceable>value</replaceable></term>
+				<listitem>
+					<para>Specify the blue component of the gamma correction.</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="environment">
+		<title>ENVIRONMENT</title>
+		<variablelist>
+			<varlistentry>
+				<term><envar>DISPLAY</envar></term>
+				<listitem>
+					<para>To get the default host, display number and screen.</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<para><citerefentry>
+				<refentrytitle>xgamma</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>fireglcontrol</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/man/install-sh
+++ fglrx-driver-8.47.3/debian/man/install-sh
@@ -0,0 +1,507 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2006-10-14.15
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" ""	$nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+if test -z "$doit"; then
+  doit_exec=exec
+else
+  doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+posix_glob=
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chmodcmd=$chmodprog
+chowncmd=
+chgrpcmd=
+stripcmd=
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=
+dst=
+dir_arg=
+dstarg=
+no_target_directory=
+
+usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+   or: $0 [OPTION]... SRCFILES... DIRECTORY
+   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+   or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+-c         (ignored)
+-d         create directories instead of installing files.
+-g GROUP   $chgrpprog installed files to GROUP.
+-m MODE    $chmodprog installed files to MODE.
+-o USER    $chownprog installed files to USER.
+-s         $stripprog installed files.
+-t DIRECTORY  install into DIRECTORY.
+-T         report an error if DSTFILE is a directory.
+--help     display this help and exit.
+--version  display version info and exit.
+
+Environment variables override the default commands:
+  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+  case $1 in
+    -c) shift
+        continue;;
+
+    -d) dir_arg=true
+        shift
+        continue;;
+
+    -g) chgrpcmd="$chgrpprog $2"
+        shift
+        shift
+        continue;;
+
+    --help) echo "$usage"; exit $?;;
+
+    -m) mode=$2
+        shift
+        shift
+	case $mode in
+	  *' '* | *'	'* | *'
+'*	  | *'*'* | *'?'* | *'['*)
+	    echo "$0: invalid mode: $mode" >&2
+	    exit 1;;
+	esac
+        continue;;
+
+    -o) chowncmd="$chownprog $2"
+        shift
+        shift
+        continue;;
+
+    -s) stripcmd=$stripprog
+        shift
+        continue;;
+
+    -t) dstarg=$2
+	shift
+	shift
+	continue;;
+
+    -T) no_target_directory=true
+	shift
+	continue;;
+
+    --version) echo "$0 $scriptversion"; exit $?;;
+
+    --)	shift
+	break;;
+
+    -*)	echo "$0: invalid option: $1" >&2
+	exit 1;;
+
+    *)  break;;
+  esac
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
+  # When -d is used, all remaining arguments are directories to create.
+  # When -t is used, the destination is already specified.
+  # Otherwise, the last argument is the destination.  Remove it from $@.
+  for arg
+  do
+    if test -n "$dstarg"; then
+      # $@ is not empty: it contains at least $arg.
+      set fnord "$@" "$dstarg"
+      shift # fnord
+    fi
+    shift # arg
+    dstarg=$arg
+  done
+fi
+
+if test $# -eq 0; then
+  if test -z "$dir_arg"; then
+    echo "$0: no input file specified." >&2
+    exit 1
+  fi
+  # It's OK to call `install-sh -d' without argument.
+  # This can happen when creating conditional directories.
+  exit 0
+fi
+
+if test -z "$dir_arg"; then
+  trap '(exit $?); exit' 1 2 13 15
+
+  # Set umask so as not to create temps with too-generous modes.
+  # However, 'strip' requires both read and write access to temps.
+  case $mode in
+    # Optimize common cases.
+    *644) cp_umask=133;;
+    *755) cp_umask=22;;
+
+    *[0-7])
+      if test -z "$stripcmd"; then
+	u_plus_rw=
+      else
+	u_plus_rw='% 200'
+      fi
+      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+    *)
+      if test -z "$stripcmd"; then
+	u_plus_rw=
+      else
+	u_plus_rw=,u+rw
+      fi
+      cp_umask=$mode$u_plus_rw;;
+  esac
+fi
+
+for src
+do
+  # Protect names starting with `-'.
+  case $src in
+    -*) src=./$src ;;
+  esac
+
+  if test -n "$dir_arg"; then
+    dst=$src
+    dstdir=$dst
+    test -d "$dstdir"
+    dstdir_status=$?
+  else
+
+    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+    # might cause directories to be created, which would be especially bad
+    # if $src (and thus $dsttmp) contains '*'.
+    if test ! -f "$src" && test ! -d "$src"; then
+      echo "$0: $src does not exist." >&2
+      exit 1
+    fi
+
+    if test -z "$dstarg"; then
+      echo "$0: no destination specified." >&2
+      exit 1
+    fi
+
+    dst=$dstarg
+    # Protect names starting with `-'.
+    case $dst in
+      -*) dst=./$dst ;;
+    esac
+
+    # If destination is a directory, append the input filename; won't work
+    # if double slashes aren't ignored.
+    if test -d "$dst"; then
+      if test -n "$no_target_directory"; then
+	echo "$0: $dstarg: Is a directory" >&2
+	exit 1
+      fi
+      dstdir=$dst
+      dst=$dstdir/`basename "$src"`
+      dstdir_status=0
+    else
+      # Prefer dirname, but fall back on a substitute if dirname fails.
+      dstdir=`
+	(dirname "$dst") 2>/dev/null ||
+	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+	     X"$dst" : 'X\(//\)[^/]' \| \
+	     X"$dst" : 'X\(//\)$' \| \
+	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+	echo X"$dst" |
+	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+		   s//\1/
+		   q
+		 }
+		 /^X\(\/\/\)[^/].*/{
+		   s//\1/
+		   q
+		 }
+		 /^X\(\/\/\)$/{
+		   s//\1/
+		   q
+		 }
+		 /^X\(\/\).*/{
+		   s//\1/
+		   q
+		 }
+		 s/.*/./; q'
+      `
+
+      test -d "$dstdir"
+      dstdir_status=$?
+    fi
+  fi
+
+  obsolete_mkdir_used=false
+
+  if test $dstdir_status != 0; then
+    case $posix_mkdir in
+      '')
+	# Create intermediate dirs using mode 755 as modified by the umask.
+	# This is like FreeBSD 'install' as of 1997-10-28.
+	umask=`umask`
+	case $stripcmd.$umask in
+	  # Optimize common cases.
+	  *[2367][2367]) mkdir_umask=$umask;;
+	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+	  *[0-7])
+	    mkdir_umask=`expr $umask + 22 \
+	      - $umask % 100 % 40 + $umask % 20 \
+	      - $umask % 10 % 4 + $umask % 2
+	    `;;
+	  *) mkdir_umask=$umask,go-w;;
+	esac
+
+	# With -d, create the new directory with the user-specified mode.
+	# Otherwise, rely on $mkdir_umask.
+	if test -n "$dir_arg"; then
+	  mkdir_mode=-m$mode
+	else
+	  mkdir_mode=
+	fi
+
+	posix_mkdir=false
+	case $umask in
+	  *[123567][0-7][0-7])
+	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
+	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+	    ;;
+	  *)
+	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+	    if (umask $mkdir_umask &&
+		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+	    then
+	      if test -z "$dir_arg" || {
+		   # Check for POSIX incompatibilities with -m.
+		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+		   # other-writeable bit of parent directory when it shouldn't.
+		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
+		   case $ls_ld_tmpdir in
+		     d????-?r-*) different_mode=700;;
+		     d????-?--*) different_mode=755;;
+		     *) false;;
+		   esac &&
+		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+		   }
+		 }
+	      then posix_mkdir=:
+	      fi
+	      rmdir "$tmpdir/d" "$tmpdir"
+	    else
+	      # Remove any dirs left behind by ancient mkdir implementations.
+	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+	    fi
+	    trap '' 0;;
+	esac;;
+    esac
+
+    if
+      $posix_mkdir && (
+	umask $mkdir_umask &&
+	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+      )
+    then :
+    else
+
+      # The umask is ridiculous, or mkdir does not conform to POSIX,
+      # or it failed possibly due to a race condition.  Create the
+      # directory the slow way, step by step, checking for races as we go.
+
+      case $dstdir in
+	/*) prefix=/ ;;
+	-*) prefix=./ ;;
+	*)  prefix= ;;
+      esac
+
+      case $posix_glob in
+        '')
+	  if (set -f) 2>/dev/null; then
+	    posix_glob=true
+	  else
+	    posix_glob=false
+	  fi ;;
+      esac
+
+      oIFS=$IFS
+      IFS=/
+      $posix_glob && set -f
+      set fnord $dstdir
+      shift
+      $posix_glob && set +f
+      IFS=$oIFS
+
+      prefixes=
+
+      for d
+      do
+	test -z "$d" && continue
+
+	prefix=$prefix$d
+	if test -d "$prefix"; then
+	  prefixes=
+	else
+	  if $posix_mkdir; then
+	    (umask=$mkdir_umask &&
+	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+	    # Don't fail if two instances are running concurrently.
+	    test -d "$prefix" || exit 1
+	  else
+	    case $prefix in
+	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+	      *) qprefix=$prefix;;
+	    esac
+	    prefixes="$prefixes '$qprefix'"
+	  fi
+	fi
+	prefix=$prefix/
+      done
+
+      if test -n "$prefixes"; then
+	# Don't fail if two instances are running concurrently.
+	(umask $mkdir_umask &&
+	 eval "\$doit_exec \$mkdirprog $prefixes") ||
+	  test -d "$dstdir" || exit 1
+	obsolete_mkdir_used=true
+      fi
+    fi
+  fi
+
+  if test -n "$dir_arg"; then
+    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+  else
+
+    # Make a couple of temp file names in the proper directory.
+    dsttmp=$dstdir/_inst.$$_
+    rmtmp=$dstdir/_rm.$$_
+
+    # Trap to clean up those temp files at exit.
+    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+    # Copy the file name to the temp name.
+    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+    # and set any options; do chmod last to preserve setuid bits.
+    #
+    # If any of these fail, we abort the whole thing.  If we want to
+    # ignore errors from any of these, just make sure not to ignore
+    # errors from the above "$doit $cpprog $src $dsttmp" command.
+    #
+    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
+      && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
+      && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
+      && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+    # Now rename the file to the real destination.
+    { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
+      || {
+	   # The rename failed, perhaps because mv can't rename something else
+	   # to itself, or perhaps because mv is so ancient that it does not
+	   # support -f.
+
+	   # Now remove or move aside any old file at destination location.
+	   # We try this two ways since rm can't unlink itself on some
+	   # systems and the destination file might be busy for other
+	   # reasons.  In this case, the final cleanup might fail but the new
+	   # file should still install successfully.
+	   {
+	     if test -f "$dst"; then
+	       $doit $rmcmd -f "$dst" 2>/dev/null \
+	       || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
+		     && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
+	       || {
+		 echo "$0: cannot unlink or rename $dst" >&2
+		 (exit 1); exit 1
+	       }
+	     else
+	       :
+	     fi
+	   } &&
+
+	   # Now rename the file to the real destination.
+	   $doit $mvcmd "$dsttmp" "$dst"
+	 }
+    } || exit 1
+
+    trap '' 0
+  fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
--- fglrx-driver-8.47.3.orig/debian/man/autogen.sh
+++ fglrx-driver-8.47.3/debian/man/autogen.sh
@@ -0,0 +1,100 @@
+#!/bin/sh
+#
+# Document  $WgDD: fglrx_man/autogen.sh,v 1.9 2007-06-02 12:51:31 dleidert Exp $
+# Summary   Auto-generate the fglrx_man package source.
+#
+# Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+#
+# This file is free software. The copyright owner gives unlimited
+# permission to copy, distribute and modify it.
+
+set -e
+
+## find aclocal, autoconf, autoheader and automake
+ACLOCAL=${ACLOCAL:-aclocal}
+if [ -z `which $ACLOCAL` ] ; then echo "Error. ACLOCAL=$ACLOCAL not found." >&2 && exit 1 ; fi 
+AUTOCONF=${AUTOCONF:-autoconf}
+if [ -z `which $AUTOCONF` ] ; then echo "Error. AUTOCONF=$AUTOCONF not found." >&2 && exit 1 ; fi 
+AUTOMAKE=${AUTOMAKE:-automake}
+if [ -z `which $AUTOMAKE` ] ; then echo "Error. AUTOMAKE=$AUTOMAKE not found." >&2 && exit 1 ; fi 
+
+## find where automake is installed and get the version
+AUTOMAKE_PATH=${AUTOMAKE_PATH:-`which $AUTOMAKE | sed 's|\/bin\/automake.*||'`}
+AUTOMAKE_VERSION=`$AUTOMAKE --version | grep automake | awk '{print $4}' | awk -F. '{print $1"."$2}'`
+
+## automake files we need to have inside our source
+if [[ $AUTOMAKE_VERSION = "1.7" ]] ; then
+	AUTOMAKE_FILES="missing mkinstalldirs install-sh"
+else
+	AUTOMAKE_FILES="missing install-sh"
+fi
+
+## our help output, shown using the -h|--help option
+autogen_help() {
+	echo "Usage: ./autogen.sh [ -h | --help ] [ -c | --copy ]"
+	echo
+	echo "-c, --copy     Copy files instead to link them."
+	echo "-h, --help     Print this message."
+	echo
+	echo "Produces all files necessary to build the fglrx_man project files."
+	echo "The files are linked by default, if you run it without an option."
+	echo 
+}
+
+## check if $AUTOMAKE_FILES were copied/linked to our source
+autogen_if_missing() {
+	case "$1" in
+		copy)
+			command="cp"
+		;;
+		link)
+			command="ln -s"
+		;;
+		*)
+			echo "Error. autogen_if_missing() was called with unknown parameter $1." >&2
+		;;
+	esac
+	
+	for file in $AUTOMAKE_FILES ; do
+		if [ ! -e "$file" ] ; then
+			$command -f $AUTOMAKE_PATH/share/automake-$AUTOMAKE_VERSION/$file .
+		fi
+	done
+}
+
+## link/copy the necessary files to our source to prepare for a build
+autogen() {
+	case "$1" in
+		copy)
+			copyoption="-c"
+		;;
+		link)
+		;;
+		*)
+			echo "Error. autogen() was called with unknown parameter $1." >&2
+		;;
+	esac
+	$ACLOCAL
+	$AUTOMAKE --gnu -a $copyoption
+	$AUTOCONF
+}
+
+## the main function
+case "$1" in
+	-h | --help)
+		autogen_help
+		exit 0
+	;;
+	-c | --copy)
+		autogen copy
+	;;
+	*)
+		autogen link
+	;;
+esac
+
+## ready to rumble
+echo "Run ./configure with the appropriate options, then make and enjoy."
+
+exit 0
+
--- fglrx-driver-8.47.3.orig/debian/man/missing
+++ fglrx-driver-8.47.3/debian/man/missing
@@ -0,0 +1,367 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2006-05-10.23
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
+#   Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+  echo 1>&2 "Try \`$0 --help' for more information"
+  exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+  configure_ac=configure.ac
+else
+  configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+  # Try to run requested program, and just exit if it succeeds.
+  run=
+  shift
+  "$@" && exit 0
+  # Exit code 63 means version mismatch.  This often happens
+  # when the user try to use an ancient version of a tool on
+  # a file that requires a minimum version.  In this case we
+  # we should proceed has if the program had been absent, or
+  # if --run hadn't been passed.
+  if test $? = 63; then
+    run=:
+    msg="probably too old"
+  fi
+  ;;
+
+  -h|--h|--he|--hel|--help)
+    echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+  -h, --help      display this help and exit
+  -v, --version   output version information and exit
+  --run           try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+  aclocal      touch file \`aclocal.m4'
+  autoconf     touch file \`configure'
+  autoheader   touch file \`config.h.in'
+  autom4te     touch the output file, or create a stub one
+  automake     touch all \`Makefile.in' files
+  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
+  flex         create \`lex.yy.c', if possible, from existing .c
+  help2man     touch the output file
+  lex          create \`lex.yy.c', if possible, from existing .c
+  makeinfo     touch the output file
+  tar          try tar, gnutar, gtar, then tar without non-portable flags
+  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Send bug reports to <bug-automake@gnu.org>."
+    exit $?
+    ;;
+
+  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+    echo "missing $scriptversion (GNU Automake)"
+    exit $?
+    ;;
+
+  -*)
+    echo 1>&2 "$0: Unknown \`$1' option"
+    echo 1>&2 "Try \`$0 --help' for more information"
+    exit 1
+    ;;
+
+esac
+
+# Now exit if we have it, but it failed.  Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case $1 in
+  lex|yacc)
+    # Not GNU programs, they don't have --version.
+    ;;
+
+  tar)
+    if test -n "$run"; then
+       echo 1>&2 "ERROR: \`tar' requires --run"
+       exit 1
+    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+       exit 1
+    fi
+    ;;
+
+  *)
+    if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+       # We have it, but it failed.
+       exit 1
+    elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+       # Could not run --version or --help.  This is probably someone
+       # running `$TOOL --version' or `$TOOL --help' to check whether
+       # $TOOL exists and not knowing $TOOL uses missing.
+       exit 1
+    fi
+    ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $1 in
+  aclocal*)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
+         to install the \`Automake' and \`Perl' packages.  Grab them from
+         any GNU archive site."
+    touch aclocal.m4
+    ;;
+
+  autoconf)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`${configure_ac}'.  You might want to install the
+         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
+         archive site."
+    touch configure
+    ;;
+
+  autoheader)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
+         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
+         from any GNU archive site."
+    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+    test -z "$files" && files="config.h"
+    touch_files=
+    for f in $files; do
+      case $f in
+      *:*) touch_files="$touch_files "`echo "$f" |
+				       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+      *) touch_files="$touch_files $f.in";;
+      esac
+    done
+    touch $touch_files
+    ;;
+
+  automake*)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+         You might want to install the \`Automake' and \`Perl' packages.
+         Grab them from any GNU archive site."
+    find . -type f -name Makefile.am -print |
+	   sed 's/\.am$/.in/' |
+	   while read f; do touch "$f"; done
+    ;;
+
+  autom4te)
+    echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+         You might have modified some files without having the
+         proper tools for further handling them.
+         You can get \`$1' as part of \`Autoconf' from any GNU
+         archive site."
+
+    file=`echo "$*" | sed -n "$sed_output"`
+    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+    if test -f "$file"; then
+	touch $file
+    else
+	test -z "$file" || exec >$file
+	echo "#! /bin/sh"
+	echo "# Created by GNU Automake missing as a replacement of"
+	echo "#  $ $@"
+	echo "exit 0"
+	chmod +x $file
+	exit 1
+    fi
+    ;;
+
+  bison|yacc)
+    echo 1>&2 "\
+WARNING: \`$1' $msg.  You should only need it if
+         you modified a \`.y' file.  You may need the \`Bison' package
+         in order for those modifications to take effect.  You can get
+         \`Bison' from any GNU archive site."
+    rm -f y.tab.c y.tab.h
+    if test $# -ne 1; then
+        eval LASTARG="\${$#}"
+	case $LASTARG in
+	*.y)
+	    SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+	    if test -f "$SRCFILE"; then
+	         cp "$SRCFILE" y.tab.c
+	    fi
+	    SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+	    if test -f "$SRCFILE"; then
+	         cp "$SRCFILE" y.tab.h
+	    fi
+	  ;;
+	esac
+    fi
+    if test ! -f y.tab.h; then
+	echo >y.tab.h
+    fi
+    if test ! -f y.tab.c; then
+	echo 'main() { return 0; }' >y.tab.c
+    fi
+    ;;
+
+  lex|flex)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified a \`.l' file.  You may need the \`Flex' package
+         in order for those modifications to take effect.  You can get
+         \`Flex' from any GNU archive site."
+    rm -f lex.yy.c
+    if test $# -ne 1; then
+        eval LASTARG="\${$#}"
+	case $LASTARG in
+	*.l)
+	    SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+	    if test -f "$SRCFILE"; then
+	         cp "$SRCFILE" lex.yy.c
+	    fi
+	  ;;
+	esac
+    fi
+    if test ! -f lex.yy.c; then
+	echo 'main() { return 0; }' >lex.yy.c
+    fi
+    ;;
+
+  help2man)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+	 you modified a dependency of a manual page.  You may need the
+	 \`Help2man' package in order for those modifications to take
+	 effect.  You can get \`Help2man' from any GNU archive site."
+
+    file=`echo "$*" | sed -n "$sed_output"`
+    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+    if test -f "$file"; then
+	touch $file
+    else
+	test -z "$file" || exec >$file
+	echo ".ab help2man is required to generate this page"
+	exit 1
+    fi
+    ;;
+
+  makeinfo)
+    echo 1>&2 "\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified a \`.texi' or \`.texinfo' file, or any other file
+         indirectly affecting the aspect of the manual.  The spurious
+         call might also be the consequence of using a buggy \`make' (AIX,
+         DU, IRIX).  You might want to install the \`Texinfo' package or
+         the \`GNU make' package.  Grab either from any GNU archive site."
+    # The file to touch is that specified with -o ...
+    file=`echo "$*" | sed -n "$sed_output"`
+    test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+    if test -z "$file"; then
+      # ... or it is the one specified with @setfilename ...
+      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+      file=`sed -n '
+	/^@setfilename/{
+	  s/.* \([^ ]*\) *$/\1/
+	  p
+	  q
+	}' $infile`
+      # ... or it is derived from the source name (dir/f.texi becomes f.info)
+      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+    fi
+    # If the file does not exist, the user really needs makeinfo;
+    # let's fail without touching anything.
+    test -f $file || exit 1
+    touch $file
+    ;;
+
+  tar)
+    shift
+
+    # We have already tried tar in the generic part.
+    # Look for gnutar/gtar before invocation to avoid ugly error
+    # messages.
+    if (gnutar --version > /dev/null 2>&1); then
+       gnutar "$@" && exit 0
+    fi
+    if (gtar --version > /dev/null 2>&1); then
+       gtar "$@" && exit 0
+    fi
+    firstarg="$1"
+    if shift; then
+	case $firstarg in
+	*o*)
+	    firstarg=`echo "$firstarg" | sed s/o//`
+	    tar "$firstarg" "$@" && exit 0
+	    ;;
+	esac
+	case $firstarg in
+	*h*)
+	    firstarg=`echo "$firstarg" | sed s/h//`
+	    tar "$firstarg" "$@" && exit 0
+	    ;;
+	esac
+    fi
+
+    echo 1>&2 "\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+         You may want to install GNU tar or Free paxutils, or check the
+         command line arguments."
+    exit 1
+    ;;
+
+  *)
+    echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+         You might have modified some files without having the
+         proper tools for further handling them.  Check the \`README' file,
+         it often tells you about the needed prerequisites for installing
+         this package.  You may also peek at any GNU archive site, in case
+         some other package would contain this missing \`$1' program."
+    exit 1
+    ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_man_stylesheet.xsl.in
+++ fglrx-driver-8.47.3/debian/man/fglrx_man_stylesheet.xsl.in
@@ -0,0 +1,22 @@
+<?xml version='1.0'?>
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx_man_stylesheet.xsl.in,v 1.7 2006-03-14 01:59:43 dleidert Exp $
+  Summary   XSLT stylesheet that only contains the path to Norman Walsh's
+            manpage stylesheet.
+  
+  Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+
+  This file is free software. The copyright owner gives unlimited
+  permission to copy, distribute and modify it.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0"
+                xmlns="http://www.w3.org/TR/xhtml1/transitional"
+                exclude-result-prefixes="#default">
+
+	<!-- import Norman Walsh's stylesheets -->
+	<xsl:import href="@PATH_DOCBOOK_XSL@/manpages/docbook.xsl"/>
+
+</xsl:stylesheet>
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_html_stylesheet.xsl.in
+++ fglrx-driver-8.47.3/debian/man/fglrx_html_stylesheet.xsl.in
@@ -0,0 +1,25 @@
+<?xml version='1.0'?>
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx_html_stylesheet.xsl.in,v 1.3 2006-03-14 01:59:43 dleidert Exp $
+  Summary   XSLT stylesheet that contains the path to Norman Walsh's
+            html stylesheet and admonition graphics.
+  
+  Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+
+  This file is free software. The copyright owner gives unlimited
+  permission to copy, distribute and modify it.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0"
+                xmlns="http://www.w3.org/TR/xhtml1/transitional"
+                exclude-result-prefixes="#default">
+
+	<!-- import Norman Walsh's stylesheets -->
+	<xsl:import href="@PATH_DOCBOOK_XSL@/html/docbook.xsl"/>
+
+	<!-- now we have the path for the graphics -->
+	<xsl:param name="admon.graphics.path">@PATH_DOCBOOK_XSL@/images/</xsl:param>
+
+</xsl:stylesheet>
--- fglrx-driver-8.47.3.orig/debian/man/Makefile.am
+++ fglrx-driver-8.47.3/debian/man/Makefile.am
@@ -0,0 +1,112 @@
+# Document  $WgDD: fglrx_man/Makefile.am,v 1.35 2007-06-02 12:51:31 dleidert Exp $
+# Summary   Makefile for the fglrx_man project. It converts the XML source
+#           into manpages and installs them into the right location.
+#
+# Copyright (C) 2006,2007 Daniel Leidert <daniel.leidert@wgdd.de>.
+#
+# This file is free software. The copyright owner gives unlimited
+# permission to copy, distribute and modify it.
+
+AUTOMAKE_OPTIONS = dist-bzip2 1.7
+
+EXTRA_DIST = \
+	CHIPLIST \
+	NEWS.html \
+	$(fglrx_man_src) \
+	fglrx_man_history.xml \
+	fglrx_html.xsl \
+	fglrx_man.xsl \
+	fglrx_man.css
+
+CLEANFILES = \
+	$(fglrxman1_DATA) \
+	$(fglrxman1x_DATA) \
+	$(fglrxman4x_DATA) \
+	$(fglrxman5x_DATA) \
+	$(fglrx_man_src:.xml=.html)
+
+DISTCLEANFILES = \
+	fglrx_man_entities.dtd \
+	fglrx_html_stylesheet.xsl \
+	fglrx_man_stylesheet.xsl 
+
+MAINTAINERCLEANFILES = \
+	aclocal.m4 \
+	configure \
+	install-sh \
+	missing \
+	mkinstalldirs \
+	Makefile.in \
+	NEWS \
+	NEWS.html \
+	@PACKAGE@-@VERSION@.tar.gz \
+	@PACKAGE@-@VERSION@.tar.bz2
+
+DISTCHECK_CONFIGURE_FLAGS = \
+	--enable-build-checks \
+	--with-docbook-xsl-dir=http://docbook.sourceforge.net/release/xsl/current
+
+VPATH += @builddir@
+
+XMLLINT_FLAGS += --noout --path "$(VPATH)" --valid
+XSLTPROC_FLAGS += --path "$(VPATH)"
+
+
+fglrx_man_src = \
+	fireglcontrol.1.xml \
+	aticonfig.1x.xml \
+	fgl_glxgears.1x.xml \
+	fglrxinfo.1x.xml \
+	fglrx_xgamma.1x.xml \
+	fglrx.4x.xml \
+	fglrxrc.5x.xml
+
+
+fglrxman1dir    = $(mandir)/man1
+fglrxman1_DATA  = $(patsubst %.1.xml,%.1,$(filter %.1.xml,$(fglrx_man_src)))
+
+fglrxman1xdir   = $(PATH_XSERVER_MAN_APP)
+fglrxman1x_DATA = $(patsubst %.1x.xml,%.1x,$(filter %.1x.xml,$(fglrx_man_src)))
+
+fglrxman4xdir   = $(PATH_XSERVER_MAN_DRIVER)
+fglrxman4x_DATA = $(patsubst %.4x.xml,%.4x,$(filter %.4x.xml,$(fglrx_man_src)))
+
+fglrxman5xdir   = $(PATH_XSERVER_MAN_FILE)
+fglrxman5x_DATA = $(patsubst %.5x.xml,%.5x,$(filter %.5x.xml,$(fglrx_man_src)))
+
+fglrxdocsdir    = $(datadir)/doc/fglrx_man
+fglrxdocs_DATA  = $(fglrx_man_src:.xml=.html) fglrx_man.css AUTHORS CHIPLIST COPYING NEWS.html THANKS NEWS
+
+
+% : fglrx_man.xsl %.xml
+	@echo -e "\033[1mBuilding $*.\033[0m"
+	$(XSLTPROC) $(XSLTPROC_FLAGS) $^
+
+
+%.html : fglrx_html.xsl %.xml
+	@echo -e "\033[1mBuilding $@.\033[0m"
+	$(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $^
+
+NEWS.html : fglrx_html.xsl fglrx_man_history.xml
+	@echo -e "\033[1mBuilding $@.\033[0m"
+	$(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $^
+
+
+NEWS : NEWS.html
+	@echo -e "\033[1mBuilding $@.\033[0m"
+	`which w3m` -dump $< > $@
+
+
+check-local:
+	$(info "Correct any errors before making a distribution.")
+if ENABLE_BUILD_CHECKS
+	@echo -e "\033[1mChecking XML sources.\033[0m"
+	$(XMLLINT) $(XMLLINT_FLAGS) $(fglrx_man_src) fglrx_man_history.xml
+	@echo -e "\033[1mChecking manpages for issues.\033[0m"
+	LANG=C MANWIDTH=80 $(MAN) $(addprefix ./,$(patsubst %.xml,%,$(fglrx_man_src))) > /dev/null
+#	TODO: Add spell check:
+#	ispell -d american -n ...groff files...
+else
+	$(info "Use --enable-build-checks to enable the check-target(s).")
+endif
+
--- fglrx-driver-8.47.3.orig/debian/man/Makefile.in
+++ fglrx-driver-8.47.3/debian/man/Makefile.in
@@ -0,0 +1,653 @@
+# Makefile.in generated by automake 1.10 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Document  $WgDD: fglrx_man/Makefile.am,v 1.35 2007-06-02 12:51:31 dleidert Exp $
+# Summary   Makefile for the fglrx_man project. It converts the XML source
+#           into manpages and installs them into the right location.
+#
+# Copyright (C) 2006,2007 Daniel Leidert <daniel.leidert@wgdd.de>.
+#
+# This file is free software. The copyright owner gives unlimited
+# permission to copy, distribute and modify it.
+
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+	$(srcdir)/Makefile.in $(srcdir)/fglrx_html_stylesheet.xsl.in \
+	$(srcdir)/fglrx_man_entities.dtd.in \
+	$(srcdir)/fglrx_man_stylesheet.xsl.in $(top_srcdir)/configure \
+	AUTHORS COPYING ChangeLog INSTALL NEWS THANKS TODO install-sh \
+	missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+	$(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_CLEAN_FILES = fglrx_man_entities.dtd fglrx_html_stylesheet.xsl \
+	fglrx_man_stylesheet.xsl
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(fglrxdocsdir)" \
+	"$(DESTDIR)$(fglrxman1dir)" "$(DESTDIR)$(fglrxman1xdir)" \
+	"$(DESTDIR)$(fglrxman4xdir)" "$(DESTDIR)$(fglrxman5xdir)"
+fglrxdocsDATA_INSTALL = $(INSTALL_DATA)
+fglrxman1DATA_INSTALL = $(INSTALL_DATA)
+fglrxman1xDATA_INSTALL = $(INSTALL_DATA)
+fglrxman4xDATA_INSTALL = $(INSTALL_DATA)
+fglrxman5xDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(fglrxdocs_DATA) $(fglrxman1_DATA) $(fglrxman1x_DATA) \
+	$(fglrxman4x_DATA) $(fglrxman5x_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+  { test ! -d $(distdir) \
+    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+         && rm -fr $(distdir); }; }
+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+VPATH = @srcdir@ @builddir@
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+ATI_DRIVER_NAME = @ATI_DRIVER_NAME@
+ATI_DRIVER_PACKAGE = @ATI_DRIVER_PACKAGE@
+ATI_DRIVER_VERSION = @ATI_DRIVER_VERSION@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_PACKAGE = @DRIVER_PACKAGE@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LICENSE_FILE = @LICENSE_FILE@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MAN = @MAN@
+MKDIR_P = @MKDIR_P@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_LICENSE_FILE = @PACKAGE_LICENSE_FILE@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_DOCBOOK_XSL = @PATH_DOCBOOK_XSL@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PATH_XSERVER_MAN_APP = @PATH_XSERVER_MAN_APP@
+PATH_XSERVER_MAN_DRIVER = @PATH_XSERVER_MAN_DRIVER@
+PATH_XSERVER_MAN_FILE = @PATH_XSERVER_MAN_FILE@
+PKG_CONFIG = @PKG_CONFIG@
+PROG_XSERVER_CONF = @PROG_XSERVER_CONF@
+PROG_XSERVER_CONFIG = @PROG_XSERVER_CONFIG@
+PROG_XSERVER_NAME = @PROG_XSERVER_NAME@
+PROG_XSERVER_STRING = @PROG_XSERVER_STRING@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+XMLCATALOG = @XMLCATALOG@
+XMLLINT = @XMLLINT@
+XMLLINT_FLAGS = @XMLLINT_FLAGS@ --noout --path "$(VPATH)" --valid
+XML_CATALOG_FILE = @XML_CATALOG_FILE@
+XSLTPROC = @XSLTPROC@
+XSLTPROC_FLAGS = @XSLTPROC_FLAGS@ --path "$(VPATH)"
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build_alias = @build_alias@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host_alias = @host_alias@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+AUTOMAKE_OPTIONS = dist-bzip2 1.7
+EXTRA_DIST = \
+	CHIPLIST \
+	NEWS.html \
+	$(fglrx_man_src) \
+	fglrx_man_history.xml \
+	fglrx_html.xsl \
+	fglrx_man.xsl \
+	fglrx_man.css
+
+CLEANFILES = \
+	$(fglrxman1_DATA) \
+	$(fglrxman1x_DATA) \
+	$(fglrxman4x_DATA) \
+	$(fglrxman5x_DATA) \
+	$(fglrx_man_src:.xml=.html)
+
+DISTCLEANFILES = \
+	fglrx_man_entities.dtd \
+	fglrx_html_stylesheet.xsl \
+	fglrx_man_stylesheet.xsl 
+
+MAINTAINERCLEANFILES = \
+	aclocal.m4 \
+	configure \
+	install-sh \
+	missing \
+	mkinstalldirs \
+	Makefile.in \
+	NEWS \
+	NEWS.html \
+	@PACKAGE@-@VERSION@.tar.gz \
+	@PACKAGE@-@VERSION@.tar.bz2
+
+DISTCHECK_CONFIGURE_FLAGS = \
+	--enable-build-checks \
+	--with-docbook-xsl-dir=http://docbook.sourceforge.net/release/xsl/current
+
+fglrx_man_src = \
+	fireglcontrol.1.xml \
+	aticonfig.1x.xml \
+	fgl_glxgears.1x.xml \
+	fglrxinfo.1x.xml \
+	fglrx_xgamma.1x.xml \
+	fglrx.4x.xml \
+	fglrxrc.5x.xml
+
+fglrxman1dir = $(mandir)/man1
+fglrxman1_DATA = $(patsubst %.1.xml,%.1,$(filter %.1.xml,$(fglrx_man_src)))
+fglrxman1xdir = $(PATH_XSERVER_MAN_APP)
+fglrxman1x_DATA = $(patsubst %.1x.xml,%.1x,$(filter %.1x.xml,$(fglrx_man_src)))
+fglrxman4xdir = $(PATH_XSERVER_MAN_DRIVER)
+fglrxman4x_DATA = $(patsubst %.4x.xml,%.4x,$(filter %.4x.xml,$(fglrx_man_src)))
+fglrxman5xdir = $(PATH_XSERVER_MAN_FILE)
+fglrxman5x_DATA = $(patsubst %.5x.xml,%.5x,$(filter %.5x.xml,$(fglrx_man_src)))
+fglrxdocsdir = $(datadir)/doc/fglrx_man
+fglrxdocs_DATA = $(fglrx_man_src:.xml=.html) fglrx_man.css AUTHORS CHIPLIST COPYING NEWS.html THANKS NEWS
+all: all-am
+
+.SUFFIXES:
+am--refresh:
+	@:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
+	      cd $(srcdir) && $(AUTOMAKE) --gnu  \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    echo ' $(SHELL) ./config.status'; \
+	    $(SHELL) ./config.status;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	$(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+fglrx_man_entities.dtd: $(top_builddir)/config.status $(srcdir)/fglrx_man_entities.dtd.in
+	cd $(top_builddir) && $(SHELL) ./config.status $@
+fglrx_html_stylesheet.xsl: $(top_builddir)/config.status $(srcdir)/fglrx_html_stylesheet.xsl.in
+	cd $(top_builddir) && $(SHELL) ./config.status $@
+fglrx_man_stylesheet.xsl: $(top_builddir)/config.status $(srcdir)/fglrx_man_stylesheet.xsl.in
+	cd $(top_builddir) && $(SHELL) ./config.status $@
+install-fglrxdocsDATA: $(fglrxdocs_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(fglrxdocsdir)" || $(MKDIR_P) "$(DESTDIR)$(fglrxdocsdir)"
+	@list='$(fglrxdocs_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(fglrxdocsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fglrxdocsdir)/$$f'"; \
+	  $(fglrxdocsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fglrxdocsdir)/$$f"; \
+	done
+
+uninstall-fglrxdocsDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(fglrxdocs_DATA)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(fglrxdocsdir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(fglrxdocsdir)/$$f"; \
+	done
+install-fglrxman1DATA: $(fglrxman1_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(fglrxman1dir)" || $(MKDIR_P) "$(DESTDIR)$(fglrxman1dir)"
+	@list='$(fglrxman1_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(fglrxman1DATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fglrxman1dir)/$$f'"; \
+	  $(fglrxman1DATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fglrxman1dir)/$$f"; \
+	done
+
+uninstall-fglrxman1DATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(fglrxman1_DATA)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(fglrxman1dir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(fglrxman1dir)/$$f"; \
+	done
+install-fglrxman1xDATA: $(fglrxman1x_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(fglrxman1xdir)" || $(MKDIR_P) "$(DESTDIR)$(fglrxman1xdir)"
+	@list='$(fglrxman1x_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(fglrxman1xDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fglrxman1xdir)/$$f'"; \
+	  $(fglrxman1xDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fglrxman1xdir)/$$f"; \
+	done
+
+uninstall-fglrxman1xDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(fglrxman1x_DATA)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(fglrxman1xdir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(fglrxman1xdir)/$$f"; \
+	done
+install-fglrxman4xDATA: $(fglrxman4x_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(fglrxman4xdir)" || $(MKDIR_P) "$(DESTDIR)$(fglrxman4xdir)"
+	@list='$(fglrxman4x_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(fglrxman4xDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fglrxman4xdir)/$$f'"; \
+	  $(fglrxman4xDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fglrxman4xdir)/$$f"; \
+	done
+
+uninstall-fglrxman4xDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(fglrxman4x_DATA)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(fglrxman4xdir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(fglrxman4xdir)/$$f"; \
+	done
+install-fglrxman5xDATA: $(fglrxman5x_DATA)
+	@$(NORMAL_INSTALL)
+	test -z "$(fglrxman5xdir)" || $(MKDIR_P) "$(DESTDIR)$(fglrxman5xdir)"
+	@list='$(fglrxman5x_DATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(am__strip_dir) \
+	  echo " $(fglrxman5xDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(fglrxman5xdir)/$$f'"; \
+	  $(fglrxman5xDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(fglrxman5xdir)/$$f"; \
+	done
+
+uninstall-fglrxman5xDATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(fglrxman5x_DATA)'; for p in $$list; do \
+	  f=$(am__strip_dir) \
+	  echo " rm -f '$(DESTDIR)$(fglrxman5xdir)/$$f'"; \
+	  rm -f "$(DESTDIR)$(fglrxman5xdir)/$$f"; \
+	done
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	$(am__remove_distdir)
+	test -d $(distdir) || mkdir $(distdir)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+	list='$(DISTFILES)'; \
+	  dist_files=`for file in $$list; do echo $$file; done | \
+	  sed -e "s|^$$srcdirstrip/||;t" \
+	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+	case $$dist_files in \
+	  */*) $(MKDIR_P) `echo "$$dist_files" | \
+			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+			   sort -u` ;; \
+	esac; \
+	for file in $$dist_files; do \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  if test -d $$d/$$file; then \
+	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+	|| chmod -R a+r $(distdir)
+dist-gzip: distdir
+	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+	$(am__remove_distdir)
+dist-bzip2: distdir
+	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+	$(am__remove_distdir)
+
+dist-tarZ: distdir
+	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+	$(am__remove_distdir)
+
+dist-shar: distdir
+	shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+	$(am__remove_distdir)
+
+dist-zip: distdir
+	-rm -f $(distdir).zip
+	zip -rq $(distdir).zip $(distdir)
+	$(am__remove_distdir)
+
+dist dist-all: distdir
+	tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+	tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+	$(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration.  Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+	case '$(DIST_ARCHIVES)' in \
+	*.tar.gz*) \
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+	*.tar.bz2*) \
+	  bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+	*.tar.Z*) \
+	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+	*.shar.gz*) \
+	  GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+	*.zip*) \
+	  unzip $(distdir).zip ;;\
+	esac
+	chmod -R a-w $(distdir); chmod a+w $(distdir)
+	mkdir $(distdir)/_build
+	mkdir $(distdir)/_inst
+	chmod a-w $(distdir)
+	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+	  && cd $(distdir)/_build \
+	  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+	    $(DISTCHECK_CONFIGURE_FLAGS) \
+	  && $(MAKE) $(AM_MAKEFLAGS) \
+	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
+	  && $(MAKE) $(AM_MAKEFLAGS) check \
+	  && $(MAKE) $(AM_MAKEFLAGS) install \
+	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+	        distuninstallcheck \
+	  && chmod -R a-w "$$dc_install_base" \
+	  && ({ \
+	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
+	  && rm -rf "$$dc_destdir" \
+	  && $(MAKE) $(AM_MAKEFLAGS) dist \
+	  && rm -rf $(DIST_ARCHIVES) \
+	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+	$(am__remove_distdir)
+	@(echo "$(distdir) archives ready for distribution: "; \
+	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+	@cd $(distuninstallcheck_dir) \
+	&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+	   || { echo "ERROR: files left after uninstall:" ; \
+	        if test -n "$(DESTDIR)"; then \
+	          echo "  (check DESTDIR support)"; \
+	        fi ; \
+	        $(distuninstallcheck_listfiles) ; \
+	        exit 1; } >&2
+distcleancheck: distclean
+	@if test '$(srcdir)' = . ; then \
+	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+	  exit 1 ; \
+	fi
+	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+	  || { echo "ERROR: files left in build directory after distclean:" ; \
+	       $(distcleancheck_listfiles) ; \
+	       exit 1; } >&2
+check-am: all-am
+	$(MAKE) $(AM_MAKEFLAGS) check-local
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+	for dir in "$(DESTDIR)$(fglrxdocsdir)" "$(DESTDIR)$(fglrxman1dir)" "$(DESTDIR)$(fglrxman1xdir)" "$(DESTDIR)$(fglrxman4xdir)" "$(DESTDIR)$(fglrxman5xdir)"; do \
+	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+	done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+	-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-am
+
+clean-am: clean-generic mostlyclean-am
+
+distclean: distclean-am
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-fglrxdocsDATA install-fglrxman1DATA \
+	install-fglrxman1xDATA install-fglrxman4xDATA \
+	install-fglrxman5xDATA
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
+	-rm -rf $(top_srcdir)/autom4te.cache
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-fglrxdocsDATA uninstall-fglrxman1DATA \
+	uninstall-fglrxman1xDATA uninstall-fglrxman4xDATA \
+	uninstall-fglrxman5xDATA
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am am--refresh check check-am check-local clean \
+	clean-generic dist dist-all dist-bzip2 dist-gzip dist-shar \
+	dist-tarZ dist-zip distcheck distclean distclean-generic \
+	distcleancheck distdir distuninstallcheck dvi dvi-am html \
+	html-am info info-am install install-am install-data \
+	install-data-am install-dvi install-dvi-am install-exec \
+	install-exec-am install-fglrxdocsDATA install-fglrxman1DATA \
+	install-fglrxman1xDATA install-fglrxman4xDATA \
+	install-fglrxman5xDATA install-html install-html-am \
+	install-info install-info-am install-man install-pdf \
+	install-pdf-am install-ps install-ps-am install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+	pdf-am ps ps-am uninstall uninstall-am uninstall-fglrxdocsDATA \
+	uninstall-fglrxman1DATA uninstall-fglrxman1xDATA \
+	uninstall-fglrxman4xDATA uninstall-fglrxman5xDATA
+
+
+% : fglrx_man.xsl %.xml
+	@echo -e "\033[1mBuilding $*.\033[0m"
+	$(XSLTPROC) $(XSLTPROC_FLAGS) $^
+
+%.html : fglrx_html.xsl %.xml
+	@echo -e "\033[1mBuilding $@.\033[0m"
+	$(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $^
+
+NEWS.html : fglrx_html.xsl fglrx_man_history.xml
+	@echo -e "\033[1mBuilding $@.\033[0m"
+	$(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ $^
+
+NEWS : NEWS.html
+	@echo -e "\033[1mBuilding $@.\033[0m"
+	`which w3m` -dump $< > $@
+
+check-local:
+	$(info "Correct any errors before making a distribution.")
+@ENABLE_BUILD_CHECKS_TRUE@	@echo -e "\033[1mChecking XML sources.\033[0m"
+@ENABLE_BUILD_CHECKS_TRUE@	$(XMLLINT) $(XMLLINT_FLAGS) $(fglrx_man_src) fglrx_man_history.xml
+@ENABLE_BUILD_CHECKS_TRUE@	@echo -e "\033[1mChecking manpages for issues.\033[0m"
+@ENABLE_BUILD_CHECKS_TRUE@	LANG=C MANWIDTH=80 $(MAN) $(addprefix ./,$(patsubst %.xml,%,$(fglrx_man_src))) > /dev/null
+#	TODO: Add spell check:
+#	ispell -d american -n ...groff files...
+@ENABLE_BUILD_CHECKS_FALSE@	$(info "Use --enable-build-checks to enable the check-target(s).")
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_html.xsl
+++ fglrx-driver-8.47.3/debian/man/fglrx_html.xsl
@@ -0,0 +1,160 @@
+<?xml version='1.0'?>
+
+<!--
+  Document  $WgDD: fglrx_man/fglrx_html.xsl,v 1.5 2007-06-02 12:51:31 dleidert Exp $
+  Summary   XSLT stylesheet to convert XML sources into html pages.
+  
+  Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+
+  This file is free software. The copyright owner gives unlimited
+  permission to copy, distribute and modify it.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                version="1.0">
+
+	<xsl:import href="fglrx_html_stylesheet.xsl"/>
+
+	<xsl:output method="html"
+	            encoding="ISO-8859-1"
+	            indent="yes"
+	            doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
+	            doctype-system="http://www.w3.org/TR/html4/loose.dtd"/>
+
+<!-- Paramaters -->
+
+	<xsl:param name="admon.graphics" select="1"/>
+	<xsl:param name="admon.style" select="''"/>
+	<xsl:param name="html.stylesheet">
+		<xsl:choose>
+			<xsl:when test="not(/revhistory)">
+				<xsl:value-of select="'fglrx_man.css'"/>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="''"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:param>
+	<xsl:param name="index.on.type">1</xsl:param>
+	<xsl:param name="make.single.year.ranges" select="1"/>
+	<xsl:param name="make.year.ranges" select="1"/>
+	<xsl:param name="segmentedlist.as.table" select="1"/>
+	<xsl:param name="variablelist.as.table" select="0"/>
+	<xsl:param name="variablelist.term.break.after">
+		<xsl:choose>
+			<xsl:when test="//refentry[@id='fglrx_4x' or @id='fgl_glxgears_1x']">
+				<xsl:value-of select="1"/>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="0"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:param>
+	<xsl:param name="variablelist.term.separator">
+		<xsl:choose>
+			<xsl:when test="//refentry[@id='fglrx_4x' or @id='fgl_glxgears_1x']">
+				<xsl:value-of select="''"/>
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:value-of select="', '"/>
+			</xsl:otherwise>
+		</xsl:choose>
+	</xsl:param>
+
+<!-- Customization layer -->
+
+	<!--  add missing AUTHOR(S) section -->
+	<xsl:template match="refentry">
+		<xsl:apply-templates/>
+		<xsl:choose>
+			<xsl:when test="refentryinfo//author">
+				<xsl:apply-templates select="refentryinfo" mode="authorsect"/>
+			</xsl:when>
+		</xsl:choose>
+	</xsl:template>
+
+	<xsl:template match="refentryinfo" mode="authorsect">
+		<div class="refsect1">
+			<xsl:call-template name="language.attribute"/>
+			<xsl:call-template name="anchor">
+				<xsl:with-param name="conditional" select="0"/>
+			</xsl:call-template>
+			<h2>
+				<xsl:text>AUTHOR</xsl:text>
+				<xsl:if test="count(.//author)+count(.//othercredit)>1">
+					<xsl:text>S</xsl:text>
+				</xsl:if>
+			</h2>
+			<xsl:text>&#10;</xsl:text>
+			<xsl:if test="count(.//author)>0">
+				<p>
+					<xsl:text>This manual page was written by </xsl:text>
+					<xsl:for-each select=".//author">
+						<xsl:if test="position() > 1">
+							<xsl:choose>
+								<xsl:when test="position() = last()">
+									<xsl:text> and </xsl:text>
+								</xsl:when>
+								<xsl:otherwise>
+									<xsl:text>, </xsl:text>
+								</xsl:otherwise>
+							</xsl:choose>
+						</xsl:if>
+						<xsl:apply-templates select="." mode="authorsect"/>
+					</xsl:for-each>
+					<xsl:text> for the Debian system (but may be used by others).</xsl:text>
+				</p>
+			</xsl:if>
+			<xsl:if test="count(.//othercredit)>0">
+				<p>
+					<xsl:text>Contributions were derived from </xsl:text>
+					<xsl:for-each select=".//othercredit">
+						<xsl:if test="position() > 1">
+							<xsl:choose>
+								<xsl:when test="position() = last()">
+									<xsl:text> and </xsl:text>
+								</xsl:when>
+								<xsl:otherwise>
+									<xsl:text>, </xsl:text>
+								</xsl:otherwise>
+							</xsl:choose>
+						</xsl:if>
+						<xsl:apply-templates select="." mode="authorsect"/>
+					</xsl:for-each>
+					<xsl:text>.</xsl:text>
+				</p>
+			</xsl:if>
+			<xsl:if test="count(.//editor)>0">
+				<p>
+					<xsl:text disable-output-escaping="yes">Edited by </xsl:text>
+					<xsl:for-each select=".//editor">
+						<xsl:if test="position() > 1">
+							<xsl:choose>
+								<xsl:when test="position() = last()">
+									<xsl:text> and </xsl:text>
+								</xsl:when>
+								<xsl:otherwise>
+									<xsl:text>, </xsl:text>
+								</xsl:otherwise>
+							</xsl:choose>
+						</xsl:if>
+						<xsl:apply-templates select="." mode="authorsect"/>
+					</xsl:for-each>
+					<xsl:text>.</xsl:text>
+				</p>
+			</xsl:if>
+		</div>
+	</xsl:template>
+	
+	<xsl:template match="author|editor|othercredit" mode="authorsect">
+		<span class="{name(.)}">
+			<xsl:call-template name="anchor"/>
+			<xsl:call-template name="person.name"/>
+			<xsl:if test=".//email">
+				<xsl:text> </xsl:text>
+				<xsl:apply-templates select=".//email"/>
+			</xsl:if>
+		</span>
+	</xsl:template>
+	
+</xsl:stylesheet>
--- fglrx-driver-8.47.3.orig/debian/man/fglrxrc.5x.xml
+++ fglrx-driver-8.47.3/debian/man/fglrxrc.5x.xml
@@ -0,0 +1,175 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/fglrxrc.5x.xml,v 1.4 2006-11-25 07:59:32 dleidert Exp $
+  Summary   Manpage for the fglrxrc configuration file.
+
+  Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "fglrxrc">
+	<!ENTITY dhucname  "FGLRXRC">
+	<!ENTITY dhsection "5x">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+
+]>
+
+<refentry id="fglrxrc_5x" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2006-11-25 07:59:32 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+		</authorgroup>
+		<copyright>
+			<year>2006</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>configuration file for the proprietary ATI video driver</refpurpose>
+	</refnamediv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para>The <package>fglrx-driver</package> package provides a proprietary video driver
+			for ATI RADEON and ATI FireGL based graphics cards.
+		</para>
+		<para>The two configuration files are <filename>/etc/fglrxrc</filename> for system-wide
+			defaults and <filename>${HOME}/.fglrxrc</filename> for per-user settings. They are written
+			in <package>XML</package>, based on the syntax also used by <citerefentry>
+				<refentrytitle>driconf</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry>.
+		</para>
+	</refsect1>
+	<refsect1 id="format">
+		<title>FORMAT</title>
+		<para>Between the <sgmltag class="starttag">driconf</sgmltag>
+			and <sgmltag class="endtag">driconf</sgmltag> tags, there can
+			be <sgmltag class="element">device</sgmltag> sections that contain the
+			configuration of all the graphics devices you have installed in your system.
+			The <sgmltag class="element">device</sgmltag> tag can contain
+			a <sgmltag class="attribute">screen</sgmltag>
+			and/or <sgmltag class="attribute">driver</sgmltag> attribute. They are used
+			to identify the device that this section applies to. In most cases only one
+			of them would be necessary but specifying both doesn't hurt.
+			The <sgmltag class="attribute">screen</sgmltag> attribute gives the X screen
+			number. On a single headed display this is
+			always "<parameter class="function">0</parameter>" (Zero).
+			The <sgmltag class="attribute">driver</sgmltag> attribute specifies the name of
+			the 3D driver, which should be <citerefentry>
+				<refentrytitle>fglrx</refentrytitle>
+				<manvolnum>4x</manvolnum>
+			</citerefentry>.
+		</para>
+		<para>In each <sgmltag class="element">device</sgmltag> section there can be any
+			number of <sgmltag class="element">application</sgmltag> sections that contain
+			the configuration of different applications. The
+			opening <sgmltag class="starttag">application</sgmltag> tag can contain the
+			attributes <sgmltag class="attribute">name</sgmltag>
+			and <sgmltag class="attribute">executable</sgmltag>. The name is merely a
+			descriptive string. If no <sgmltag class="attribute">executable</sgmltag>
+			attribute is present then the section applies to all applications (same
+			to <sgmltag class="attribute">name</sgmltag>="<parameter class="function">all</parameter>").
+			Otherwise the section only applies to the specified application.
+		</para>
+		<caution>
+			<para>The executable that you specify in
+				the <sgmltag class="attribute">executable</sgmltag> attribute may differ from
+				what you type in the shell. For instance the command <command>q3demo</command>
+				is a shell script. The actual executable that runs the game is called
+				<filename>q3demo.x86</filename>. 
+			</para>
+		</caution>
+		<para>Options are specified as empty <sgmltag class="emptytag">option</sgmltag>
+			tags, with a <sgmltag class="attribute">name</sgmltag>
+			and a <sgmltag class="attribute">value</sgmltag> attribute. An up-to-date
+			description of available options can be obtained with the <citerefentry>
+				<refentrytitle>xdriinfo</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry> command.
+		</para>
+	</refsect1>
+	<refsect1 id="examples">
+		<title>EXAMPLES</title>
+		<para>The following shows a simple example, how the configuration file could look:</para>
+		<screen><![CDATA[<driconf>
+  <device screen="0" driver="fglrx">
+    <application name="all">
+      <option name="swap_on_vblank" value="true" />
+    </application>
+  </device>
+</driconf>]]></screen>
+	</refsect1>
+	<refsect1 id="files">
+		<title>FILES</title>
+		<variablelist>
+			<varlistentry>
+				<term><filename>/etc/fglrxrc</filename></term>
+				<listitem>
+					<para>The system-wide configuration file.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><filename>${HOME}/.fglrxrc</filename></term>
+				<listitem>
+					<para>The per-user configuration file.</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<para>
+			<citerefentry>
+				<refentrytitle>driconf</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>xdriinfo</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry>
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/man/acinclude.m4
+++ fglrx-driver-8.47.3/debian/man/acinclude.m4
@@ -0,0 +1,348 @@
+dnl Document  $WgDD: fglrx_man/acinclude.m4,v 1.20 2006-12-15 22:28:29 dleidert Exp $
+dnl Summary   Custom macros for the configure script.
+dnl
+dnl Copyright (C) 2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+dnl
+dnl Copying and distribution of this file, with or without modification,
+dnl are permitted in any medium without royalty provided the copyright
+dnl notice and this notice are preserved.
+
+
+dnl @synopsis MP_PATH_DOCBOOK_XSL [--with-docbook-xsl-dir=DIR]
+dnl
+dnl @summary Search for the path to Norman Walsh's XSL stylesheet for manpages.
+dnl
+dnl Allow to specify the path to Norman Walsh's XSL stylesheets. If no path is
+dnl specified, common directories are searched for this file. For Debian
+dnl (where it is automatically detected), you could use:
+dnl
+dnl    --with-docbook-xsl-dir=/usr/share/xml/docbook/stylesheet/nwalsh
+dnl
+dnl @category InstalledPackages
+dnl @author Daniel Leidert <daniel.leidert@wgdd.de>
+dnl @version 2006-11-25
+dnl @license AllPermissive
+AC_DEFUN([MP_PATH_DOCBOOK_XSL], [
+	
+	dnl Let the user specify the path to Norman Walsh's XSL stylesheets ...
+	AC_ARG_WITH(
+		[docbook-xsl-dir],
+		AC_HELP_STRING(
+			[--with-docbook-xsl-dir@<:@=DIR@:>@],
+			[Specify the path to Norman Walsh's XSL stylesheets. @<:@DIR=autodetect@:>@]
+		),
+		[PATH_DOCBOOK_XSL=$withval],
+	)
+
+	dnl .. or begin checking ...
+	AC_ARG_VAR(
+		[XMLCATALOG],
+		[The 'xmlcatalog' binary with path. Use it to define or override the location of 'xmlcatalog'.]
+	)
+	AC_PATH_PROG([XMLCATALOG], [xmlcatalog])
+
+	AC_ARG_VAR(
+		[XML_CATALOG_FILE],
+		[The default system catalog. Use it to define or override the systems catalog '/etc/xml/catalog'.]
+	)
+	if test -z $XML_CATALOG_FILE ; then
+		XML_CATALOG_FILE="/etc/xml/catalog"
+	fi
+
+	dnl ... let's try to determine automatically ...
+	dnl ... first check catalog and if successful, let's use the canonical URI ...
+	if test -z $PATH_DOCBOOK_XSL -a $XMLCATALOG ; then
+		if AC_RUN_LOG([$XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/" >&2]) ; then
+			PATH_DOCBOOK_XSL="http://docbook.sourceforge.net/release/xsl/current"
+		fi
+	fi
+
+	dnl ... second check a defined list of paths ...
+	if test -z $PATH_DOCBOOK_XSL ; then
+		db_xsl_dir_list="
+			/usr/share/sgml/docbook/xsl-stylesheets
+			/usr/share/sgml/docbook/stylesheet/xsl/nwalsh
+			/usr/share/xml/docbook/stylesheet/nwalsh
+			/usr/local/share/sgml/docbook/xsl-stylesheets
+			/usr/local/share/sgml/docbook/stylesheet/xsl/nwalsh
+			/usr/local/share/xml/docbook/stylesheet/nwalsh
+			/opt/share/sgml/docbook/xsl-stylesheets
+			$datadir/sgml/docbook/xsl-stylesheets
+			$datadir/sgml/docbook/stylesheet/xsl/nwalsh
+			$datadir/xml/docbook/stylesheet/nwalsh
+		"
+		for dir in $db_xsl_dir_list ; do
+			if test -f $dir/catalog.xml ; then
+				PATH_DOCBOOK_XSL=$dir
+				break
+			fi
+		done
+	fi
+	
+	dnl ... and if it still cannot be found, use an URL.
+	if test -z $PATH_DOCBOOK_XSL ; then
+		PATH_DOCBOOK_XSL="http://docbook.sourceforge.net/release/xsl/current"
+	fi
+
+	AC_MSG_CHECKING([for XSL stylesheet dir])
+	AC_MSG_RESULT([$PATH_DOCBOOK_XSL])
+
+	AC_SUBST([PATH_DOCBOOK_XSL])
+]) # MP_PATH_DOCBOOK_XSL
+
+
+dnl @synopsis MP_PROG_XSERVER [--with-xserver=STRING]
+dnl
+dnl @summary Try to determine the X-server, which is running.
+dnl
+dnl The manpages will only refer to X.org or XFree86 X-Server
+dnl version. So let's try to determine, which server is running. Therefor we
+dnl check for /usr(/X11R6)/bin/Xorg or /usr(/X11R6)/bin/XFree86 and depending
+dnl on what we find, the server string is determined.
+dnl
+dnl @category InstalledPackages
+dnl @author Daniel Leidert <daniel.leidert@wgdd.de>
+dnl @version 2006-11-25
+dnl @license AllPermissive
+AC_DEFUN([MP_PROG_XSERVER],[
+
+	dnl Specify, for which X-server we build the manpages.
+	AC_ARG_WITH(
+		[xserver],
+		AC_HELP_STRING(
+			[--with-xserver@<:@=@<:@Xorg|XFree86@:>@@:>@],
+			[Specify, which X-server is used @<:@default=autodetect@:>@.]
+		),
+		[
+		 if test -z $withval ; then
+			 AC_CHECK_PROGS([PROG_XSERVER_STRING], [Xorg XFree86])
+		 else
+			 PROG_XSERVER_STRING=$withval
+		 fi
+		],
+		[AC_CHECK_PROGS([PROG_XSERVER_STRING], [Xorg XFree86])]
+	)
+
+	if test "x$PROG_XSERVER_STRING" = "xXorg" ; then
+		PROG_XSERVER_NAME="X.org"
+		PROG_XSERVER_CONF="xorg.conf"
+		PROG_XSERVER_CONFIG="xorgconfig"
+	elif test "x$PROG_XSERVER_STRING" = "xXFree86" ; then
+		PROG_XSERVER_NAME="XFree86"
+		PROG_XSERVER_CONF="XF86Config-4"
+		PROG_XSERVER_CONFIG="xf86config"
+	else
+		AC_MSG_ERROR([Unknown X-server.])
+	fi
+
+	AC_MSG_CHECKING([for X-server])
+	AC_MSG_RESULT([$PROG_XSERVER_NAME])
+
+	AC_SUBST([PROG_XSERVER_STRING])
+	AC_SUBST([PROG_XSERVER_NAME])
+	AC_SUBST([PROG_XSERVER_CONF])
+	AC_SUBST([PROG_XSERVER_CONFIG])
+]) # MP_PROG_XSERVER
+
+
+dnl @synopsis MP_PATH_XSERVER_MAN \
+dnl 	[--with-xserver-app-man-dir=DIR] \
+dnl 	[--with-xserver-driver-man-dir=DIR] \
+dnl 	[--with-xserver-file-man-dir=DIR]
+dnl
+dnl @summary Determine where the X-server manpages should be installed
+dnl
+dnl This is a simple macro to define the location, where the manpages for
+dnl X-server applications and drivers shall be installed. A larger macro
+dnl to get these paths is defined in XORG_MANPAGE_SECTIONS() in
+dnl xorg-macros.m4. But because we only need to specify the path for Linux,
+dnl we do not need it.
+dnl
+dnl An automatic detection should be added too.
+dnl
+dnl @category InstalledPackages
+dnl @author Daniel Leidert <daniel.leidert@wgdd.de>
+dnl @version 2006-11-25
+dnl @license AllPermissive
+AC_DEFUN([MP_PATH_XSERVER_MAN],[
+	AC_REQUIRE([MP_PROG_XSERVER])
+
+	AC_ARG_WITH(
+		[xserver-app-man-dir],
+		AC_HELP_STRING(
+			[--with-xserver-app-man-dir@<:@=DIR@:>@],
+			[Specify the path, where X application-manpages should be installed. @<:@DIR=$mandir/man1@:>@]
+		),
+		[
+		 if test -z $withval ; then
+			 PATH_XSERVER_MAN_APP="$mandir/man1"
+		 else
+			 PATH_XSERVER_MAN_APP=$withval
+		 fi
+		],
+		[PATH_XSERVER_MAN_APP="$mandir/man1"]
+	)
+
+	AC_ARG_WITH(
+		[xserver-driver-man-dir],
+		AC_HELP_STRING(
+			[--with-xserver-driver-man-dir@<:@=DIR@:>@],
+			[Specify the path, where X driver-manpages should be installed. @<:@DIR=$mandir/man4@:>@]
+		),
+		[
+		 if test -z $withval ; then
+			 PATH_XSERVER_MAN_DRIVER="$mandir/man4"
+		 else
+			 PATH_XSERVER_MAN_DRIVER=$withval
+		 fi
+		],
+		[PATH_XSERVER_MAN_DRIVER="$mandir/man4"]
+	)
+
+	AC_ARG_WITH(
+		[xserver-file-man-dir],
+		AC_HELP_STRING(
+			[--with-xserver-file-man-dir@<:@=DIR@:>@],
+			[Specify the path, where X file-manpages should be installed. @<:@DIR=$mandir/man5@:>@]
+		),
+		[
+		 if test -z $withval ; then
+			 PATH_XSERVER_MAN_FILE="$mandir/man5"
+		 else
+			 PATH_XSERVER_MAN_FILE=$withval
+		 fi
+		],
+		[PATH_XSERVER_MAN_FILE="$mandir/man5"]
+	)
+
+	AC_MSG_CHECKING([for X-server application-manpages dir])
+	AC_MSG_RESULT([$PATH_XSERVER_MAN_APP])
+	AC_MSG_CHECKING([for X-server driver-manpages dir])
+	AC_MSG_RESULT([$PATH_XSERVER_MAN_DRIVER])
+	AC_MSG_CHECKING([for X-server file-manpages dir])
+	AC_MSG_RESULT([$PATH_XSERVER_MAN_FILE])
+
+	AC_SUBST([PATH_XSERVER_MAN_APP])
+	AC_SUBST([PATH_XSERVER_MAN_DRIVER])
+	AC_SUBST([PATH_XSERVER_MAN_FILE])
+]) # MP_PATH_XSERVER_MAN
+
+
+dnl @synopsis MP_PROG_XMLLINT
+dnl
+dnl @summary Determine if we can use the xmllint program
+dnl
+dnl This is a simple macro to define the location of xmllint (which can
+dnl be overridden by the user) and special options to use.
+dnl
+dnl @category InstalledPackages
+dnl @author Daniel Leidert <daniel.leidert@wgdd.de>
+dnl @version 2006-11-25
+dnl @license AllPermissive
+AC_DEFUN([MP_PROG_XMLLINT],[
+	AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+
+	AC_ARG_VAR(
+		[XMLLINT],
+		[The 'xmllint' binary with path. Use it to define or override the location of 'xmllint'.]
+	)
+	AC_PATH_PROG([XMLLINT], [xmllint])
+	if test -z $XMLLINT ; then
+		AC_MSG_ERROR(['xmllint' was not found. We cannot validate the XML sources.]) ;
+	else
+		AC_MSG_CHECKING([for xmllint >= 2.6.24])
+		m4_ifdef(
+			[PKG_CHECK_EXISTS],
+			[
+			 PKG_CHECK_EXISTS(
+				 [libxml-2.0 >= 2.6.24],
+				 [AC_MSG_RESULT([yes])],
+				 [
+				  AC_MSG_RESULT([no])
+				  AC_MSG_ERROR(['xmllint' too old. We cannot validate the XML sources.])
+				  XMLLINT=""
+				 ]
+			 )
+			],
+			[
+			 if $PKG_CONFIG libxml-2.0 --atleast-version=2.6.24; then
+				 AC_MSG_RESULT([yes])
+			 else
+				 AC_MSG_RESULT([no])
+				 AC_MSG_ERROR(['xmllint' too old. We cannot validate the XML sources.])
+				 XMLLINT=""
+			 fi
+			]
+		)
+	fi
+
+	AC_ARG_VAR(
+		[XMLLINT_FLAGS],
+		[More options, which should be used along with 'xmllint', like e.g. '--nonet'.]
+	)
+	AC_MSG_CHECKING([for optional xmllint options to use])
+	AC_MSG_RESULT([$XMLLINT_FLAGS])
+
+	AC_SUBST([XMLLINT])
+	AC_SUBST([XMLLINT_FLAGS])
+]) # MP_PROG_XMLLINT
+
+
+dnl @synopsis MP_PROG_XSLTPROC
+dnl
+dnl @summary Determine if we can use the xsltproc program
+dnl
+dnl This is a simple macro to define the location of xsltproc (which can
+dnl be overridden by the user) and special options to use.
+dnl
+dnl @category InstalledPackages
+dnl @author Daniel Leidert <daniel.leidert@wgdd.de>
+dnl @version 2006-11-25
+dnl @license AllPermissive
+AC_DEFUN([MP_PROG_XSLTPROC],[
+
+	AC_ARG_VAR(
+		[XSLTPROC],
+		[The 'xsltproc' binary with path. Use it to define or override the location of 'xsltproc'.]
+	)
+	AC_PATH_PROG([XSLTPROC], [xsltproc])
+	if test -z $XSLTPROC ; then
+		AC_MSG_ERROR(['xsltproc' was not found! We cannot proceed. See README.]) ;
+	fi
+
+	AC_ARG_VAR(
+		[XSLTPROC_FLAGS],
+		[More options, which should be used along with 'xsltproc', like e.g. '--nonet'.]
+	)
+	AC_MSG_CHECKING([for optional xsltproc options to use])
+	AC_MSG_RESULT([$XSLTPROC_FLAGS])
+
+	AC_SUBST([XSLTPROC])
+	AC_SUBST([XSLTPROC_FLAGS])
+]) # MP_PROG_XSLTPROC
+
+
+dnl @synopsis MP_PROG_MAN
+dnl
+dnl @summary Determine if we can use the man program
+dnl
+dnl This is a simple macro to define the location of man (which can
+dnl be overridden by the user).
+dnl
+dnl @category InstalledPackages
+dnl @author Daniel Leidert <daniel.leidert@wgdd.de>
+dnl @version 2006-11-25
+dnl @license AllPermissive
+AC_DEFUN([MP_PROG_MAN],[
+
+	AC_ARG_VAR(
+		[MAN],
+		[The 'man' binary with path. Use it to define or override the location of 'man'.]
+	)
+	AC_PATH_PROG([MAN], [man])
+	if test -z $MAN ; then
+		AC_MSG_ERROR(['man' was not found. We cannot check the manpages for errors. See README.]) ;
+	fi
+
+	AC_SUBST([MAN])
+]) # MP_PROG_MAN
--- fglrx-driver-8.47.3.orig/debian/man/AUTHORS
+++ fglrx-driver-8.47.3/debian/man/AUTHORS
@@ -0,0 +1,15 @@
+# Document  $WgDD: fglrx_man/AUTHORS,v 1.8 2006-04-14 14:52:01 dleidert Exp $
+# Summary   Authors of the fglrx_man project.
+
+Authors:
+
+  Daniel Leidert <daniel.leidert@wgdd.de>.
+  Flavio Stanchina <flavio@stanchina.net>.
+  Mathieu Malaterre <mathieu@malaterre.com>.
+
+Every manpage XML source contains a <authorgroup> or <author> section. Please
+refer to this section to determine the author of a special manpage or have a
+look at the AUTHOR(S) section in the final manpage.
+
+Contributions are mentioned in THANKS.
+
--- fglrx-driver-8.47.3.orig/debian/man/fglrx_man_entities.dtd.in
+++ fglrx-driver-8.47.3/debian/man/fglrx_man_entities.dtd.in
@@ -0,0 +1,19 @@
+<!--
+  Document  $WgDD: fglrx_man/fglrx_man_entities.dtd.in,v 1.5 2006-11-25 07:59:32 dleidert Exp $
+  Summary   Template to define several X-server and driver strings we need for
+            all manpages.
+-->
+
+	<!-- ATI driver variables -->
+	<!ENTITY dhproduct "@ATI_DRIVER_NAME@">
+	<!ENTITY dhversion "@ATI_DRIVER_VERSION@">
+	<!ENTITY dhpackage "@ATI_DRIVER_PACKAGE@">
+	
+	<!-- Xserver variables -->
+	<!ENTITY dhxserver       "@PROG_XSERVER_NAME@">
+	<!ENTITY dhxserverstring "@PROG_XSERVER_STRING@">
+	<!ENTITY dhxserverconf   "@PROG_XSERVER_CONF@">
+	<!ENTITY dhxserverconfig "@PROG_XSERVER_CONFIG@">
+
+	<!-- Distribution variables -->
+	<!ENTITY dhlicense "See the file <filename>@PACKAGE_LICENSE_FILE@</filename> for license and warranty information.">
--- fglrx-driver-8.47.3.orig/debian/man/INSTALL
+++ fglrx-driver-8.47.3/debian/man/INSTALL
@@ -0,0 +1,178 @@
+# Document  $WgDD: fglrx_man/INSTALL,v 1.7 2006-11-25 07:59:32 dleidert Exp $
+# Summary   Installation instructions for the fglrx_man project.
+
+
+Installation instructions
+=========================
+
+	1. Basic installation
+	2. Configure options
+	3. Configure variables
+
+
+1. Basic Installation
+---------------------
+
+The simplest way to compile this package is:
+
+  0. If the source directory does not contain the configure-script,
+     aclocal.m4 and several automake files, you must first run
+     `./autogen.sh'. If you want automake to copy the files
+     instead to link them, you can use the `-c|--copy' option. Use
+     `-h|--help' to get an overview about all possible options.
+
+  1. Run `./configure' with your preferred options. Type
+     `./configure --help' for an overview of the supported options.
+
+  2. Type `make' to compile the package and produce the package files.
+
+  3. Type `make install' to install the package files.
+
+  4. To remove installed files, run `make uninstall'.
+  
+  5. To clean the sources type `make clean'. Or if you also want to
+     remove the files produced by `configure' type `make distclean'.
+
+  6. To clean the whole source tree and also remove all files produced
+     by `autogen.sh' type `make maintainer-clean'.
+
+
+2. Configure options
+--------------------
+
+By default, `make install' will install the package's files in
+`/usr/local'. You can specify an installation prefix other than
+`/usr/local' by giving `configure' the option `--prefix=PATH'.
+
+  `-h'
+  `--help'
+     Print a summary of the options to 'configure', and exit.
+
+  `-V'
+  `--version'
+     Print the version of autoconf used to generate the 'configure'
+     script, and exit.
+
+  `--enable-build-checks'
+     Enable the checks in the check-local target of the Makefile. This
+     includes xmllint-checks of the XML sources and man-checks of the
+     resulting manpages. Using this option makes `xmllint' and `man' a
+     build-requirement! 
+
+  `--with-docbook-xsl-dir=DIR'
+     Specify the path to Norman Walsh's XSL stylesheet if it cannot be found
+     automatically (it is then set to an online resource).
+
+  `--with-xserver=STRING'
+     Specify for which X-server you want to build the manpages. STRING
+     can be 'Xorg' or 'XFree86'. This is only necessary if the configure
+     script cannot automatically determine the X-server.
+
+  `--with-xserver-app-man-dir=DIR'
+     The directory in which manpages for X-server applications are installed.
+     The default (which fits X.org 7) is $mandir/man1. So this options lets
+     you specify the path, where these manpages should be installed.
+
+  `--with-xserver-driver-man-dir=DIR'
+     The directory in which manpages for X-server drivers are installed.
+     The default (which fits X.org 7) is $mandir/man4. So this options lets
+     you specify the path, where these manpages should be installed.
+
+  `--with-xserver-file-man-dir=DIR'
+     The directory in which manpages for X-server files are installed.
+     The default (which fits X.org 7) is $mandir/man5. So this options lets
+     you specify the path, where these manpages should be installed.
+
+  `--cache-file=FILE'
+     Enable the cache: use and save the results of the tests in FILE,
+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     disable caching.
+
+  `--config-cache'
+  `-C'
+     Alias for `--cache-file=config.cache'.
+
+  `--quiet'
+  `--silent'
+  `-q'
+     Do not print messages saying which checks are being made. To
+     suppress all normal output, redirect it to `/dev/null' (any error
+     messages will still be shown). Only use it, if you are familar with
+     configure.
+
+  `--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options.  Run
+`configure --help' for more details.
+
+
+3. Configure variables
+----------------------
+
+There are also some variables, which can be defined dynamically (overwritten
+by the user). These variables are:
+
+  `DRIVER_PACKAGE'
+     The manpages are written for the Debian distribution but apply to other
+     distributions as well. Use this variable to overwrite the manpage header
+     and hit your distribution.
+
+  `LICENSE_FILE'
+     It is possible, that the license file may be found at a different place,
+     when you package the manpages for a distribution [1]. In this case, you
+     can use this variable to overwrite the default place, which is
+     `$datadir/doc/fglrx_man/COPYING'. This is _only_ to change the place, not
+     the license itself.
+     
+     [1] e.g. `/usr/share/doc/$package/copyright` in Debian or just `COPYING'
+         for my webpage distributions
+
+  `MAN'
+     You can use this variable to determine, where the `man' command can be
+     found. This variable MUST contain the full path. `man' is necssary for
+     checking the resulting manpages for format issues and only required by
+     the check target.
+
+  `XMLCATALOG'
+     You can use this variable to determine, where `xmlcatalog' can be found.
+     This variable MUST contain the full path. `xmlcatalog' is necessary for
+     trying to determine the docbook-xsl path via catalog system and only an
+     optional requirement.
+
+  `XML_CATALOG_FILE'
+     You can use this variable to determine, where the systems XML catalog
+     can be found. The default is `/etc/xml/catalog'. Thie catalog is
+     necessary for trying to determine the docbook-xsl path via catalog
+     system and here an requirement for this test, but not for the build
+     process.
+
+  `XMLLINT'
+     You can use this variable to determine, where `xmllint' can be found.
+     This variable MUST contain the full path. `xmllint' is necessary for
+     checking the XML sources and only required by the check target.
+
+  `XMLLINT_FLAGS'
+     Use this variable to specify special options to use for `xmllint'. Be
+     aware that the `--noout' option is used by default. But maybe you want to
+     add the `--nonet' option to the list of options.
+
+  `XSLTPROC'
+     You can use this variable to determine, where `xsltproc' can be found.
+     This variable MUST contain the full path. `xsltproc' is necessary to
+     process the XML sources into manpages and HTML sites and it's a basic
+     requirement.
+
+  `XSLTPROC_FLAGS'
+     Use this variable to specify special options to use for `xsltproc'. Maybe
+     you want to add the `--nonet' option to the list of options.
+
+
+If you do not define them in a site shell script, you need to pass them to
+`configure'. In order to avoid loosing the customized values of these variables,
+you should set them in the `configure' command line, using `VAR=value'.
+For example:
+
+  XMLLINT="/home/user/xmllint" ./configure
+
--- fglrx-driver-8.47.3.orig/debian/man/fglrxinfo.1x.xml
+++ fglrx-driver-8.47.3/debian/man/fglrxinfo.1x.xml
@@ -0,0 +1,208 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/fglrxinfo.1x.xml,v 1.26 2006-11-25 07:59:32 dleidert Exp $
+  Summary   Manpage for the fglrxinfo application.
+
+  Copyright (C) 2005-2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "fglrxinfo">
+	<!ENTITY dhucname  "FGLRXINFO">
+	<!ENTITY dhsection "1x">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+
+]>
+
+<refentry id="fglrxinfo_1x" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2006-11-25 07:59:32 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+		</authorgroup>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>display info about a GLX extension and OpenGL renderer</refpurpose>
+	</refnamediv>
+	<refsynopsisdiv id="synopsis">
+		<cmdsynopsis>
+			<command>&dhname;</command>
+			<group choice="opt">
+				<arg choice="plain"><option>-x</option></arg>
+				<arg choice="plain"><option>-n</option></arg>
+				<arg choice="plain"><option>-t</option></arg>
+				<arg choice="plain"><option>-v</option></arg>
+				<arg choice="plain"><option>-o</option></arg>
+			</group>
+			<arg choice="opt"><option>-display <replaceable class="option">display</replaceable></option></arg>
+		</cmdsynopsis>
+		<cmdsynopsis>
+			<command>&dhname;</command>
+			<group choice="opt">
+				<arg choice="plain"><option>-h</option></arg>
+				<arg choice="plain"><option>--help</option></arg>
+			</group>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para><command>&dhname;</command> is a tool similar to <citerefentry>
+				<refentrytitle>glxinfo</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry>. It lists information about the GLX extension, OpenGL
+			capable visuals, and the OpenGL renderer on an X server. The GLX and
+			renderer info includes the version and extension attributes. The visual
+			info lists the GLX visual attributes available for each OpenGL capable
+			visual (e.g. whether the visual is double buffered, the component sizes,
+			Z-buffering depth, etc).
+		</para>
+	</refsect1>
+	<refsect1 id="options">
+		<title>OPTIONS</title>
+		<para>Without an option, <command>&dhname;</command> prints a brief adapter
+			info. To get a more verbose output, you should make use of the following
+			command line options:
+		</para>
+		<variablelist>
+			<varlistentry>
+				<term><option>-x</option></term>
+				<listitem>
+					<para>Print information about lib strings with extensions.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-n</option></term>
+				<listitem>
+					<para>Print normal information.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-t</option></term>
+				<listitem>
+					<para>Print wide table. By default the visual info is presented in a concise
+						80 character wide tabular format. Use this option to produce a wider,
+						more readable tabular format for the visual list.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-v</option></term>
+				<listitem>
+					<para>Generate a verbose format output style for the visual list.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-o</option></term>
+				<listitem>
+					<para>Print information on overlays.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-display</option> <replaceable>display</replaceable></term>
+				<listitem>
+					<para>Specify the display to query. Use the <envar>DISPLAY</envar> environment variable
+						to get the default host, display number and screen.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-h</option></term>
+				<term><option>--help</option></term>
+				<listitem>
+					<para>Print a short summary of options and their usage.</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="environment">
+		<title>ENVIRONMENT</title>
+		<variablelist>
+			<varlistentry>
+				<term><envar>DISPLAY</envar></term>
+				<listitem>
+					<para>To get the default host, display number and screen.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><envar>LIBGL_DEBUG</envar></term>
+				<listitem>
+					<para>Set this variable to <parameter>verbose</parameter> to print more
+						diagnostic messages, e.g. if the <acronym>DRI</acronym> driver fails to
+						load. This could be useful if you observe problems with your 3D
+						acceleration. Any error message printed should be (hopefully)
+						self-explanatory.
+					</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="bugs">
+		<title>BUGS</title>
+		<para>Report any issues with the <command>&dhname;</command> program
+			to <ulink url="http://support.ati.com"/>.
+		</para>
+		<para>We currently know these bugs:
+			<itemizedlist>
+				<listitem>
+					<para><command>&dhname;</command> identifies itself as <quote>fireglinfo</quote>.</para>
+				</listitem>
+			</itemizedlist>
+		</para>
+	</refsect1>
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<para><citerefentry>
+				<refentrytitle>glxinfo</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/man/ChangeLog
+++ fglrx-driver-8.47.3/debian/man/ChangeLog
@@ -0,0 +1,1874 @@
+# Document  $WgDD: fglrx_man/ChangeLog,v 1.143 2007-06-26 11:58:22 dleidert Exp $
+# Summary   File changelog for fglrx_man project.
+
+2007-06-26 Daniel Leidert <daniel.leidert@wgdd.de>
+
+	* fglrx_man_history.xml: Fixed invalid syntax. Thanks to Romain
+	Beauxis for reporting.
+
+2007-06-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* COPYING:
+	* README:
+	* Makefile.am:
+	* configure.ac:
+	* aticonfig.1x.xml:
+	* fgl_glxgears.1x.xml:
+	* fglrx.4x.xml:
+	* fglrx_html.xsl:
+	* fglrx_man.xsl: Updated copyright.
+
+	* Makefile.am: Added some comment for implementing spell checks.
+
+	* autogen.sh:
+	* Makefile.am (AUTOMAKE_OPTIONS): Added option to require automake 1.7
+	or newer. So the additional test in autogen.sh could be dropped.
+
+	* aticonfig.1x.xml (OPTIONS, BUGS): Fixed several typos and markup.
+	(BUGS): Updated. Removed fixed bugs and added newly detected ones.
+
+	* configure.ac (AC_INIT): Updated to new version 8.32.5 (I know, 8.36
+	is new, this is just the last commit).
+
+	* fgl_glxgears.1x.xml (DIAGNOSTICS): Added more error descriptions.
+	Improved the 'Error: couldn't get fbconfig' description.
+
+	* fglrx.4x.xml (SUPPORTED HARDWARE): Removed the no longer supported
+	chipsets.
+	(OPTIONS): Added some more (documented and undocumented) options
+	AGP8XDisableFix, ASICClock, BackingStore, BusType, CapabilitiesEx,
+	Dac6Bit, DefaultVisualTrueColor, DisableOvScaler<, DRM_bufsize,
+	DRM_nbufs, EnableLogo, EnableMonitor, EnableOpaqueOverlayVisual and
+	SilkenMouse options. Fixed the TVOverscan options default value.
+	Replaced all '...' with 'Needs to be documented.' phrases. Fixed typos
+	in TVHPosAdj and TVVPosAdj options. Removed obsolete EnablePageFlip
+	option.
+	(DIAGNOSTICS): Fixed typos and improved markup. Added the AIGLX
+	related error description.
+	(BUGS): Improved markup and fixed release notes location.
+
+	* fglrx_html.xsl (variablelist.term.break.after)
+	(variablelist.term.separator): Improved xpath expression.
+	(refentryinfo[mode=authorsect]): Replaced tags output via CDTATA
+	section by normal tags.
+
+	* fglrx_man.xsl (variablelist.term.break.after)
+	(variablelist.term.separator): Improved xpath expression.
+
+	* fglrx_man_history.xml: Added a new entry for the 8.32.5 release.
+
+	* BUGS.8.32.5: Added. Contains a summary of the bugs observed with
+	these tools.
+
+2006-12-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (MP_PATH_DOCBOOK_XSL): Fixed a small typo.
+
+2006-12-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man_history.xml: Fixed missing anchors. Thanks to Flavio
+	Stanchina.
+
+2006-12-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man_history.xml (revision_8_28_8): Fixed URL. Thanks to Flavio
+	Stanchina.
+
+2006-11-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4: Added "coded" brackets for default values. Replaced
+	all `echo' calls with `AC_MSG_*' macros. Set strings into double
+	quotation marks.
+	(MP_PATH_DOCBOOK_XSL): Added `xmlcatalog' based check for XSL
+	directory. Added general system paths to list of possible installation
+	directories.
+	(MP_PROG_XSERVER, MP_PATH_XSERVER_MAN): Fixed macro description. Fixed
+	`AC_HELP_STRING' macro usage.
+	(MP_PROG_XMLLINT, MP_PROG_XSLTPROC, MP_PROG_MAN): Fixed line
+	formatting. Make `xmllint' and `man' necessary applications according
+	to the newly introduced `--enable-build-checks' configure option.
+
+	* autogen.sh: Complete rewrite with many improvements.
+
+	* CHIPLIST: Added many newly supported chipsets and reorganized them
+	in some kind of structure.
+
+	* COPYING: Changed to MIT License.
+
+	* INSTALL: Added newly introduced `--enable-build-checks' configure
+	option description. Added newly introduced `LICENSE_FILE',
+	`XMLCATALOG', `XML_CATALOG_FILE' configure variable description.
+	Improved explanations and formatting.
+
+	* NEWS: Removed. Only created for distributed tarball.
+
+	* README: Adjusted to inform about new requirement situation. Removed
+	obsolete docbook-xsl Debian-hint.
+
+	* TODO: Removed items related to `fglrxconfig'. Removed item related
+	to fglrx_man_history.xml (done!). Added some new items.
+
+	* configure.ac: Fixed brackets usage in configure options/variables.
+	Added `--enable-build-checks' configure option. Added `LICENSE_FILE'
+	configure variable. Replaced all `echo' with their equivalent
+	`AC_MSG_*' macros. 
+	(AC_PACKAGE_VERSION): Bump to 8.28.8.
+
+	* fglrx_html.xsl: Removed comments and empty lines. Fixed output
+	(changed to HTML 4.01 Transitional).
+	(html.stylesheet): Implemented solution depending on the processed
+	document, so that the revision history table does not have a
+	stylesheet.
+	(index.on.type, make.single.year.ranges, variablelist.as.table):
+	Added.
+	(variablelist.term.break.after, variablelist.term.separator):
+	Improved.
+
+	* fglrx_man.xsl: Removed comments and empty lines.
+	(make.single.year.ranges, make.year.ranges, man.charmap.use.subset):
+	Added.
+	(variablelist.term.break.after, variablelist.term.separator):
+	Improved.
+	(caution/para|important/para|note/para|tip/para|warning/para)
+	(caution|important|note|tip|warning): Removed template.
+	(command|application|package): Reduced template to match only
+	`application|package'. Improved to fit upstream code.
+
+	* fglrx_man_entities.dtd.in (dhlicense): Added new entity `dhlicense',
+	that holds just a paragraph, where to find the license. So we don't
+	need to put the whole license into the manpage.
+
+	* fireglcontrol.1.xml: Changed license statement. Removed revision
+	history as part of the document. Changed source formatting. Small
+	markup fix (<edition> becomes <releaseinfo role="version">).
+	(legalnotice): Replaced with dhlicense entity.
+
+	* aticonfig.1x.xml: Changed license statement. Removed revision
+	history as part of the document. Changed source formatting. Small
+	markup fix (<edition> becomes <releaseinfo role="version">). Added
+	id-attributes to all <varlistentry>-elements to allow xref-linking.
+	Fixed admonition tags usage, so my custom templates can be dropped.
+	Fixed several typos. Fixed several markup issues.
+	(legalnotice): Replaced with dhlicense entity.
+	(copyright): Small markup fix. Splitted into two entries.
+	(OPTIONS): Added some section descriptions. Added descripton for the
+	new `--add-pairmode', `--enable-monitor', `--list-pairmode',
+	`--locked-userpages', `--max-gart-size', `--nobackup',
+	`--query-monitor', `--remove-pairmode', `--set-policy',
+	`--swap-monitor', `--tv-geometry', `--tv-info' and `-tv-overscan'
+	options. Improved and updated description for the `--initial', `--tvf'
+	and `-o' options. Removed obsolete `--agpl, --agp-locked-userpages',
+	`--dw,--disable-workstation` and `--iagp, --internal-agp' options.
+	(EXAMPLES): Added an example for setting the TV geometry.
+	(BUGS): Updated. Found new bugs. Other were fixed. See NEWS.
+	(SEE ALSO): Added reference to atievenetsd(8).
+
+	* fgl_glxgears.1x.xml: Changed license statement. Removed revision
+	history as part of the document. Changed source formatting. Small
+	markup fix (<edition> becomes <releaseinfo role="version">).
+	(legalnotice): Replaced with dhlicense entity.
+	(SYNOPSIS, OPTIONS): Fixed manpages format issues - replaceable values
+	should be lower-case too.
+	(DIAGNOSTICS): Fixed minor markup issues.
+
+	* fglrxinfo.1x.xml: Changed license statement. Removed revision
+	history as part of the document. Changed source formatting. Small
+	markup fix (<edition> becomes <releaseinfo role="version">).
+	(legalnotice): Replaced with dhlicense entity.
+	(SYNOPSIS, OPTIONS): Fixed manpages format issues - replaceable values
+	should be lower-case too.
+	(ENVIRONMENT, BUGS): Fixed minor markup issues.
+
+	* fglrx_xgamma.1x.xml: Changed license statement. Removed revision
+	history as part of the document. Changed source formatting. Small
+	markup fix (<edition> becomes <releaseinfo role="version">).
+	(legalnotice): Replaced with dhlicense entity.
+	(SYNOPSIS, OPTIONS): Fixed manpages format issues - replaceable values
+	should be lower-case too.
+
+	* fglrx.4x.xml: Changed license statement. Removed revision history as
+	part of the document. Changed source formatting. Small markup fix
+	(<edition> becomes <releaseinfo role="version">). Several trademark
+	fixes. Fixed admonition tags usage, so my custom templates can be
+	dropped. Fixed several typos.
+	(legalnotice): Replaced with dhlicense entity.
+	(authorgroup): Small markup fix.
+	(copyright): Ditto. Splitted into two entries.
+	(SUPPORTED HARDWARE): Reorganized, structured and completed.
+	(CONFIGURATION DETAILS): Added ATI vendor-ID list. Added new
+	information about cards, that do not support the "Mirror Mode". Fixed
+	option value order for `ForceMonitors' and `TVFormat'. Added
+	information to `TVHPosAdj', `TVVPosAdj', `TVHSizeAdj' and `TVVSizeAdj'
+	option descriptions. Introduced new `MaxGARTSize' and `TVOverscan'
+	option descriptions.
+
+	* fglrxrc.5x.xml: Changed license statement. Removed revision history
+	as part of the document. Changed source formatting. Small markup fix
+	(<edition> becomes <releaseinfo role="version">).
+	(legalnotice): Replaced with dhlicense entity.
+	(FILES): Added information about related configuration files.
+
+	* Makefile.am (EXTRA_DIST): Added CHIPLIST and NEWS.html.
+	(CLEANFILES): Replaced fglrxhtml_DATA with it's equivalent.
+	(MAINTAINERCLEANFILES): Added NEWS and NEWS.html.
+	(DISTCHECK_CONFIGURE_FLAGS): Added `--enable-build-checks' configure
+	option.
+	(fglrxhtmldir, fglrxhtml_DATA, fglrxcssdir, fglrxcss_DATA)
+	(fglrxdocsdir, fglrxdocs_DATA): Replaced fglrxhtml{dir,_DATA} and
+	fglrxcss{dir,_DATA} with fglrxdoc{dir,_DATA}.
+	(NEWS.html, NEWS): Added new rules for the `NEWS' and `NEWS.html'
+	targets.
+	(check-local): Replaced obsolete `HAVE_*' conditonals with the new
+	`ENABLE_BUILD_CHECKS' conditional. Merged check commands.
+
+	* fglrx_man_history.xml (revision_8_28_8): Updated the information for
+	the 8.28.8 release (I hope, I didn't forget anything). Ready for Etch
+	I hope (more information is still welcome).
+
+2006-05-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Use the online resource
+	(mapped to the local docbook-xsl installation).
+
+2006-05-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (MP_PATH_DOCBOOK_DTD): Removed macro. This is handled
+	via catalog locally, so we don't need it.
+
+	* configure.ac: Ditto.
+
+	* Makefile.am: Ditto. Removed --dtdvalid option.
+
+	* INSTALL: Ditto. Removed reference to --with-docbook-dtd-dir=DIR.
+
+	* README: Fixed. After release 1.70.0 of docbook-xsl we do not longer
+	need the snapshots. Added version information for packages, where this
+	is necessary.
+
+2006-05-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Now we can use the latest
+	docbook-xsl release 1.70.0 from the local installation.
+
+	* fglrx.4x.xml: one cosmetic fix. Added explanation for
+	EnablePageFlip. Fixed an invalidity in the XML source. Removed
+	obsolete MonitorLayout option.
+
+2006-05-06 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO: Added one more nice source of information.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added information for
+	EnablePageFlip, IgnoreEDID, no_accel, no_dri and NoDDC option. Fixed a
+	few markup issues for mtrr option.
+
+2006-05-06 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (EXTRA_DIST, fglrx_man1, fglrx_man1x, fglrx_man4x)
+	(fglrx_man5x, fglrx_man_src): Removed obsolete variables and added the
+	general src-varaible.
+	(MAINTAINERCLEANFILES): Added archives created by 'dist' target.
+	(XMLLINT_FLAGS, XSLTPROC_FLAGS): Small code change.
+	(fglrxman1_DATA, fglrxman1x_DATA, fglrxman4x_DATA, fglrxman5x_DATA)
+	(fglrxhtml_DATA): Express all these variables just using the general
+	src-variable.
+	(check-local): Fixed man and xmllint usage.
+
+	* README: Mention the new requirement after changing the
+	MP_PROG_XMLLINT macro.
+
+	* acinclude.m4 (MP_PROG_XMLLINT): Added one more check to make sure,
+	the xmllint-version we use does not contain the valid-bug, I reported
+	months ago to libxml2's upstream.
+
+2006-04-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.css (h2): Added fix to transform text to uppercase
+	letters.
+
+2006-04-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* CHIPLIST: Added chipsets newly supported by driver version 8.24.8.
+
+	* acinclude.m4 (MP_PATH_XSERVER_MAN): Changed default locations and
+	location suffixes.
+
+	* configure.ac: VERSION bump. Removed possibility to customize
+	DRIVER_VERSION.
+
+	* INSTALL (DRIVER_VERSION): Removed after removing the appropriate
+	part of configure.ac.
+	(--with-xserver-app-man-dir, --with-xserver-driver-man-dir): Fixed
+	after changing the defaults of the MP_PATH_XSERVER_MAN macro in
+	acinclude.m4.
+	(--with-xserver-file-man-dir): Added missing documentation.
+
+	* Makefile.am (fglrx_man1x): Removed fglrx_pplay.1x.xml and
+	fglrxconfig.1x.xml from this list completely.
+
+	* NEWS (8.24.8): News update.
+
+	* fglrx_man_history.xml (8.24.8): Ditto.
+
+	* README: Added short command to get docbook-xsl-snapshot.zip.
+
+	* fgl_glxgears.1x.xml (refentryinfo): Commented out copyright and
+	legalnotice elements. Fixed usage of meta-information elements.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fglrxrc.5x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+	* aticonfig.1x.xml (refentryinfo): Ditto.
+	(SEE ALSO): Removed fglrxconfig(1x) reference.
+
+	* fglrx.4x.xml (refentryinfo): Ditto.
+	(refnamediv): Fixed short description.
+	(refentryinfo, CONFIGURATION DETAILS): Fixed XML bugs.
+	(SUPPORTED HARDWARE): Added chipsets newly supported by driver version
+	8.24.8. Added information for chipsets, where only 2D is supported.
+	(CONFIGURATION DETAILS): Added missing information for the
+	DesktopSetup option.
+	(SEE ALSO): Ditto.
+
+	* fglrx_pplay.1x.xml: Removed (obsolete since 8.20.8).
+
+	* fglrxconfig.1x.xml: Removed (obsolete since 8.24.8).
+
+	* fglrx_man.xsl (man.base.dir, man.subdirs.enabled): Added parameters
+	to suppress output of manpages into './man/man$section/'.
+
+	* fglrx_man_entities.dtd.in: Added just a bit of information.
+
+2006-04-14 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Moved contributors to THANKS.
+
+	* THANKS: Initially added. Contributors were moved from AUTHORS to
+	this file.
+
+2006-04-10 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Update authors information.
+
+	* aticonfig.1x.xml (authorgroup/author/othercredit): Ditto.
+
+	* fglrx_xgamma.1x.xml (authorgroup/author/othercredit): Ditto.
+
+	* fglrxconfig.1x.xml (authorgroup/author/othercredit): Ditto.
+
+	* fglrx.4x.xml (authorgroup/author/othercredit): Ditto.
+	(CONFIGURATION DETAILS): Fixed alphabetical order of options (moved
+	SWCursor to the right place).
+
+	* fglrx_man.xsl (refentryinfo, author|editor|othercredit, contrib)
+	(personblurb|authorblurb): Removed customized AUTHOR(S) template,
+	which is better handled via docbook-xsl (snapshots).
+
+2006-04-09 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS, BUGS): Fixed information about piping
+	from/to stdin/stdout (see
+	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=360822). Thanks to
+	Matthijs Kooijman.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added information about
+	SWCursor option (see
+	http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=360819). Thanks to
+	Matthijs Kooijman.
+
+	* fgl_glxgears.1x.xml (OPTIONS): Markup fix.
+
+2006-03-24 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO: Added some bits regarding the driver history.
+
+	* fglrx.4x.xml (DESCRIPTION): Rephrased.
+
+2006-03-24 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* CHIPLIST: Added (for a better overview of supported chipsets).
+
+2006-03-24 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO: Added some more bits.
+
+	* fglrx.4x.xml (SUPPORTED HARDWARE): Small order fix. Synchronised
+	list with latest driver.
+	(CONFIGURATION DETAILS): Typo fix. Minor infomation change for pci.ids
+	file.
+
+2006-03-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO: Added some stuff regarding fglrxrc(.5x.xml).
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Typo-fix.
+
+	* fglrx_man.xsl (refentry.manual.profile.enabled)
+	(refentry.manual.profile): Readded manpage title.
+	(caution/para|important/para|note/para|tip/para|warning/para): Fixed a
+	buggy output code.
+
+	* fglrxrc.5x.xml (DESCRIPTION, FORMAT): Added more content based on
+	the information found at
+	http://dri.freedesktop.org/wiki/ConfigurationInfrastructure.
+	(EXAMPLES): Added a sample.
+	(SEE ALSO): Added reference to xdriinfo.
+
+2006-03-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrxrc.5x.xml: Added initially (manpage about the configuration
+	file).
+
+	* Makefile.am (EXTRA_DIST, CLEANFILES, fglrx_man5x, fglrxman5xdir)
+	(fglrxman5x_DATA, fglrxhtml_DATA, check-local): Added
+	fglrxrc.5x{.html|xml}.
+
+	* acinclude.m4 (MP_PATH_XSERVER_MAN): Added capability to get the
+	directory to install file-manpages (PATH_XSERVER_MAN_FILE).
+
+	* fglrx.4x.xml (NAME): Removed markup.
+
+	* fglrx_man.xsl (variablelist.term.break.after)
+	(variablelist.term.separator): Changed to easier XPath expression.
+	(tag|sgmltag): Added capabilities to handle the tag/sgmltag element.
+
+2006-03-16 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (check-local): Tightening man check.
+
+	* aticonfig.1x.xml: Added IDs to every (sub-)section.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+	(refnamediv): Changes driver description back.
+
+	* fgl_glxgears.1x: Ditto. Further markup changes.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+	(DESCRIPTION): Added a note regarding the disadvantage of using this
+	tool and a note about aticonfig.
+
+	* fglrx_man.css: Added a possible idea for a better styling.
+
+2006-03-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (BUGS): Fixed a markup issue.
+
+	* Makefile.am (EXTRA_DIST, fglrxcssdir, fglrxcss_DATA): Added handling
+	and installation of the CSS stylesheet added yesterday.
+
+2006-03-14 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_html.xsl (refentryinfo): Fixed to output a valuable AUTHOR(S)
+	section.
+
+2006-03-14 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Fixed 'make distcheck'
+	target by changing the path to the XSL stylesheets to an online
+	resource.
+
+	* acinclude.m4 (MP_PATH_DOCBOOK_XSL): Only return the basic directory
+	of N. Walsh's stylesheets.
+
+	* fglrx_html_stylesheet.xsl.in: Ditto.
+	(admon.graphics.path): Ditto.
+
+	* fglrx_man_stylesheet.xsl.in: Ditto.
+
+	* fglrx_html.xsl: Fixed comments (apply to docbook-xsl doc).
+	(admon.style, html.stylesheet): Adding fglrx_man.css stylesheet info.
+	(variablelist.term.break.after, variablelist.term.separator): Fixed
+	output of variablelist elements. Value depends on processed document.
+
+	* fglrx_man.xsl: Ditto.
+	(variablelist.term.break.after, variablelist.term.separator): Ditto.
+
+	* aticonfig.1x.xml (OPTIONS): Markup fixes.
+
+	* fgl_glxgears.1x.xml (DIAGNOSTICS): Ditto.
+
+	* fglrx.4x.xml (refnamediv, DESCRIPTION, SUPPORTED HARDWARE)
+	(CONFIGURATION DETAILS, DIAGNOSTICS): Ditto.
+
+	* fglrx_xgamma.1x.xml (OPTIONS): Ditto.
+
+	* fglrx_man.css: Initially added.
+
+2006-03-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS, BUGS): Fixed markup issues.
+
+	* fgl_glxgears.1x.xml (DIAGNOSTICS): Ditto.
+
+	* fglrx_xgamma.1x.xml (OPTIONS): Ditto.
+
+	* fglrxinfo.1x.xml (OPTIONS): Ditto.
+
+	* fglrx.4x.xml (SUPPORTED HARDWARE, CONFIGURATION DETAILS)
+	(DIAGNOSTICS): Ditto. Removed a typo.
+
+	* fglrx_pplay.1x.xml (refsynopsisdiv, OPTIONS): Changed variable
+	parameters to uppercase letters.
+	(DESCRIPTION): Added info, when it became obsolete.
+
+	* fglrx_man.xsl (variablelist.term.break.after): Changed to not break
+	after a term element. This is because we changed to use \n(ewline) for
+	using several lines in one term.
+	(refentryinfo): Removed a typo.
+
+2006-03-12 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fixed summary.
+
+	* README: Fixed typo.
+
+	* fglrx_html_stylesheet.xsl.in: Ditto.
+
+	* TODO: Ditto. Added URL for the manpage improvements suggested by
+	docbook-xsl upstream.
+
+2006-03-12 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Fixed a typo.
+
+	* README: Added info about XSL snapshots.
+
+	* acinclude.m4 (MP_PATH_DOCBOOK_XSL): The macro changed to search for
+	the basic directory of the XSL stylesheets, which can be specified by
+	the user using the --with-docbook-xsl-dir option. It now outputs the
+	basic directory, the HTML and manpage stylesheets. Also fixed the
+	macro description.
+	(MP_PATH_DOCBOOK_DTD, MP_PROG_XSERVER): Changed test(1) syntax.
+
+	* INSTALL (--with-docbook-xsl-dir): Fixed description of the changed
+	--with-docbook-xsl-dir option.
+
+	* NEWS: Added info about new release 8.23.7 of ATI's linux drivers.
+
+	* fglrx_man_history.xml (revision_8_23_7): Ditto.
+
+	* fglrx_html.xsl: Added HTML stylesheet.
+
+	* fglrx_html_stylesheet.xsl.in: Ditto.
+
+	* configure.ac: Added check for datadir.
+	(AC_PACKAGE_VERSION): Update to latest 8.23.7 release.
+	(AC_CONFIG_FILES): Added HTML stylesheet.
+
+	* Makefile.am (EXTRA_DIST, DISTCLEANFILES): Added files necessary to
+	produce HTML output.
+	(fglrxhtmldir, fglrxhtml_DATA): Produce manpages in HTML format.
+	(fglrxman1*, fglrxman1x*, fglrxman4x, CLEANFILES, check-local): Minor
+	rename for a cleaner naming scheme.
+	(DISTCHECK_CONFIGURE_FLAGS): Added default XSL stylesheet dir for
+	'make distcheck'.
+
+	* aticonfig.1x.xml: Added 'lang' and 'id' attributes to root element.
+	(DESCRIPTION): Added missing citerefentry element to refer to the
+	related manpages.
+
+	* fgl_glxgears.1x.xml: Ditto.
+	(DESCRIPTION): Minor order change.
+
+	* fglrx.4x.xml: Ditto.
+	(refnamediv, DESCRIPTION, SUPPORTED HARDWARE, CONFIGURATION DETAILS)
+	(DIAGNOSTICS): Markup fixes (hardware -> productname) where necessary.
+	(CONFIGURATION DETAILS, DIAGNOSTICS): Commented out all title elements
+	of segmentedlist. Moving the ID's of varnames back to option to create
+	the link at the beginning of an option. To avoid re-raising issues
+	with 'xref to option', we now use the link element, where option is a
+	valid children.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+	(DESCRIPTION): Added missing citerefentry element to refer to the
+	related manpages.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+	* fglrx_man.xsl: Changed for better reading. Removed stuff now handled
+	by the latest snapshots XSL stylesheets.
+	(man.charmap.enabled, man.hyphenate.urls, man.hyphenate.filenames)
+	(man.hyphenate.computer.inlines, man.segtitle.suppress)
+	(variablelist.term.break.after, variablelist.term.separator): Added
+	parameters available via the latest XSL snapshots.
+	(refentryinfo, author, editor, othercreadit, personblurb, authorblurb)
+	(contrib): Fixed my custom template to fit the latest snapshot
+	stylesheets.
+
+	* fglrx_man_stylesheet.xsl.in: Ditto.
+
+2006-03-08 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl (xref): Removed leading space for option
+	cross-references.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Removed the leading space for
+	"Option ..." terms. Fixed a few optical "issues". Added information
+	for Capabilities, KernelModuleParm (added comments) and changed
+	DesktopSetup.
+	(DIAGNOSTICS): Added one more warning regarding Xinerama and disabled
+	direct rendering. Fixed the "No matching device section ..." warning.
+
+2006-03-08 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (refpurpose): Fixed missing markup.
+	(CONFIGURATION DETAILS): For mentioned applications and commands refer
+	to their manpage. Added information for the AGPMask and AGPv3Mask
+	options (info was taken from rage3d.com).
+	(DIAGNOSTICS): For mentioned applications and commands refer to their
+	manpage.
+
+2006-02-21 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4: Change macro names (follows autoconf documentation).
+	Adjust variable names. Added MP_PROG_MAN to determine man binary.
+
+	* Makefile.am: Ditto.
+
+	* fglrx_man_entities.dtd.in: Ditto.
+
+	* fglrx_man_stylesheet.xsl.in: Ditto.
+
+	* INSTALL: Ditto.
+
+	* README: Ditto.
+
+	* configure.ac: Ditto. Small clean-up.
+
+2006-02-21 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (CLEANFILES, check-local): Small reordering.
+
+2006-02-21 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (BUGS): Fixed 'can't find numbered character'
+	warning thrown by man.
+
+	* Makefile.am (check-local): Added an lintian-like
+	"manpage-has-errors-from-man" check.
+
+2006-02-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (refsynopsisdiv, EXAMPLES): Markup fixes.
+	(DESCRIPTION): Added a missing reference.
+
+	* fgl_glxgears.1x.xml (refsynopsisdiv): Markup fixes.
+	(refsynopsisdiv, OPTIONS): Style fixes.
+	(DESCRIPTION): Added a missing reference.
+
+	* fglrx_xgamma.1x.xml (refsynopsisdiv): Markup fixes. Further fixed an
+	issue with {r,g,b}gamma options.
+	(refsynopsisdiv, OPTIONS): Style fixes.
+	(OPTIONS): Improved -gamma option description.
+
+	* fglrxinfo.1x.xml (refsynopsisdiv): Markup fixes.
+	(refsynopsisdiv, OPTIONS): Style fixes.
+	(DESCRIPTION): Added a missing reference.
+
+2006-02-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am: Minor reordering.
+
+	* configure.ac: Fixed prefix=NONE.
+
+2006-02-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* autogen.sh (autogen_help): Fixed help message.
+	(autogen_copy, autogen_copy_if_missing): Fixed condition for the
+	manual run.
+	(autogen_link, autogen_link_if_missing): Ditto.
+
+2006-02-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (VPATH, XMLLINT_FLAGS, XSLTPROC_FLAGS): Better style.
+	Extending VPATH instead of defining it. Thanks to Daniel Veillard for
+	pointing out the right usage of the --path option with space separated
+	path lists.
+
+2006-02-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (fglrx_man1x): Fixed comment usage. Seems, that automake
+	1.7 ignores the line completely, which we cannot accept. Define the
+	XSLTPROC_FLAGS earlier.
+
+2006-02-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* NEWS: Added a new release entry for driver release 8.22.5.
+
+2006-02-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* COPYING: Remove the all-permissive license stuff.
+
+	* Makefile.am: Changed license.
+
+	* autogen.sh: Changed license.
+
+	* fglrx_man.xsl: Changed license.
+
+	* fglrx_man_stylesheet.xsl.in: Changed license.
+
+	* configure.ac: Fixed copyright.
+
+2006-02-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* autogen.sh (autogen_copy_if_missing, autogen_link_if_missing): Fixed
+	an issue with automake-1.9.
+
+	* acinclude.m4 (AC_PROG_XMLLINT): If xmllint exists, make this info
+	available via a conditional HAVE_XMLLINT. Further fixed a bug
+	exporting XMLLINT_FLAGS.
+
+	* configure.ac: Small clean-up. Remove obsolete stuff.
+	(__XMLLINT__, __XMLLINT_FLAGS__, __XSLTPROC__, __XSLTPROC_FLAGS__):
+	Use the variables derived from AC_PROG_XMLLINT and AC_PROG_XSLTPROC.
+
+	* Makefile.am (fglrx_man1x): Fixed comment for fglrx_pplay.1.xml.
+	(fglrxappman_DATA, fglrxdriverman_DATA, fglrxguiman_DATA): Be more
+	informative using styled output.
+	(check-local): Ditto. Further make use of the HAVE_XMLLINT
+	conditional. Define the XMLLINT_FLAGS earlier.
+
+2006-02-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (EXTRA_DIST): Cleaned. Removed all files automatically
+	put into the distribution.
+
+2006-02-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS): Fixed a format issue.
+
+	* fglrxinfo.1x.xml (BUGS): Ditto.
+
+2006-02-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (EXTRA_DIST): Fixed to also copy fglrx_man_history.xml.
+	(VPATH): Both srcdir and builddir should be in VPATH.
+	(fglrx_man1, fglrx_man1x, fglrx_man4x): When create manpages, specify
+	the path, where to find DTDs, stylesheets, .... Further make the
+	implicit rule a bit easier. Fixes 'make distcheck' target.
+	(check-local): Ditto (still a problem, see Debian bug #352634. Further
+	move all static options we need from configure.ac to this file and fix
+	the sequence of options.
+
+	* configure.ac (__XMLLINT_FLAGS__): Moved all static options to
+	Makefile.am. See above.
+
+2006-02-12 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_DOCBOOK_XSL_MAN_DIR, AM_DOCBOOK_DTD_44_DIR)
+	(AM_XSERVER_PARAMS, AM_XSERVER_MAN_DIR): Fixed AC_HELP_STRING
+	descriptions. Adjust @version value.
+
+	* configure.ac (DRIVER_VERSION, DRIVER_PACKAGE): Fixed AC_ARG_VAR
+	descriptions (added more info about defaults).
+	(__DRIVER_PACKAGE__): Fixed a bug.
+
+2006-02-12 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (fglrx_man1x): Small fix.
+
+2006-02-12 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (AC_PACKAGE_VERSION): Change to latest release 8.22.5.
+
+	* fglrx_man_history.xml: Added CVS header.
+	(revision_8_22_5): Added entry for latest release 8.22.5.
+
+	* fglrx_man_entities.dtd.in: Added CVS header.
+
+2006-02-09 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am: Reorder.
+	(DISTCLEANFILES): Fixed the wrong "DISTCLEAN".
+
+2006-02-01 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_XSERVER_PARAMS, AC_PROG_XMLLINT)
+	(AC_PROG_XSLTPROC): Forgot to fix date.
+
+2006-02-01 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_XSERVER_PARAMS): Removed useless tabs. Fixed the
+	AC_HELP_STRING string. Fixed a bug in AC_CHECK_PROGS, which leads to
+	an error message if the X-server cannot be determined.
+	(AC_PROG_XMLLINT): Small change to the test.
+	(AC_PROG_XSLTPROC): Ditto.
+
+2006-01-31 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* COPYING: Add license information for scripts used to build the
+	package.
+
+	* Makefile.am: Added all-permissive copying license.
+
+	* autogen.sh: Ditto.
+
+	* configure.ac: Ditto.
+
+	* fglrx_man.xsl: Ditto.
+
+	* fglrx_man_stylesheet.xsl.in: Ditto.
+
+	* acinclude.m4: Ditto.
+	(AM_XSERVER_MAN_DIR): Small fix to description.
+
+2006-01-31 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* COPYING: Hopefully last modification to the license.
+	
+	* aticonfig.1x.xml: Ditto.
+	
+	* fgl_glxgears.1x.xml: Ditto.
+	
+	* fglrx.4x.xml: Ditto.
+	
+	* fglrx_pplay.1x.xml: Ditto.
+	
+	* fglrx_xgamma.1x.xml: Ditto.
+	
+	* fglrxconfig.1x.xml: Ditto.
+	
+	* fglrxinfo.1x.xml: Ditto.
+	
+	* fireglcontrol.1.xml: Ditto.
+
+2006-01-30 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* COPYING: Small modification to the license.
+
+	* aticonfig.1x.xml: Ditto.
+	
+	* fgl_glxgears.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+2006-01-30 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (DRIVER_VERSION, DRIVER_PACKAGE): Added possibility to
+	overwrite the driver package header as already done for driver
+	version. Be more verbose and inform the user about their values.
+
+	* fglrx_man.xsl (command|application|package): Everything related to
+	commands, packages or applications shuld be bold.
+	(varname, replaceable[@class='option']): Customize the handling of
+	variables and replaceable sections inside options. It's a workaround
+	for a feature bug in the original stylesheet.
+	(articleinfo|bookinfo|refentryinfo, author|editor|othercredit)
+	(contrib): Change string for contributions and add possible stylesheet
+	code to add, what a contributor did.
+	(xref): Link options automatically (but now link to varnames and
+	create the string too).
+
+	* fglrx_man_history.xml: Added to contain the projecr history in XML
+	format.
+	
+	* aticonfig.1x.xml: Added license and copyright information. Fixed
+	mark-up issues (refer to changes in fglrx_man.xsl).
+	(refentryinfo): Added history and legal information.
+
+	* fglrx_pplay.1x.xml: Ditto.
+	(refentryinfo): Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+	(refentryinfo): Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+	(refentryinfo): Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+	(refentryinfo): Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+	(refentryinfo): Ditto.
+
+	* fgl_glxgears.1x.xml: Ditto.
+	(refentryinfo): Ditto.
+	(DIAGNOSTICS): Added more diagnostics. Fixed mark-up issues.
+
+	* fglrx.4x.xml: Ditto.
+	(refentryinfo): Ditto.
+	(authorgroup): Mention credits from Gentoo ATI Radeon FAQ.
+	(DESCRIPTION): Small change. refer to manpage.
+	(CONFIGURATION DETAILS): Fixes and additions for DesktopSetup,
+	IgnoreEDID, KernelModuleParm, MonitorLayout, NoTV (moved to
+	alphabetical order), PBuffer and UseInternalAGPGART.
+	(DIAGNOSTICS): Added more information.
+	(BUGS): Added link to unofficial BTS.
+
+	* COPYING: Add license information.
+
+	* INSTALL: Added.
+
+	* NEWS: Update to latest news.
+
+	* README: Update with more recent information.
+
+	* TODO: Ditto.
+
+2006-01-28 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Thanks to Wedge_.
+
+2006-01-27 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO (fglrx.4x.xml): There are a lot of options, the manpage
+	currently doesn't tell about.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): More information about
+	KernelModuleParm.
+
+2006-01-27 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml (DIAGNOSTICS): Added DIAGNOSTICS section
+	initially. Added hint about POSIX shared memory.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added a few more values for
+	KernelModuleParm.
+	(DIAGNOSTICS): Markup fixes and changes.
+
+2006-01-27 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (BUGS): Fixed my own stupidity. Better control
+	copy&paste results.
+
+2006-01-27 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (BUGS): Added BUGS section initially. Present a link to
+	the official Linux driver feedback form and the unofficial ATI driver
+	bugzilla.
+
+2006-01-27 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Add a note, that we also use information taken from the
+	Gentoo ATI Radeon FAQ.
+
+2006-01-27 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added options AGPMask,
+	AGPv3Mask, ClientDriverName and RingSize. Further added possible
+	values for KernelModuleParm. Thanks to Mathieu Malaterre.
+
+	* TODO: Added a note about environment variables, which should be
+	mentioned.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_DOCBOOK_XSL_MAN_DIR): Adjusted @version.
+	(AM_XSERVER_MAN_DIR): Fixed to again let the paths for
+	application-manpages and driver-manpages be determined separately.
+
+	* Makefile.am (fglrxappmandir, fglrxdrivermandir): Make use of the
+	reintroduced paths for application-manpages and driver-manpages
+	(__XSERVER_APP_MAN_DIR__, __XSERVER_DRIVER_MAN_DIR__).
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_DOCBOOK_XSL_MAN_DIR): Fixed a minor issue - make it
+	clear, that we found a path, not a file.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AC_PROG_XMLLINT, AC_PROG_XSLTPROC): Add the macros
+	AC_PROG_XMLLINT and AC_PROG_XSLTPROC, which contain stuff, formerly
+	located in configure.ac.
+
+	* configure.ac: Add a bit more documentation of what we do.
+	(AC_PROG_XMLLINT, AC_PROG_XSLTPROC): Use the new macros and remove the
+	stuff now done by these macros.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added option PowerState.
+	(DIAGNOSTICS): Added more diagnostics.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (refpurpose): Changed driver description.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (DIAGNOSTICS): Added more diagnostics.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (DESCRIPTION, CONFIGURATION DETAILS): Added some
+	content to description, ChipID and options KernelModuleParm, mtrr,
+	no_accel, no_dri, NoDDC, OpenGLOverlay and VideoOverlay. Thanks to
+	Mathieu Malaterre.
+	(DIAGNOSTICS): Added this section inspired by content contributed by
+	Mathieu Malaterre.
+	(authorgroup): Added Mathieu Malaterre as author.
+	
+	* AUTHORS: Ditto.
+
+2006-01-26 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (MAINTAINERCLEANFILES): Rmove all files produced with
+	autogen.sh in the maintainer-clean target.
+
+	* TODO: Fixed a typo.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fixed a typo in the summary.
+
+	* TODO: Remove things done.
+
+	* configure.ac: Minor clean-up.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac: Fixed summary.
+
+	* NEWS: Fixed summary.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (XSLTPROC): Fixed a typo bug which leads to an error.
+
+	* Makefile.am (% : %.xml, check-local): Move the validation of
+	XML-files to the check-local target.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (XMLLINT, __XMLLINT__, XSLTPROC, __XSLTPROC__): Add
+	possibility to allow definition of the xmllint and xsltproc binaries
+	via configure variable. Further fix the usage of AC_PATH_PROG(), so if
+	a binary is not found, configure should not return a "WARNING::
+	command not found" message.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (BUGS): Replace the double angle quotation marks
+	with normal double quotation marks. Shall fix a lintian warning.
+
+	* fglrxinfo.1x.xml (BUGS): Ditto.
+	
+	* AUTHORS: Fixed summary.
+
+	* ChangeLog: Ditto.
+
+	* README: Ditto.
+
+	* TODO: Ditto.
+
+	* autogen.sh: Ditto.
+
+	* configure.ac: Ditto.
+
+	* fglrx_man.xsl: Ditto.
+
+	* fglrx_man_stylesheet.xsl.in: Ditto.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (__XMLLINT__): Make xmllint optional.
+
+	* Makefile.am (% : %.xml): Ditto. Only run xmllint, if it is
+	available.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_XSERVER_MAN_DIR): Fix the help-string for the
+	--with-xserver-man-dir option.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (DRIVER_VERSION): Added. Can be used to overwrite the
+	ATI driver version string.
+	(XMLLINT_FLAGS, XSLTPROC_FLAGS): Fix the output of ./configure --help.
+
+2006-01-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* autogen.sh (autogen_help, autogen_copy, autogen_copy_if_missing)
+	(autogen_link, autogen_link_if_missing): The user can choose to copy
+	the files instead to link them.
+
+2006-01-24 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added "mtrr", "no_accel",
+	"no_dri" and "NoDDC" options initially. Thanks to Mathieu Malaterre.
+
+2006-01-24 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (fglrx_man1x): Fixed a bug, that results in an
+	"unportable" error.
+
+2006-01-24 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* configure.ac (VERSION, AC_PACKAGE_VERSION): Update to new release of
+	ATI's driver version 8.21.7.
+
+	* Makefile.am (fglrx_man1x): Removed fglrx_pplay.1x.xml from the list,
+	because the applications is not shipped with the ATI drivers since
+	8.20.8.
+
+	* aticonfig.1x.xml (OPTIONS): Markup fixes. Added --mode2 option,
+	which was fixed in 8.21.7. Add a few crosslinks to fglrx(4x).
+	(EXAMPLES): Added a few more examples.
+	(BUGS): The --mode2 bug was fixed in 8.21.7.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added "ForceMonitors" and
+	"Mode2" options.
+
+	* fglrx_pplay.1x.xml (BUGS): Added, because it's also not open-source.
+
+	* fglrxinfo.1x.xml (BUGS): Added, because it's also not open-source.
+	Added bug info about wrong identification.
+
+2006-01-23 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* README: Added information about necessary and recommended packages
+	and programs.
+
+2006-01-23 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* acinclude.m4 (AM_DOCBOOK_XSL_MAN_DIR): Fixed URL of the directory
+	containing docbook.xsl. Thanks to Mathieu Malaterre.
+
+2006-01-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (CLEANFILES): Do not list all items. Better use already
+	defined variables.
+
+2006-01-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (% : %.xml): Remove the stuff necessary to pass
+	distcheck. Make it easy and simple.
+
+2006-01-22 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man_entities.dtd.in: Added. This file contains all variables
+	we need and define during configure process. So we can rename all
+	.xml.in files back to .xml.
+
+	* fglrx_man_stylesheet.xsl.in: Added. This file contains the path to
+	Norman Walsh's XSL stylesheet for manpages. So we can rename
+	fglrx_man.xsl.in back to fglrx_man.xsl.
+
+	* aticonfig.1x.xml.in: Removed and replaced by aticonfig.1x.xml.
+
+	* fgl_glxgears.1x.xml.in: Removed and replaced by fgl_glxgears.1x.xml.
+
+	* fglrx.4x.xml.in: Removed and replaced by fglrx.4x.xml.
+
+	* fglrx_pplay.1x.xml.in: Removed and replaced by fglrx_pplay.1x.xml.
+
+	* fglrx_xgamma.1x.xml.in: Removed and replaced by fglrx_xgamma.1x.xml.
+
+	* fglrxconfig.1x.xml.in: Removed and replaced by fglrxconfig.1x.xml.
+
+	* fglrxinfo.1x.xml.in: Removed and replaced by fglrxinfo.1x.xml.
+
+	* fireglcontrol.1.xml.in: Removed and replaced by fireglcontrol.1.xml.
+	
+	* aticonfig.1x.xml: Readded.
+	(DOCTYPE): Sourced out fglrx_man project entities. See also
+	fglrx_man_entities.dtd(.in).
+
+	* fgl_glxgears.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+	* fglrx_man.xsl.in: Removed and replaced by fglrx_man.xsl.
+
+	* fglrx_man.xsl: Readded.
+	(xsl:import): Sourced out import of Norman Walsh's stylesheet. See
+	fglrx_man_stylesheet.xsl(.in).
+
+	* configure.ac: Applied all changes as mentioned above. Additionally
+	fix the output.
+
+	* Makefile.am: Ditto. Fixed distcheck errors.
+
+	* acinclude.m4: Fixed a bug. The mandir variable was detected as
+	command.
+
+2006-01-21 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Use the more common "manpage(s)" term, instead of
+	"man-page(s)".
+
+	* Makefile.am: Ditto.
+
+	* aticonfig.1x.xml.in: Ditto.
+
+	* fgl_glxgears.1x.xml.in: Ditto.
+
+	* fglrx.4x.xml.in: Ditto.
+
+	* fglrx_man.xsl.in: Ditto.
+
+	* fglrx_pplay.1x.xml.in: Ditto.
+
+	* fglrx_xgamma.1x.xml.in: Ditto.
+
+	* fglrxconfig.1x.xml.in: Ditto.
+
+	* fglrxinfo.1x.xml.in: Ditto.
+
+	* fireglcontrol.1.xml.in: Ditto.
+
+	* acinclude.m4: Ditto.
+	(AM_XSERVER_MAN_DIR): Fixed description.
+
+	* TODO: Fixed and added notes.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile.am (__XMLLINT_FLAGS__): Define all to-use xmllint options
+	via a variable, which is set by the configure script.
+	(__XSLTPROC_FLAGS__): Ditto for xsltproc options (if any).
+
+	* configure.ac: Change the order in which the macros are called.
+	(XMLLINT_FLAGS, XSLTPROC_FLAGS): Add these variables to let the user
+	define custom options.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Add Flavio.
+
+	* Makefile.am (XMLLINT, __XMLLINT__, XSLTPROC, __XSLTPROC__): Replace
+	XMLLINT and XSLTPROC with __XMLLINT__ and __XSLTPROC__ to use a unique
+	scheme vor all variables.
+
+	* configure.ac: Label sub-parts.
+	(AC_INIT, AM_INIT_AUTOMAKE): Fix AC_PACKAGE_NAME and PACKAGE.
+	(XMLLINT, __XMLLINT__, XSLTPROC, __XSLTPROC__): Replace XMLLINT and
+	XSLTPROC with __XMLLINT__ and __XSLTPROC__ to use a unique scheme vor
+	all variables.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* AUTHORS: Initially added.
+
+	* COPYING: Ditto.
+
+	* NEWS: Ditto.
+
+	* README: Ditto.
+
+	* autogen.sh: Ditto.
+
+	* configure.ac: Ditto.
+
+	* Makefile: Removed and replaced by Makefile.am.
+
+	* Makefile.am: Added.
+
+	* acinclude.m4 (AM_DOCBOOK_XSL_MAN_DIR, AM_DOCBOOK_DTD_44_DIR)
+	(AM_XSERVER_PARAMS, AM_XSERVER_MAN_DIR): Initially added.
+
+	* aticonfig.1x.xml: Removed and replaced by aticonfig.1x.xml.in.
+
+	* aticonfig.1x.xml.in: Initially added.
+
+	* fgl_glxgears.1x.xml: Removed and replaced by fgl_glxgears.1x.xml.in. 
+
+	* fgl_glxgears.1x.xml.in: Initially added.
+
+	* fglrx.4x.xml: Removed and replaced by fglrx.4x.xml.in.
+
+	* fglrx.4x.xml.in: Initially added.
+
+	* fglrx_pplay.1x.xml: Removed and replaced by fglrx_pplay.1x.xml.in.
+
+	* fglrx_pplay.1x.xml.in: Initially added.
+
+	* fglrx_xgamma.1x.xml: Removed and replaced by fglrx_xgamma.1x.xml.in.
+
+	* fglrx_xgamma.1x.xml.in: Initially added.
+
+	* fglrxconfig.1x.xml: Removed and replaced by fglrxconfig.1x.xml.in.
+
+	* fglrxconfig.1x.xml.in: Initially added.
+
+	* fglrxinfo.1x.xml: Removed and replaced by fglrxinfo.1x.xml.in.
+
+	* fglrxinfo.1x.xml.in: Initially added.
+
+	* fireglcontrol.1.xml: Removed and replaced by fireglcontrol.1.xml.in.
+
+	* fireglcontrol.1.xml.in: Initially added.
+
+	* fglrx_man.xsl.in (xsl:import): Fix the replacement-variable.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (SEE ALSO): Fix the man-volume for Xserver.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Be more informative.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Clean-up.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Colored output should be bold.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Clean up. Make it better readable. Color the output, so
+	also the output is better readable.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Fix a recently introduced bug and rmove the SED variable.
+
+2006-01-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (__XSERVER_NAME__, __XSERVER_STRING__)
+	(__XSERVER_CONF__, __XSERVER_CONFIG__)
+	(dhxserver, dhxserverstring, dhxserverconf, dhxserverconfig): Replace
+	the variables in the source with entities, so we only need to replace
+	the variables once per source file.
+
+	* fgl_glxgears.1x.xml: Ditto. See above.
+
+	* fgl_glxgears.1x.xml: Ditto. See above.
+	
+	* fglrx.4x.xml: Ditto. See above.
+
+	* fglrx_pplay.1x.xml: Ditto. See above.
+
+	* fglrx_xgamma.1x.xml: Ditto. See above.
+
+	* fglrxconfig.1x.xml: Ditto. See above.
+
+	* fglrxinfo.1x.xml: Ditto. See above.
+
+	* fireglcontrol.1.xml: Ditto. See above.
+
+2006-01-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl: Renamed to fglrx_man.xsl.in. See last change in
+	Makefile.
+	
+	* fglrx_man.xsl.in: Added. See above.
+	(xsl:import): Change from a determined stylesheet to a variable
+	__XSL_PATH__, which is determined in and substituted by Makefile.
+
+2006-01-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Restructured. Work out more flexibility.
+	(XSERVER_NAME, DRIVER_NAME, DRIVER_VERSION, DRIVER_STRING): Be
+	flexible und unique when determine, for which X-server version we
+	build the man-pages and which man-pages we reference.
+	(XSERVER_STRING, XSERVER_CONF, XSERVER_CONFIG): Determine the
+	config-file name, the application name and the configuration utility
+	for both possible X-servers by reading the XSERVER_NAME variable, so
+	we can cleanly reference their man-pages.
+	(man): Removed man target.
+	($(OBJS), XSL_PATH): Add the fglrx_man.xsl target (because we renamed
+	this file) and allow a a dynamic definition of the full path to
+	manpages/docbook.xsl via XSL_PATH.
+	(% : %.xml, %.0.xml : %.xml, % : %.0.xml): Add a step, where the above
+	mentioned variables are set inside the XML sources.
+	(clean): Fix target so DESTDIR is not completely removed (we do not
+	want to maybe remove a system path). Also make sure, all created files
+	are removed.
+
+	* aticonfig.1x.xml: Fix entities to fit their meaning. Fix the
+	<citerefentry> usage and use variables __FOOBAR__ (see above).
+	(dhdate, dhulpackage, dhucpackage): Removed.
+	(dhversion, dhname, dhucname): Added.
+	(dhpackage, dhproduct): Changed their meaning.
+
+	* fgl_glxgears.1x.xml: Ditto. See above.
+
+	* fglrx.4x.xml: Ditto. See above.
+
+	* fglrx_pplay.1x.xml: Ditto. See above.
+
+	* fglrx_xgamma.1x.xml: Ditto. See above.
+
+	* fglrxconfig.1x.xml: Ditto. See above.
+
+	* fglrxinfo.1x.xml: Ditto. See above.
+
+	* fireglcontrol.1.xml: Ditto. See above.
+
+2006-01-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile (CURDIR): Define the full path of the current directory.
+
+2006-01-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile (BUILDDIR, DESTDIR): Replace the BUILDDIR variable with the
+	more common DESTDIR variable.
+
+2006-01-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO: Add more things.
+
+2006-01-10 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* TODO: Fixed a file-name.
+
+2006-01-08 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml: Move TODOs into new TODO file.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+	* TODO: Added. See above.
+
+	* fglrx_man.xsl: Minor clean-up.
+
+2006-01-06 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl (articleinfo|bookinfo|refentryinfo)
+	(author|editor|othercredit): Automatically add contributors to
+	AUTHOR(S) section. If there is more than one editor, the separators
+	should be created the same way as for authors. Ditto for contributors.
+
+2006-01-03 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fixed wrong date and typos.
+
+	* fglrx.4x.xml (DESCRIPTION): Added an intro for the description
+	(still not finished).
+
+2006-01-03 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (SUPPORTED HARDWARE): Fixed verbal issue.
+	(CONFIGURATION DETAILS): Added more information to introduction.
+	(SEE ALSO): Removed pci.ids hint, because this is now mentioned at a
+	better place, where we talk about the ChipID option.
+
+2006-01-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (SUPPORTED HARDWARE): Fix a sequence mistake.
+
+2006-01-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Changed local keyword.
+
+	* Makefile: Ditto.
+
+	* aticonfig.1x.xml: Ditto.
+
+	* fgl_glxgears.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fglrx_man.xsl: Ditto.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.	
+
+2006-01-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile: Added Copyright info.
+
+	* fglrx_man.xsl: Ditto.
+	
+	* aticonfig.1x.xml (refentryinfo/copyright): Fixed Copyright info.
+	
+	* fgl_glxgears.1x.xml (refentryinfo/copyright): Ditto.
+	
+	* fglrxconfig.1x.xml (refentryinfo/copyright): Ditto.
+	
+	* fglrxinfo.1x.xml (refentryinfo/copyright): Ditto.
+	
+	* fglrx_pplay.1x.xml (refentryinfo/copyright): Ditto.
+	
+	* fglrx_xgamma.1x.xml (refentryinfo/copyright): Ditto.
+	
+	* fireglcontrol.1.xml (refentryinfo/copyright): Ditto.
+
+	* fglrx.4x.xml (refentryinfo/copyright): Ditto.
+	(SUPPORTED HARDWARE): Completed list of supported chipsets (fits
+	8.20.8).
+
+2005-12-31 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fix new local keyword (fglrx_man variable didn't work).
+
+	* Makefile: Ditto.
+
+	* aticonfig.1x.xml: Ditto.
+
+	* fgl_glxgears.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fglrx_man.xsl: Ditto.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+2005-12-31 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Adjust headers and replace the Id with the fglrx_man
+	keyword.
+
+	* Makefile: Ditto.
+
+	* aticonfig.1x.xml: Ditto.
+
+	* fgl_glxgears.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrxconfig.1x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fglrx_man.xsl: Ditto.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+	* fireglcontrol.1.xml: Ditto.
+
+2005-12-30 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (BUGS): Fixed a typo.
+
+2005-12-30 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Fixed dual-head mode value for
+	DesktopSetup option.
+
+2005-12-28 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS): Added several options and sections (e.g.
+	FSAA Options, Advanced Options). Added more cross-references and fixed
+	a few markup issues.
+	(BUGS): Added a few hints about existing bugs.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added "KernelModuleParm"
+	option and fixed "TVStandard" option values.
+
+2005-12-23 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (SUPPORTED HARDWARE): Markup changes.
+	(CONFIGURATION DETAILS): Added new and more infos about several
+	options and fixed a few markup issues.
+
+2005-12-21 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS): Began to add cross-references to
+	x.org/XF86Config-4 config file options. Fix a few markup issues
+	(simplelist, note/caution, option -> parameter).
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Added a few new options. Added
+	new content.
+
+2005-12-21 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl: Only cleanup in the documenting comments.
+
+2005-12-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS/Screen-Related Options): Minor rephrase.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): New content. Add an ID to
+	every option. Instead of mentioning an option, link them with an xref
+	tag, which automatically results in the Option string.
+
+	* fglrx_man.xsl (caution|important|note|tip|warning): Customize
+	admonition template. There should be no newline after the title.
+	(segmentedlist, segmentedlist/*): Added a template for segmented
+	lists, which result in tables.
+	(xref): Customize xref template to allow a direkt linking to an
+	Option.
+	
+2005-12-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml (DESCRIPTION): Typo fix.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Typo fix. Semantic fixes
+
+	* fireglcontrol.1.xml (BUGS): Fix linewrap.
+
+2005-12-20 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl (author|editor): Apply imports.
+	(articleinfo/author): Cleanup.
+
+2005-12-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (DESCRIPTION, Screen-Related Options): Typo fixes.
+
+2005-12-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl (articleinfo/author): Fix the usage of ',' and 'and'
+	in a list of authors.
+
+2005-12-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fireglcontrol.1.xml: Initially added man-page for the fireglcontrol
+	application.
+
+	* Makefile (OBJS): ditto.
+
+	* fglrx_man.xsl (articleinfo/author): Added (overwriting) template to
+	automatically add the AUTHOR(S) strings I want. So the AUTHOR(S)
+	sections can be removed from all man-pages.
+
+	* fgl_glxgears.1x.xml (AUTHORS): Removed. See above.
+
+	* fglrx_pplay.1x.xml (AUTHORS): Ditto.
+
+	* fglrxinfo.1x.xml (AUTHORS): Ditto.
+	
+	* aticonfig.1x.xml (AUTHORS): Ditto. Fixed copyright (Flavios
+	contribution).
+
+	* fglrx.4x.xml (AUTHORS): Ditto.
+
+	* fglrx_xgamma.1x.xml (AUTHORS): Ditto.
+
+	* fglrxconfig.1x.xml (AUTHORS): Ditto. Fixed copyright (my
+	contribution).
+
+2005-12-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl: Import the template instead of a complete
+	redefinition.
+
+2005-12-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml: Removed the comment about the patch for lists.xsl,
+	because we do the trick with fglrx_man.xsl.
+
+2005-12-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl: Found the trick and readded the template.
+
+2005-12-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl: Comment out the template. It does not work as
+	expected.
+
+	* ChangeLog: Fixed date format.
+
+2005-12-18 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx_man.xsl: Initially added.
+	
+	* Makefile (XSL_DIR, XSL_MAN): Use the newly created fglrx_man.xsl,
+	which includes the stylesheets by Norm Walsh.
+	(XML_DTD, man): Use the DTD provided by docbook-xml by default.
+
+2005-12-04 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fix a bad date.
+
+2005-12-04 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (DESCRIPTION, OPTIONS): Add at least a short
+	description and a preface.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Add cross-reference to
+	XFree86's configuration file man-page.
+
+2005-12-03 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* Makefile (man): Added the XML_DTD variable, which can be used to
+	define the path to the DTD xmllint should use for validation.
+	Hopefully this allows a more flexible usage.
+
+2005-12-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (OPTIONS, BUGS): Replace the application name with
+	the according system entity.
+	(EXAMPLES): Begin with a few initial examples.
+
+	* fglrxconfig.1x.xml (BUGS): Replace the application name with the
+	according system entity.
+
+2005-12-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Forgot one issue (ditto thanks
+	to Flavio).
+
+2005-12-02 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrxconfig.1x.xml: Added (written by Flavio Stanchina - thanks to
+	him).
+
+	* Makefile (OBJS): Added fglrxconfig.1x to the list of man-pages to
+	build.
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Fix a syntax issue (thanks to
+	Flavio Stanchina).
+
+	* fglrx_xgamma.1x.xml (DESCRIPTION): Typo fix (thanks to Flavio
+	Stanchina).
+
+2005-11-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fglrx.4x.xml (SEE ALSO): Add note about pci.ids file, where you can
+	find the vendor and bus IDs for fot ATI products.
+
+2005-11-25 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml (ENVIRONMENT): Add info about LIBGL_DEBUG
+	environemnt variable.
+
+	* fglrxinfo.1x.xml (ENVIRONMENT): Ditto.
+
+2005-11-19 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml (DOCTYPE): Use a local copy of the DTD.
+
+	* fglrx_pplay.1x.xml (DOCTYPE): Ditto.
+
+	* fglrx_xgamma.1x.xml (DOCTYPE): Ditto.
+
+	* fglrxinfo.1x.xml (DOCTYPE): Ditto.
+
+	* fglrx.4x.xml (DOCTYPE): Ditto.
+	(SUPPORTED HARDWARE): Remove dingbat characters for the moment (are
+	not handled smoothly).
+
+	* aticonfig.1x.xml (DOCTYPE): Ditto.
+	(SEE ALSO): Fix indenting (thanks to Flavio Stanchina).
+
+2005-11-16 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml (DESCRIPTION): Fixed typo.
+
+2005-11-16 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml (SEE ALSO): Fixed indenting (thanks to Flavio
+	Stanchina).
+
+	* fglrx.4x.xml (CONFIGURATION DETAILS): Fixed typos (thanks to Flavio
+	Stanchina).
+
+2005-11-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml (SEE ALSO): Fixed syntax.
+
+	* fgl_glxgears.1x.xml (SEE ALSO): Ditto.
+
+	* fglrx.4x.xml (SEE ALSO): Ditto.
+
+	* fglrx_pplay.1x.xml (SEE ALSO): Ditto.
+
+	* fglrx_xgamma.1x.xml (SEE ALSO): Ditto.
+
+	* fglrxinfo.1x.xml (SEE ALSO): Ditto.
+
+2005-11-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* aticonfig.1x.xml: Added short TODO notes.
+	(OPTIONS): Completed list of options from command-line output of
+	aticonfig.
+	(EXAMPLES): Added initial examples section made from the command-line
+	output of aticonfig.
+	(BUGS): Added.
+	(SEE ALSO): Added X configuration file references.
+
+2005-11-15 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fixed dates (stupid mistake).
+	
+	* aticonfig.1x.xml: Added initial aticonfig man-page.
+	
+	* Makefile (OBJS): Added aticonfig.1x.xml.
+	(man): Use implicit rule. This allows the individual creation of
+	man-pages using 'make man_source.xml'.
+	(distclean): Added.
+
+	* fglrx.4x.xml: Added a short notice.
+
+2005-11-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* ChangeLog: Fixed formatting.
+
+2005-11-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+
+	* fgl_glxgears.1x.xml: Added document ID and a summary.
+
+	* fglrxinfo.1x.xml: ditto.
+
+	* fglrx_pplay.1x.xml: ditto.
+
+	* fglrx_xgamma.1x.xml: ditto.
+
+	* fglrx.4x.xml: ditto. Fixed an internal malformation.
+
+	* Makefile: Added short comment, that fglrx_pplay is obsolete since
+	8.19.10.
+
+2005-11-13 Daniel Leidert <daniel.leidert.spam@gmx.net>
+	
+	* Makefile: Imitial import.
+
+	* fgl_glxgears.1x.xml: Ditto.
+
+	* fglrx.4x.xml: Ditto.
+
+	* fglrxinfo.1x.xml: Ditto.
+
+	* fglrx_pplay.1x.xml: Ditto.
+
+	* fglrx_xgamma.1x.xml: Ditto.
+
+# UTF-8
--- fglrx-driver-8.47.3.orig/debian/man/COPYING
+++ fglrx-driver-8.47.3/debian/man/COPYING
@@ -0,0 +1,21 @@
+Copyright (C) 2005-2007 Daniel Leidert <daniel.leidert@wgdd.de>.
+Copyright (C) 2005-2006 Flavio Stanchina <flavio@stanchina.net>.
+All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
--- fglrx-driver-8.47.3.orig/debian/man/BUGS.8.32.5
+++ fglrx-driver-8.47.3/debian/man/BUGS.8.32.5
@@ -0,0 +1,43 @@
+BUGS observed in 8.32.5: 
+
+aticonfig:
+==========
+
+- aticonfig -i /etc/X11/xorg.conf -o ~/test/xorg.conf
+	No need to back up anything.
+	Misses a newline after this phrase.
+
+- typo in --tv-overscan: "and" should be "an" in the note
+
+- using --tv-geometry says:
+
+  failed to set tv geometry.
+  check help for possible causes.
+  
+  But help doesn't tell anything useful to determine the cause of this failure. Does it
+  check, if TV is connected? Why could it fail?
+
+- trying to use --tv-geometry option only giving width and height results in a broken
+  entry Option "TVVSizeAdj" "--tv-geometry=value" in aticonfig(1x). Also the leading
+  sign of the given pixels offsets from centre are not preserved (I guess, this should
+  be preserved, but I'm not sure), when creating the entries for Option "TVHPosAdj" and TVVPosAdj
+
+- following the -h output, aticonfig should support reading from stdin and writing to stdout
+  when using the --input or --output options - but it doesn't work as expected and you will
+  receive error messages or a file named "-"
+
+- --dw and similar is still accpeted, but not longer documented (seems obsolete) and not checked
+  for its option value
+
+- in --help output "Dynamic Display Management Options" it is written, that these options will
+  not affect the config file, but this is not true:
+  `aticonfig --enable-monitor=string1,string2 -i ~/test.conf -o ~/test2.conf' disproves the
+  statement (an entry is made for EnableMonitors).
+
+
+fglrxinfo:
+==========
+
+- `fglrxinfo --help' says "Usage: fireglinfo [Options]", but it should be
+  "Usage: fglrxinfo [Options]" instead
+
--- fglrx-driver-8.47.3.orig/debian/man/CHIPLIST
+++ fglrx-driver-8.47.3/debian/man/CHIPLIST
@@ -0,0 +1,312 @@
+# Document  $WgDD: fglrx_man/CHIPLIST,v 1.3 2006-11-25 07:59:32 dleidert Exp $
+# Summary   List of chipsets based on `strings --print-file-name fglrx_drv.so'.
+
+
+Installation instructions
+=========================
+
+	1. Desktop and workstations
+	2. Mobile desktop and workstations
+	3. Integrated product
+
+
+1. Desktop and workstations
+---------------------------
+
+R200:
+RADEON 8500 (R200 514C)
+RADEON 8500 (R200 AIW 4242)
+RADEON 9100 (R200 514D)
+
+R200W:
+FireGL 8800 (R200 5148)
+
+RV250:
+RADEON 9000/9000 (RV250 PRO 4966)
+RADEON 9000 (RV250 LE 4967)
+
+D9:
+RADEON 9000 (D9 PRO 4C67)
+
+RV280:
+FireMV 2200 PCI (RV280 5965)
+RADEON 9250/9200 Series (RV280 5961)
+RADEON 9250/9200 Series (RV280 5962)
+RADEON 9250/9200 Series (RV280 SE 5964)
+RADEON 9250 (RV280 5960)
+
+R300:
+RADEON 9500 (R300 4144)
+RADEON 9500 (R300 PRO 4E45)
+RADEON 9600 (R300 XT 4E46)
+RADEON 9600 (R300 XT 4146)
+RADEON 9700 (R300 PRO 4E44)
+RADEON 9700 (R300 4E45)
+
+R300W:
+FireGL X1 (R300 4E47)
+FireGL Z1 (R300 4147)
+
+R350:
+RADEON 9500 (R350 4149)
+RADEON 9800 (R350 4E49)
+RADEON 9800 (R350 PRO 4E48)
+RADEON 9800 (R350 SE 4148)
+
+R350W:
+FireGL X2-256/X2-256t (R350 4E4B)
+
+RV350:
+RADEON 9550 (RV350 4153)
+RADEON 9600 (RV350 4150)
+RADEON 9600 (RV350 4E51)
+RADEON 9600 (RV350 SE 4151)
+
+RV350W:
+FireGL T2 (RV350 4154)
+
+RV351:
+RADEON 9600 (RV351 4155)
+
+R360:
+RADEON 9800 (R360 XT 4E4A)
+
+RV360:
+RADEON 9600 (RV360 PRO 4152)
+
+RV370:
+FireMV 2200 (RV370 5B65)
+RADEON X300/X550 (RV370 5B60)
+RADEON X550 (RV370 5B63)
+
+RV370W:
+FireGL V3100 (RV370 5B64)
+
+RV380:
+RADEON X600 (RV380 5B62)
+RADEON X600/X550 Series (RV380 3E50)
+
+RV380W:
+FireGL V3200 (RV380 3E54)
+
+RV410:
+RADEON X700 (RV410 5E4D)
+RADEON X700 (RV410 PRO 5E4B)
+RADEON X700 (RV410 SE 5E4C)
+RADEON X700 (RV410 XT 5E4A)
+RADEON X700/X550 Series (RV410 5E4F)
+
+RV410:
+FireGL V3300 (RV410 5E49)
+FireGL V5000 (RV410 5E48)
+
+R420:
+RADEON X800 (R420 4A48)
+RADEON X800 (R420 4A4C)
+RADEON X800 (R420 PRO 4A49)
+RADEON X800 (R420 SE 4A4A)
+RADEON X800 (R420 SE 4A4F)
+RADEON X800 (R420 VE 4A54)
+RADEON X800 (R420 XT 4A4B)
+RADEON X800 (R420 XT PE 4A50)
+
+R420W:
+FireGL X3-256 (R420 4A4D)
+
+R423:
+RADEON X800 (R423 5548)
+RADEON X800 (R423 GT 554B)
+RADEON X800 (R423 GTO 5549)
+RADEON X800 (R423 XT 5D57)
+RADEON X800 (R423 XT PE 554A)
+
+R423W:
+FireGL V5100 (R423 5551)
+FireGL V7100 (R423 5550)
+
+R430:
+RADEON X800 (R430 GT 554E)
+RADEON X800 (R430 GTO 554F)
+RADEON X800 (R430 XL 554D)
+
+R480:
+RADEON X800 (R480 GTO 5D4F)
+RADEON X850 (R480 XT 5D52)
+RADEON X850 (R480 XT PE 5D4D)
+
+R480W:
+FireGL V7200 (R480 5D50)
+
+R481:
+RADEON X850 (R481 4B48)
+RADEON X850 (R481 PRO 4B4B)
+RADEON X850 (R481 SE 4B4A)
+RADEON X850 (R481 XT 4B49)
+RADEON X850 (R481 XT PE 4B4C)
+
+RV505:
+RADEON X1300 (RV505 7147)
+RADEON X1300 (RV505 PRO 7143)
+RADEON X1300 Series (RV505 715F)
+
+RV515:
+RADEON X1300 Series (RV515 714D)
+RADEON X1300 Series (RV515 LE 7146)
+RADEON X1300 Series (RV515 PRO 7142)
+RADEON X1300 Series (RV515 SE 714E)
+RADEON X1300 Series (RV515 VE 715E)
+RADEON X1600 Series (RV515 7140)
+
+RV515W:
+FireGL V3300 (RV515 7152)
+
+RV516:
+RADEON X1300 (RV516 7180)
+RADEON X1300 (RV516 7183)
+RADEON X1300 (RV516 7187)
+
+R520:
+RADEON X1800 (R520 7100)
+RADEON X1800 Series (R520 7108)
+RADEON X1800 Series (R520 7109)
+RADEON X1800 Series (R520 710A)
+RADEON X1800 Series (R520 710B)
+RADEON X1800 Series (R520 710C)
+
+R520W:
+FireGL V5300 (R520 7105)
+FireGL V7200 (R520 7104)
+FireGL V7300 (R520 710E)
+FireGL V7350 (R520 710F)
+
+RV530:
+RADEON X1600 Series (RV530 LE 71C6)
+RADEON X1600 Series (RV530 SE 71DE)
+RADEON X1600 Series (RV530 PRO 71C2)
+RADEON X1600 Series (RV530 VE 71CE)
+RADEON X1600 Series (RV530 XT 71C0)
+
+RV530W:
+FireGL V3400 (RV530 71D2)
+FireGL V5200 (RV530 71DA)
+
+R580:
+RADEON X1900 (R580 7240)
+RADEON X1900 (R580 7243)
+RADEON X1900 (R580 7244)
+RADEON X1900 (R580 7245)
+RADEON X1900 (R580 7246)
+RADEON X1900 (R580 7247)
+RADEON X1900 (R580 7248)
+RADEON X1900 (R580 7249)
+RADEON X1900 (R580 724A)
+RADEON X1900 (R580 724B)
+RADEON X1900 (R580 724C)
+RADEON X1900 (R580 724D)
+RADEON X1900 (R580 724E)
+RADEON X1900 (R580 724F)
+
+
+
+2. Mobile desktop and workstations
+----------------------------------
+
+M9 (RV250):
+MOBILITY FireGL 9000 (M9 4C64)
+MOBILITY RADEON 9000 (M9 4C66)
+
+M9+ (RV280):
+MOBILITY RADEON 9200 (M9+ 5C61)
+MOBILITY RADEON 9200 (M9+ 5C63)
+
+M10/M11 (RV350/RV360):
+MOBILITY RADEON 9500 (M11 4E52)
+MOBILITY RADEON 9600/9700 (M10/M11 4E50)
+MOBILITY FireGL T2/T2e (M10/M11 4E54)
+
+M12 (??):
+MOBILITY RADEON 9550 (M12 4E56)
+
+M18 (R420):
+MOBILITY RADEON 9800 (M18 4A4E)
+
+M22 (RV370):
+MOBILITY RADEON X300 (M22 3152)
+MOBILITY RADEON X300 (M22 5460)
+MOBILITY RADEON X300 (M22 5461)
+MOBILITY FireGL V3100 (M22 5464)
+
+M24 (RV380):
+MOBILITY RADEON X600 (M24 3150)
+MOBILITY RADEON X600 SE (M24 5462)
+MOBILITY FireGL V3200 (M24 3154)
+
+M26, M26-XC (RV410):
+MOBILITY FireGL V5000 (M26 564A)
+MOBILITY FireGL V5000 (M26 564B)
+MOBILITY RADEON X700 (M26 5652)
+MOBILITY RADEON X700 (M26 5653)
+MOBILITY RADEON X700 XL (M26-XC 564F)
+
+M28 (R420):
+MOBILITY RADEON X800 (M28 5D4A)
+MOBILITY RADEON X800 XT (M28 5D48)
+MOBILITY FireGL V5100 (M28 5D49)
+
+M52 (RV515):
+MOBILITY RADEON X1300 (M52 7149)
+MOBILITY RADEON X1300 (M52 714A)
+MOBILITY RADEON X1300 (M52 714B)
+MOBILITY RADEON X1300 (M52 714C)
+
+M54 (RV515):
+MOBILITY FireGL (M54 GL 7144)
+MOBILITY RADEON X1400 (M54 7145)
+
+M56 (RV530):
+MOBILITY FireGL V5200 (M56 71C4)
+MOBILITY RADEON X1600 (M56 71C5)
+
+M58 (R520):
+MOBILITY FireGL V7100 (M58 7106)
+MOBILITY FireGL V7200 (M58 7103)
+MOBILITY RADEON X1800 (M58 7101)
+MOBILITY RADEON X1800 (M58 7102)
+MOBILITY RADEON X1800 XT (M58 7101)
+
+M62S, M62P, M62CSP64, M62CSP128:
+MOBILITY RADEON X1350 (M62P 718B)
+MOBILITY RADEON X1350 (M62S 7196)
+MOBILITY RADEON X1350 (M62CSP64 718C)
+MOBILITY RADEON X1450 (M62CSP128 718D)
+
+M64:
+MOBILITY RADEON X1450 (M64P 7186)
+
+
+
+3. Integrated product
+---------------------
+
+RL300MB:
+MOBILITY RADEON 9000 IGP (RL300MB 7835)
+
+RS300:
+RADEON 9000/9100 IGP Series (RS300 5834)
+
+RS300M:
+MOBILITY RADEON 9000/9100 IGP (RS300M 5835)
+
+RS350:
+RADEON 9000 PRO/9100 PRO IGP (RS350 7834)
+
+RS400/480/482/RC410:
+RADEON XPRESS 200 (RS400 5A41)
+RADEON XPRESS 200 (RS480 5954)
+RADEON XPRESS 200 (RS482 5974)
+RADEON XPRESS 200 (RC410 5A61)
+RADEON XPRESS 200M (RS400 5A42)
+RADEON XPRESS 200M (RS480 5955)
+RADEON XPRESS 200M (RS482 5975)
+RADEON XPRESS 200M (RC410 5A62)
+
--- fglrx-driver-8.47.3.orig/debian/man/fgl_glxgears.1x.xml
+++ fglrx-driver-8.47.3/debian/man/fgl_glxgears.1x.xml
@@ -0,0 +1,266 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+"/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
+
+<!--
+  Document  $WgDD: fglrx_man/fgl_glxgears.1x.xml,v 1.30 2007-06-02 12:51:31 dleidert Exp $
+  Summary   Manpage for the fgl_glxgears application.
+
+  Copyright (C) 2005-2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+  All rights reserved.
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+-->
+
+	<!ENTITY dhname    "fgl_glxgears">
+	<!ENTITY dhucname  "FGL_GLXGEARS">
+	<!ENTITY dhsection "1x">
+	
+	<!ENTITY % _fglrx_man_entities SYSTEM "fglrx_man_entities.dtd">
+	%_fglrx_man_entities;
+
+]>
+
+<refentry id="fgl_glxgears_1x" lang="en">
+	<refentryinfo>
+		<title>&dhpackage;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhversion;</releaseinfo>
+		<date>$Date: 2007-06-02 12:51:31 $</date>
+		<authorgroup>
+			<author>
+				<firstname>Daniel</firstname>
+				<surname>Leidert</surname>
+				<affiliation>
+					<address>
+						<email>daniel.leidert@wgdd.de</email>
+					</address>
+				</affiliation>
+			</author>
+		</authorgroup>
+		<copyright>
+			<year>2005</year>
+			<year>2006</year>
+			<holder>Daniel Leidert</holder>
+		</copyright>
+		<legalnotice>
+			<para>&dhlicense;</para>
+		</legalnotice>
+	</refentryinfo>
+	<refmeta>
+		<refentrytitle>&dhucname;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+	<refnamediv id="name">
+		<refname>&dhname;</refname>
+		<refpurpose>display info about a GLX extension and OpenGL renderer</refpurpose>
+	</refnamediv>
+	<refsynopsisdiv id="synopsis">
+		<cmdsynopsis>
+			<command>&dhname;</command>
+			<arg choice="opt"><option>-display <replaceable class="option">display</replaceable></option></arg>
+			<arg choice="opt"><option>-loop <replaceable class="option">frames</replaceable></option></arg>
+			<arg choice="opt"><option>-info</option></arg>
+			<arg choice="opt"><option>-fbo</option></arg>
+		</cmdsynopsis>
+		<cmdsynopsis>
+			<command>&dhname;</command>
+			<arg choice="opt"><option>-help</option></arg>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para><command>&dhname;</command> is a modified version of the
+			original <citerefentry>
+				<refentrytitle>glxgears</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry> demo, which demonstrates the usage of pixel buffers
+			(pbuffers) with an ATI graphics board and a patched version
+			of <filename>libGL.so</filename>.
+		</para>
+		<para>The three gear wheels are rendered to a pbuffer or frame buffer object instead
+			of to a window. The result is texture mapped on the four faces of a cube. Using
+			the arrow keys, you can change the position relative to the gears.
+		</para>
+	</refsect1>
+	<refsect1 id="options">
+		<title>OPTIONS</title>
+		<para>Without an option, <command>&dhname;</command> prints a brief adapter
+			info. To get a more verbose output, you should make use of the following
+			command line options:
+		</para>
+		<variablelist>
+			<varlistentry>
+				<term><option>-display</option> <replaceable>display</replaceable></term>
+				<listitem>
+					<para>Use this option to specify the display, where the output should
+						be redirected. Use the <envar>DISPLAY</envar> environment variable
+						to get the default host, display number and screen (default).
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-loop</option> <replaceable>frames</replaceable></term>
+				<listitem>
+					<para>Exit the application after the defined number of frames.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-info</option></term>
+				<listitem>
+					<para>Print GLX information (vendor etc.) to <filename class="devicefile">stdout</filename>.
+						This cannot be used with <option>-fbo</option> option.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-fbo</option></term>
+				<listitem>
+					<para>Use GL_EXT_framebuffer_object instead of GLX_SGIX_pbuffer.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><option>-help</option></term>
+				<listitem>
+					<para>Print a short summary of options and their usage.</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="diagnostics">
+		<title>DIAGNOSTICS</title>
+		<variablelist>
+			<para>
+				The following diagnostics may be issued:
+			</para>
+			<varlistentry>
+				<term><errortext>fglX11AllocateManagedSurface: __FGLTexMgrCreateObject failed!!</errortext></term>
+				<term><errortext>FGLTexMgr: open of shared memory object failed (..)</errortext></term>
+				<term><errortext>__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!</errortext></term>
+				<listitem>
+					<para>You don't have <acronym>POSIX</acronym> shared memory enabled on your
+						system. Please refer to your kernel documentation and <citerefentry>
+							<refentrytitle>mount</refentrytitle>
+							<manvolnum>8</manvolnum>
+						</citerefentry> for information about how to enable <acronym>POSIX</acronym>
+						shared memory support.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>FGLTexMgr: open of shared memory object failed (Permission denied)</errortext></term>
+				<listitem>
+					<para>The file <filename>/dev/shm/ATISHM00</filename> already exists and you simply
+						lack permission to overwrite it or the directory has bad permissions. Fix the one
+						or the other.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term>
+					<errortext>Error: couldn't get fbconfig</errortext>
+				</term>
+				<listitem>
+					<para>This error occurs if there is a problem with ATI's version of
+						<filename class="libraryfile">libGL.so</filename>. Maybe the diversion does not
+						work properly or you did overwrite this library with the one derived
+						from <acronym>DRI</acronym> or you have conflicting versions installed.
+						Try <citerefentry>
+							<refentrytitle>updatedb</refentrytitle>
+							<manvolnum>1</manvolnum>
+						</citerefentry>, <citerefentry>
+							<refentrytitle>locate</refentrytitle>
+							<manvolnum>1</manvolnum>
+						</citerefentry> and <citerefentry>
+							<refentrytitle>dpkg-divert</refentrytitle>
+							<manvolnum>1</manvolnum>
+						</citerefentry>. See also the following warning.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>fglrx: libGL version undetermined - OpenGL module is using glapi fallback</errortext></term>
+				<listitem>
+					<para>See above.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>libGL error: XF86DRIQueryDirectRenderingCapable returned false</errortext></term>
+				<listitem>
+					<para>Ensure you are loading the correct modules for your <acronym>AGP</acronym>
+						chipset before you load the <citerefentry>
+							<refentrytitle>fglrx</refentrytitle>
+							<manvolnum>4x</manvolnum>
+						</citerefentry> kernel module. To determine
+						which modules you'll need, check <command>lspci | grep -i agp</command>.
+					</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><errortext>libGL error: failed to open DRM: Operation not permitted</errortext></term>
+				<term><errortext>libGL error: reverting to (slow) indirect rendering</errortext></term>
+				<listitem>
+					<para>You probably simply miss the permission to open a <acronym>DRM</acronym>
+						device. Check <option>Section "DRI"</option> of your <citerefentry>
+							<refentrytitle>&dhxserverconf;</refentrytitle>
+							<manvolnum>5x</manvolnum>
+						</citerefentry>.
+					</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="environment">
+		<title>ENVIRONMENT</title>
+		<variablelist>
+			<varlistentry>
+				<term><envar>DISPLAY</envar></term>
+				<listitem>
+					<para>To get the default host, display number and screen.</para>
+				</listitem>
+			</varlistentry>
+			<varlistentry>
+				<term><envar>LIBGL_DEBUG</envar></term>
+				<listitem>
+					<para>Set this variable to <parameter>verbose</parameter> to print more
+						diagnostic messages, e.g. if the <acronym>DRI</acronym> driver fails to
+						load. This could be useful if you observe problems with your 3D
+						acceleration. Any error message printed should be (hopefully)
+						self-explanatory.
+					</para>
+				</listitem>
+			</varlistentry>
+		</variablelist>
+	</refsect1>
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<para><citerefentry>
+				<refentrytitle>glxgears</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>glxinfo</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>, <citerefentry>
+				<refentrytitle>fglrxinfo</refentrytitle>
+				<manvolnum>1x</manvolnum>
+			</citerefentry>
+		</para>
+	</refsect1>
+</refentry>
+
--- fglrx-driver-8.47.3.orig/debian/NEWS
+++ fglrx-driver-8.47.3/debian/NEWS
@@ -0,0 +1,36 @@
+fglrx-driver (8.34.8-1) experimental; urgency=low
+
+  * This version of the driver doesn't list the supported chipsets in the X
+    server log file any more, so I removed the "fglrx-supported.txt" file.
+
+    Please refer to the official documentation for an up-to-date list of
+    supported products.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat, 24 Feb 2007 01:17:39 +0100
+
+fglrx-driver (8.30.3-1) experimental; urgency=low
+
+  * As of driver version 8.29.6 support for the following products is no
+    longer included:
+    - Radeon 8500/9000/9100/9200/9250
+    - Mobility Radeon 9000/9100/9200
+    - Radeon IGP 9000/9100/9200
+
+    Users of those cards are advised not to upgrade; your lovely maintainer is
+    working on a long-term solution, perhaps separate packages for the
+    previous version.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Wed,  1 Nov 2006 20:40:10 +0100
+
+fglrx-driver (8.24.8-1) unstable; urgency=low
+
+  * Upgrading from previous versions is quite tricky because libGL is moving
+    from /usr/X11R6/lib to /usr/lib and I couldn't figure out a completely
+    safe way to upgrade the libGL diversion. Upgrading should in fact work
+    just fine, but downgrading to previous versions and recovery from errors
+    during upgrades are broken.
+
+    Therefore, I recommend to completely remove previous versions of this
+    package before installing. Sorry for any inconvenience this may cause.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat, 15 Apr 2006 13:05:31 +0200
--- fglrx-driver-8.47.3.orig/debian/TODO
+++ fglrx-driver-8.47.3/debian/TODO
@@ -0,0 +1,25 @@
+Rather than rpl on libGL, create:
+ === i386:
+ /usr/X11R6/lib/modules -> ../../lib
+ === amd64:
+ /usr/X11R6/lib64/modules -> ../../lib
+ /usr/X11R6/lib/modules -> ../../../emul/ia32-linux/usr/lib
+
+Apply enable/disable patch from http://bugs.debian.org/401584
+- fix editing of /etc/ld.so.conf to make it failsafe
+- make sure to test thoroughly
+
+Fix rpl in 32-bit libGL on amd64: need to put emul/... in there somehow.
+
+There is a problem with libfglrx_dm.so: the soname ends in .1.0 rather than just .1;
+is this OK?
+
+Add target "get-orig-source" that downloads the installer files, unpacks,
+cleans up useless stuff and builds the upstream source archive.
+(see policy manual).
+
+Add symlinks to the -dev package too?
+(f.e. libfglrx_gamma.so -> libfglrx_gamma.so.1.0)
+
+Move atieventsd to a separate package, so people that don't need it can
+avoid yet one more daemon.
--- fglrx-driver-8.47.3.orig/debian/acpi/fglrx-powermode.sh
+++ fglrx-driver-8.47.3/debian/acpi/fglrx-powermode.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+#
+# Control script for ACPI lid state and AC adapter state
+#
+
+FGLRX_ACPI_SWITCH_POWERSTATES=false
+
+[ -f /etc/default/fglrx-driver ] && . /etc/default/fglrx-driver
+
+[ "${FGLRX_ACPI_SWITCH_POWERSTATES}" != true ] && exit 0
+
+getXuser() {
+        user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
+        if [ x"$user" = x"" ]; then
+                user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'`
+        fi
+        if [ x"$user" != x"" ]; then
+                userhome=`getent passwd $user | cut -d: -f6`
+                export XAUTHORITY=$userhome/.Xauthority
+        else
+                export XAUTHORITY=""
+        fi
+}
+
+if grep -q closed /proc/acpi/button/lid/*/state; then
+ lid_closed=1
+else
+ lid_closed=0
+fi
+
+if grep -q off-line /proc/acpi/ac_adapter/*/state; then
+   on_dc=1
+else
+   on_dc=0
+fi
+
+if [ ${lid_closed} -eq 1 ] || [ ${on_dc} -eq 1 ]; then
+    echo "fglrx: setting low power"
+    for x in /tmp/.X11-unix/*; do
+	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
+	getXuser;
+	if [ x"$XAUTHORITY" != x"" ]; then
+	    export DISPLAY=":$displaynum"	    
+	    powermode=`/usr/bin/aticonfig --lsp | grep -m1 low | cut -b 3-3`
+	    if [ x"$powermode" != x"" ]; then
+	        su $user -c "/usr/bin/aticonfig --set-powerstate=$powermode --effective=now" &>/dev/null
+	    fi
+	fi
+    done
+else
+    echo "fglrx: setting default powermode"
+    for x in /tmp/.X11-unix/*; do
+	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
+	getXuser;
+	if [ x"$XAUTHORITY" != x"" ]; then
+	    export DISPLAY=":$displaynum"
+	    powermode=`/usr/bin/aticonfig --lsp | grep -m1 default | cut -b 3-3`
+	    if [ x"$powermode" != x"" ]; then
+	        su $user -c "/usr/bin/aticonfig --set-powerstate=$powermode --effective=now" &>/dev/null
+	    fi
+	fi
+    done
+fi
--- fglrx-driver-8.47.3.orig/debian/acpi/events/fglrx-lid
+++ fglrx-driver-8.47.3/debian/acpi/events/fglrx-lid
@@ -0,0 +1,6 @@
+# /etc/acpi/events/fglrx-lid
+# Called when the user opens or closes the laptop lid
+# 
+
+event=button[ /]lid
+action=/etc/acpi/fglrx-powermode.sh
--- fglrx-driver-8.47.3.orig/debian/acpi/events/fglrx-ac
+++ fglrx-driver-8.47.3/debian/acpi/events/fglrx-ac
@@ -0,0 +1,6 @@
+# /etc/acpi/events/fglrx-ac
+# Called when the user connects/disconnects ac power
+# 
+
+event=ac_adapter
+action=/etc/acpi/fglrx-powermode.sh
--- fglrx-driver-8.47.3.orig/debian/control
+++ fglrx-driver-8.47.3/debian/control
@@ -0,0 +1,90 @@
+Source: fglrx-driver
+Section: non-free/x11
+Priority: extra
+Maintainer: Fglrx packaging team <pkg-fglrx-devel@lists.alioth.debian.org>
+Uploaders: Romain Beauxis <toots@rastageeks.org>, Bertrand Marc <beberking@gmail.com>
+Build-Depends: debhelper (>= 5), bzip2, x11proto-core-dev, ia32-libs [amd64],
+ libx11-dev, libxtst-dev, libxxf86misc-dev, libxxf86vm-dev, libxinerama-dev, libqt3-mt-dev, libstdc++5,
+ qt3-dev-tools, docbook-xml (>= 4.4), docbook-xsl (>= 1.70.1), xsltproc, rpl
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-fglrx/fglrx-driver/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-fglrx/fglrx-driver/trunk
+XS-Autobuild: yes
+
+Package: fglrx-driver
+Architecture: i386 amd64
+Depends: ${shlibs:Depends}, xserver-xorg (>= 1:7.1.0)
+Recommends: fglrx-kernel-src (= ${binary:Version}) | fglrx-kernel, fglrx-glx, fglrx-glx-ia32 [amd64]
+Provides: xserver-xorg-video-2
+Suggests: fglrx-control
+Description: non-free AMD/ATI r5xx, r6xx display driver
+ Display driver for the ATI recent Radeon and FireGL graphics cards.
+ .
+ This package provides 2D display drivers and hardware accelerated OpenGL
+ for X.Org version 7.1. For 3D acceleration to work, you will need to
+ compile the fglrx kernel module for your kernel: see the fglrx-kernel-src
+ package. Note that the driver will work without the kernel module, but 3D
+ acceleration will be disabled.
+ .
+ The driver can work with plain mesa libGL, but some applications may require
+ the proprietary libGL. This library is shipped in the fglrx-glx package.
+ .
+ This driver is not free. As an alternative, you may try the newest free 
+ driver xserver-xorg-video-radeonhd.
+
+Package: fglrx-glx
+Architecture: i386 amd64
+Depends: ${shlibs:Depends}, fglrx-driver (= ${binary:Version})
+Conflicts: nvidia-glx
+Description: proprietary libGL for the non-free AMD/ATI r5xx, r6xx display driver
+ Display driver for the ATI recent Radeon and FireGL graphics cards.
+ .
+ This package provides the proprietary libGL shipped by ATI.
+ .
+ This driver is not free. As an alternative, you may try the newest free
+ driver xserver-xorg-video-radeonhd.
+
+Package: fglrx-glx-ia32
+Architecture: amd64
+Depends: ${shlibs:Depends}, fglrx-driver (= ${binary:Version})
+Conflicts: nvidia-glx-ia32
+Description: proprietary libGL for the non-free AMD/ATI r5xx, r6xx display driver
+ Display driver for the ATI recent Radeon and FireGL graphics cards.
+ .
+ This package provides the proprietary 32 bit libGL shipped by ATI for 
+ emulated userspace on amd64.
+ .
+ This driver is not free. As an alternative, you may try the newest free
+ driver xserver-xorg-video-radeonhd.
+
+Package: fglrx-kernel-src
+Architecture: i386 amd64
+Depends: debhelper (>= 5), make, bzip2
+Recommends: module-assistant | kernel-package
+Suggests: fglrx-driver
+Description: kernel module source for the non-free AMD/ATI r5xx, r6xx display driver
+ Display driver for the ATI Radeon and FireGL graphics cards.
+ .
+ This package provides the kernel module build environment.
+
+Package: fglrx-control
+Architecture: i386 amd64
+Depends: ${shlibs:Depends}
+Provides: fglrx-control-qt3
+Replaces: fglrx-control-qt3, fglrx-amdcccle
+Conflicts: fglrx-control-qt3, fglrx-control-qt2
+Description: control panel for the non-free AMD/ATI r5xx, r6xx display driver
+ Control panel for the ATI recent Radeon and FireGL graphics cards.
+ .
+ The control panel shows detailed information on your display adapter
+ and allows you to set dual screen options, adjust gamma correction
+ and set TV out options.
+
+Package: fglrx-amdcccle
+Architecture: all
+Depends: fglrx-control
+Description: control panel for the non-free AMD/ATI r5xx, r6xx display driver
+ Display driver for the ATI recent Radeon and FireGL graphics cards.
+ .
+ This is a dummy package for easy transition with ATI's packages.
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx.lintian-overrides
+++ fglrx-driver-8.47.3/debian/fglrx-glx.lintian-overrides
@@ -0,0 +1,2 @@
+fglrx-glx: no-shlibs-control-file usr/lib/libGL.so.1.2
+fglrx-glx: package-name-doesnt-match-sonames libGL1
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx.postrm
+++ fglrx-driver-8.47.3/debian/fglrx-glx.postrm
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> 'remove'
+#        * <postrm> 'purge'
+#        * <old-postrm> 'upgrade' <new-version>
+#        * <new-postrm> 'failed-upgrade' <old-version>
+#        * <new-postrm> 'abort-install'
+#        * <new-postrm> 'abort-install' <old-version>
+#        * <new-postrm> 'abort-upgrade' <old-version>
+#        * <disappearer's-postrm> 'disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+
+
+case "$1" in
+
+    remove|purge|disappear)
+        dpkg-divert --list | grep fglrx | grep -v ia32 | grep 'local diversion of' | cut -d' ' -f4 | while read i; do dpkg-divert --rename --remove "$i"; done 2>/dev/null
+        dpkg-divert --list | grep fglrx-glx | grep -v ia32 | grep "^diversion of" | cut -d' ' -f3 | while read i; do \
+          dpkg-divert --package fglrx-glx --rename --remove "$i"; done 2>/dev/null
+	dpkg-divert --list | grep fglrx-driver | grep -v ia32 | grep "^diversion of" | cut -d' ' -f3 | while read i; do \
+	  dpkg-divert --package fglrx-driver --rename --remove "$i"; done 2>/dev/null
+        ldconfig
+    ;;
+
+    *)
+        exit 0
+    ;;
+esac
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx-ia32.lintian-overrides
+++ fglrx-driver-8.47.3/debian/fglrx-glx-ia32.lintian-overrides
@@ -0,0 +1,2 @@
+fglrx-glx-ia32: shlib-with-non-pic-code emul/ia32-linux/usr/lib/libGL.so.1.2
+fglrx-glx-ia32: no-shlibs-control-file emul/ia32-linux/usr/lib/libGL.so.1.2
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx.dirs
+++ fglrx-driver-8.47.3/debian/fglrx-glx.dirs
@@ -0,0 +1 @@
+usr/share/lintian/overrides
--- fglrx-driver-8.47.3.orig/debian/rules
+++ fglrx-driver-8.47.3/debian/rules
@@ -0,0 +1,270 @@
+#!/usr/bin/make -f
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+ifeq (,$(DEB_BUILD_ARCH))
+	DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+endif
+
+VERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2)
+
+#UPSTREAM_VERSION := $(basename $(VERSION))
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 | cut -d'-' -f1)
+
+KSRCDIR  := usr/src/modules/fglrx
+PATCHDIR := debian/patches
+
+ifeq ($(DEB_BUILD_ARCH),amd64)
+ARCH := arch/x86_64
+XDIR := x710_64a
+LIB  := lib64
+else
+ARCH := arch/x86
+XDIR := x710
+LIB  := lib
+endif
+
+# Package names
+PKG_driver      := fglrx-driver
+PKG_glx         := fglrx-glx
+PKG_glx_ia32    := fglrx-glx-ia32
+PKG_kernel_src  := fglrx-kernel-src
+PKG_control     := fglrx-control
+PKG_amdcccle     := fglrx-amdcccle
+
+ifneq (,$(filter VER=%,$(DEB_BUILD_OPTIONS)))
+	NEW_UPSTREAM_VERSION := $(subst VER=,,$(filter VER=%,$(DEB_BUILD_OPTIONS)))
+	INSTALLER := ati-driver-installer-$(NEW_UPSTREAM_VERSION)-x86.x86_64.run
+	URL_PATH := https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux
+	CACHEDIR := /tmp
+endif
+
+build: debian/man/Makefile
+	dh_testdir
+	# build man pages
+	$(MAKE) -C debian/man
+
+debian/man/Makefile: debian/man/configure
+	(cd debian/man && \
+	chmod +x configure install-sh missing && \
+	LICENSE_FILE=/usr/share/doc/$(PKG_driver)/copyright \
+	./configure --prefix=/usr --mandir=/usr/share/man --with-xserver=Xorg)
+
+debian/man/configure:
+	(cd debian/man && \
+	chmod +x autogen.sh && \
+	./autogen.sh --copy)
+
+clean:
+	dh_testdir
+	#dh_testroot
+	dh_clean
+	-rm -fr usr lib etc opt
+	-rm -fr extra_src
+	# clean man pages
+	[ ! -f debian/man/Makefile ] || $(MAKE) -C debian/man distclean
+	-rm -f debian/man/atieventsd.8
+
+distclean: clean
+
+binary: binary-arch binary-indep
+
+binary-arch: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Create the directories to install into
+	dh_installdirs -p$(PKG_kernel_src) \
+		$(KSRCDIR) \
+		$(KSRCDIR)/debian
+
+	cp common/usr/share/man/man8/atieventsd.8 \
+	    debian/man/atieventsd.8
+
+	dh_install
+
+	dh_install -p$(PKG_driver) "$(ARCH)/usr/X11R6/bin/fgl*" "usr/bin"
+	dh_install -p$(PKG_driver) "$(ARCH)/usr/X11R6/bin/ati*" "usr/bin"
+	dh_install -p$(PKG_driver) "$(ARCH)/usr/sbin/ati*"      "usr/sbin"
+
+	dh_install -p$(PKG_glx) "$(ARCH)/usr/X11R6/$(LIB)/libGL*"           "usr/lib"
+	dh_install -p$(PKG_driver) "$(ARCH)/usr/X11R6/$(LIB)/libfglrx*"           "usr/lib"
+	
+	dh_install -p$(PKG_driver) "$(ARCH)/usr/X11R6/$(LIB)/modules/dri/*"   "usr/lib/dri"
+	dh_install -p$(PKG_driver) "$(XDIR)/usr/X11R6/$(LIB)/modules/*"       "usr/lib/xorg/modules"
+	
+ifeq ($(DEB_BUILD_ARCH),amd64)
+	dh_install -p$(PKG_glx_ia32) "arch/x86/usr/X11R6/lib/libGL*"           "emul/ia32-linux/usr/lib"
+	dh_install -p$(PKG_glx_ia32) "arch/x86/usr/X11R6/lib/modules/dri/*"    "emul/ia32-linux/usr/lib/dri"
+        # replace library paths -- careful, these are binary files
+        # The new string must have same length as ne old one..
+	rpl -v -e '/usr/X11R6/lib64/modules/dri\0' \
+	          '/usr/lib/dri\0!!!!!!!!!!!!!!!!' \
+	          debian/$(PKG_glx)/usr/lib/libGL.so.1.2
+	rpl -v -e '/usr/X11R6/lib/modules/dri\0' \
+	          '/usr/lib32/dri\0!!!!!!!!!!!!' \
+	          debian/$(PKG_glx_ia32)/emul/ia32-linux/usr/lib/libGL.so.1.2	
+else
+	rpl -v -e '/usr/X11R6/lib/modules/dri\0' \
+	          '/usr/lib/dri\0!!!!!!!!!!!!!!' \
+	          debian/$(PKG_glx)/usr/lib/libGL.so.1.2
+endif
+
+	# create symlinks to shared libs; fixes a lintian error
+	/sbin/ldconfig -n debian/$(PKG_glx)/usr/lib
+	/sbin/ldconfig -n debian/$(PKG_glx_ia32)/emul/ia32-linux/usr/lib
+	/sbin/ldconfig -n debian/$(PKG_driver)/usr/lib
+
+	cp "debian/$(PKG_driver).lintian-overrides" "debian/$(PKG_driver)/usr/share/lintian/overrides/$(PKG_driver)"
+	cp "debian/$(PKG_glx).lintian-overrides" "debian/$(PKG_glx)/usr/share/lintian/overrides/$(PKG_glx)"
+	cp "debian/$(PKG_glx_ia32).lintian-overrides" "debian/$(PKG_glx_ia32)/usr/share/lintian/overrides/$(PKG_glx_ia32)"
+
+	dh_install -p$(PKG_driver) "common/etc/ati/signature"           "etc/ati"
+	dh_install -p$(PKG_driver) "common/etc/ati/control"           "etc/ati"
+	dh_install -p$(PKG_driver) "common/etc/ati/amdpcsdb.default"  "etc/ati" 
+	chmod -x debian/$(PKG_driver)/etc/ati/amdpcsdb.default 
+
+	dh_install -p$(PKG_driver) "debian/acpi/*.sh"           "etc/acpi"
+	dh_install -p$(PKG_driver) "debian/acpi/events/fglrx-*" "etc/acpi/events"
+
+	dh_install -p$(PKG_kernel_src) \
+		common/lib/modules/fglrx/build_mod/*.c            \
+		common/lib/modules/fglrx/build_mod/*.h            \
+		common/lib/modules/fglrx/build_mod/*.sh           \
+		$(ARCH)/lib/modules/fglrx/build_mod/lib*           \
+		common/lib/modules/fglrx/build_mod/2.6.x/Makefile \
+		$(KSRCDIR)
+	dh_install -p$(PKG_kernel_src)         \
+		debian/changelog               \
+		debian/copyright               \
+		debian/compat                  \
+		debian/module/rules            \
+		debian/module/control.template \
+		debian/module/dirs.template    \
+		$(KSRCDIR)/debian
+
+	(cd debian/$(PKG_kernel_src)/$(KSRCDIR); \
+	 for file in $(CURDIR)/$(PATCHDIR)/[0-9]*-*; do \
+	  echo "### applying patch: $$file"; \
+	  patch -i $$file -p0 --no-backup-if-mismatch || exit 1; \
+	 done)
+
+	chmod +x debian/$(PKG_driver)/etc/acpi/*.sh
+	chmod +x "debian/$(PKG_kernel_src)/$(KSRCDIR)/debian/rules"
+	chmod +x "debian/$(PKG_kernel_src)/$(KSRCDIR)/make.sh"
+
+	(cd debian/$(PKG_kernel_src)/usr/src \
+	 && chown -R root:src modules \
+	 && tar -c modules | bzip2 > fglrx.tar.bz2 \
+	 && rm -rf modules)
+
+	# install panel files
+	dh_install -p$(PKG_control) $(ARCH)/usr/X11R6/bin/amdcccle usr/bin
+	dh_install -p$(PKG_control) common/usr/share/gnome/apps/amdcccle.desktop usr/share/applications
+	dh_install -p$(PKG_control) common/usr/share/icons/* usr/share/icons
+	dh_install -p$(PKG_control) common/usr/share/applnk/amdcccle.kdelnk usr/share/applnk
+	chmod -x debian/$(PKG_control)/usr/share/applications/amdcccle.desktop
+	chmod -x debian/$(PKG_control)/usr/share/icons/ccc_small.xpm
+	chmod -x debian/$(PKG_control)/usr/share/icons/ccc_large.xpm
+	chmod -x debian/$(PKG_control)/usr/share/applnk/amdcccle.kdelnk
+	dh_desktop -p$(PKG_control)
+
+
+	dh_installinit
+	dh_installdocs
+	dh_installman
+	dh_installchangelogs
+	dh_fixperms
+	dh_link
+	dh_strip
+	dh_compress
+	dh_makeshlibs -XlibGL 
+	dh_installdeb
+	dh_shlibdeps 
+	dh_gencontrol -p$(PKG_driver)
+	dh_gencontrol -p$(PKG_control)
+	dh_gencontrol -p$(PKG_glx)
+	dh_gencontrol -p$(PKG_kernel_src)
+ifeq ($(DEB_BUILD_ARCH),amd64)
+	dh_gencontrol -p$(PKG_glx_ia32)
+endif
+	dh_gencontrol -p$(PKG_amdcccle)
+	dh_md5sums
+	dh_builddeb -p$(PKG_driver)
+	dh_builddeb -p$(PKG_control)
+	dh_builddeb -p$(PKG_glx)
+	dh_builddeb -p$(PKG_kernel_src)
+ifeq ($(DEB_BUILD_ARCH),amd64)
+	dh_builddeb -p$(PKG_glx_ia32)
+endif
+	dh_builddeb -p$(PKG_amdcccle)
+
+binary-indep: build
+
+get-orig-source-checks:
+
+	# this target needs DEB_BUILD_OPTIONS to contain the version specification
+	# in the following form: VER=some.version.number
+
+	(if [ -z "$(NEW_UPSTREAM_VERSION)" ] ; \
+	 then \
+	  echo "Version not defined" ; \
+	  exit 1 ; \
+	 fi)
+
+	# if dpkg-parsechangelog fails, we're not running
+	#the command from the proper place
+	(if [ -z "$(UPSTREAM_VERSION)" ] ; \
+	 then \
+	  echo "Run this command from the root of the $(PKG_driver) package" ; \
+	  exit 1 ; \
+	 fi)
+
+$(INSTALLER):
+
+	# make sure the run package is in the proper place
+	# but first try to look in the "cache"
+
+	# for some reason wget refuses to clobber and restarts everytime
+	#wget $(URL_PATH)/$(INSTALLER) -c -O $(CACHEDIR)/$(INSTALLER)
+
+	[ -f $(CACHEDIR)/$(INSTALLER) ] || wget $(URL_PATH)/$(INSTALLER) -c -O $(CACHEDIR)/$(INSTALLER)
+	cp $(CACHEDIR)/$(INSTALLER) .
+
+get-orig-source: ../$(PKG_driver)_$(NEW_UPSTREAM_VERSION).orig.tar.gz
+
+../$(PKG_driver)_$(NEW_UPSTREAM_VERSION).orig.tar.gz: get-orig-source-checks $(INSTALLER)
+
+	(mkdir $(PKG_driver)-$(NEW_UPSTREAM_VERSION).orig \
+	 && cd $(PKG_driver)-$(NEW_UPSTREAM_VERSION).orig \
+	 && /bin/sh ../$(INSTALLER) --extract . \
+	 && rm -f README.distro *.sh \
+	 && rm -fr packages setup.data x4* \
+	 && rm -f arch/*/lib/modules/fglrx/fglrx.*.o)
+
+	# create the tarball
+	(tar c $(PKG_driver)-$(NEW_UPSTREAM_VERSION).orig \
+	 | gzip --best --rsyncable > $(PKG_driver)_$(NEW_UPSTREAM_VERSION).orig.tar.gz \
+	 && mv $(PKG_driver)_$(NEW_UPSTREAM_VERSION).orig.tar.gz ../)
+
+	# cleanup
+	rm -fr $(PKG_driver)-$(NEW_UPSTREAM_VERSION).orig && \
+	rm $(INSTALLER)
+
+.PHONY: binary binary-arch binary-indep build clean distcleam get-orig-source get-orig-source-checks
--- fglrx-driver-8.47.3.orig/debian/fglrx-kernel-src.links
+++ fglrx-driver-8.47.3/debian/fglrx-kernel-src.links
@@ -0,0 +1 @@
+usr/share/modass/packages/default.sh usr/share/modass/packages/fglrx-kernel-src
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx-ia32.preinst
+++ fglrx-driver-8.47.3/debian/fglrx-glx-ia32.preinst
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> 'install'
+#        * <new-preinst> 'install' <old-version>
+#        * <new-preinst> 'upgrade' <old-version>
+#        * <old-preinst> 'abort-upgrade' <new-version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    install)
+	# remove old diversion if needed
+	dpkg-divert --list | grep fglrx | grep ia32 | grep 'local diversion of' | cut -d' ' -f4 | while read i; do dpkg-divert --rename --remove "$i"; done 2>/dev/null
+	dpkg-divert --list | grep fglrx-driver | grep ia32 | grep "^diversion of" | cut -d' ' -f3 | while read i; do \
+	dpkg-divert --package fglrx-driver --rename --remove "$i"; done 2>/dev/null
+
+	# Ad new diversion
+	mkdir -p /emul/ia32-linux/usr/lib/fglrx/diversions
+        dpkg-divert --package fglrx-glx-ia32 --divert /emul/ia32-linux/usr/lib/fglrx/diversions/libGL.so.1.2  --rename /emul/ia32-linux/usr/lib/libGL.so.1.2
+	dpkg-divert --package fglrx-glx-ia32 --divert /emul/ia32-linux/usr/lib/fglrx/diversions/libGL.so.1  --rename /emul/ia32-linux/usr/lib/libGL.so.1
+    ;;
+esac
+
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx-ia32.postinst
+++ fglrx-driver-8.47.3/debian/fglrx-glx-ia32.postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> 'configure' <most-recently-configured-version>
+#        * <old-postinst> 'abort-upgrade' <new-version>
+#        * <conflictor's-postinst> 'abort-remove' 'in-favour' <package> <new-version>
+#        * <postinst> 'abort-remove'
+#        * <deconfigured's-postinst> 'abort-deconfigure' 'in-favour' <failed-install-package> <version> 'removing' <conflicting-package> <version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+case "$1" in
+
+    configure)
+          ldconfig
+    ;;
+esac
+
+#DEBHELPER#
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.README.Debian
+++ fglrx-driver-8.47.3/debian/fglrx-driver.README.Debian
@@ -0,0 +1,81 @@
+ATI display driver for Debian
+=============================
+
+Further information can be found at http://www.ati.com/ -- look for
+the "Drivers & Software" page and follow links to the Linux drivers.
+
+
+Installing over packages built by the ATI installer
+---------------------------------------------------
+
+Although the ATI installer can create Debian packages based on earlier
+versions of my work, I do not support those packages. You should purge
+the packages built by the ATI installer before installing the official
+Debian fglrx packages.
+
+Please don't send bug reports to the Debian Bug Tracking System if you
+try to upgrade from third-party packages and you run into problems.
+
+
+Building the kernel module
+--------------------------
+
+After you have installed the packages, you'll also need to install a
+suitable kernel module to enable 3D acceleration. Please install the
+fglrx-kernel-src package and follow the instructions therein.
+
+Enabling XV driver with release 8.42.3 (and possibly above)
+-----------------------------------------------------------
+
+In order to enable XV on this release, you need to add this line to the
+device section of your xorg.conf:
+  Option  "TexturedVideo" "True"
+
+
+Screen corruption with release 8.43.2 (and possibly above)
+----------------------------------------------------------
+
+Some user reported screen corruption on the lower right corner.
+Some of them also reported that setting this option in de device section 
+of your xorg.conf fixes it:
+  Option "XAANoOffscreenPixmaps" "true"
+
+
+Crashes in Qt applications
+--------------------------
+
+The fglrx driver may fail to detect the monitor's resolution and return
+invalid display width and height values to the X server. This can cause
+floating point exceptions in Qt applications[1,2] and crashes during
+startup in OpenOffice.org[3] -- and quite possibly other problems too.
+
+It has been reported[4] that you can work around this problem by adding
+the following line to the Monitor section of /etc/X11/xorg.conf:
+
+  DisplaySize 400 300
+
+The numbers are in millimeters. You should of course adjust the numbers
+to match the actual size of your monitor.
+
+----------
+1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=384325
+2. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388271
+3. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387138
+4. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=384325;msg=47
+
+
+ATI logo
+-------------------------------------------------------
+
+There is an interesting hidden option in the ATI Linux display drivers:
+place two files named logo.xbm and logo_mask.xbm in /etc/ati, restart X
+and you'll have a nice little logo in the corner of your screen. Look in
+/usr/share/doc/fglrx-driver/examples for example files supplied by ATI.
+
+The image appears on both monitors in a Big Desktop configuration.
+
+[adapted from http://www.phoronix.com/redblog/?p=blog&i=NDEwMA]
+
+
+ -- Flavio Stanchina <flavio@stanchina.net>
+
--- fglrx-driver-8.47.3.orig/debian/shlibs.local
+++ fglrx-driver-8.47.3/debian/shlibs.local
@@ -0,0 +1 @@
+libGL 1 libgl1-mesa-glx | libgl1 | fglrx-glx
--- fglrx-driver-8.47.3.orig/debian/fglrx-control.manpages
+++ fglrx-driver-8.47.3/debian/fglrx-control.manpages
@@ -0,0 +1 @@
+debian/amdcccle.1
--- fglrx-driver-8.47.3.orig/debian/changelog
+++ fglrx-driver-8.47.3/debian/changelog
@@ -0,0 +1,703 @@
+fglrx-driver (8.47.3-3~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports. Thanks to  
+  Stuart Prescott for testing and reporting.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Tue, 13 May 2008 22:16:22 +0200
+
+fglrx-driver (8.47.3-3) unstable; urgency=low
+
+  * Previous fix was not complete. Now the package builds on i386..
+  Thanks to BĂ¡lint RĂ©czey and Sedat Dilek again..
+  Closes: #471334
+
+ -- Romain Beauxis <toots@rastageeks.org>  Sun, 16 Mar 2008 03:19:12 +0100
+
+fglrx-driver (8.47.3-2) unstable; urgency=low
+
+  * Fixed compilation with 386 architectures:
+    splited dh_gencontrol invokations.
+  Thanks to Sedat Dilek for reporting and testing.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Sun, 16 Mar 2008 03:13:39 +0100
+
+fglrx-driver (8.47.3-1) unstable; urgency=low
+
+  * New upstream release
+  Closes: #469562
+  * Changed maintainer and uploaders fields to reflect new team.
+  * Switched to svn.debian.org, added corresponding headers in debian/control
+  * Added a fglrx-glx-ia32 for amd64, with 32 bit libGL. Recommending the
+    package in fglrx-driver.
+  Closes: #462362, #469962
+
+ -- Romain Beauxis <toots@rastageeks.org>  Thu, 06 Mar 2008 02:00:34 +0100
+
+fglrx-driver (8.45.5-1) unstable; urgency=low
+
+  * New "valentine's" release.
+  * Added a fglrx-glx package to install fglrx's private libGL
+    Closes: #463723, #451119
+  * First GL application no longer freezes
+    Closes: #460237
+
+ -- Romain Beauxis <toots@rastageeks.org>  Thu, 14 Feb 2008 14:21:04 +0100
+
+fglrx-driver (8.45.4-1) unstable; urgency=low
+
+  * New upstream release
+  * Widescreen resolutions fixed
+    Closes: #457298
+  * Support suspend on latest kernels
+    Closes: #402273
+  * Support custom modelines
+    Closes: #459852
+  * Updated standards to 3.7.3
+
+ -- Romain Beauxis <toots@rastageeks.org>  Fri, 18 Jan 2008 16:18:56 +0100
+
+fglrx-driver (8.43.2-2) unstable; urgency=low
+
+  * Updated package description:
+    + Removed supported cards list, this was misleading and broken 
+      from one release to another
+    + Written excplicitly that radeonhd is a possible alternative
+  * Updated README.Debian:
+    + Removed 3D acceletation tweaking, they were outdated for 
+      recent versions that use plain mesa
+    + Added workaround for screen corruption (Closes: #449117)
+
+ -- Romain Beauxis <toots@rastageeks.org>  Wed, 05 Dec 2007 16:16:08 +0100
+
+fglrx-driver (8.43.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Marketing naming and versioning. Keeping original names,
+    and using module's claimed version, 8.43.2.
+  * Droped 2.6.23 support patch, fixed upstream
+
+ -- Romain Beauxis <toots@rastageeks.org>  Thu, 22 Nov 2007 13:45:43 +0100
+
+fglrx-driver (8.42.3-3) unstable; urgency=low
+
+  * Fixed dpkg-divert removal calls.
+    Remove any diversion that's refering to fglrx.
+  * Added basic patch to support all hardware.
+    Please note that this is a trivial patch that only
+    add pci ids to the module list. Not *any* waranty that
+    this will make *your* special fireGL card work.
+    For strong support, please bug upstream and wait for new releases...
+  * Added missing XS-Autobuild: yes to debian/control and notice in 
+    debian/copyright
+  * Changed maintainer from binary module package templates.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Mon, 12 Nov 2007 12:05:03 +0100
+
+fglrx-driver (8.42.3-2) unstable; urgency=low
+
+  * Upload to unstable. Release does not seem good, but at least it works.
+  * Added instruction to get XV driver work with this release.
+  * Module build fixed for 2.6.23. It was applied with last release, but I
+    forgot to close.. (Closes: #446967)
+  * Compatibility with standard mesa GL support is confirmed on my machine.
+    (Closes: #401584)
+
+ -- Romain Beauxis <toots@rastageeks.org>  Mon, 29 Oct 2007 14:35:48 +0100
+
+fglrx-driver (8.42.3-1) experimental; urgency=low
+
+  * New upstream release (Closes: #447854, #442092)
+  * Works with latest X.org packages (Closes: #443129)
+  * Support for AIGLX (Closes: #391279)
+  * Updated package descriptions (Closes: #446678)
+  * Removed custom libGL and devel package as it seems to be built 
+    upon standard libGL.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Wed, 24 Oct 2007 13:38:40 +0200
+
+fglrx-driver (8.40.4-2) unstable; urgency=low
+
+  * Added signature and control files to remove watermark issue,
+  thanks to Soeren Sonnenburg.
+  Closes: #434736
+
+ -- Romain Beauxis <toots@rastageeks.org>  Wed, 15 Aug 2007 13:07:58 +0200
+
+fglrx-driver (8.40.4-1) experimental; urgency=low
+
+  * New upstream release
+  * Not fixed watermark issue, hence upload to experimental..
+
+ -- Romain Beauxis <toots@rastageeks.org>  Wed, 15 Aug 2007 03:29:09 +0200
+
+fglrx-driver (8.39.4-1) experimental; urgency=low
+
+  * New upstream release
+  * Upload to experimental because of a nasty
+  watermark bug, see:
+    http://www.phoronix.com/?page=news_item&px=NTkwNg
+  * Module will now build against a 2.6.22 kernel
+  (paravirt_ops is not only GPL on this kernel)
+  Closes: #420842
+  * Added dummy fglrx-amdcccle package for 
+  compatibility with ATI's packages.
+  Closes: #430962
+  * Removed debian/rules clean call in module's
+  kdist_image target. (Closes: #431134)
+  * Removed patch for ioctl32.h: applied upstream.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Fri, 20 Jul 2007 14:07:31 +0200
+
+fglrx-driver (8.38.6-2) unstable; urgency=low
+
+  * Added back new catalyst control panel. 
+
+ -- Romain Beauxis <toots@rastageeks.org>  Thu, 28 Jun 2007 15:41:58 +0200
+
+fglrx-driver (8.38.6-1) experimental; urgency=low
+
+  * New upstream release 
+  * Commented out fglrx-control until
+    I find out where it has gone...
+    If this removal is intentional, build-deps
+    have to ble cleaned too.
+  * Regenerated 00-make.sh patch
+  * Added ioctl32_fix.diff (Closes: #428527)
+  * Updated man pages, thanks to  
+    Daniel Leidert (Closes: #402383)
+  * Changed fglrx-driver.preinst to avoid using
+    /var/lib/dpkg/status directly (thanks to lintian)
+  * Changed ${Source-Version} to ${binary:Version} 
+    in debian/control (again thanks to lintian...)
+
+ -- Romain Beauxis <toots@rastageeks.org>  Tue, 26 Jun 2007 15:15:16 +0200
+
+fglrx-driver (8.37.6-1) unstable; urgency=low
+
+  * New upstream release
+  * get-orig-source rule (Closes: #409732)
+  * upstream corrected version check (Closes: #420174)
+
+ -- Romain Beauxis <toots@rastageeks.org>  Fri, 01 Jun 2007 14:07:15 +0200
+
+fglrx-driver (8.36.5-1) experimental; urgency=low
+
+  * New upstream release. Closes: #412007
+  * Added myself as uploader, with Flavio's agreement.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Tue, 24 Apr 2007 12:18:25 +0200
+
+fglrx-driver (8.34.8-1) experimental; urgency=low
+
+  * New upstream version. (Closes: #412007, #412106)
+
+  * Highlights from the release notes:
+    - A system hang no longer occurs when attempting to resume from
+      hibernation mode.
+    - Loading the XVideo Extension on 64-bit Xorg 6.9+ systems no longer
+      results in the X Server segfaulting when launching.
+      This issue was known to occur with Radeon X1K products.
+    - Running aticonfig--dtop=(horizontal|vertical) no longer results in clone
+      mode being activated when attempting to enable big desktop mode.
+    - Switching between X Server and text console mode no longer results in
+      a system failing to respond. [fixed in version 8.32.5]
+      (? maybe closes #402375 and maybe also #345040 ?)
+
+  * Drop list of supported chipsets, because the driver doesn't list them in
+    the X server log file any more.
+
+  * Add patch 20-fglrx-8.34.8-for-2.6.20 to support kernel 2.6.20;
+    thanks to "Whoopie" for the patch and to Soeren for the link.
+
+  * Fix the kernel module's debian/rules to let it understand --rootcmd;
+    thanks to Eric Cooper for the patch.
+    (Closes: #364528)
+
+  * Update man pages as of 2006-12-15, matching version 8.28.8; the license
+    was rewritten, without significant changes in the rights granted.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat, 24 Feb 2007 01:24:10 +0100
+
+fglrx-driver (8.31.5-1) experimental; urgency=low
+
+  * New upstream version. (Closes: #399136, #399301)
+    - Update list of supported cards.
+
+  * Add patch 12-CONFIG_X86_XEN to allow building on Xen-enabled kernels;
+    thanks to Loic Minier.
+    (Closes: #368802)
+
+  * Add patch 13-config_h-is-gone to allow building on Linux 2.6.19-rc2:
+    linux/config.h is no longer generated, include linux/autoconf.h instead;
+    thanks to Julien BLACHE.
+    (Closes: #398980)
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sun, 19 Nov 2006 17:29:05 +0100
+
+fglrx-driver (8.30.3-1) experimental; urgency=low
+
+  * New upstream version. (Closes: #388794)
+    - Move conffiles from /etc to /etc/ati to match upstream.
+    - Update list of supported cards.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu,  2 Nov 2006 23:56:01 +0100
+
+fglrx-driver (8.28.8-3) unstable; urgency=low
+
+  * Explicitly call moc-qt3, not just moc, when building the control panel.
+    Fixes FTBFS when qt4-dev-tools is installed and moc-qt4 is the default.
+    (Closes: #389504; really closes #383974 which was the same bug)
+
+  * /etc/acpi/fglrx-powermode.sh tried to source /etc/default/fglrx, but the
+    file we actually install is /etc/default/fglrx-driver.
+    (Closes: #389744)
+
+  * Changes to the README of fglrx-driver:
+    - Add link to http://dri.freedesktop.org/wiki/DriTroubleshooting
+    - Add a note about http://bugs.debian.org/384325
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu,  2 Nov 2006 00:26:39 +0100
+
+fglrx-driver (8.28.8-2) unstable; urgency=low
+
+  * Acknowledge NMUs by Chris Hanson. Thanks!
+    (Closes: #382038, #388812, #388840)
+
+  * Change fglrx-driver's dependencies and description to match the switch to
+    X.Org version 7.1.
+
+  * Switch to debhelper >= 5, no changes. Actually done in 8.28.8-1, but it
+    wasn't recorded in the changelog due to a slight error by my sponsor.
+
+  * Build the man pages from source again now that Daniel's NMU of docbook-xsl
+    1.70.1 has entered testing.
+
+  * Reorder installation methods in the fglrx-kernel-src documentation; thanks
+    to Ted Percival for the patch.
+    (Closes: #384175)
+
+  * Un-capitalize the first letter of short descriptions.
+  * Remove useless installation instructions from the docs.
+  * Update list of supported cards.
+  * Style fixes to debian/acpi/fglrx-powermode.sh.
+  * Clean up debian/TODO.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Mon, 25 Sep 2006 01:28:23 +0200
+
+fglrx-driver (8.28.8-1.2) unstable; urgency=low
+
+  * NMU
+  * debian/control: change "Recommends: fglrx-kernel" to "Recommends:
+    fglrx-kernel-src | fglrx-kernel" to fix debcheck warning.
+
+ -- Chris Hanson <cph@debian.org>  Sat, 23 Sep 2006 13:31:12 -0400
+
+fglrx-driver (8.28.8-1.1) unstable; urgency=low
+
+  * NMU
+  * debian/rules: use Xorg 7.1 binaries.
+    (closes: Bug#382038, Bug#388812, Bug#388840)
+  * debian/control: change "Provides: xserver-xorg-video" to "Provides:
+    xserver-xorg-video-1.0".
+  * debian/rules, debian/fglrx-driver.manpages: decompress atievents.8 man
+    page in order to eliminate lintian error.
+  * debian/fglrx-driver.init: add LSB section to eliminate lintian
+    warning.
+
+ -- Chris Hanson <cph@debian.org>  Fri, 22 Sep 2006 21:45:56 -0400
+
+fglrx-driver (8.28.8-1) unstable; urgency=low
+
+  [ Flavio Stanchina ]
+  * Acknowledge NMU; adding changes of unreleased versions for history.
+    (Closes: #355485, #366564, #375001, #378496, #383974)
+
+  * Close remaining "new upstream version available" bugs.
+    (Closes: #369039, #369043)
+
+  * Standards-Version: 3.7.2
+
+  * Change debian/rules and debian/control to hardcode X implementation and
+    version. Now we just depend on X.Org version 7.0 and above.
+
+  * Update man pages. Daniel Leidert, the manpages maintainer, says Debian's
+    docbook stuff is hopelessly outdated, so I'm using precompiled man pages
+    provided by Daniel instead of building them from the DocBook sources.
+    Therefore, also remove the docbook stuff from the build dependencies.
+    (Closes: #360819, #360822, #369627)
+
+  * Patch firegl-public.c to use CONFIG_SMP rather than a custom macro defined
+    by make.sh, as that script is not called when building with Linux 2.6.
+    (Closes: #364762)
+
+  * fglrx-driver provides xserver-xorg-video.
+    (Closes: #365015, #385680)
+
+  * Clean up debian/NEWS and debian/TODO.
+
+  [ Chris Hanson ]
+  * Add atieventsd and associated ACPI files.
+  * Fix lintian errors:
+    - debian/control: Add pre-depends on x11-common.
+    - debian/fglrx-driver.shlibs: Update for changed libs.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat,  9 Sep 2006 14:05:04 +0200
+
+fglrx-driver (8.28.8-0.1) unstable; urgency=low
+
+  * Non-maintainer upload to get some of the worst issues fixed. Thanks to
+    Marco von Zwetselaar for doing most of the preliminary grunt work.
+  * New upstream version.
+    * Fixes issues with kernel panics. (Closes: #366564, #355485)
+    * Fixes FTBFS with newer kernels. (Closes: #378496, #375001)
+    * Fixes FTBFS with newer Qt. (Closes: #383974)
+    * Adapted patches 00-make.sh and 02-Makefile for the new source versions
+      (taken directly from Marco's packages).
+    * Removed obsolete patches 22-intermodule and 23-noiommu (integrated into
+      upstream, fixes issues with newer kernels).
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sat, 26 Aug 2006 02:14:54 +0200
+
+fglrx-driver (8.27.10-1) UNRELEASED; urgency=low
+
+  * New upstream version. Thanks to Chris for the patch.
+    - Fixes kernel module compilation problems with Linux 2.6.17.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu,  3 Aug 2006 23:06:00 +0200
+
+fglrx-driver (8.26.18-1) UNRELEASED; urgency=low
+
+  * New upstream version.
+
+  * Highlights from the release notes:
+    - Hotplug Support for Digital Flat Panels.
+    - Thermal Event Power Management.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Mon, 26 Jun 2006 17:42:25 +0200
+
+fglrx-driver (8.25.18-1) UNRELEASED; urgency=low
+
+  * New upstream version.
+
+  * Highlights from the release notes:
+    - Support for the FireGL V2200, V3350, V3400, V5200, V7200, V7300, V7350.
+    - The internal AGP GART is no longer provided.
+
+  * Bugs fixed upstream:
+    - Running two X servers simultaneously no longer results in the system
+      failing to respond.
+    - Toggling between console mode and X Server graphical mode no longer
+      results in a system hang.
+    - Attempting to enable clone mode or extended desktop mode no longer
+      results in the secondary display device failing to activate when using
+      the ATI Control Panel.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Mon, 29 May 2006 11:00:09 +0200
+
+fglrx-driver (8.24.8-1) unstable; urgency=low
+
+  * New upstream version.
+    (Closes: #362557)
+
+  * X.Org 7.0 support.
+    (Closes: #362087, #362278, #362485)
+
+  * Add patches from Gentoo to support kernel 2.6.16:
+    - debian/patches/22-intermodule.patch
+    - debian/patches/23-noiommu.patch
+    [thanks to Joerg (aka Kano) for the links]
+
+  * Add file "fglrx-supported.txt" to the fglrx-driver documentation: it's a
+    complete list of the chipsets supported by the fglrx driver, as reported
+    by the driver itself in the X.Org log file.
+
+  * Split README.Debian: the part about building the kernel module goes into
+    the fglrx-kernel-src package. While we're at it, expand said part by
+    picking from the instructions of my old unofficial packages.
+    (Closes: #343932)
+
+  * Remove rpm from the build dependencies as it is not needed anymore.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Tue, 18 Apr 2006 00:01:11 +0200
+
+fglrx-driver (8.23.7-1) unstable; urgency=low
+
+  [ Flavio Stanchina ]
+  * New upstream version. Highlights from the release notes:
+    - OpenGL 2.0 Enhancement
+    - Full Scene Anti-Aliasing Support
+    (Closes: #356135)
+
+  [ Steinar H. Gunderson ]
+  * Fix typo in debian/man script, fixing FTBFS.
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sun, 19 Mar 2006 03:45:01 +0100
+
+fglrx-driver (8.22.5-1) UNRELEASED; urgency=low
+
+  * New upstream version.
+    (Closes: #352487)
+  * Revamp the packaging scripts to pick the upstream files from an unpacked
+    (and cleaned up) ATI installer's directory structure, which allows us to
+    take advantage of the X.Org 6.9 binaries available therein.
+    (Closes: #345755)
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Mon, 27 Feb 2006 23:53:07 +0100
+
+fglrx-driver (8.21.7-1) UNRELEASED; urgency=low
+
+  * New upstream version. New features include OpenGL 2.0 support.
+    (Closes: #349369)
+  * Acknowledge NMU. Thanks Norbert!
+    (Closes: #345040, #346173)
+  * Add shlibs file to fix problem with diversion.
+    (Closes: #343997)
+  * Remove dummy file "debian/include/fglrx_pp_proto.h" because it's now
+    shipped with the control panel's source code.
+  * Update man pages.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Wed, 25 Jan 2006 12:00:26 +0100
+
+fglrx-driver (8.20.8-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added patch from http://lkml.org/lkml/2005/12/11/26 to get the driver
+    working with recent kernels. (closes: #345040)
+
+ -- Norbert Tretkowski <nobse@debian.org>  Fri,  6 Jan 2006 20:29:35 +0100
+
+fglrx-driver (8.20.8-1) unstable; urgency=low
+
+  * New upstream version. Highlights from the release notes:
+    - Attempting to resume from system suspension no longer results in the
+      system failing to respond.
+    - Kernel module compile issues with the stock 2.6.13 and 2.6.14 kernel are
+      now resolved.
+
+  * Add support for amd64. The .orig.tar.gz file now contains the pristine
+    upstream i386 and amd64 RPM files: this is less than ideal because we're
+    shipping several megabytes of binary files we'll never use and two copies
+    of the few files that are actually source code, but hand-picking only the
+    files we actually use would be a tedious and error-prone process.
+    (Closes: #341077)
+    - Update copyright file accordingly.
+    - Add build dependency on rpm.
+
+  * dpkg-divert can't move files between different filesystems. Therefore,
+    divert libGL to a subdirectory of /usr/X11R6/lib rather than /usr/share:
+    the latter can in fact be on a different filesystem, if I understand the
+    FHS correctly. On amd64, the same reasoning applies to the diversion of
+    the 32-bit libGL: keep it within /emul/ia32-linux.
+    (Closes: #341458)
+    - This change involves some trickery with dpkg-divert. I tested several
+      upgrade and downgrade scenarios and I hope I got it right, but please
+      keep an eye open for any mishaps.
+    - While we're at it, libGL is not architecture-independent so placing it
+      anywhere within /usr/share was incorrect anyway...
+
+  * Add dummy file "debian/include/fglrx_pp_proto.h" to be able to build the
+    control panel's source code without patching it.
+  * Don't ignore errors when building the control panel.
+  * Add man pages from Daniel Leidert.
+  * Set versioned dependency in the -dev package.
+  * The driver suggests the control panel.
+  * Fix handling of DEB_BUILD_OPTIONS:
+    - let dh_strip handle "nostrip";
+    - honor "noopt" and pass CFLAGS to sub-makes and gcc.
+  * Make lintian happy (or at least happier):
+    - remove unneeded extra license files;
+    - add ldconfig symlinks for the shared libraries;
+    - add overrides for a few problems we can't fix, at least for now.
+  * Fix debian/rules to avoid installing CVS directories.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Tue, 13 Dec 2005 12:58:39 +0100
+
+fglrx-driver (8.19.10-1) unstable; urgency=low
+
+  * New upstream version. Highlights from the release notes:
+    - PowerPlay(tm) Support
+    - fgl_glxgears Update
+    - Initial Suspend and Resume Support
+    - The latest proprietary driver introduces a resolution for drmMap
+      failures on 64bit NLD9 SP2 and 64bit Ubuntu Breezy distribution,
+      resolving an issue that prevented 3D acceleration.
+    [thanks to Alexandru for the patch]
+  * Initial upload to Debian.
+    - Include the complete license in debian/copyright.
+    - Rename control panel package from fglrx-control-qt3 to fglrx-control.
+    - Remove fglrx-sources package, it belongs in the source package.
+  * Stop patching the control panel source code due to licensing issues; this
+    is a workaround until ATI changes clause 1.d.vi of the license.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu, 17 Nov 2005 22:34:57 +0100
+
+fglrx-driver (8.18.8-1) experimental; urgency=low
+
+  * New upstream version (minor update).
+  * Updated desktop file.
+    [thanks to Daniel Leidert]
+  * Remove call to QApplication::setStyle() from panel/main.cpp, because:
+    - it was overriding the user's preferred window style;
+    - it caused compilation errors in some cases.
+    [thanks to Aaron for the patch]
+  * Clean up the control panel's makefile; among other things, stop creating a
+    bzipped copy of the panel binary that we don't use.
+  * Moved binaries from usr/X11R6/bin to usr/bin.
+  * Kernel 2.6.14 removes register_ioctl32_conversion() for AMD64.
+  * Build-Depends on libstdc++5 because the prebuilt binaries require it.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu, 10 Nov 2005 21:55:02 +0100
+
+fglrx-driver (8.18.6-1) experimental; urgency=low
+
+  * New upstream version. Highlights from the release notes:
+    - Dynamic Clock Gating
+    - Enhanced Support for OpenGL Development
+    - Dual Link Monitor Support
+    - Xinerama Support
+    - New X Server Configuration Utility
+    [thanks to Alexandru for the patch]
+  * Updated Build-Depends to handle both XFree86 and X.Org packages, as
+    suggested by Michel DĂ¤nzer and others.
+  * Add --referer=ati.com to the wget command line.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat, 22 Oct 2005 16:05:04 +0200
+
+fglrx-driver (8.16.20-1) experimental; urgency=low
+
+  * New upstream version. Highlights from the release notes:
+    - workstation performance improvement
+    - improved display detection support
+    - Linux 2.6.12 kernel support
+    - GCC 4.0 support
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat, 20 Aug 2005 11:08:25 +0200
+
+fglrx-driver (8.14.13-2) experimental; urgency=low
+
+  * debian/rules: run dh_shlibdeps with --exclude=emul to avoid errors on
+    32-bit libraries when building the 64-bit packages.
+    - We're not interested in 32-bit library dependencies anyway; users that
+      want to run 32-bit applications should install ia32-libs separately.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Mon, 13 Jun 2005 11:42:23 +0200
+
+fglrx-driver (8.14.13-1) experimental; urgency=low
+
+  * New upstream version.
+  * Create directory "usr/share/fglrx/diversions" in the preinst script again,
+    because the package hasn't been unpacked yet at this point.
+    - Unfortunately, due to what appears to be a bug in dpkg-divert, if you
+      installed 8.12.10-2 from scratch rather than upgrading, it's very likely
+      that the existing /usr/X11R6/lib/libGL.so.1.2 has been deleted. This has
+      no consequences until the fglrx driver is installed, but if you remove
+      it in the future, you'll need to reinstall xlibmesa-gl.
+  * [amd64] AMD64 RPMs are in a different directory.
+    [thanks to Alexandru for the hint]
+  * [amd64] Patch libGL.so at package creation, not during build.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sun, 12 Jun 2005 18:48:53 +0200
+
+fglrx-driver (8.12.10-2.1) experimental; urgency=low
+
+  * debian/control: also Build-Depend on libxtst-dev... Ooops...
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu,  2 Jun 2005 23:33:27 +0200
+
+fglrx-driver (8.12.10-2) experimental; urgency=low
+
+  * debian/control: Build-Depend on x-dev and libx11-dev rather than the
+    transitional xlibs-dev package.
+  * debian/rules: remove no-longer-used $(README) target.
+  * debian/rules: revamp build target to get rid of "build-stamp".
+  * debian/rules: put directory "usr/share/fglrx/diversions" in the package
+    rather than creating it in the preinst script.
+  * debian/rules: run dh_strip to remove unneeded debug information.
+  * debian/rules: removed --remove-files from the tar call because
+    a) it's pointless, as it is followed by "rm -r modules" already and
+    b) doesn't work with tar 1.15 that wants options before file names.
+    [thanks to Eduard Bloch and others for noticing this]
+  * debian/rules: compress the module tarball with bzip2 and name it
+    "fglrx.tar.bz2"; update instructions accordingly.
+    [thanks to Eduard Bloch for the suggestion]
+  * module/rules: warn the user if the unpacked source doesn't match the
+    installed fglrx-kernel-src package's version.
+  * module/control.template: upgrade Recommends: to Depends: fglrx-driver.
+  * [amd64] Add ia32-libs to Build-Depends.
+  * [amd64] Patch usr/X11R6/lib64/libGL.so.1.2 to fix the lib64 issue;
+    Build-Depend on rpl for this purpose.
+
+  Changes by Eduard Bloch:
+  * debian/README.Debian: removed the long collection of module-assistant
+    calls with kernel-source specs again and again.
+  * debian/control: moved kernel-package from Depends to Recommends in
+    fglrx-kernel-src (it does not require it, even documented in
+    README.Debian) and added module-assistant as alternative.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu,  2 Jun 2005 13:06:41 +0200
+
+fglrx-driver (8.12.10-1) experimental; urgency=low
+
+  * New upstream version. Thanks to Alexandru for the patch.
+  * debian/rules: handle X.Org 6.8.2 (yes, I switched to Ubuntu's X.Org).
+  * debian/patches-8.10.19/panel.diff: expand the "environment incomplete"
+    error message in the panel's Makefile to show exactly what it was looking
+    for, i.e. "$(MK_QTDIR)/include/qglobal.h"; hopefully, people seeing such
+    message will understand that they need to install the Qt3 header files.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat,  9 Apr 2005 17:51:11 +0200
+
+fglrx-driver (8.10.19-2) experimental; urgency=low
+
+  * Ooops... "README.Debian" wasn't being put in the binary packages. Moved
+    it into the debian directory so dh_installdocs finds it.
+  * Add patches to support kernel 2.6.11:
+    - 09-agp_backend
+    - 10-remap_pfn_range
+    - 11-four-level-pagetables
+  * Add more patches in the limbo directory, and also put them in the kernel
+    module's source tarball. Thanks to Alexandru for the patches.
+  * Add Conflicts: nvidia-glx to fglrx-driver.
+  * Change some Recommends: to Suggests:.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sun, 27 Mar 2005 11:52:40 +0200
+
+fglrx-driver (8.10.19-1) experimental; urgency=low
+
+  * New upstream version.
+  * Patches 07-include_pagemap, 08-firegl_pci_find_class included upstream.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Thu, 17 Feb 2005 11:12:57 +0100
+
+fglrx-driver (8.8.25-3) experimental; urgency=low
+
+  * Fix silly bug in preinst's diversion of 32-bit libGL.so on AMD64.
+    [thanks to Nicolas Fournier]
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat,  5 Feb 2005 16:13:51 +0100
+
+fglrx-driver (8.8.25-2) experimental; urgency=low
+
+  * AMD64 support! Thanks to Alexandru, Peter and others.
+  * X.Org support! Thanks to Alexandru.
+    - Note that I'm not building binary packages for AMD64 and X.Org, you'll
+      need to build them yourself.
+  * Removed changelog entries before 8.8.25 to unclutter the web page; they
+    are still available as "changelog.old" for those interested.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Sat, 29 Jan 2005 15:31:17 +0100
+
+fglrx-driver (8.8.25-1) experimental; urgency=low
+
+  * New upstream version.
+  * Trying to support module-assistant:
+    - drop XFree86 version from package names
+    - drop XFree86 and package versions from kernel source tarball's name
+    - create link /usr/share/modass/packages/fglrx-kernel-src -> default.sh
+  * Patch from Ă˜ystein GisnĂ¥s to make 'make-kpkg modules' work. It had been
+    sitting in my inbox for a while now...
+  * Support for previous driver versions has been removed to unclutter things
+    a little bit.
+
+ -- Flavio Stanchina <flavio@stanchina.net>  Tue, 18 Jan 2005 21:58:49 +0100
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx-ia32.dirs
+++ fglrx-driver-8.47.3/debian/fglrx-glx-ia32.dirs
@@ -0,0 +1 @@
+usr/share/lintian/overrides
--- fglrx-driver-8.47.3.orig/debian/amdcccle.1
+++ fglrx-driver-8.47.3/debian/amdcccle.1
@@ -0,0 +1,44 @@
+.\"     Title: FIREGLCONTROL
+.\"    Author: Daniel Leidert <daniel.leidert@wgdd.de>
+.\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
+.\"      Date: $Date: 2006-11-25 07:59:32 $
+.\"    Manual: Debian GNU/Linux fglrx-driver package
+.\"    Source: ATI Linux driver 8.32.5
+.\"
+.TH "FIREGLCONTROL" "1" "$Date: 2006\-11\-25 07:59:32 $" "ATI Linux driver 8.32.5" "Debian GNU/Linux fglrx\-driver"
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.SH "NAME"
+amdcccle \- a GUI to setup a users desktop
+.SH "SYNOPSIS"
+.HP 14
+\fBamdcccle\fR
+.SH "DESCRIPTION"
+.PP
+\fBamdcccle\fR
+\&...
+.SH "OPTIONS"
+.PP
+This program has no options.
+.SH "BUGS"
+.PP
+Report any issues with the
+\fBamdcccle\fR
+program to
+\fI\%http://support.ati.com\fR.
+.SH "AUTHOR"
+.PP
+\fBDaniel Leidert\fR <\&daniel.leidert@wgdd.de\&>
+.sp -1n
+.IP "" 4
+Author.
+.SH "COPYRIGHT"
+Copyright \(co 2005\-2006 Daniel Leidert
+.br
+.PP
+See the file
+\fI/usr/share/doc/fglrx\-driver/copyright\fR
+for license and warranty information.
+.br
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx.preinst
+++ fglrx-driver-8.47.3/debian/fglrx-glx.preinst
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> 'install'
+#        * <new-preinst> 'install' <old-version>
+#        * <new-preinst> 'upgrade' <old-version>
+#        * <old-preinst> 'abort-upgrade' <new-version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+case "$1" in
+    install)
+	# remove old diversion if needed
+	dpkg-divert --list | grep fglrx | grep -v ia32 | grep 'local diversion of' | cut -d' ' -f4 | while read i; do dpkg-divert --rename --remove "$i"; done 2>/dev/null
+	dpkg-divert --list | grep fglrx-driver | grep -v ia32 | grep "^diversion of" | cut -d' ' -f3 | while read i; do \
+	dpkg-divert --package fglrx-driver --rename --remove "$i"; done 2>/dev/null
+
+	# Ad new diversion
+	mkdir -p /usr/lib/fglrx/diversions
+        dpkg-divert --package fglrx-glx --divert /usr/lib/fglrx/diversions/libGL.so.1.2  --rename /usr/lib/libGL.so.1.2
+	dpkg-divert --package fglrx-glx --divert /usr/lib/fglrx/diversions/libGL.so.1  --rename /usr/lib/libGL.so.1
+    ;;
+esac
+
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx.postinst
+++ fglrx-driver-8.47.3/debian/fglrx-glx.postinst
@@ -0,0 +1,23 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> 'configure' <most-recently-configured-version>
+#        * <old-postinst> 'abort-upgrade' <new-version>
+#        * <conflictor's-postinst> 'abort-remove' 'in-favour' <package> <new-version>
+#        * <postinst> 'abort-remove'
+#        * <deconfigured's-postinst> 'abort-deconfigure' 'in-favour' <failed-install-package> <version> 'removing' <conflicting-package> <version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+case "$1" in
+
+    configure)
+          ldconfig
+    ;;
+esac
+
+#DEBHELPER#
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.postrm
+++ fglrx-driver-8.47.3/debian/fglrx-driver.postrm
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> 'remove'
+#        * <postrm> 'purge'
+#        * <old-postrm> 'upgrade' <new-version>
+#        * <new-postrm> 'failed-upgrade' <old-version>
+#        * <new-postrm> 'abort-install'
+#        * <new-postrm> 'abort-install' <old-version>
+#        * <new-postrm> 'abort-upgrade' <old-version>
+#        * <disappearer's-postrm> 'disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+
+
+case "$1" in
+
+    upgrade|abort-upgrade)
+        if dpkg --compare-versions "$2" lt "8.24.8"; then
+          echo "*** fglrx-driver: Downgrading and aborted upgrades don't work!" >&2
+          echo "*** fglrx-driver: Please uninstall any remains of this package." >&2
+        fi
+    ;;
+
+    purge|failed-upgrade|disappear)
+    ;;
+
+    *)
+        exit 0
+    ;;
+esac
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/compat
+++ fglrx-driver-8.47.3/debian/compat
@@ -0,0 +1 @@
+5
--- fglrx-driver-8.47.3.orig/debian/fglrx-glx-ia32.postrm
+++ fglrx-driver-8.47.3/debian/fglrx-glx-ia32.postrm
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> 'remove'
+#        * <postrm> 'purge'
+#        * <old-postrm> 'upgrade' <new-version>
+#        * <new-postrm> 'failed-upgrade' <old-version>
+#        * <new-postrm> 'abort-install'
+#        * <new-postrm> 'abort-install' <old-version>
+#        * <new-postrm> 'abort-upgrade' <old-version>
+#        * <disappearer's-postrm> 'disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+
+
+case "$1" in
+
+    remove|purge|disappear)
+        dpkg-divert --list | grep fglrx | grep ia32 | grep 'local diversion of' | cut -d' ' -f4 | while read i; do dpkg-divert --rename --remove "$i"; done 2>/dev/null
+        dpkg-divert --list | grep fglrx-glx-ia32 | grep "^diversion of" | cut -d' ' -f3 | while read i; do \
+          dpkg-divert --package fglrx-glx-ia32 --rename --remove "$i"; done 2>/dev/null
+	dpkg-divert --list | grep fglrx-driver | grep ia32 | grep "^diversion of" | cut -d' ' -f3 | while read i; do \
+	  dpkg-divert --package fglrx-driver --rename --remove "$i"; done 2>/dev/null
+        ldconfig
+    ;;
+
+    *)
+        exit 0
+    ;;
+esac
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.postinst
+++ fglrx-driver-8.47.3/debian/fglrx-driver.postinst
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> 'configure' <most-recently-configured-version>
+#        * <old-postinst> 'abort-upgrade' <new-version>
+#        * <conflictor's-postinst> 'abort-remove' 'in-favour' <package> <new-version>
+#        * <postinst> 'abort-remove'
+#        * <deconfigured's-postinst> 'abort-deconfigure' 'in-favour' <failed-install-package> <version> 'removing' <conflicting-package> <version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+# Move a conffile without triggering a dpkg question
+# from http://wiki.debian.org/DpkgConffileHandling
+mv_conffile()
+{
+    if [ -e $1 ]; then
+        echo "Preserving user changes to $2 ..."
+        mv -f $2 $2.dpkg-new
+        mv -f $1 $2
+    fi
+}
+
+case "$1" in
+
+    configure)
+        if dpkg --compare-versions "$2" lt "8.30.3"; then
+            mv_conffile /etc/fglrxrc           /etc/ati/fglrxrc
+            mv_conffile /etc/fglrxprofiles.csv /etc/ati/fglrxprofiles.csv
+        fi
+
+    ;;
+esac
+
+#DEBHELPER#
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.manpages
+++ fglrx-driver-8.47.3/debian/fglrx-driver.manpages
@@ -0,0 +1,7 @@
+debian/man/aticonfig.1x
+debian/man/atieventsd.8
+debian/man/fglrxinfo.1x
+debian/man/fglrx_xgamma.1x
+debian/man/fgl_glxgears.1x
+debian/man/fglrx.4x
+debian/man/fglrxrc.5x
--- fglrx-driver-8.47.3.orig/debian/module/rules
+++ fglrx-driver-8.47.3/debian/module/rules
@@ -0,0 +1,140 @@
+#!/usr/bin/make -f
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+# Adapted from nvidia-kernel-src.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+baseepoch := $(shell expr $(KDREV) : '\([0-9]*\):.*' 2>/dev/null )
+ifneq ($(baseepoch),)
+      EPOCH=$(baseepoch):
+endif
+REV := $(shell expr $(KDREV) : '[0-9]*:\(.*\)' 2>/dev/null)
+ifeq ($(REV),)
+     REV=$(KDREV)
+endif
+VERSION := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2)
+ifeq ($(REV),)
+PKG_VERSION=$(EPOCH)$(VERSION)
+else
+PKG_VERSION=$(EPOCH)$(VERSION)+$(REV)
+endif
+
+# determine fglrx-kernel-src package version and warn user if it doesn't match
+SRC_PKG_VERSION := $(shell dpkg -s fglrx-kernel-src | grep '^Version:' | cut -d' ' -f2)
+ifneq ($(SRC_PKG_VERSION),$(VERSION))
+$(warning *** the unpacked source ($(VERSION)) doesn't match the fglrx-kernel-src package ($(SRC_PKG_VERSION)))
+$(warning *** if this is not what you want, erase $(CURDIR) and start over)
+endif
+
+# if you need to redefine these
+KSRC  := $(KSRC)
+KVERS := ${KVERS}
+
+BASEVERS := $(shell echo $(KVERS) | cut -d. -f-2)
+ifeq ($(BASEVERS),2.6)
+module=fglrx.ko
+else
+module=fglrx.o
+endif
+
+CHANGES_FILE=$(KPKG_DEST_DIR)/fglrx-kernel-$(KVERS)_$(PKG_VERSION)_$(ARCH).changes
+
+
+configure: configure-stamp
+configure-stamp:
+	if [ -f $(CURDIR)/debian/control.template ]; then \
+		cat $(CURDIR)/debian/control.template > $(CURDIR)/debian/control; \
+	fi
+
+	dh_testdir
+	touch configure-stamp
+
+
+build: configure-stamp make.sh
+	dh_testdir
+ifeq ($(BASEVERS),2.6)
+	$(MAKE) -C $(KSRC) SUBDIRS=$(CURDIR) modules
+else
+	KERNEL_PATH=$(KSRC) uname_r=$(KVERS) ./make.sh --nohints
+endif
+
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	-rm -f $(CURDIR)/debian/control $(CURDIR)/debian/dirs
+	sed -e 's/#KVERS#/$(KVERS)/g' \
+	    -e 's/#VERSION#/$(VERSION)/g' debian/control.template > $(CURDIR)/debian/control
+	sed -e 's/#KVERS#/$(KVERS)/g' debian/dirs.template > $(CURDIR)/debian/dirs
+
+	dh_installdirs
+	dh_install $(module) lib/modules/$(KVERS)/misc
+
+
+binary_modules: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installmodules
+	dh_installchangelogs 
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol -- -v$(PKG_VERSION)
+	dh_md5sums
+ifdef KPKG_DEST_DIR
+	dh_builddeb --destdir=$(KPKG_DEST_DIR)
+else
+	dh_builddeb --destdir=$(CURDIR)/../..
+endif
+
+
+clean:
+	dh_testroot
+	-rm -f configure-stamp
+	-rm -f $(module) fglrx.mod.c *.o libfglrx_ip.a
+	-rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
+	-rm -rf .tmp_versions
+	-rm -rf patch
+
+	-dh_clean
+
+	-rm $(CURDIR)/debian/control
+	-rm $(CURDIR)/debian/dirs
+
+
+# The kdist_configure target is called by make-kpkg modules_config. It
+# should configure the module so it is ready for compilation (mostly
+# useful for calling configure)
+kdist_config: configure
+
+kdist_configure: configure
+
+
+# the kdist_image target is called by make-kpkg modules_image. It is
+# responsible for compiling the module and creating the package. It
+# should also clean up after making the module. Please note we use a
+# separate binary_modules target to make testing the package building
+# easier
+kdist_image:
+	$(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules binary_modules
+
+
+# the kdist_clean target is called by make-kpkg modules_clean. It is
+# responsible for cleaning up any changes that have been made by the
+# other kdist_commands (except for the .deb files created).
+kdist_clean:
+	$(ROOT_CMD) $(MAKE) $(MFLAGS) -f debian/rules clean
+
+kdist: kdist_clean kdist_image
+	dpkg-genchanges -b -u$(KPKG_DEST_DIR) > $(CHANGES_FILE)
+	-debsign -m"$(KMAINT)" $(CHANGES_FILE)
+
+.PHONY: configure build install binary_modules clean kdist_config kdist_configure kdist_image kdist_clean kdist
--- fglrx-driver-8.47.3.orig/debian/module/dirs.template
+++ fglrx-driver-8.47.3/debian/module/dirs.template
@@ -0,0 +1 @@
+lib/modules/#KVERS#/misc
--- fglrx-driver-8.47.3.orig/debian/module/control.template
+++ fglrx-driver-8.47.3/debian/module/control.template
@@ -0,0 +1,15 @@
+Source: fglrx-driver
+Section: non-free/x11
+Priority: extra
+Maintainer: Romain Beauxis <toots@rastageeks.org>
+Build-Depends: debhelper (>= 5), kernel-package
+
+Package: fglrx-kernel-#KVERS#
+Architecture: i386 amd64
+Provides: fglrx-kernel
+Depends: fglrx-driver (= #VERSION#)
+Recommends: linux-image-#KVERS# | kernel-image-#KVERS#
+Description: ATI binary kernel module for Linux #KVERS#
+ Display driver for the ATI Radeon and FireGL graphics accelerators.
+ .
+ This package provides the binary kernel module for Linux #KVERS#.
--- fglrx-driver-8.47.3.orig/debian/README.hacking
+++ fglrx-driver-8.47.3/debian/README.hacking
@@ -0,0 +1,64 @@
+How to build the .orig.tar.gz archive:
+--------------------------------------
+First, we need to download the upstream installer package, unpack it and pick
+the files we need.
+* cd to the directory above the source directory (typically your $HOME/src);
+* download the current installer package (since version 8.28.8 there is a
+  single package that supports both i386 and amd64);
+* create a directory named fglrx-driver-$VERSION.orig and cd into it;
+  $ mkdir fglrx-driver-$VERSION.orig
+  $ cd    fglrx-driver-$VERSION.orig
+* unpack the installer files:
+  $ sh ../ati-driver-installer-$VERSION-x86.x86_64.run --extract .
+* remove useless files and directories:
+  $ rm -f README.distro *.sh *.exp installer_creation_policy
+  $ rm -fr packages setup.data x4*
+  $ rm -f arch/*/lib/modules/fglrx/fglrx.*.o
+  $ rm -f x*/usr/X11R6/bin/fireglcontrolpanel
+  $ rmdir x*/usr/X11R6/bin
+  (you might also want to remove the x680 and x680_64a directories,
+   but for now I'm leaving them there to make life easier for backporters)
+* fix the release notes (they get the line endings wrong half of the times):
+  $ fromdos common/usr/share/doc/fglrx/release-notes/index.html
+* cd to the directory above the source directory:
+  $ cd ..
+* run this command:
+  $ tar c fglrx-driver-$VERSION.orig \
+  | gzip --best --rsyncable > fglrx-driver_$VERSION.orig.tar.gz
+
+Now, throw away the old upstream files and replace them with the new ones.
+* cd into the source directory;
+* remove old upstream files and/or directories -- that is,
+  remove everything but the "debian" directory itself;
+* move here the new upstream source files:
+  $ mv ../fglrx-driver-$VERSION.orig/* .
+  $ rmdir ../fglrx-driver-$VERSION.orig
+* update the version number:
+  debchange -v $VERSION --closes <the bug reporting this new versions>
+
+Remember to update the "debian/doc/fglrx-supported.txt" file.
+
+
+How to generate the diffs:
+--------------------------
+$ diff -u -Lmake.sh-orig  build_mod.orig/make.sh \
+          -Lmake.sh       build_mod/make.sh  > debian/patches-x.y.z/00-make.sh
+$ diff -u -LMakefile-orig build_mod.orig/2.6.x/Makefile \
+          -LMakefile      build_mod/Makefile > debian/patches-x.y.z/02-Makefile
+
+
+How to unpack the module for testing:
+-------------------------------------
+$ tar xjvf debian/fglrx-kernel-src/usr/src/fglrx.tar.bz2 -C /usr/src/
+
+
+Miscellaneous notes:
+--------------------
+* There's a reason why I don't use "package.install" files in the debian
+  directory. First, note that several files come from variable directories,
+  depending on X version and architecture, so I have to call dh_install several
+  times with explicit -p options and file names. However, every time dh_install
+  is run, it looks at all the "package.install" files and reinstalls all files.
+
+
+ -- Flavio Stanchina <flavio@stanchina.net>
--- fglrx-driver-8.47.3.orig/debian/fireglcontrol.desktop
+++ fglrx-driver-8.47.3/debian/fireglcontrol.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=ATI Control Panel
+Comment=ATI graphics adapter settings
+Icon=/usr/share/icons/ati.xpm
+Exec=/usr/bin/fireglcontrol
+Path=/usr/bin
+Terminal=false
+Type=Application
+Categories=Qt;Application;Settings;DesktopSettings;System;
--- fglrx-driver-8.47.3.orig/debian/patches/12-CONFIG_X86_XEN.patch
+++ fglrx-driver-8.47.3/debian/patches/12-CONFIG_X86_XEN.patch
@@ -0,0 +1,18 @@
+--- firegl_public.c	2008-01-17 17:48:59.000000000 +0100
++++ firegl_public.c	2008-01-18 16:27:13.000000000 +0100
+@@ -31,6 +31,7 @@
+ #include <linux/autoconf.h>
+ 
+ #if !defined(CONFIG_X86_PC) 
++#if !defined(CONFIG_X86_XEN)
+ #if !defined(CONFIG_X86_64)
+ #if !defined(CONFIG_X86_VOYAGER)
+ #if !defined(CONFIG_X86_NUMAQ)
+@@ -47,6 +48,7 @@
+ #endif
+ #endif
+ #endif
++#endif
+ 
+ /* The dirty-page-tracking patch included in NLD 9 SMP kernels defines
+  * a static inline function that uses a GPL-only symbol in a header
--- fglrx-driver-8.47.3.orig/debian/patches/00-make.sh
+++ fglrx-driver-8.47.3/debian/patches/00-make.sh
@@ -0,0 +1,654 @@
+--- make.sh	2007-11-22 13:49:04.000000000 +0100
++++ make.sh.new	2007-11-22 13:50:30.000000000 +0100
+@@ -19,7 +19,6 @@
+ 
+ # package defaults
+ #BEGIN-DEFAULT
+-INSTALL_MODULE_SUBDIRS=0
+ #END-DEFAULT
+ 
+ # package custom overrides, created by installer
+@@ -27,8 +26,6 @@
+ #END-CUSTOM
+ 
+ # vendor options
+-DEMAND_BZIMAGE=0
+-CHECK_P3=0
+ 
+ # default options
+ OPTIONS_HINTS=1
+@@ -71,66 +68,19 @@
+ 
+ # ==============================================================
+ # system/kernel identification
+-uname_r=`uname -r`
+-uname_v=`uname -v`
+-uname_s=`uname -s`
+-uname_m=`uname -m`
+-uname_a=`uname -a`
+-
+-# if you want to overload the current settings then please enter 1 below
+-# and then customize the overloaded strings to your specific needs
+-if [ "${FORCE_UNAME}" != "" ]; then
+-	uname_overload=1
+-else
+-	uname_overload=0
+-fi
+-
+-if [ ${uname_overload} -gt 0 ]
+-then
+-  uname_r="2.4.7-10"
+-  uname_v="#1 Thu Sep 6 17:27:27 EDT 2001"
+-  uname_s="Linux"
+-  uname_m="i686"
+-  uname_a="${uname_s} uname_overload.ati.com ${uname_r} ${uname_v} ${uname_m} unknown"
+-
+-  echo "applying uname_overload"
+-  echo "uname_a=${uname_a}"
++if [ -z "${uname_r}" ]; then
++  uname_r=$(uname -r)
+ fi
+ 
+ 
+ # ==============================================================
+ # xfree and system locations                                                          
+-XF_ROOT=/usr/X11R6                                                                    
++XF_ROOT=/usr
+ XF_BIN=$XF_ROOT/bin
+ OS_MOD=/lib/modules
+ 
+ 
+ # ==============================================================
+-# check if we are running as root with typical login shell paths
+-if [ "${AS_USER}" != "y" ]; then
+-if [ `id -u` -ne 0 ]
+-then
+-  echo "You must be logged in as root to run this script."
+-  exit 1
+-fi
+-
+-which depmod >/dev/null 2>&1
+-if [ $? -ne 0 ];
+-then
+-#  echo "(completing current path to be a root path)"
+-#  echo ""
+-  PATH=/usr/local/sbin:/usr/sbin:/sbin:${PATH}
+-  which depmod >/dev/null 2>&1
+-  if [ $? -ne 0 ];
+-  then
+-    echo "You arent running in a 'login shell'."
+-    echo "Please login directly from a console"
+-    echo "or use 'su -l' to get the same result."
+-    exit 1
+-  fi
+-fi
+-
+-fi # build AS_USER 
+ 
+ 
+ # ==============================================================
+@@ -160,24 +110,24 @@
+ # specify defaults for include file locations
+ 
+ # assing default location of linux kernel headers
+-# *** adapt to your individual setup if needed ***
+ if [ -z "${KERNEL_PATH}" ]; then
+-#linuxincludes=/usr/include    # no config info present!
+-linuxincludes=/usr/src/linux/include
+-#linuxincludes=/usr/src/linux-2.2.14.new.iii/include
+-#linuxincludes=/usr/src/linux-2.4.0-test7/include
+-
+-# in /lib/modules/<kernel-version> there is a symlink for latest kernel
+-# which calls "build" and points to the directory where modules were built.
+-if [ -d /lib/modules/${uname_r}/build/include ];
+-then
+-  # just comment this line out if you already set an alternative location
+-  linuxincludes=/lib/modules/${uname_r}/build/include
++  if [ ! -d "/lib/modules/${uname_r}" ]; then
++    echo "Directory /lib/modules/${uname_r} does not exist (or is not a directory)"
++    exit 1
++  fi
++  if [ ! -L "/lib/modules/${uname_r}/build" ]; then
++    echo "Link /lib/modules/${uname_r}/build does not exist (or is not a link)"
++    exit 1
++  fi
++  KERNEL_PATH=$(readlink -f "/lib/modules/${uname_r}/build")
++  if [ ! -d "${KERNEL_PATH}" ]; then
++    echo "Please install the sources for kernel version ${uname_r}"
++    echo "and unpack them into directory ${KERNEL_PATH}"
++    exit 1
++  fi
+ fi
+ 
+-else
+-  linuxincludes=${KERNEL_PATH}/include
+-fi
++linuxincludes=${KERNEL_PATH}/include
+ 
+ # ==============================================================
+ # print a few statistics, helpful for analyzing any build failures
+@@ -185,11 +135,7 @@
+ echo ========================== | tee -a $logfile
+ echo initializing...            | tee -a $logfile
+ echo "build_date ="`date`   >>$logfile
+-echo "uname -a ="${uname_a} >>$logfile
+-echo "uname -s ="${uname_s} >>$logfile
+-echo "uname -m ="${uname_m} >>$logfile
+ echo "uname -r ="${uname_r} >>$logfile
+-echo "uname -v ="${uname_v} >>$logfile
+ id       >>$logfile
+ echo .   >>$logfile
+ ls -l -d /usr/include >>$logfile
+@@ -202,6 +148,12 @@
+ 
+ # ==============================================================
+ # locate and verify contents of kernel include file path
++if [ ! -f "${KERNEL_PATH}/.config" ];
++then
++  echo "kernel configuration at ${KERNEL_PATH} not found"          | tee -a $logfile
++  exit 1
++fi
++source "${KERNEL_PATH}/.config"
+ 
+ # verify match with respective line in linux/version.h
+ # sample: #define UTS_RELEASE "2.4.0-test7"
+@@ -213,142 +165,6 @@
+   exit 1
+ fi
+ OsRelease=${uname_r}
+-UTS_REL_COUNT=`cat $src_file | grep UTS_RELEASE -c`
+-if [ $UTS_REL_COUNT -gt 1 ];
+-then
+-  kernel_release=`cat $src_file | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
+-else
+-  if [ $UTS_REL_COUNT -gt 0 ];
+-  then
+-    kernel_release=`cat $src_file | grep UTS_RELEASE | cut -d'"' -f2`
+-  else
+-    UTS_REL_COUNT=`cat $linuxincludes/linux/version-*.h 2>/dev/null | grep UTS_RELEASE -c`
+-    if [ $UTS_REL_COUNT -gt 0 ];
+-    then
+-        # UTS-define is in external version-*.h files, i.e. linux-2.2.14-5.0-RedHat does this flaw
+-        kernel_release=`cat $linuxincludes/linux/version-*.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
+-    else
+-        # For 2.6.18 or higher, UTS-define is defined in utsrelease.h.
+-        kernel_release=`cat $linuxincludes/linux/utsrelease.h | grep UTS_RELEASE | grep \"$OsRelease\" | cut -d'"' -f2`
+-    fi
+-  fi
+-fi
+-
+-
+-if [ -z "${KERNEL_PATH}" ]; then
+-# compare release string of running kernel with kernel name from headers
+-hit=0
+-if [ "$OsRelease" = "$kernel_release" ];
+-then
+-  hit=1
+-else
+-  # Red Hat 7.0 source and some newer 2.4.x might not have smp suffix in UTS_RELEASE text
+-  if [ `echo $OsRelease | grep smp -c` -ne 0 ];
+-  then
+-    if [ "$OsRelease" = "${kernel_release}smp" ];
+-    then
+-      hit=1
+-    fi
+-  fi
+-fi
+-
+-if [ $hit -eq 0 ]
+-then
+-  echo "Error:"                                                         | tee -a $logfile
+-  echo "kernel includes at $linuxincludes do not match current kernel." | tee -a $logfile
+-  echo "they are versioned as \"$kernel_release\""                      | tee -a $logfile
+-  echo "instead of \"$OsRelease\"."                                     | tee -a $logfile
+-  echo "you might need to adjust your symlinks:"                        | tee -a $logfile
+-  echo "- /usr/include"                                                 | tee -a $logfile
+-  echo "- /usr/src/linux"                                               | tee -a $logfile
+-  exit 1
+-fi
+-
+-fi
+-
+-kernel_release_major=${kernel_release%%.*}
+-kernel_release_rest=${kernel_release#*.}
+-kernel_release_minor=${kernel_release_rest%%.*}
+-if [ "$kernel_release_major" -lt 2 -o \
+-    \( "$kernel_release_major" -eq 2 -a "$kernel_release_minor" -lt 6 \) ]; then
+-    echo "Error:"
+-    echo "Your kernel version $kernel_release is not supported by this driver release."
+-    echo "Only 2.6.0 and newer kernels are supported."
+-    exit 1
+-fi
+-
+-
+-OsVersion=${uname_v}
+-
+-if [ $DEMAND_BZIMAGE -gt 0 ]
+-then
+-
+-# verify if file linux/compile.h exists and has correct version string
+-# sample: #define UTS_VERSION "#2 SMP Die Sep 12 22:08:51 MEST 2000"
+-src_file=$linuxincludes/linux/compile.h
+-if [ ! -e $src_file ];
+-then
+-  # since its a compile time generated file (stamped with date and build environment)
+-  # we cannot rely on this file beeing always present, so we cant check this.
+-  echo "Warning:"                                                  >> $logfile
+-  echo "kernel includes at $linuxincludes not found or incomplete" >> $logfile
+-  echo "file: $src_file"                                           >> $logfile
+-  echo "Could not verify kernel reported version against source."  >> $logfile
+-  echo "Ignore this warning if you know you are here by intention.">> $logfile
+-  echo ""                                                          >> $logfile
+-  # regard this as a warning - distributions let user generate this file himself
+-  # just assume we are runnning the right kernel
+-  kernel_version=$OsVersion
+-else
+-  kernel_version=`cat $src_file | grep UTS_VERSION | cut -d'"' -f2`
+-  if [ ! "$kernel_version" = "$OsVersion" ];
+-  then
+-    echo "Warning:"                                                       >> $logfile
+-    echo "kernel includes at $linuxincludes do not match current kernel." >> $logfile
+-    echo "they are versioned as \"$kernel_version\""                      >> $logfile
+-    echo "instead of \"$OsVersion\"."                                     >> $logfile
+-    echo "you might need to adjust your symlinks:"                        >> $logfile
+-    echo "- /usr/include"                                                 >> $logfile
+-    echo "- /usr/src/linux"                                               >> $logfile
+-    echo ""                                                               >> $logfile
+-    if [ "$1" = "verbose" ]
+-    then
+-      echo "Warning:"
+-      echo "kernel includes at $linuxincludes do not match current kernel."
+-      echo "they are versioned as \"$kernel_version\""
+-      echo "instead of \"$OsVersion\"."
+-      echo "you might need to adjust your symlinks:"
+-      echo "- /usr/include"
+-      echo "- /usr/src/linux"
+-      echo ""
+-    fi
+-    # regard this as a warning - distributions let user generate this file himself
+-  fi
+-fi
+-
+-fi
+-
+-# ==============================================================
+-# resolve if we are running a pentium iii enabled kernel
+-
+-if [ $CHECK_P3 -ne 0 ]
+-then
+-
+-$XF_BIN/cpu_check >/dev/null                                                      
+-case "$?" in                                                                      
+-    0) iii=     ;;                                                                
+-    1) iii=     ;;                                                                
+-    2) iii=.iii ;;                                                                
+-    3) iii=     ;;                                                                
+-    4) iii=     ;;                                                                
+-    5) iii=.iii ;;                                                                
+-    6) iii=.iii ;;                                                                
+-    *) iii=     ;;                                                                
+-esac
+-
+-else
+-  iii=
+-fi
+ 
+ # ==============================================================
+ # resolve if we are running an AGP capable kernel source tree.
+@@ -376,89 +192,14 @@
+ 
+ SMP=0
+ 
+-if [ $DEMAND_BZIMAGE -gt 0 ]
+-then
+-
+-# 1.
+-# config/smp.h may contain this: #define CONFIG_SMP 1 | #undef  CONFIG_SMP
+-src_file=$linuxincludes/config/smp.h
+-if [ ! -e $src_file ];
+-then
+-  echo "Warning:"                                                  >> $logfile
+-  echo "kernel includes at $linuxincludes not found or incomplete" >> $logfile
+-  echo "file: $src_file"                                           >> $logfile
+-  echo ""                                                          >> $logfile
+-else
+-  if [ `cat $src_file | grep "#undef" | grep "CONFIG_SMP" -c` = 0 ]
+-  then
+-    SMP=`cat $src_file | grep CONFIG_SMP | cut -d' ' -f3`
+-    echo "file $src_file says: SMP=$SMP"                           >> $logfile
+-  fi
+-fi
+-
+-fi
+-
+-# 2.
+-# grep in OsVersion string for SMP specific keywords
+-if [ `echo $OsVersion | grep [sS][mM][pP] -c` -ne 0 ]
++if [ "${CONFIG_SMP}" ]
+ then
+   SMP=1
+-  echo "OsVersion says: SMP=$SMP"                                  >> $logfile
+-fi
+-
+-# 3.1
+-# grep in /proc/ksyms for SMP specific kernel symbols
+-# use triggerlevel of 10 occurences 
+-# (UP kernels might have 0-1, SMP kernels might have 32-45 or much more)
+-# 3.2
+-# grep in /proc/ksyms for the change_page_attr symbol
+-PAGE_ATTR_FIX=0
+-src_file=/proc/ksyms
+-if [ -e $src_file ]
+-then
+-  if [ `fgrep smp $src_file -c` -gt 10 ]
+-  then
+-    SMP=1
+-    echo "file $src_file says: SMP=$SMP"                             >> $logfile
+-  fi
+-  if [ `fgrep " change_page_attr\$" $src_file -c` -gt 0 ]
+-  then
+-    PAGE_ATTR_FIX=1
+-    echo "file $src_file says: PAGE_ATTR_FIX=$PAGE_ATTR_FIX"         >> $logfile
+-  fi
+-fi
+-
+-src_file=/proc/kallsyms
+-if [ -e $src_file ]
+-then
+-  if [ `fgrep smp $src_file -c` -gt 10 ]
+-  then
+-    SMP=1
+-    echo "file $src_file says: SMP=$SMP"                             >> $logfile
+-  fi
+-  if [ `fgrep " change_page_attr\$" $src_file -c` -gt 0 ]
+-  then
+-    PAGE_ATTR_FIX=1
+-    echo "file $src_file says: PAGE_ATTR_FIX=$PAGE_ATTR_FIX"         >> $logfile
+-  fi
++  echo "kernel configuration says: SMP=$SMP" >> $logfile
+ fi
+ 
+-# 4.
+-# linux/autoconf.h may contain this: #define CONFIG_SMP 1
+-src_file=$linuxincludes/linux/autoconf.h
+-if [ ! -e $src_file ];
+-then
+-  echo "Warning:"                                                  >> $logfile
+-  echo "kernel includes at $linuxincludes not found or incomplete" >> $logfile
+-  echo "file: $src_file"                                           >> $logfile
+-  echo ""                                                          >> $logfile
+-else
+-  if [ `cat $src_file | grep "#undef" | grep "CONFIG_SMP" -c` = 0 ]
+-  then
+-    SMP=`cat $src_file | grep CONFIG_SMP | cut -d' ' -f3`
+-    echo "file $src_file says: SMP=$SMP"                           >> $logfile
+-  fi
+-fi
++# assume PAGE_ATTR_FIX=1
++PAGE_ATTR_FIX=1
+ 
+ if [ "$SMP" = 0 ]
+ then
+@@ -478,60 +219,10 @@
+ 
+ MODVERSIONS=0
+ 
+-if [ $DEMAND_BZIMAGE -gt 0 ]
+-then
+-
+-# 1.
+-# config/modversions.h may contain this: #define CONFIG_MODVERSIONS 1 | #undef  CONFIG_MODVERSIONS
+-src_file=$linuxincludes/config/modversions.h
+-if [ ! -e $src_file ];
++if [ "${CONFIG_MODVERSIONS}" ]
+ then
+-  echo "Warning:"                                                  >> $logfile
+-  echo "kernel includes at $linuxincludes not found or incomplete" >> $logfile
+-  echo "file: $src_file"                                           >> $logfile
+-  echo ""                                                          >> $logfile
+-else
+-  if [ 1 -eq 1 ]
+-  then
+-    # create a helper source file and preprocess it
+-    tmp_src_file=tmpsrc.c
+-	tmp_pre_file=tmppre.pre
+-    echo "#include <$src_file>"                                      > $tmp_src_file
+-	${CC} -E -nostdinc -dM -I$linuxincludes $tmp_src_file 			 > $tmp_pre_file
+-
+-    if [ `cat $tmp_pre_file | grep "1" | grep "#define" | grep "CONFIG_MODVERSIONS" -c` = 1 ]
+-    then
+-      MODVERSIONS=`cat $tmp_pre_file | grep CONFIG_MODVERSIONS | cut -d' ' -f3`
+-      echo "file $src_file says: MODVERSIONS=$MODVERSIONS"           >> $logfile
+-    fi
+-
+-    rm -f $tmp_src_file $tmp_pre_file
+-  else
+-    if [ `cat $src_file | grep "#undef" | grep "CONFIG_MODVERSIONS" -c` = 0 ]
+-    then
+-      MODVERSIONS=`cat $src_file | grep CONFIG_MODVERSIONS | cut -d' ' -f3`
+-      echo "file $src_file says: MODVERSIONS=$MODVERSIONS"           >> $logfile
+-    fi
+-  fi
+-fi
+-
+-fi
+-
+-# 2.
+-# linux/autoconf.h may contain this: #define CONFIG_MODVERSIONS 1
+-src_file=$linuxincludes/linux/autoconf.h
+-if [ ! -e $src_file ];
+-then
+-  echo "Warning:"                                                  >> $logfile
+-  echo "kernel includes at $linuxincludes not found or incomplete" >> $logfile
+-  echo "file: $src_file"                                           >> $logfile
+-  echo ""                                                          >> $logfile
+-else
+-  if [ `cat $src_file | grep "#undef" | grep "CONFIG_MODVERSIONS" -c` = 0 ]
+-  then
+-    MODVERSIONS=`cat $src_file | grep CONFIG_MODVERSIONS | cut -d' ' -f3`
+-    echo "file $src_file says: MODVERSIONS=$MODVERSIONS"           >> $logfile
+-  fi
++  MODVERSIONS=1
++  echo "kernel configuration says: MODVERSIONS=$MODVERSIONS" >> $logfile
+ fi
+ 
+ if [ $MODVERSIONS = 0 ]
+@@ -577,7 +268,6 @@
+   echo extra=$extra          | tee -a $logfile
+   echo SMP=$SMP              | tee -a $logfile
+   echo smp=$smp              | tee -a $logfile
+-  echo iii=$iii              | tee -a $logfile
+   echo AGP=$AGP              | tee -a $logfile
+ fi
+ 
+@@ -587,8 +277,7 @@
+ echo .   >>$logfile
+ 
+ # determine compiler version
+-cc_version_string=`${CC} -v 2>&1 | grep -v "specs from" -v | grep -v "Thread model" | grep -v "Configured with"`
+-cc_version=`echo $cc_version_string | sed -e s/egcs-//g | sed -n -e 's/\(^gcc version\)[[:space:]]*\([.0123456789]*\)\(.*\)/\2/'p`
++cc_version=`${CC} -dumpversion`
+ cc_version_major=`echo $cc_version | cut -d'.' -f1`
+ cc_version_minor=`echo $cc_version | cut -d'.' -f2`
+ 
+@@ -704,18 +393,19 @@
+   rm -f nvidia-agp.o 2>&1 | tee -a $logfile
+ fi
+ 
+-if [ -e patch/linux ]
++if [ -e patch/include/linux ]
+ then
+-  if [ -e patch/linux/highmem.h ]
++  if [ -e patch/include/linux/highmem.h ]
+   then
+-    rm -f patch/linux/highmem.h
++    rm -f patch/include/linux/highmem.h
+   fi
+-  rmdir patch/linux 2>/dev/null
++  rmdir patch/include/linux
++  rmdir patch/include
+ fi
+ 
+ if [ -e patch ]
+ then
+-  rmdir patch 2>/dev/null
++  rmdir patch
+ fi
+ 
+ # ==============================================================
+@@ -737,11 +427,11 @@
+ def_for_all="-DATI_AGP_HOOK -DATI -DFGL -D${target_define} -DFGL_CUSTOM_MODULE -DPAGE_ATTR_FIX=$PAGE_ATTR_FIX"
+ 
+ # defines for specific os and cpu platforms
+-if [ "${uname_m}" = "x86_64" ]; then
++if [ "${CONFIG_MK8}" ]; then
+ 	def_machine="-mcmodel=kernel -mno-red-zone"
+ fi
+ 
+-if [ "${uname_m}" = "ia64" ]; then
++if [ "${CONFIG_IA64}" ]; then
+         def_machine="-ffixed-r13 -mfixed-range=f12-f15,f32-f127"
+ fi
+ 
+@@ -946,53 +636,19 @@
+ 
+ if [ $kernel_is_26x -gt 0 ]; then
+     echo "doing Makefile based build for kernel 2.6.x and higher"   | tee -a $logfile
+-    cd 2.6.x
+     V=${V:-0}
+-    #tlog is a temporary file that will be deleted
+     echo '#This is a dummy file created to suppress the warning: < could not find /lib/modules/fglrx/build_mod/2.6.x/.libfglrx_ip.a.GCC4.cmd for /lib/modules/fglrx/build_mod/2.6.x/libfglrx_ip.a.GCC4 >' > .lib${MODULE}_ip.a.GCC${GCC_MAJOR}.cmd
+     make CC=${CC} V=${V} \
+-	LIBIP_PREFIX=$(echo "$LIBIP_PREFIX" | sed -e 's|^\([^/]\)|../\1|') \
++	KDIR=${KERNEL_PATH} \
+ 	MODFLAGS="-DMODULE $def_for_all $def_smp $def_modversions" \
+-	PAGE_ATTR_FIX=$PAGE_ATTR_FIX > tlog 2>&1 
+-    res=$?
+-    tee -a $logfile < tlog
+-    #delete tlog
+-    rm -f tlog
+-    cd ..
++        PAGE_ATTR_FIX=$PAGE_ATTR_FIX | tee -a $logfile
++    res=${PIPESTATUS[0]}
+     if [ $res -eq 0 ]; then
+         echo "build succeeded with return value $res"               | tee -a $logfile
+     else
+         echo "build failed with return value $res"                  | tee -a $logfile
+         exit 1
+     fi
+-    if [ -e ${MODULE}${kmod_extension} ]; then
+-        rm -f ${MODULE}${kmod_extension}
+-    fi
+-    ln -s 2.6.x/${MODULE}${kmod_extension}
+-    TERMINAL_HINT=0
+-
+-
+-#	# make fglrx_agp.ko
+-#    echo " compiling fglrx_agp.ko module"
+-#    cd firegl_agpgart
+-#    V=${V:-0}
+-#    #tlog is a tempory file that will be deleted
+-#    make V=${V} MODFLAGS="-DMODULE $def_for_all $def_smp $def_modversions" PAGE_ATTR_FIX=$PAGE_ATTR_FIX > tlog 2>&1 
+-#    res=$?
+-#    tee -a $logfile < tlog
+-#    #delete tlog
+-#    rm -f tlog
+-#    cd ..
+-#    if [ $res -eq 0 ]; then
+-#        echo "AGPGART build succeeded with return value $res"               | tee -a $logfile
+-#	    if [ -e ${MODULE_agpgart}${kmod_extension} ]; then
+-#	         rm -f ${MODULE_agpgart}${kmod_extension}
+-#	    fi
+-#	    echo " finished compiling for fglrx_agp"
+-#	    ln -s firegl_agpgart/${MODULE_agpgart}${kmod_extension}
+-#    else
+-#        echo "AGPGART module build failed with return value $res"                  | tee -a $logfile
+-#    fi
+ else
+     echo "doing script based build for kernel 2.4.x and similar"    | tee -a $logfile
+     
+@@ -1047,69 +703,6 @@
+ 
+ 
+ # ==============================================================
+-# install generated file at required location
+-
+-TERMINAL_HINT=0
+-if [ `pwd | grep "$OS_MOD/${MODULE}/build_mod\$" -c` -gt 0 ]
+-then 
+-  echo duplicating results into driver repository...   | tee -a $logfile
+-  # duplicate generated file into respective kernel module subdir
+-  if [ $INSTALL_MODULE_SUBDIRS -eq 1 ];
+-  then
+-    target_dir=`pwd`/../$OsRelease$iii$smp
+-  else
+-    target_dir=`pwd`/..
+-  fi
+-  target_dir=`cd $target_dir;pwd`
+-  echo "target location: $target_dir" >> $logfile 
+-  if [ ! -e $target_dir ]
+-  then
+-    echo "creating target directory" >> $logfile
+-    mkdir $target_dir | tee -a $logfile
+-  fi
+-
+-  which strip > /dev/null 2>&1
+-  if test $? = 0; then
+-     if [ ! -z "${FGLRX_DEBUG}" ]; then
+-        cp -f ${MODULE}${kmod_extension} ${MODULE}_dbg${kmod_extension}
+-     fi
+-     strip -g ${MODULE}${kmod_extension} > /dev/null 2>&1
+-     if test $? = 0; then	
+-        echo "stripping the debug info of kernel module" >> $logfile
+-     else
+-        echo "could not strip the debug info of kernel module" >> $logfile
+-     fi 
+-  else
+-     echo "could not find the strip utility on your system" >> $logfile
+-  fi
+-
+-  # for fglrx and fglrx_agp
+-  echo "copying ${MODULE}${kmod_extension}" >> $logfile
+-  if [ $INSTALL_MODULE_SUBDIRS -eq 1 ];
+-  then
+-    cp -f ${MODULE}${kmod_extension} $target_dir | tee -a $logfile
+-  else
+-    cp -f ${MODULE}${kmod_extension} $target_dir/${MODULE}.$OsRelease$iii${kmod_extension} | tee -a $logfile
+-  fi
+-  
+-  echo "copying logfile of build" >> $logfile
+-  echo "*** end of build log ***" >> $logfile
+-  if [ $INSTALL_MODULE_SUBDIRS -eq 1 ];
+-  then
+-    cp -f $logfile $target_dir
+-  else
+-    cp -f $logfile $target_dir/make.$OsRelease$iii.log
+-  fi
+-
+-  # terminal hint message
+-  if [ $INSTALL_MODULE_SUBDIRS -eq 0 ];
+-  then
+-    TERMINAL_HINT=1
+-  fi
+-else
+-  # the build was done from an external location - installation not intended
+-  echo "duplication skipped - generator was not called from regular lib tree" | tee -a $logfile 
+-fi
+ 
+ # ==============================================================
+ # finale
+@@ -1119,12 +712,9 @@
+ 
+ if [ $OPTIONS_HINTS -ne 0 ]; then
+ 
+-if [ $TERMINAL_HINT -eq 1 ];
+-then
+-  echo "You must change your working directory to $target_dir"
+-  echo "and then call ./make_install.sh in order to install the built module."
++  echo "You must copy ${MODULE}${kmod_extension} to /lib/modules/${uname_r}/misc"
++  echo "and then call 'depmod -ae' in order to install the built module."
+   echo ==============================
+-fi
+ 
+ fi
+ 
--- fglrx-driver-8.47.3.orig/debian/patches/10-CONFIG_SMP.patch
+++ fglrx-driver-8.47.3/debian/patches/10-CONFIG_SMP.patch
@@ -0,0 +1,52 @@
+--- firegl_public.c	2008-01-17 17:48:59.000000000 +0100
++++ firegl_public.c	2008-01-18 16:23:58.000000000 +0100
+@@ -258,7 +258,7 @@
+ const char BUILD_KERNEL_HAS_MODVERSIONS_CLEARED;
+ #endif
+ 
+-#ifdef __SMP__
++#ifdef CONFIG_SMP
+ const unsigned long __ke_SMP_State = 1;
+ const char BUILD_KERNEL_HAS_SMP_SET;
+ #else
+@@ -2693,7 +2693,7 @@
+ 
+ /*****************************************************************************/
+ 
+-#ifdef __SMP__
++#ifdef CONFIG_SMP
+ static atomic_t cpus_waiting;
+ 
+ static void deferred_flush(void* contextp)
+@@ -2709,11 +2709,11 @@
+ 	while (atomic_read(&cpus_waiting) > 0)
+ 		barrier();
+ }
+-#endif /* __SMP__ */
++#endif /* CONFIG_SMP */
+ 
+ int ATI_API_CALL __ke_flush_cache(void)
+ {
+-#ifdef __SMP__
++#ifdef CONFIG_SMP
+     /* write back invalidate all other CPUs (exported by kernel) */
+ 	if (smp_call_function(deferred_flush, NULL, 1, 0) != 0)
+ 		panic("timed out waiting for the other CPUs!\n");
+@@ -2729,7 +2729,7 @@
+ 
+ 	while (atomic_read(&cpus_waiting) > 0)
+ 		barrier();
+-#else /* !__SMP__ */
++#else /* !CONFIG_SMP */
+ #if defined(__i386__) || defined(__x86_64__)
+ 	asm volatile ("wbinvd":::"memory");
+ #elif defined(__alpha__) || defined(__ia64__) || defined(__sparc__)
+@@ -2737,7 +2737,7 @@
+ #else
+ #error "Please define flush_cache for your architecture."
+ #endif
+-#endif /* !__SMP__ */
++#endif /* !CONFIG_SMP */
+     return 0;
+ }
+ 
--- fglrx-driver-8.47.3.orig/debian/patches/14-add_missins_pci_ids.patch
+++ fglrx-driver-8.47.3/debian/patches/14-add_missins_pci_ids.patch
@@ -0,0 +1,46 @@
+--- fglrxko_pci_ids.h	2007-09-11 23:41:37.000000000 +0200
++++ fglrxko_pci_ids.h	2007-10-10 00:31:04.000000000 +0200
+@@ -200,6 +200,43 @@
+     FGL_ASIC_ID(0x7284), // ATI Mobility Radeon X1900 (M68 7284)
+     FGL_ASIC_ID(0x7210), // ATI Mobility Radeon HD 2300 (M71 7210)
+     FGL_ASIC_ID(0x7211), // ATI Mobility Radeon HD 2300 (M71 7211)
++    FGL_ASIC_ID(0x4E54), // ATI MOBILITY FIRE GL T2/T2e (M10/M11 4E54)
++    FGL_ASIC_ID(0x5464), // ATI MOBILITY FireGL V3100 (M22 5464)
++    FGL_ASIC_ID(0x3154), // ATI MOBILITY FireGL V3200 (M24 3154)
++    FGL_ASIC_ID(0x564A), // ATI MOBILITY FireGL V5000 (M26 564A)
++    FGL_ASIC_ID(0x564B), // ATI MOBILITY FireGL V5000 (M26 564B)
++    FGL_ASIC_ID(0x5D49), // ATI MOBILITY FireGL V5100 (M28 5D49)
++    FGL_ASIC_ID(0x7144), // M54-GL (M54 7144)
++    FGL_ASIC_ID(0x71C4), // ATI MOBILITY FireGL V5200 (M56 71C4)
++    FGL_ASIC_ID(0x7103), // ATI MOBILITY FireGL V7200 (M58 7103)
++    FGL_ASIC_ID(0x7106), // ATI MOBILITY FireGL V7100 (M58 7106)
++    FGL_ASIC_ID(0x71D4), // ATI MOBILITY FireGL V5250 (M66 71D4)
++    FGL_ASIC_ID(0x4E47), // ATI FireGL X1 (R300 4E47)
++    FGL_ASIC_ID(0x4147), // ATI FireGL Z1 (R300 4147)
++    FGL_ASIC_ID(0x4E4B), // ATI FireGL X2-256/X2-256t (R350 4E4B)
++    FGL_ASIC_ID(0x4A4D), // ATI FireGL X3-256 (R420 4A4D)
++    FGL_ASIC_ID(0x5550), // ATI FireGL V7100 (R423 5550)
++    FGL_ASIC_ID(0x5551), // ATI FireGL V5100 (R423 5551)
++    FGL_ASIC_ID(0x5555), // R430 GL PRO (R430 5555)
++    FGL_ASIC_ID(0x5554), // R430 GL XT (R430 5554)
++    FGL_ASIC_ID(0x5D50), // ATI FireGL V7200 (R480 5D50)
++    FGL_ASIC_ID(0x5D51), // R480 GL 12P (R480 5D51)
++    FGL_ASIC_ID(0x7105), // ATI FireGL V5300 (R520 7105)
++    FGL_ASIC_ID(0x710F), // ATI FireGL V7350 (R520 710F)
++    FGL_ASIC_ID(0x710E), // ATI FireGL V7300 (R520 710E)
++    FGL_ASIC_ID(0x7104), // ATI FireGL V7200 (R520 7104)
++    FGL_ASIC_ID(0x4154), // ATI FireGL T2 (RV350/RV360 4154)
++    FGL_ASIC_ID(0x5B64), // ATI FireGL V3100 (RV370 5B64)
++    FGL_ASIC_ID(0x3E54), // ATI FireGL V3200 (RV380 3E54)
++    FGL_ASIC_ID(0x5E48), // ATI FireGL V5000 (RV410 5E48)
++    FGL_ASIC_ID(0x7152), // ATI FireGL V3300 (RV515 7152)
++    FGL_ASIC_ID(0x7153), // ATI FireGL V3350 (RV515 7153)
++    FGL_ASIC_ID(0x71D2), // ATI FireGL V3400 (RV530 71D2)
++    FGL_ASIC_ID(0x71DA), // ATI FireGL V5200 (RV530 71DA)
++    FGL_ASIC_ID(0x728C), // ATI FireGL V7400 (RV570 728C)
++    FGL_ASIC_ID(0x3151), // ATI FireMV 2400 (M24 3151)
++    FGL_ASIC_ID(0x5B65), // ATI FireMV 2200 (RV370 5B65)
++    FGL_ASIC_ID(0x719B), // ATI FireMV 2250 (RV516 719B)
+     FGL_ASIC_ID(0x94C9), // ATI Mobility Radeon HD 2400 (M72 94C9)
+     FGL_ASIC_ID(0x94CB), // ATI RADEON E2400 (M72 94CB)
+     FGL_ASIC_ID(0x94C8), // ATI Mobility Radeon HD 2400 XT (M74 94C8)
--- fglrx-driver-8.47.3.orig/debian/patches/02-Makefile
+++ fglrx-driver-8.47.3/debian/patches/02-Makefile
@@ -0,0 +1,49 @@
+--- Makefile-orig
++++ Makefile
+@@ -1,6 +1,4 @@
+-GCC_VER_MAJ      = $(shell $(CC) --version | head -n 1 | sed -e 's/[^0-9. ]//g;s/^ *//;s/^\(.\)\..*$$/\1/')
+-
+-LIBIP_PREFIX	?= ..
++GCC_VER_MAJ      = $(shell $(CC) -dumpversion | cut -f1 -d.)
+ 
+ obj-m           += fglrx.o
+ fglrx-libs      += libfglrx_ip.a.GCC$(GCC_VER_MAJ)
+@@ -25,36 +23,18 @@
+ # on first call from remote location we get into this path
+ # whilst on second call all is managed by the embedding kernel makefile
+ 
+-KVER            = $(shell uname -r)
+-# KVER            = 2.6.0-0.test1.1.26custom
+-
+-ifeq (1,1)
+-KDIR            = /lib/modules/$(KVER)/build
+-else
+-KDIR            = /usr/src/linux-$(KVER)
+-endif
+-PWD             = $(shell pwd)
+ 
+ fglrx-cfiles    = ${fglrx-c-objs:.o=.c}
+ 
+ # default:: kmod_build
+ 
+ kmod_build:: $(fglrx-libs) $(fglrx-cfiles) $(fglrx-hdrs) $(drm-hdrs)
+-	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+-
+-%.c:
+-	@ln -s ../$@
+-
+-%.h:
+-	@ln -s ../$@
+-
+-%.GCC$(GCC_VER_MAJ):
+-	@ln -s $(LIBIP_PREFIX)/$@
++	$(MAKE) -C $(KDIR) SUBDIRS=$(CURDIR) modules
+ 
+ # distclean:: clean
+ 
+ clean::
+-	rm -f *.c *.h *.o *.ko *.GCC* .??*
++	rm -f *.o *.ko .*.cmd
+ 
+ endif
+ 
--- fglrx-driver-8.47.3.orig/debian/patches/panel.diff
+++ fglrx-driver-8.47.3/debian/patches/panel.diff
@@ -0,0 +1,245 @@
+diff -Nur panel.orig/ATITVOExtensions.c panel/ATITVOExtensions.c
+--- panel.orig/ATITVOExtensions.c
++++ panel/ATITVOExtensions.c
+@@ -24,7 +24,7 @@
+ 
+ #include <X11/extensions/xf86misc.h>
+ #include <X11/extensions/xf86mscstr.h>
+-#include "extutil.h"
++#include <X11/extensions/extutil.h>
+ 
+ #include <X11/extensions/XInput.h>
+ 
+diff -Nur panel.orig/FGLRXExtensions.c panel/FGLRXExtensions.c
+--- panel.orig/FGLRXExtensions.c
++++ panel/FGLRXExtensions.c
+@@ -18,7 +18,7 @@
+ 
+ #include <X11/extensions/xf86misc.h>
+ #include <X11/extensions/xf86mscstr.h>
+-#include "extutil.h"
++#include <X11/extensions/extutil.h>
+ 
+ #include <X11/extensions/XInput.h>
+ 
+diff -Nur panel.orig/main.cpp panel/main.cpp
+--- panel.orig/main.cpp
++++ panel/main.cpp
+@@ -28,7 +28,6 @@
+ //    printf ( "%s\n", lpath.data() ) ;
+ //    printf ( "%s\n", lfile.data() ) ;
+ 
+-    QApplication::setStyle ( new QWindowsStyle ) ;
+ 
+     QApplication a( argc, argv );
+ 
+diff -Nur panel.orig/Makefile panel/Makefile
+--- panel.orig/Makefile
++++ panel/Makefile
+@@ -37,28 +37,16 @@
+ # resolve target platform
+ # (on cross compiles this must be a commandline parameter)
+ PLATFORMTYPE = $(shell uname -m)
+-ifeq ($(PLATFORMTYPE), ia64) 
+-LIBQT_STATIC = libqt64.a
+-LIBQT_DYN = qt
+-LIB_DIR = lib
+-else
+-ifneq ($(findstring $(PLATFORMTYPE), i386 i486 i586 i686), )
++ifneq ($(findstring $(PLATFORMTYPE), ia64 x86_64 i386 i486 i586 i686), )
+ LIBQT_STATIC = libqt.a
+-LIBQT_DYN = qt
+-LIB_DIR = lib
+-else
+-ifeq ($(PLATFORMTYPE), x86_64)
+-LIBQT_STATIC = libqtx86_64.a
+ LIBQT_DYN = qt-mt
+-LIB_DIR = lib64
++LIB_DIR = lib
+ else
+ LIBQT_STATIC = libunknownplatform.a
+ LIBQT_DYN = qtunknown
+ LIB_DIR = unknowndir
+ $(error Unknown Platform)
+ endif
+-endif
+-endif
+ 
+ 
+ # ========================================
+@@ -88,7 +76,7 @@
+ endif
+ 
+ ifeq ($(shell test -e $(MK_QTDIR)/include/qglobal.h$(colon) echo $$?),1)
+-$(error environment incomplete: MK_QTDIR=$(MK_QTDIR))
++$(error environment incomplete: MK_QTDIR=$(MK_QTDIR) [missing $(MK_QTDIR)/include/qglobal.h])
+ endif
+ 
+ ifeq ($(QT_VER),0)
+@@ -178,9 +166,6 @@
+ CCFLAGS =         $(CCDEBFLAGS) -O2 -fno-strength-reduce -funsigned-char -Wall -W $(CCDEFINES)
+ LLFLAGS =         $(CCDEBFLAGS) $(LIBS)
+ 
+-# reusable path shortcuts
+-DDX_DIR = ../../Xserver/hw/xfree86/drivers/fglrx
+-
+ # misc other tools flags
+ LIBCFLAGS = -fPIC
+ 
+@@ -201,15 +186,7 @@
+ # filenames
+ PACKET_NAME = fglrx_panel_sources
+ 
+-BASENAME =  fireglcontrol
+-
+-ifeq ($(QT_STATIC),0)
+-TARGET0	=	$(BASENAME).qt$(QT_VER).gcc$(GCC_VER)
+-else
+-TARGET0 =   $(BASENAME).qtstatic.gcc$(GCC_VER)
+-endif
+-TARGET1 =	Shutdown
+-TARGET2 =	Restart
++TARGET0 = fireglcontrol
+ 
+ # MOC
+ TARGET0_H_TEMPLATE =            \
+@@ -245,18 +222,6 @@
+         FGLRXExtensions.o   \
+         ATITVOExtensions.o  \
+ 
+-TARGET1_CSOURCES =          \
+-        Shutdown.c          \
+-
+-TARGET1_COBJECTS =          \
+-        Shutdown.o          \
+-
+-TARGET2_CSOURCES =          \
+-        Restart.c           \
+-
+-TARGET2_COBJECTS =          \
+-        Restart.o           \
+-
+ # CC
+ TARGET0_CCSOURCES =         \
+         main.cpp            \
+@@ -293,26 +258,6 @@
+         Radeon_extension_tvout.h \
+         R200_extensions.h \
+ 
+-TARGET1_SOURCES =               \
+-        $(TARGET1_CSOURCES)     \
+-        $(TARGET1_CCSOURCES)    \
+-        $(TARGET1_CC_META)      \
+-
+-TARGET1_OBJECTS =               \
+-        $(TARGET1_COBJECTS)     \
+-        $(TARGET1_CCOBJECTS)    \
+-        $(TARGET1_OBJ_META)     \
+-
+-TARGET2_SOURCES =               \
+-        $(TARGET2_CSOURCES)     \
+-        $(TARGET2_CCSOURCES)    \
+-        $(TARGET2_CC_META)      \
+-
+-TARGET2_OBJECTS =               \
+-        $(TARGET2_COBJECTS)     \
+-        $(TARGET2_CCOBJECTS)    \
+-        $(TARGET2_OBJ_META)     \
+-
+ 
+ # ========================================
+ ####### Implicit rules
+@@ -336,41 +281,16 @@
+ # Build rules
+ 
+ all:: $(TARGET0)
+-#all:: $(TARGET0) $(TARGET1) $(TARGET2)
+ 
+ $(TARGET0): $(TARGET0_OBJECTS) $(LIBQT_DEPEND) $(TARGET0_SYMLINKS)
+ 	$(CC) $(TARGET0_OBJECTS) $(LIBQT_DEPEND) -o $@ $(LLFLAGS)
+ 	$(STRIP) $@
+-	bzip2 -c $@ >$@.bz2
+-	rm -f $(BASENAME)
+-	ln -s $@ $(BASENAME)
+-
+-
+-$(TARGET1): $(TARGET1_OBJECTS)
+-	$(C) $+ -o $@ $(LFLAGS)
+-	$(STRIP) $@
+-
+-$(TARGET2): $(TARGET2_OBJECTS)
+-	$(C) $+ -o $@ $(LFLAGS)
+-	$(STRIP) $@
+-
+-# extract the statically linked lib
+-$(LIBQT_DEPEND): $(LIBQT).bz2
+-	bzcat $(LIBQT).bz2 >$(LIBQT_DEPEND)
+ 
+-R200_extensions.h:
+-	ln -s $(DDX_DIR)/R200_extensions.h ./R200_extensions.h
+ 
+-Radeon_extension_tvout.h:
+-	ln -s $(DDX_DIR)/Radeon_extension_tvout.h ./Radeon_extension_tvout.h
+-
+-#depend:: $(TARGET0_CSOURCES) $(TARGET0_CCSOURCES) $(TARGET1_CSOURCES) $(TARGET2_CSOURCES)
+ depend:: $(TARGET0_CSOURCES) $(TARGET0_CCSOURCES) $(TARGET0_SYMLINKS)
+ 	make dep_clean
+ 	makedepend -a $(CINCDIR)  $(CDEFINES)  $(TARGET0_CSOURCES)
+ 	makedepend -a $(CCINCDIR) $(CCDEFINES) $(TARGET0_CCSOURCES)
+-	@#makedepend -a $(CINCDIR)  $(CDEFINES)  $(TARGET1_CSOURCES)
+-	@#makedepend -a $(CINCDIR)  $(CDEFINES)  $(TARGET2_CSOURCES)
+ 
+ dep:: depend
+ 
+@@ -383,38 +303,19 @@
+ clean::
+ 	@make dep_clean
+ 	@rm -f *.o *.bak *~ *% #*
+-	@rm -f $(TARGET0_CC_META) $(BASENAME) $(TARGET0)
+-	@#rm -f $(TARGET0_CC_META) $(BASENAME) $(TARGET0) $(TARGET1) $(TARGET2)
+-	@for name in $(TARGET0_SYMLINKS); do \
+-	  if [ -h $$name ]; then \
+-	    rm -f $$name; \
+-	  fi; \
+-	done
++	@rm -f $(TARGET0_CC_META) $(TARGET0)
+ 
+-# do _not_ cleanup the packed target package
+ distclean:: clean
+-	@#rm -f $(TARGET0).bz2
+ 
+ # do cleanup any packed target package
+ really_distclean:: distclean
+-	@rm -f $(BASENAME).*.bz2 $(PACKET_NAME).tgz
++	@rm -f $(PACKET_NAME).tgz
+ 
+ 
+ install::
+-	cp $(TARGET0) /usr/X11R6/bin/.
+-	cd /usr/X11R6/bin/. ; rm -f $(BASENAME) ; ln -s $(TARGET0) $(BASENAME)
+-	cp LICENSE.GPL /usr/X11R6/bin/.
+-	cp LICENSE.QPL /usr/X11R6/bin/.
+-	if  [ $KDEDIR ]; then\
+-	  cp fireglcontrol.kdelnk $(KDEDIR)/share/applnk/. ;\
+-	  cp ati.xpm $(KDEDIR)/share/icons/. ;\
+-	fi
+-	if test -d /usr/share/gnome/apps; then \
+-	  cp fireglcontrol.desktop /usr/share/gnome/apps/. ;\
+-	  if test -d /usr/share/pixmaps; then \
+-	    cp ati.xpm /usr/share/pixmaps/. ;\
+-	  fi ;\
+-	fi
++	install $(TARGET0) $(DESTDIR)/usr/bin/.
++	install -m0644 ati.xpm $(DESTDIR)/usr/share/icons/.
++	install -m0644 ati.xpm $(DESTDIR)/usr/share/pixmaps/.
+ 
+ source_package::
+ 	@if [ -f $(PACKET_NAME).tar ]; then      \
+@@ -444,7 +345,6 @@
+ 	@make dep_clean
+ 	@chmod a-x *.c *.cpp *.h *.xpm LICENSE.*
+ 	tar  -r -v -h -f $(PACKET_NAME).tar Makefile $(TARGET0_CSOURCES) $(TARGET0_CCSOURCES) `cat dependencies_local.txt` LICENSE.GPL LICENSE.QPL
+-	@#tar  -r -v -h -f $(PACKET_NAME).tar Makefile $(TARGET0_CSOURCES) $(TARGET0_CCSOURCES) $(TARGET1_CSOURCES) $(TARGET2_CSOURCES) `cat dependencies_local.txt` LICENSE.GPL LICENSE.QPL
+ 	gzip --best $(PACKET_NAME).tar
+ 	mv $(PACKET_NAME).tar.gz $(PACKET_NAME).tgz
+ 	chmod a-wx $(PACKET_NAME).tgz
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.prerm
+++ fglrx-driver-8.47.3/debian/fglrx-driver.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+#stop kernel mode driver
+#/sbin/rmmod fglrx 2> /dev/null
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-kernel-src.README.Debian
+++ fglrx-driver-8.47.3/debian/fglrx-kernel-src.README.Debian
@@ -0,0 +1,130 @@
+ATI display driver for Debian
+=============================
+
+
+Building the kernel module
+--------------------------
+
+Change directory to /usr/src and unpack the module sources:
+
+   $ cd /usr/src
+   $ tar xjf fglrx.tar.bz2
+
+  *** Make sure to remove any old /usr/src/modules/fglrx* directory
+  *** after an upgrade of the sources package.
+
+You can build the kernel module in several ways. Using module-assistant is
+usually easiest and is therefore recommended.
+
+a) Build with module-assistant (recommended)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+If you have never built modules with module-assistant before, you should
+prepare the build environment by running:
+
+   # module-assistant prepare
+
+In the usual environment, module-assistant should detect all
+requirements. Example (assuming that you build for the running kernel):
+
+   # module-assistant a-i fglrx
+
+module-assistant will unpack the sources for you, if necessary. Make sure
+to remove any old /usr/src/modules/fglrx directory after an upgrade of
+the fglrx package, because module-assistant will not do that for you.
+
+If you prefer to build the packages with m-a from your own user account
+(with ~/src/linux being the kernel source):
+
+   $ mkdir -p ~/src/modass
+   $ module-assistant -u ~/src/modass -k ~/src/linux install fglrx
+
+Note: A detailed explanation of module-assistant is beyond the scope
+of this document. Please refer to the module-assistant documentation.
+
+b) Build with the make-kpkg command
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+make-kpkg is provided by the kernel-package Debian package.
+
+   $ cd /usr/src/kernel-source-2.x.y
+   $ fakeroot make-kpkg --append-to-version "-flavour" \
+     --added-modules fglrx modules_image
+
+"-flavour" is supposed to be a placeholder. You need to replace it with
+the correct value for your kernel, for example something like "-1-686" for
+prepackaged Debian kernels.
+
+This will build a new package, which you will have to install:
+
+   $ dpkg -i /usr/src/fglrx-kernel-2.x.y_<version>_<arch>.deb
+
+c) Build with the supplied make.sh script
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+This will build a module that matches the running kernel; you need to have
+the correct kernel source and configuration in place.
+
+   $ cd /usr/src/modules/fglrx
+   $ ./make.sh
+
+Provided that the module was compiled without error, become root and
+install it:
+
+   $ mkdir /lib/modules/$(uname -r)/misc
+   $ cp fglrx.ko /lib/modules/$(uname  -r)/misc/
+   $ depmod -ae
+
+d) Build with the kernel's makefile (only on kernel 2.6.x)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+This will build a module that matches the kernel sources you start from.
+
+If you are unable to build a working module in any other way, please try
+this method and install the module by hand. If this module works, building
+it with make-kpkg is just a matter of using the correct parameters.
+
+   $ cd /usr/src/kernel-source-2.x.y
+   $ make SUBDIRS=/usr/src/modules/fglrx modules
+
+  (replace /usr/src/kernel-source-2.x.y with the path to your kernel
+  sources)
+
+Provided that the module was compiled without error, become root and
+install it as shown in the previous section.
+
+
+Loading the kernel module
+-------------------------
+
+At this point, the kernel module is installed and ready for use; to make
+sure that it's working, you should now try to load it. You'll do this
+only once to check that the module was compiled and installed correctly:
+you won't need to load it manually every time, because the X driver will
+load it as needed.  If you are currently running X, your card will be in
+use and you won't be able to load the module. Please end your X session,
+log in to a text console and stop any display manager you're running.
+
+Now try to load the module by entering the following command as root:
+
+   $ modprobe -v fglrx
+
+If everything goes well, modprobe prints the path of the module it loaded.
+
+If modprobe can't load the module, make sure you've installed it correctly
+and look at the output of dmesg for any errors. Please include the full
+error message from modprobe -v fglrx and the output from dmesg and lsmod if
+you choose to contact me at this point!
+
+Unresolved symbols
+^^^^^^^^^^^^^^^^^^
+If you get any "unresolved symbol" errors, look carefully at the unresolved
+symbol's name and try to understand which configuration option it might be
+related to. For example, unresolved symbols containing "mtrr" are obviously
+caused by a missing CONFIG_MTRR=yes.
+
+If you see errors like "unresolved symbol dev_base_R863b01ad", with a
+few hexadecimal digits at the end of the symbol names, it means that the
+module was compiled with CONFIG_MODVERSIONS=yes but the running kernel
+was not. In other words, the configuration of your kernel source tree
+does not reflect that of the running kernel.
+
+
+ -- Flavio Stanchina <flavio@stanchina.net>
+
--- fglrx-driver-8.47.3.orig/debian/copyright
+++ fglrx-driver-8.47.3/debian/copyright
@@ -0,0 +1,226 @@
+This package was debianized by Flavio Stanchina <flavio@stanchina.net> on
+Thu, 28 Nov 2002 02:17:56 +0100.
+
+The .orig.tar.gz file contains files extracted from the "Driver Installer"
+packages available from the ATI web site at http://www.ati.com -- look for
+the "Drivers & Software" page and follow links to the i386 and amd64 Linux
+drivers. The actual URLs of the "Driver Installer" files are subject to
+change with every release, so I'm not reporting them here.
+
+Additionally, the license below allows automatic building of the module.
+
+Packaging scripts:
+  Copyright (C) 2002-2006 Flavio Stanchina <flavio@stanchina.net>
+  Licensed under the GNU General Public License, version 2.
+  On Debian systems, the complete text of the General Public License can be
+  found in `/usr/share/common-licenses/GPL-2'.
+
+License:
+
+ATI Software End User License Agreement
+
+PLEASE  READ  THIS  LICENSE  CAREFULLY  BEFORE  USING   THE   SOFTWARE.   BY
+DOWNLOADING, INSTALLING, COPYING OR USING THE SOFTWARE, YOU ARE AGREEING  TO
+BE BOUND BY THE TERMS OF THIS LICENSE.  IF YOU ARE  ACCESSING  THE  SOFTWARE
+ELECTRONICALLY,  SIGNIFY  YOUR  AGREEMENT  BY  CLICKING  THE  "AGREE/ACCEPT"
+BUTTON.  IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE,  PROMPTLY  RETURN
+THE SOFTWARE TO THE PLACE WHERE YOU OBTAINED IT  AND  (IF  APPLICABLE)  YOUR
+MONEY WILL BE REFUNDED OR IF THE SOFTWARE WAS ACCESSED ELECTRONICALLY  CLICK
+"DISAGREE/DECLINE".
+
+1. License.  ATI Technologies Inc., on behalf of  itself,  its  subsidiaries
+and licensors (referred collectively as "ATI") grants to you  the  following
+non-exclusive,  right  to  use  the  software  accompanying   this   License
+(hereinafter "Software") subject to the following terms and limitations:
+
+(a)   Regardless of the media upon which it is distributed, the Software  is
+licensed to you for use solely in conjunction with ATI hardware products  to
+which the Software relates ("ATI Hardware").
+
+(b)   You own the medium on which the Software is recorded, but ATI and,  if
+applicable,  its  licensors  retain  title  to  the  Software  and   related
+documentation.
+
+(c)   You may:
+
+  i) use the Software solely in  connection  with  the  ATI  Hardware  on  a
+   single computer;
+
+  ii) make one copy of the Software  in  machine-readable  form  for  backup
+   purposes only. You must reproduce on such copy ATI's copyright notice and
+   any other proprietary legends that were  on  the  original  copy  of  the
+   Software;
+
+  iii) transfer all your license rights in the Software  provided  you  must
+   also transfer a copy of this License, the backup copy  of  the  Software,
+   the ATI Hardware and the related documentation  and  provided  the  other
+   party reads and agrees  to  accept  the  terms  and  conditions  of  this
+   License.  Upon such transfer your license rights are then terminated.
+
+(d)   In addition to the license terms above, with respect  to  portions  of
+the Software in source code or binary  form  designed  exclusively  for  use
+with the Linux operating system ("ATI Linux Code"), you  may  use,  display,
+modify, copy, distribute, allow others to  re-distribute,  package  and  re-
+package such ATI Linux Code  for  commercial  and  non-commercial  purposes,
+provided that:
+
+   i) all binary components of the ATI Linux Code are not  modified  in  any
+   way;
+
+   ii) the ATI Linux Code is only used  as  part  of  the  Software  and  in
+   connection with ATI Hardware;
+
+   iii) all copyright notices of ATI are reproduced and you refer  to  these
+   license terms;
+
+   iv) you  may  not  offer  or  impose any terms on the use  of  ATI  Linux
+   Code that alter or restrict this License; and
+
+   v) if you have modified the ATI Linux Code, such  modifications  will  be
+   made publicly available and are licensed under the  same  terms  provided
+   herein to ATI or any  other  third  party  without  further  restriction,
+   royalty or any other license requirement;
+
+   vi) to  the  extent  there  is  any ATI sample or  control  panel  source
+   code included in the ATI Linux Code, no rights are granted to modify such
+   code except for portions thereof that  may  be  subject  to  third  party
+   license terms that grant such rights; and
+
+   vii) ATI is not obligated to provide any maintenance or technical support
+   for any code resulting from ATI Linux Code.
+
+2.  Restrictions.  The Software contains copyrighted and patented  material,
+trade secrets and other proprietary material.  In  order  to  protect  them,
+and except as permitted by this license or applicable legislation,  you  may
+not:
+
+  a) decompile,  reverse  engineer,  disassemble  or  otherwise  reduce  the
+   Software to a human-perceivable form;
+
+  b) modify, network, rent, lend,  loan,  distribute  or  create  derivative
+   works based upon the Software in whole or in part; or
+
+  c) electronically transmit the Software from one computer  to  another  or
+   over a network or otherwise transfer the Software except as permitted  by
+   this License.
+
+3.  Termination.  This License  is  effective  until  terminated.   You  may
+terminate this License at any  time  by  destroying  the  Software,  related
+documentation  and  all  copies  thereof.   This  License   will   terminate
+immediately without  notice  from  ATI  if  you  fail  to  comply  with  any
+provision of this License.  Upon termination you must destroy the  Software,
+related documentation and all copies thereof.
+
+4.  Government End Users. If you are acquiring the  Software  on  behalf  of
+any  unit  or  agency  of  the  United  States  Government,  the   following
+provisions apply.  The Government  agrees  the  Software  and  documentation
+were  developed  at  private  expense  and  are  provided  with  "RESTRICTED
+RIGHTS".  Use, duplication, or disclosure by the Government  is  subject  to
+restrictions as set forth in DFARS 227.7202-1(a) and  227.7202-3(a)  (1995),
+DFARS 252.227-7013(c)(1)(ii) (Oct 1988), FAR  12.212(a)(1995),  FAR  52.227-
+19, (June 1987) or FAR 52.227-14(ALT III) (June 1987),as amended  from  time
+to time.  In the event that this License, or any  part  thereof,  is  deemed
+inconsistent with the minimum rights identified  in  the  Restricted  Rights
+provisions, the minimum rights shall prevail.
+
+5.  No Other License.  No rights or licenses are granted by ATI  under  this
+License, expressly or  by  implication,  with  respect  to  any  proprietary
+information  or  patent,  copyright,  trade  secret  or  other  intellectual
+property right owned or controlled by ATI, except as expressly  provided  in
+this License.
+
+6.  Additional Licenses.  DISTRIBUTION  OR  USE  OF  THE  SOFTWARE  WITH  AN
+OPERATING SYSTEM MAY REQUIRE ADDITIONAL LICENSES FROM THE  OPERATING  SYSTEM
+VENDOR.
+
+7.  Disclaimer of Warranty  on  Software.   You  expressly  acknowledge  and
+agree that use of the Software is at  your  sole  risk.   The  Software  and
+related documentation are provided "AS IS" and without warranty of any  kind
+and ATI EXPRESSLY DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED,  INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  MERCHANTABILITY  AND  FITNESS
+FORA PARTICULAR  PURPOSE,  OF  QUALITY,  OF  QUIET  ENJOYMENT  AND  OF  NON-
+INFRINGEMENT  OF  THIRD  PARTY  RIGHTS.   ATI  DOES  NOT  WARRANT  THAT  THE
+FUNCTIONS CONTAINED IN THE SOFTWARE WILL MEET  YOUR  REQUIREMENTS,  OR  THAT
+THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE,  OR  THAT
+DEFECTS IN THE SOFTWARE WILL BE  CORRECTED.   THE  ENTIRE  RISK  AS  TO  THE
+RESULTS AND PERFORMANCE OF THE SOFTWARE IS  ASSUMED  BY  YOU.   FURTHERMORE,
+ATI DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS  REGARDING  THE  USE  ORTHE
+RESULTS OF THE USE OF THE SOFTWARE OR  RELATED  DOCUMENTATION  IN  TERMS  OF
+THEIR CORRECTNESS, ACCURACY,  RELIABILITY,  CURRENTNESS,  OR  OTHERWISE.  NO
+ORAL OR WRITTEN INFORMATION OR ADVICE  GIVEN  BY  ATI  OR  ATI'S  AUTHORIZED
+REPRESENTATIVE SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE  SCOPE  OF
+THIS WARRANTY.  SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU  (AND  NOT  ATI  OR
+ATI'S AUTHORIZED REPRESENTATIVE) ASSUME THE ENTIRE  COST  OF  ALL  NECESSARY
+SERVICING, REPAIR OR CORRECTION.  THE SOFTWARE IS NOT INTENDED  FOR  USE  IN
+MEDICAL, LIFE SAVING OR LIFE SUSTAINING  APPLICATIONS.   SOME  JURISDICTIONS
+DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES,  SO  THE  ABOVE  EXCLUSION
+MAY NOT APPLY TO YOU.
+
+8.  Limitation of Liability. TO THE MAXIMUM EXTENT PERMITTED BY  LAW,  UNDER
+NO  CIRCUMSTANCES  INCLUDING  NEGLIGENCE,  SHALL  ATI,  OR  ITS   DIRECTORS,
+OFFICERS, EMPLOYEES  OR  AGENTS,  BE  LIABLE  TO  YOU  FOR  ANY  INCIDENTAL,
+INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING DAMAGES  FOR  LOSS  OF
+BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS  OF  BUSINESSINFORMATION,  AND
+THE LIKE) ARISING OUT OF THE USE, MISUSE OR INABILITY TO  USE  THE  SOFTWARE
+OR RELATED DOCUMENTATION, BREACH OR DEFAULT, INCLUDING  THOSE  ARISING  FROM
+INFRINGEMENT OR ALLEGED INFRINGEMENT OF ANY PATENT, TRADEMARK, COPYRIGHT  OR
+OTHER INTELLECTUAL PROPERTY RIGHT, BY ATI, EVEN IF ATI OR  ATI'S  AUTHORIZED
+REPRESENTATIVE HAS BEEN ADVISED OF THE POSSIBILITY OF  SUCH  DAMAGES.   SOME
+JURISDICTIONS DO NOT ALLOW THE LIMITATION  OR  EXCLUSION  OF  LIABILITY  FOR
+INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE  LIMITATION  OR  EXCLUSION
+MAY NOT APPLY TO YOU.  ATI will not be liable for 1) loss of, or damage  to,
+your records or data or 2) any damages claimed by you  based  on  any  third
+party claim.   In no event shall  ATI's  total  liability  to  you  for  all
+damages, losses, and causes of action (whether in contract, tort  (including
+negligence) or otherwise) exceed the amount paid by you  for  the  Software.
+The foregoing limitations will apply even if  the  above  stated  limitation
+fails of its essential purpose.
+
+9.  Controlling Law and Severability.  This License  shall  be  governed  by
+and construed under the laws of the  Province  of  Ontario,  Canada  without
+reference to its conflict of law principles.   Any  dispute  related  hereto
+will be brought only in the courts in  Toronto,  Ontario,  Canada  and  such
+courts are agreed  to  be  the  convenient  forum.   In  the  event  of  any
+conflicts between foreign law, rules, and  regulations,  and  Canadian  law,
+rules, and regulations, Canadian law, rules and  regulations  shall  prevail
+and  govern.   The  United  Nations  Convention   on   Contracts   for   the
+International Sale of Goods shall not apply to this  License.   If  for  any
+reason a court  of  competent  jurisdiction  finds  any  provision  of  this
+License or portion thereof, to  be  unenforceable,  that  provision  of  the
+License shall be enforced to the maximum extent permissible so as to  effect
+the intent of the parties, and the remainder of this License shall  continue
+in full force and effect.
+
+10.  Complete Agreement.  This  License  constitutes  the  entire  agreement
+between the parties with respect to the use of the Software and the  related
+documentation, and supersedes all prior  or  contemporaneous  understandings
+or  agreements,  written  or  oral,  regarding  such  subject  matter.    No
+amendment to or modification of this  License  will  be  binding  unless  in
+writing and signed by a duly authorized representative of ATI.
+
+===================================================================
+Man pages and related files in debian/man:
+
+Copyright (C) 2005-2006 Daniel Leidert <daniel.leidert@wgdd.de>.
+Copyright (C) 2005-2006 Flavio Stanchina <flavio@stanchina.net>.
+All rights reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
+
+===================================================================
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.preinst
+++ fglrx-driver-8.47.3/debian/fglrx-driver.preinst
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Copyright (C) 2002-2006 Flavio Stanchina
+# Licensed under the GNU General Public License, version 2.
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> 'install'
+#        * <new-preinst> 'install' <old-version>
+#        * <new-preinst> 'upgrade' <old-version>
+#        * <old-preinst> 'abort-upgrade' <new-version>
+#
+# For details see /usr/share/doc/packaging-manual/
+
+# Prepare to move a conffile without triggering a dpkg question
+# from http://wiki.debian.org/DpkgConffileHandling
+prep_mv_conffile()
+{
+    if [ -e $1 ]; then
+        md5sum="$(md5sum $1 | sed -e 's/ .*//')"
+        old_md5sum="$(dpkg-query -W -f='${Conffiles}' fglrx-driver  | grep $1 | cut -d' ' -f3)"
+        if [ "$md5sum" = "$old_md5sum" ]; then
+            rm -f $1
+        fi
+    fi
+}
+
+case "$1" in
+    install|upgrade)
+        if dpkg --compare-versions "$2" lt "8.30.3"; then
+            prep_mv_conffile /etc/fglrxrc
+            prep_mv_conffile /etc/fglrxprofiles.csv
+        fi
+    ;;
+esac
+
+
+#DEBHELPER#
+
--- fglrx-driver-8.47.3.orig/debian/fglrx-control.dirs
+++ fglrx-driver-8.47.3/debian/fglrx-control.dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/share
+usr/share/icons
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.default
+++ fglrx-driver-8.47.3/debian/fglrx-driver.default
@@ -0,0 +1,4 @@
+
+# Uncomment the next line to enable powerstate switching on ACPI
+# events for lid open/close and AC adapter on/off
+#FGLRX_ACPI_SWITCH_POWERSTATES=true
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.dirs
+++ fglrx-driver-8.47.3/debian/fglrx-driver.dirs
@@ -0,0 +1,9 @@
+usr/bin
+usr/lib
+usr/lib/xorg
+usr/lib/xorg/modules
+usr/share/lintian/overrides
+etc
+etc/acpi
+etc/acpi/events
+etc/default
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.docs
+++ fglrx-driver-8.47.3/debian/fglrx-driver.docs
@@ -0,0 +1,6 @@
+common/usr/share/doc/fglrx/articles
+common/usr/share/doc/fglrx/configure.html
+common/usr/share/doc/fglrx/driverfaq.html
+common/usr/share/doc/fglrx/issues.html
+common/usr/share/doc/fglrx/linuxfaq.html
+common/usr/share/doc/fglrx/user-manual
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.init
+++ fglrx-driver-8.47.3/debian/fglrx-driver.init
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+#
+# init.d-style example script for controlling the ATI External Events Daemon
+#
+# Distro maintainers may modify this reference script as necessary to conform
+# to their distribution policies, or they may simply substitute their own script
+# instead.  This reference script is provided merely as a simple example.
+#
+# Copyright (c) 2006, ATI Technologies Inc.  All rights reserved.
+#
+
+### BEGIN INIT INFO
+# Provides:		fglrx-driver
+# Required-Start:	$syslog
+# Required-Stop:	$syslog
+# Should-Start:		$local_fs
+# Should-Stop:		$local_fs
+# Default-Start:	2 3 4 5
+# Default-Stop:		0 1 6
+# Short-Description:	control ATI external events daemon
+# Description:		Starts or stops the ATI external events daemon,
+#			which handles power management for fglrx-driver.
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+DAEMONPATH=/usr/sbin/atieventsd
+DAEMONNAME=atieventsd
+DAEMONOPTS=""
+
+[ -f $DAEMONPATH ] || exit 0
+
+case "$1" in
+    start)
+        echo -n "Starting $DAEMONNAME: "
+        start-stop-daemon --start --name $DAEMONNAME --oknodo \
+            --exec $DAEMONPATH -- $DAEMONOPTS
+        echo "done."
+        ;;
+
+    stop)
+        echo -n "Stopping $DAEMONNAME: "
+        start-stop-daemon --stop --exec $DAEMONPATH --oknodo
+        echo "done."
+        ;;
+
+    restart|force-reload)
+        $0 stop
+        sleep 1
+        $0 start
+        ;;
+    status)
+	exit 4
+	;;
+    *)
+        echo "$0 {start|stop|restart|force-reload|status}"
+        exit 3
+        ;;
+esac
+
+exit 0
--- fglrx-driver-8.47.3.orig/debian/fglrx-driver.lintian-overrides
+++ fglrx-driver-8.47.3/debian/fglrx-driver.lintian-overrides
@@ -0,0 +1,2 @@
+fglrx-driver: package-name-doesnt-match-sonames libfglrx-dm1.0 libfglrx-gamma1 libfglrx-pp1.0 libfglrx-tvout1
+fglrx-driver: several-sonames-in-same-package libfglrx_dm.so.1.0 libfglrx_gamma.so.1 libfglrx_pp.so.1.0 libfglrx_tvout.so.1
