configure.ac revision 8108eb18
1 2dnl Copyright 2005 Red Hat, Inc. 3dnl 4dnl Permission to use, copy, modify, distribute, and sell this software and its 5dnl documentation for any purpose is hereby granted without fee, provided that 6dnl the above copyright notice appear in all copies and that both that 7dnl copyright notice and this permission notice appear in supporting 8dnl documentation, and that the name of Red Hat not be used in 9dnl advertising or publicity pertaining to distribution of the software without 10dnl specific, written prior permission. Red Hat makes no 11dnl representations about the suitability of this software for any purpose. It 12dnl is provided "as is" without express or implied warranty. 13dnl 14dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20dnl PERFORMANCE OF THIS SOFTWARE. 21dnl 22dnl Process this file with autoconf to create configure. 23 24AC_PREREQ([2.57]) 25AC_INIT(xsm,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xsm) 26AM_INIT_AUTOMAKE([dist-bzip2]) 27AM_MAINTAINER_MODE 28 29AM_CONFIG_HEADER(config.h) 30 31AC_PROG_CC 32AC_PROG_INSTALL 33 34RSH= 35if [[ -z $RSH ]] ; then 36 AC_PATH_PROG(RSH,rsh) 37fi 38if [[ -z $RSH ]] ; then 39 AC_PATH_PROG(RSH,rcmd) 40fi 41if [[ -z $RSH ]] ; then 42 AC_PATH_PROG(RSH,remsh) 43fi 44if [[ -z $RSH ]] ; then 45 AC_MSG_ERROR(No rsh like program found) 46fi 47 48#if !defined(RshCmd) 49#if SystemV 50#ifdef HPArchitecture 51#define RshCmd remsh 52#else 53#define RshCmd rcmd 54#endif 55#else 56#define RshCmd rsh 57#endif 58#endif 59 60AC_CHECK_FUNC([mkstemp], 61 AC_DEFINE(HAS_MKSTEMP,1,[Define to 1 if you have the `mkstemp' function.])) 62AC_CHECK_FUNC([putenv], [], 63 AC_DEFINE(NOPUTENV,1,[Define to 1 if you DO NOT have the `putenv' function.])) 64 65# Checks for pkg-config packages 66XAW_CHECK_XPRINT_SUPPORT(XSM) 67 68AC_SUBST(XSM_CFLAGS) 69AC_SUBST(XSM_LIBS) 70 71PKG_CHECK_MODULES(APPDEFS, xt) 72appdefaultdir=$(pkg-config --variable=appdefaultdir xt) 73AC_SUBST(appdefaultdir) 74 75XORG_MANPAGE_SECTIONS 76XORG_RELEASE_VERSION 77 78AC_OUTPUT([Makefile]) 79