configure.ac revision b8df70be
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.7], 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-bzip2]) 13 14# Require xorg-macros 1.4 or later: XORG_DEFAULT_OPTIONS, XORG_INSTALL 15m4_ifndef([XORG_MACROS_VERSION], 16 [m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])]) 17XORG_MACROS_VERSION(1.4) 18XORG_DEFAULT_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 27m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) 28 29DEFAULT_XCONFDIR="${libdir}/X11/config" 30AC_ARG_WITH(config-dir, 31 AS_HELP_STRING([--with-config-dir=<path>], [Path to config dir (default: ${libdir}/X11/config)]), 32 [XCONFDIR="$withval"], 33 [XCONFDIR="$DEFAULT_XCONFDIR"]) 34AC_SUBST(XCONFDIR) 35 36AC_OUTPUT([ 37 Makefile 38 site.def 39]) 40