16abeab63Sniadnl
26abeab63Sniadnl Process this file with autoconf to create configure.
36abeab63Snia
46abeab63Snia# Initialize Autoconf
56abeab63SniaAC_PREREQ([2.60])
66abeab63SniaAC_INIT([xcursor-themes], [1.0.6],
76abeab63Snia        [https://gitlab.freedesktop.org/xorg/data/cursors/issues],
86abeab63Snia        [xcursor-themes])
96abeab63SniaAC_CONFIG_SRCDIR([Makefile.am])
106abeab63Snia
116abeab63Snia# Initialize Automake
126abeab63SniaAM_INIT_AUTOMAKE([foreign dist-bzip2])
136abeab63Snia
146abeab63Snia# Require xorg-macros: XORG_DEFAULT_OPTIONS
156abeab63Sniam4_ifndef([XORG_MACROS_VERSION],
166abeab63Snia          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
176abeab63SniaXORG_MACROS_VERSION(1.3)
186abeab63SniaXORG_DEFAULT_OPTIONS
196abeab63Snia
206abeab63SniaAC_PROG_INSTALL
216abeab63SniaAC_PROG_LN_S
226abeab63Snia
236abeab63SniaAC_PATH_PROG(XCURSORGEN, xcursorgen, no)
246abeab63Sniaif test "x$XCURSORGEN" = xno; then
256abeab63Snia	AC_MSG_ERROR([xcursorgen is required to build these cursors.])
266abeab63Sniafi
276abeab63SniaAC_SUBST([XCURSORGEN])
286abeab63Snia
296abeab63SniaPKG_CHECK_MODULES(ICONDEFS, xcursor)
306abeab63Sniapkg_cursordir=`$PKG_CONFIG --variable=icondir xcursor`
316abeab63SniaAC_ARG_WITH(cursordir,
326abeab63Snia        AC_HELP_STRING([--with-cursordir=<pathname>],
336abeab63Snia          [specify directory for cursor files (default is autodetected)]),
346abeab63Snia        [cursordir="$withval"], [cursordir="${pkg_cursordir}"])
356abeab63SniaAC_SUBST([cursordir])
366abeab63Snia
376abeab63SniaAM_CONDITIONAL(WHITEGLASS, true)
386abeab63SniaAM_CONDITIONAL(REDGLASS, true)
396abeab63SniaAM_CONDITIONAL(HANDHELDS, true)
406abeab63Snia
416abeab63Snia
426abeab63SniaAC_CONFIG_FILES([Makefile
436abeab63Snia                handhelds/Makefile
446abeab63Snia                redglass/Makefile
456abeab63Snia                whiteglass/Makefile
466abeab63Snia])
476abeab63SniaAC_OUTPUT
48