configure.ac revision d63b911f
1d63b911fSmrgdnl 217ca54c3Smrgdnl Copyright © 2017 Keith Packard 3d63b911fSmrgdnl 417ca54c3Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 517ca54c3Smrgdnl documentation for any purpose is hereby granted without fee, provided that 617ca54c3Smrgdnl the above copyright notice appear in all copies and that both that 717ca54c3Smrgdnl copyright notice and this permission notice appear in supporting 817ca54c3Smrgdnl documentation, and that the name of Keith Packard not be used in 917ca54c3Smrgdnl advertising or publicity pertaining to distribution of the software without 1017ca54c3Smrgdnl specific, written prior permission. Keith Packard makes no 1117ca54c3Smrgdnl representations about the suitability of this software for any purpose. It 1217ca54c3Smrgdnl is provided "as is" without express or implied warranty. 13d63b911fSmrgdnl 1417ca54c3Smrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1517ca54c3Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1617ca54c3Smrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1717ca54c3Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1817ca54c3Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1917ca54c3Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2017ca54c3Smrgdnl PERFORMANCE OF THIS SOFTWARE. 2117ca54c3Smrgdnl 2217ca54c3Smrgdnl Process this file with autoconf to create configure. 2317ca54c3Smrg 2417ca54c3SmrgAC_PREREQ([2.60]) 25d63b911fSmrgAC_INIT([xorgproto], [2021.3], 26ea1d6981Smrg [https://gitlab.freedesktop.org/xorg/proto/xorgproto/issues]) 2717ca54c3SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 2817ca54c3Smrg 2917ca54c3Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 3017ca54c3Smrgm4_ifndef([XORG_MACROS_VERSION], 3117ca54c3Smrg [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])]) 3217ca54c3SmrgXORG_MACROS_VERSION(1.12) 3317ca54c3SmrgXORG_DEFAULT_OPTIONS 3417ca54c3SmrgXORG_ENABLE_SPECS 3517ca54c3SmrgXORG_WITH_XMLTO(0.0.22) 3617ca54c3SmrgXORG_WITH_FOP 3717ca54c3SmrgXORG_WITH_XSLTPROC 3817ca54c3SmrgXORG_CHECK_SGML_DOCTOOLS(1.8) 3917ca54c3Smrg 4017ca54c3SmrgAC_CANONICAL_HOST 4117ca54c3Smrg 4217ca54c3SmrgAC_ARG_ENABLE(legacy, 4317ca54c3Smrg AS_HELP_STRING([--enable-legacy], 4417ca54c3Smrg [Install legacy protocol headers (default: false)]), 4517ca54c3Smrg [LEGACY=$enableval], [LEGACY=no]) 4617ca54c3SmrgAM_CONDITIONAL(LEGACY, [test "x$LEGACY" = "xyes"]) 4717ca54c3Smrg 4817ca54c3SmrgAC_CHECK_HEADERS([sys/select.h sys/param.h sys/types.h sys/time.h]) 4917ca54c3Smrg 5017ca54c3Smrg# Handle Xpoll.h.in 5117ca54c3Smrg# Avoid determining fds_bits on WIN32 hosts (not including cygwin) 5217ca54c3Smrgcase $host_os in 5317ca54c3Smrg mingw*) fds_bits_found=true;; 5417ca54c3Smrg *) fds_bits_found=false;; 5517ca54c3Smrgesac 5617ca54c3Smrg 5717ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 58d63b911fSmrg AC_CHECK_MEMBER(fd_set.fds_bits, 5917ca54c3Smrg [ 6017ca54c3Smrg fds_bits_found=plain 6117ca54c3Smrg USE_FDS_BITS="fds_bits" 6217ca54c3Smrg ],, 6317ca54c3Smrg [ 6417ca54c3Smrg #ifdef HAVE_SYS_PARAM_H 6517ca54c3Smrg #include <sys/param.h> 6617ca54c3Smrg #endif 6717ca54c3Smrg #ifdef HAVE_SYS_TYPES_H 6817ca54c3Smrg #include <sys/types.h> 6917ca54c3Smrg #endif 7017ca54c3Smrg #ifdef HAVE_SYS_TIME_H 7117ca54c3Smrg #include <sys/time.h> 7217ca54c3Smrg #endif 7317ca54c3Smrg #ifdef HAVE_SYS_SELECT_H 7417ca54c3Smrg #include <sys/select.h> 7517ca54c3Smrg #endif 7617ca54c3Smrg ]) 7717ca54c3Smrgfi 7817ca54c3Smrg 7917ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 8017ca54c3Smrg AC_CHECK_MEMBER(fd_set.__fds_bits, 8117ca54c3Smrg [ 8217ca54c3Smrg fds_bits_found=underscores 8317ca54c3Smrg USE_FDS_BITS="__fds_bits" 8417ca54c3Smrg ],, 8517ca54c3Smrg [ 8617ca54c3Smrg #ifdef HAVE_SYS_PARAM_H 8717ca54c3Smrg #include <sys/param.h> 8817ca54c3Smrg #endif 8917ca54c3Smrg #ifdef HAVE_SYS_TYPES_H 9017ca54c3Smrg #include <sys/types.h> 9117ca54c3Smrg #endif 9217ca54c3Smrg #ifdef HAVE_SYS_TIME_H 9317ca54c3Smrg #include <sys/time.h> 9417ca54c3Smrg #endif 9517ca54c3Smrg #ifdef HAVE_SYS_SELECT_H 9617ca54c3Smrg #include <sys/select.h> 9717ca54c3Smrg #endif 9817ca54c3Smrg ]) 9917ca54c3Smrgfi 10017ca54c3Smrg 10117ca54c3Smrgif test "x$fds_bits_found" = xfalse ; then 10217ca54c3Smrg AC_MSG_ERROR([Could not determine how to access the fds_bits or equivalent 10317ca54c3Smrg structure in fd_set on your platform.]) 10417ca54c3Smrgfi 10517ca54c3Smrg 10617ca54c3SmrgAC_SUBST([USE_FDS_BITS]) 10717ca54c3Smrg 10817ca54c3SmrgAC_CONFIG_FILES([applewmproto.pc 10917ca54c3Smrg bigreqsproto.pc 11017ca54c3Smrg compositeproto.pc 11117ca54c3Smrg damageproto.pc 11217ca54c3Smrg dmxproto.pc 1134627b59cSmrg dpmsproto.pc 11417ca54c3Smrg dri2proto.pc 11517ca54c3Smrg dri3proto.pc 11617ca54c3Smrg evieproto.pc 11717ca54c3Smrg fixesproto.pc 11817ca54c3Smrg fontcacheproto.pc 11917ca54c3Smrg fontsproto.pc 12017ca54c3Smrg glproto.pc 12117ca54c3Smrg include/X11/Xpoll.h 12217ca54c3Smrg inputproto.pc 12317ca54c3Smrg kbproto.pc 12417ca54c3Smrg lg3dproto.pc 12517ca54c3Smrg Makefile 12617ca54c3Smrg presentproto.pc 12717ca54c3Smrg printproto.pc 12817ca54c3Smrg randrproto.pc 12917ca54c3Smrg recordproto.pc 13017ca54c3Smrg renderproto.pc 13117ca54c3Smrg resourceproto.pc 13217ca54c3Smrg scrnsaverproto.pc 133ea1d6981Smrg specs/Makefile 134ea1d6981Smrg specs/bigreqsproto/Makefile 135ea1d6981Smrg specs/fontsproto/Makefile 136ea1d6981Smrg specs/kbproto/Makefile 137ea1d6981Smrg specs/recordproto/Makefile 138ea1d6981Smrg specs/scrnsaverproto/Makefile 139ea1d6981Smrg specs/xcmiscproto/Makefile 140ea1d6981Smrg specs/xextproto/Makefile 141ea1d6981Smrg specs/xproto/Makefile 14217ca54c3Smrg trapproto.pc 14317ca54c3Smrg videoproto.pc 14417ca54c3Smrg windowswmproto.pc 14517ca54c3Smrg xcalibrateproto.pc 14617ca54c3Smrg xcmiscproto.pc 14717ca54c3Smrg xextproto.pc 14817ca54c3Smrg xf86bigfontproto.pc 14917ca54c3Smrg xf86dgaproto.pc 15017ca54c3Smrg xf86driproto.pc 15117ca54c3Smrg xf86miscproto.pc 15217ca54c3Smrg xf86rushproto.pc 15317ca54c3Smrg xf86vidmodeproto.pc 15417ca54c3Smrg xineramaproto.pc 15517ca54c3Smrg xproto.pc 15617ca54c3Smrg xproxymngproto.pc]) 157d63b911fSmrg 15817ca54c3SmrgAC_OUTPUT 159