13eed67faSmbalmer# Copyright 2005 Adam Jackson. 23eed67faSmbalmer# 33eed67faSmbalmer# Permission is hereby granted, free of charge, to any person obtaining a 43eed67faSmbalmer# copy of this software and associated documentation files (the "Software"), 53eed67faSmbalmer# to deal in the Software without restriction, including without limitation 63eed67faSmbalmer# on the rights to use, copy, modify, merge, publish, distribute, sub 73eed67faSmbalmer# license, and/or sell copies of the Software, and to permit persons to whom 83eed67faSmbalmer# the Software is furnished to do so, subject to the following conditions: 93eed67faSmbalmer# 103eed67faSmbalmer# The above copyright notice and this permission notice (including the next 113eed67faSmbalmer# paragraph) shall be included in all copies or substantial portions of the 123eed67faSmbalmer# Software. 133eed67faSmbalmer# 143eed67faSmbalmer# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 153eed67faSmbalmer# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 163eed67faSmbalmer# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 173eed67faSmbalmer# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 183eed67faSmbalmer# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 193eed67faSmbalmer# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 203eed67faSmbalmer# 213eed67faSmbalmer# Process this file with autoconf to produce a configure script 223eed67faSmbalmer 23621f50c3Smrg# Initialize Autoconf 24621f50c3SmrgAC_PREREQ([2.60]) 253eed67faSmbalmerAC_INIT([xf86-input-elographics], 26901a7df4Smrg [1.4.4], 27621f50c3Smrg [https://gitlab.freedesktop.org/xorg/driver/xf86-input-elographics/-/issues], 28901a7df4Smrg [xf86-input-elographics]) 293eed67faSmbalmerAC_CONFIG_SRCDIR([Makefile.am]) 303eed67faSmbalmerAC_CONFIG_AUX_DIR(.) 31621f50c3SmrgAC_CONFIG_HEADERS([config.h]) 323eed67faSmbalmer 33621f50c3Smrg# Initialize Automake 34621f50c3SmrgAM_INIT_AUTOMAKE([dist-xz]) 353eed67faSmbalmer 36621f50c3Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 37621f50c3Smrgm4_ifndef([XORG_MACROS_VERSION], 38621f50c3Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 39621f50c3SmrgXORG_MACROS_VERSION(1.8) 40621f50c3SmrgXORG_DEFAULT_OPTIONS 413eed67faSmbalmer 42901a7df4Smrg# Initialize libtool 43901a7df4SmrgLT_INIT([disable-static]) 443eed67faSmbalmer 453eed67faSmbalmerAH_TOP([#include "xorg-server.h"]) 463eed67faSmbalmer 473eed67faSmbalmerAC_ARG_WITH(xorg-module-dir, 48901a7df4Smrg AS_HELP_STRING([--with-xorg-module-dir=DIR], 49901a7df4Smrg [Default xorg module directory [[default=$libdir/xorg/modules]]]), 503eed67faSmbalmer [moduledir="$withval"], 513eed67faSmbalmer [moduledir="$libdir/xorg/modules"]) 523eed67faSmbalmerinputdir=${moduledir}/input 533eed67faSmbalmerAC_SUBST(inputdir) 543eed67faSmbalmer 553eed67faSmbalmer# Checks for extensions 563eed67faSmbalmerXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 573eed67faSmbalmerXORG_DRIVER_CHECK_EXT(XINPUT, inputproto) 583eed67faSmbalmer 593eed67faSmbalmer# Checks for pkg-config packages 60dd0822caSmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.10.0] xproto $REQUIRED_MODULES) 613eed67faSmbalmersdkdir=$(pkg-config --variable=sdkdir xorg-server) 623eed67faSmbalmer 633eed67faSmbalmer# Checks for libraries. 643eed67faSmbalmer 653eed67faSmbalmer# Checks for header files. 66901a7df4Smrg 67901a7df4Smrg# Checks for library functions 68901a7df4Smrg# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet 69901a7df4Smrg# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them. 70901a7df4SmrgAC_CHECK_FUNCS([strlcat strlcpy timingsafe_memcmp]) 713eed67faSmbalmer 72dc407927SmrgDRIVER_NAME=elographics 73dc407927SmrgAC_SUBST([DRIVER_NAME]) 74dc407927Smrg 753eed67faSmbalmer 76621f50c3SmrgAC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) 77621f50c3SmrgAC_OUTPUT 78