configure.ac revision 944bff83
1dnl 2dnl Process this file with autoconf to create configure. 3 4# Initialize Autoconf 5AC_PREREQ([2.60]) 6AC_INIT([xorg-cf-files], [1.0.8], 7 [https://gitlab.freedesktop.org/xorg/util/cf/-/issues], 8 [xorg-cf-files]) 9AC_CONFIG_SRCDIR([Makefile.am]) 10 11# Initialize Automake 12AM_INIT_AUTOMAKE([foreign dist-xz]) 13 14# Require xorg-macros 1.20 or later: XORG_DEFAULT_NOCODE_OPTIONS 15m4_ifndef([XORG_MACROS_VERSION], 16 [m4_fatal([must install xorg-macros 1.20 or later before running autoconf/autogen])]) 17XORG_MACROS_VERSION(1.20) 18XORG_DEFAULT_NOCODE_OPTIONS 19 20# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 21m4_ifndef([XORG_FONT_MACROS_VERSION], 22 [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])]) 23XORG_FONT_MACROS_VERSION(1.1) 24XORG_FONTROOTDIR 25XORG_FONTSUBDIR([ENCODINGSDIR],[encodingsdir],[encodings]) 26# Convert ${FONTROOTDIR} to something Imake can handle 27AC_PROG_SED 28ENCODINGSDIR="`echo ${ENCODINGSDIR} | ${SED} 's/${FONTROOTDIR}/FontDir/'`" 29 30m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) 31 32DEFAULT_XCONFDIR="${libdir}/X11/config" 33AC_ARG_WITH(config-dir, 34 AS_HELP_STRING([--with-config-dir=<path>], [Path to config dir (default: ${libdir}/X11/config)]), 35 [XCONFDIR="$withval"], 36 [XCONFDIR="$DEFAULT_XCONFDIR"]) 37AC_SUBST(XCONFDIR) 38 39AC_CONFIG_FILES([ 40 Makefile 41 site.def 42]) 43AC_OUTPUT 44