14a041c5bSmacallan# Copyright 2005 Adam Jackson. 24a041c5bSmacallan# 34a041c5bSmacallan# Permission is hereby granted, free of charge, to any person obtaining a 44a041c5bSmacallan# copy of this software and associated documentation files (the "Software"), 54a041c5bSmacallan# to deal in the Software without restriction, including without limitation 64a041c5bSmacallan# on the rights to use, copy, modify, merge, publish, distribute, sub 74a041c5bSmacallan# license, and/or sell copies of the Software, and to permit persons to whom 84a041c5bSmacallan# the Software is furnished to do so, subject to the following conditions: 94a041c5bSmacallan# 104a041c5bSmacallan# The above copyright notice and this permission notice (including the next 114a041c5bSmacallan# paragraph) shall be included in all copies or substantial portions of the 124a041c5bSmacallan# Software. 134a041c5bSmacallan# 144a041c5bSmacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 154a041c5bSmacallan# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 164a041c5bSmacallan# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 174a041c5bSmacallan# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 184a041c5bSmacallan# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 194a041c5bSmacallan# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 204a041c5bSmacallan# 214a041c5bSmacallan# Process this file with autoconf to produce a configure script 224a041c5bSmacallan 2354b44505Smrg# Initialize Autoconf 2454b44505SmrgAC_PREREQ([2.60]) 254a041c5bSmacallanAC_INIT([xf86-video-sunleo], 268fc2d0c6Smrg [1.2.3], 278fc2d0c6Smrg [https://gitlab.freedesktop.org/xorg/driver/xf86-video-sunleo/-/issues], 2854b44505Smrg [xf86-video-sunleo]) 294a041c5bSmacallanAC_CONFIG_SRCDIR([Makefile.am]) 3054b44505SmrgAC_CONFIG_HEADERS([config.h]) 314a041c5bSmacallanAC_CONFIG_AUX_DIR(.) 324a041c5bSmacallan 3354b44505Smrg# Initialize Automake 348fc2d0c6SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 354a041c5bSmacallanAM_MAINTAINER_MODE 364a041c5bSmacallan 3754b44505Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3854b44505Smrgm4_ifndef([XORG_MACROS_VERSION], 3954b44505Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 4054b44505SmrgXORG_MACROS_VERSION(1.8) 4154b44505SmrgXORG_DEFAULT_OPTIONS 4254b44505Smrg 4354b44505Smrg# Initialize libtool 444a041c5bSmacallanAC_DISABLE_STATIC 454a041c5bSmacallanAC_PROG_LIBTOOL 464a041c5bSmacallan 474a041c5bSmacallanAH_TOP([#include "xorg-server.h"]) 484a041c5bSmacallan 4954b44505Smrg# Define a configure option for an alternate module directory 504a041c5bSmacallanAC_ARG_WITH(xorg-module-dir, 5154b44505Smrg AS_HELP_STRING([--with-xorg-module-dir=DIR], 524a041c5bSmacallan [Default xorg module directory [[default=$libdir/xorg/modules]]]), 534a041c5bSmacallan [moduledir="$withval"], 544a041c5bSmacallan [moduledir="$libdir/xorg/modules"]) 554a041c5bSmacallan 5654b44505Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES 574a041c5bSmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 584a041c5bSmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 594a041c5bSmacallan 6054b44505Smrg# Obtain compiler/linker options for the driver dependencies 614a041c5bSmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 624a041c5bSmacallan 634a041c5bSmacallan# Checks for libraries. 644a041c5bSmacallan 654a041c5bSmacallanAC_SUBST([moduledir]) 664a041c5bSmacallan 674a041c5bSmacallanDRIVER_NAME=sunleo 684a041c5bSmacallanAC_SUBST([DRIVER_NAME]) 694a041c5bSmacallan 7054b44505SmrgAC_CONFIG_FILES([ 7154b44505Smrg Makefile 7254b44505Smrg src/Makefile 7354b44505Smrg man/Makefile 744a041c5bSmacallan]) 7554b44505SmrgAC_OUTPUT 76