1e4da13eeSmacallan#  Copyright 2005 Adam Jackson.
2e4da13eeSmacallan#
3e4da13eeSmacallan#  Permission is hereby granted, free of charge, to any person obtaining a
4e4da13eeSmacallan#  copy of this software and associated documentation files (the "Software"),
5e4da13eeSmacallan#  to deal in the Software without restriction, including without limitation
6e4da13eeSmacallan#  on the rights to use, copy, modify, merge, publish, distribute, sub
7e4da13eeSmacallan#  license, and/or sell copies of the Software, and to permit persons to whom
8e4da13eeSmacallan#  the Software is furnished to do so, subject to the following conditions:
9e4da13eeSmacallan#
10e4da13eeSmacallan#  The above copyright notice and this permission notice (including the next
11e4da13eeSmacallan#  paragraph) shall be included in all copies or substantial portions of the
12e4da13eeSmacallan#  Software.
13e4da13eeSmacallan#
14e4da13eeSmacallan#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15e4da13eeSmacallan#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16e4da13eeSmacallan#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17e4da13eeSmacallan#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18e4da13eeSmacallan#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19e4da13eeSmacallan#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20e4da13eeSmacallan#
21e4da13eeSmacallan# Process this file with autoconf to produce a configure script
22e4da13eeSmacallan
2365d490d0Smrg# Initialize Autoconf
2465d490d0SmrgAC_PREREQ([2.60])
25e4da13eeSmacallanAC_INIT([xf86-video-suntcx],
2625ad54caSmrg        [1.1.3],
2725ad54caSmrg        [https://gitlab.freedesktop.org/xorg/driver/xf86-video-suntcx/-/issues],
2865d490d0Smrg        [xf86-video-suntcx])
29e4da13eeSmacallanAC_CONFIG_SRCDIR([Makefile.am])
3065d490d0SmrgAC_CONFIG_HEADERS([config.h])
31e4da13eeSmacallanAC_CONFIG_AUX_DIR(.)
32e4da13eeSmacallan
3365d490d0Smrg# Initialize Automake
3425ad54caSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
35e4da13eeSmacallanAM_MAINTAINER_MODE
36e4da13eeSmacallan
3765d490d0Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3865d490d0Smrgm4_ifndef([XORG_MACROS_VERSION],
3965d490d0Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
4065d490d0SmrgXORG_MACROS_VERSION(1.8)
4165d490d0SmrgXORG_DEFAULT_OPTIONS
4265d490d0Smrg
4365d490d0Smrg# Initialize libtool
44e4da13eeSmacallanAC_DISABLE_STATIC
45e4da13eeSmacallanAC_PROG_LIBTOOL
46e4da13eeSmacallan
47e4da13eeSmacallanAH_TOP([#include "xorg-server.h"])
48e4da13eeSmacallan
4965d490d0Smrg# Define a configure option for an alternate module directory
50e4da13eeSmacallanAC_ARG_WITH(xorg-module-dir,
5165d490d0Smrg            AS_HELP_STRING([--with-xorg-module-dir=DIR],
52e4da13eeSmacallan                           [Default xorg module directory [[default=$libdir/xorg/modules]]]),
53e4da13eeSmacallan            [moduledir="$withval"],
54e4da13eeSmacallan            [moduledir="$libdir/xorg/modules"])
55e4da13eeSmacallan
5665d490d0Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES
57e4da13eeSmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto)
58e4da13eeSmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto)
59e4da13eeSmacallan
6065d490d0Smrg# Obtain compiler/linker options for the driver dependencies
61e4da13eeSmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
62e4da13eeSmacallan
63e4da13eeSmacallan# Checks for libraries.
64e4da13eeSmacallan
65e4da13eeSmacallanAC_SUBST([moduledir])
66e4da13eeSmacallan
67e4da13eeSmacallanDRIVER_NAME=suntcx
68e4da13eeSmacallanAC_SUBST([DRIVER_NAME])
69e4da13eeSmacallan
7065d490d0SmrgAC_CONFIG_FILES([
7165d490d0Smrg                Makefile
7265d490d0Smrg                src/Makefile
7365d490d0Smrg                man/Makefile
74e4da13eeSmacallan])
7565d490d0SmrgAC_OUTPUT
76