configure.ac revision ffd25bca
13e747e6dSmrgdnl  Copyright 2005 Red Hat, Inc.
23e747e6dSmrgdnl 
33e747e6dSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
43e747e6dSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
53e747e6dSmrgdnl  the above copyright notice appear in all copies and that both that
63e747e6dSmrgdnl  copyright notice and this permission notice appear in supporting
73e747e6dSmrgdnl  documentation, and that the name of Red Hat not be used in
83e747e6dSmrgdnl  advertising or publicity pertaining to distribution of the software without
93e747e6dSmrgdnl  specific, written prior permission.  Red Hat makes no
103e747e6dSmrgdnl  representations about the suitability of this software for any purpose.  It
113e747e6dSmrgdnl  is provided "as is" without express or implied warranty.
123e747e6dSmrgdnl 
133e747e6dSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
143e747e6dSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
153e747e6dSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
163e747e6dSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
173e747e6dSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
183e747e6dSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
193e747e6dSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
203e747e6dSmrgdnl
213e747e6dSmrgdnl Process this file with autoconf to create configure.
223e747e6dSmrg
232d96a817Smrg# Initialize Autoconf
247a2631fcSmrgAC_PREREQ([2.60])
25ffd25bcaSmrgAC_INIT([twm], [1.0.7],
267a2631fcSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [twm])
272d96a817SmrgAC_CONFIG_SRCDIR([Makefile.am])
282d96a817SmrgAC_CONFIG_HEADERS([config.h])
29ffd25bcaSmrgAC_USE_SYSTEM_EXTENSIONS
302d96a817Smrg
312d96a817Smrg# Initialize Automake
327a2631fcSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
333e747e6dSmrgAM_MAINTAINER_MODE
343e747e6dSmrg
357a2631fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
367a2631fcSmrgm4_ifndef([XORG_MACROS_VERSION],
377a2631fcSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
387a2631fcSmrgXORG_MACROS_VERSION(1.8)
397a2631fcSmrgXORG_DEFAULT_OPTIONS
407a2631fcSmrg
413e747e6dSmrgAC_PROG_YACC
427a2631fcSmrgAC_PATH_PROG([YACC_INST], $YACC)
432d96a817Smrgif test ! -f "$srcdir/gram.c"; then
442d96a817Smrg   if test -z "$YACC_INST"; then
452d96a817Smrg      AC_MSG_ERROR([yacc not found - unable to compile gram.y])
462d96a817Smrg   fi
472d96a817Smrgfi
483e747e6dSmrgAC_PROG_LEX
493e747e6dSmrg
507a2631fcSmrgAC_CHECK_FUNCS([mkstemp])
513e747e6dSmrg
523e747e6dSmrg# Checks for pkg-config packages
53ffd25bcaSmrgPKG_CHECK_MODULES(TWM, x11 xext xt xmu ice sm xproto >= 7.0.17)
543e747e6dSmrg
553e747e6dSmrgAC_OUTPUT([Makefile
563e747e6dSmrg	   src/Makefile
573e747e6dSmrg	   man/Makefile])
58