configure.ac revision 2d96a817
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]) 252d96a817SmrgAC_INIT([twm], [1.0.6], 267a2631fcSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [twm]) 272d96a817SmrgAC_CONFIG_SRCDIR([Makefile.am]) 282d96a817SmrgAC_CONFIG_HEADERS([config.h]) 292d96a817Smrg 302d96a817Smrg# Initialize Automake 317a2631fcSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 323e747e6dSmrgAM_MAINTAINER_MODE 333e747e6dSmrg 347a2631fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 357a2631fcSmrgm4_ifndef([XORG_MACROS_VERSION], 367a2631fcSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 377a2631fcSmrgXORG_MACROS_VERSION(1.8) 387a2631fcSmrgXORG_DEFAULT_OPTIONS 397a2631fcSmrg 403e747e6dSmrgAC_PROG_YACC 417a2631fcSmrgAC_PATH_PROG([YACC_INST], $YACC) 422d96a817Smrgif test ! -f "$srcdir/gram.c"; then 432d96a817Smrg if test -z "$YACC_INST"; then 442d96a817Smrg AC_MSG_ERROR([yacc not found - unable to compile gram.y]) 452d96a817Smrg fi 462d96a817Smrgfi 473e747e6dSmrgAC_PROG_LEX 483e747e6dSmrg 497a2631fcSmrgAC_CHECK_FUNCS([mkstemp]) 503e747e6dSmrg 513e747e6dSmrg# Checks for pkg-config packages 523e747e6dSmrgPKG_CHECK_MODULES(TWM, x11 xext xt xmu ice sm) 533e747e6dSmrg 543e747e6dSmrgAC_OUTPUT([Makefile 553e747e6dSmrg src/Makefile 563e747e6dSmrg man/Makefile]) 57