1f7ec340bSmacallan#  Copyright 2005 Adam Jackson.
2f7ec340bSmacallan#
3f7ec340bSmacallan#  Permission is hereby granted, free of charge, to any person obtaining a
4f7ec340bSmacallan#  copy of this software and associated documentation files (the "Software"),
5f7ec340bSmacallan#  to deal in the Software without restriction, including without limitation
6f7ec340bSmacallan#  on the rights to use, copy, modify, merge, publish, distribute, sub
7f7ec340bSmacallan#  license, and/or sell copies of the Software, and to permit persons to whom
8f7ec340bSmacallan#  the Software is furnished to do so, subject to the following conditions:
9f7ec340bSmacallan#
10f7ec340bSmacallan#  The above copyright notice and this permission notice (including the next
11f7ec340bSmacallan#  paragraph) shall be included in all copies or substantial portions of the
12f7ec340bSmacallan#  Software.
13f7ec340bSmacallan#
14f7ec340bSmacallan#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15f7ec340bSmacallan#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16f7ec340bSmacallan#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17f7ec340bSmacallan#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18f7ec340bSmacallan#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19f7ec340bSmacallan#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20f7ec340bSmacallan#
21f7ec340bSmacallan# Process this file with autoconf to produce a configure script
22f7ec340bSmacallan
232a75d1c4Smrg# Initialize Autoconf
242a75d1c4SmrgAC_PREREQ([2.60])
25f7ec340bSmacallanAC_INIT([xf86-video-suncg14],
2666ab3337Smrg        [1.1.3],
2766ab3337Smrg        [https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues],
282a75d1c4Smrg        [xf86-video-suncg14])
29f7ec340bSmacallanAC_CONFIG_SRCDIR([Makefile.am])
302a75d1c4SmrgAC_CONFIG_HEADERS([config.h])
31f7ec340bSmacallanAC_CONFIG_AUX_DIR(.)
32f7ec340bSmacallan
332a75d1c4Smrg# Initialize Automake
3466ab3337SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
35f7ec340bSmacallanAM_MAINTAINER_MODE
36f7ec340bSmacallan
372a75d1c4Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
382a75d1c4Smrgm4_ifndef([XORG_MACROS_VERSION],
392a75d1c4Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
402a75d1c4SmrgXORG_MACROS_VERSION(1.8)
412a75d1c4SmrgXORG_DEFAULT_OPTIONS
422a75d1c4Smrg
432a75d1c4Smrg# Initialize libtool
44f7ec340bSmacallanAC_DISABLE_STATIC
45f7ec340bSmacallanAC_PROG_LIBTOOL
46f7ec340bSmacallan
47f7ec340bSmacallanAH_TOP([#include "xorg-server.h"])
48f7ec340bSmacallan
492a75d1c4Smrg# Define a configure option for an alternate module directory
50f7ec340bSmacallanAC_ARG_WITH(xorg-module-dir,
512a75d1c4Smrg            AS_HELP_STRING([--with-xorg-module-dir=DIR],
52f7ec340bSmacallan                           [Default xorg module directory [[default=$libdir/xorg/modules]]]),
53f7ec340bSmacallan            [moduledir="$withval"],
54f7ec340bSmacallan            [moduledir="$libdir/xorg/modules"])
55f7ec340bSmacallan
562a75d1c4Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES
57f7ec340bSmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto)
58f7ec340bSmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto)
59f7ec340bSmacallan
602a75d1c4Smrg# Obtain compiler/linker options for the driver dependencies
61f7ec340bSmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
62f7ec340bSmacallan
63f7ec340bSmacallan# Checks for libraries.
64f7ec340bSmacallan
65f7ec340bSmacallanAC_SUBST([moduledir])
66f7ec340bSmacallan
67f7ec340bSmacallanDRIVER_NAME=suncg14
68f7ec340bSmacallanAC_SUBST([DRIVER_NAME])
69f7ec340bSmacallan
702a75d1c4SmrgAC_CONFIG_FILES([
712a75d1c4Smrg                Makefile
722a75d1c4Smrg                src/Makefile
732a75d1c4Smrg                man/Makefile
74f7ec340bSmacallan])
752a75d1c4SmrgAC_OUTPUT
76