1d7ffce2aSmrgdnl
2d7ffce2aSmrgdnl Process this file with autoconf to create configure.
3d7ffce2aSmrg
4d7ffce2aSmrg# Initialize Autoconf
5d7ffce2aSmrgAC_PREREQ([2.60])
6944bff83SmrgAC_INIT([xorg-cf-files], [1.0.8],
7944bff83Smrg        [https://gitlab.freedesktop.org/xorg/util/cf/-/issues],
8d7ffce2aSmrg        [xorg-cf-files])
9d7ffce2aSmrgAC_CONFIG_SRCDIR([Makefile.am])
10d7ffce2aSmrg
11d7ffce2aSmrg# Initialize Automake
12944bff83SmrgAM_INIT_AUTOMAKE([foreign dist-xz])
1311d341caSmrg
14944bff83Smrg# Require xorg-macros 1.20 or later: XORG_DEFAULT_NOCODE_OPTIONS
154c61c93dSmrgm4_ifndef([XORG_MACROS_VERSION],
16944bff83Smrg	  [m4_fatal([must install xorg-macros 1.20 or later before running autoconf/autogen])])
17944bff83SmrgXORG_MACROS_VERSION(1.20)
18944bff83SmrgXORG_DEFAULT_NOCODE_OPTIONS
194c61c93dSmrg
20d7ffce2aSmrg# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
21d7ffce2aSmrgm4_ifndef([XORG_FONT_MACROS_VERSION],
22d7ffce2aSmrg          [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])])
23d7ffce2aSmrgXORG_FONT_MACROS_VERSION(1.1)
24d7ffce2aSmrgXORG_FONTROOTDIR
25d7ffce2aSmrgXORG_FONTSUBDIR([ENCODINGSDIR],[encodingsdir],[encodings])
26944bff83Smrg# Convert ${FONTROOTDIR} to something Imake can handle
27944bff83SmrgAC_PROG_SED
28944bff83SmrgENCODINGSDIR="`echo ${ENCODINGSDIR} | ${SED} 's/${FONTROOTDIR}/FontDir/'`"
29d7ffce2aSmrg
3011d341caSmrgm4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
3111d341caSmrg
3211d341caSmrgDEFAULT_XCONFDIR="${libdir}/X11/config"
3311d341caSmrgAC_ARG_WITH(config-dir,
3411d341caSmrg	AS_HELP_STRING([--with-config-dir=<path>], [Path to config dir (default: ${libdir}/X11/config)]),
3511d341caSmrg	[XCONFDIR="$withval"],
3611d341caSmrg	[XCONFDIR="$DEFAULT_XCONFDIR"])
3711d341caSmrgAC_SUBST(XCONFDIR)
3811d341caSmrg
39944bff83SmrgAC_CONFIG_FILES([
4011d341caSmrg	Makefile
4111d341caSmrg	site.def
4211d341caSmrg])
43944bff83SmrgAC_OUTPUT
44