155de1df9Smrgdnl Copyright 2005 Red Hat, Inc. 255de1df9Smrgdnl 355de1df9Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 455de1df9Smrgdnl documentation for any purpose is hereby granted without fee, provided that 555de1df9Smrgdnl the above copyright notice appear in all copies and that both that 655de1df9Smrgdnl copyright notice and this permission notice appear in supporting 755de1df9Smrgdnl documentation, and that the name of Red Hat not be used in 855de1df9Smrgdnl advertising or publicity pertaining to distribution of the software without 955de1df9Smrgdnl specific, written prior permission. Red Hat makes no 1055de1df9Smrgdnl representations about the suitability of this software for any purpose. It 1155de1df9Smrgdnl is provided "as is" without express or implied warranty. 1255de1df9Smrgdnl 1355de1df9Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1455de1df9Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1555de1df9Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1655de1df9Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1755de1df9Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1855de1df9Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1955de1df9Smrgdnl PERFORMANCE OF THIS SOFTWARE. 2055de1df9Smrgdnl 2155de1df9Smrgdnl Process this file with autoconf to create configure. 2255de1df9Smrg 2339ae6282Smrg# Initialize Autoconf 2455de1df9SmrgAC_PREREQ([2.60]) 25baaedd75SmrgAC_INIT([lndir], [1.0.5], 2616e5c272Smrg [https://gitlab.freedesktop.org/xorg/util/lndir/-/issues], [lndir]) 2739ae6282SmrgAC_CONFIG_SRCDIR([Makefile.am]) 2839ae6282SmrgAC_CONFIG_HEADERS([config.h]) 2939ae6282SmrgAC_USE_SYSTEM_EXTENSIONS 3039ae6282Smrg 3139ae6282Smrg# Initialize Automake 3216e5c272SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 3355de1df9Smrg 3455de1df9Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3555de1df9Smrgm4_ifndef([XORG_MACROS_VERSION], 3655de1df9Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 3755de1df9SmrgXORG_MACROS_VERSION(1.8) 3855de1df9SmrgXORG_DEFAULT_OPTIONS 3955de1df9Smrg 4055de1df9Smrg# Avoid stat() failures if a file has a size that doesn't fit in 32-bits 4155de1df9SmrgAC_SYS_LARGEFILE 4255de1df9Smrg 4355de1df9Smrg# Checks for pkg-config packages 4439ae6282SmrgPKG_CHECK_MODULES(XPROTO, xproto >= 7.0.17) 4555de1df9Smrg 4616e5c272Smrg# Checks for non-standard functions and fallback to libbsd if we can 4716e5c272SmrgAC_LINK_IFELSE([AC_LANG_CALL([], [strlcpy])], 4816e5c272Smrg [TRY_LIBBSD="no"], [TRY_LIBBSD="yes"]) 4916e5c272SmrgAS_IF([test "x$TRY_LIBBSD" = "xyes"], 5016e5c272Smrg [PKG_CHECK_MODULES([LIBBSD], [libbsd-overlay], 5116e5c272Smrg [CFLAGS="$CFLAGS $LIBBSD_CFLAGS" ; LIBS="$LIBS $LIBBSD_LIBS"], [:])]) 5216e5c272SmrgAC_CHECK_FUNCS([strlcat strlcpy]) 5316e5c272Smrg 5416e5c272SmrgAC_CONFIG_FILES([Makefile]) 5516e5c272SmrgAC_OUTPUT 56