configure.ac revision 80b026c6
19aa228fdSmrg
29aa228fdSmrgdnl  Copyright 2005 Red Hat, Inc.
39aa228fdSmrgdnl 
49aa228fdSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
59aa228fdSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
69aa228fdSmrgdnl  the above copyright notice appear in all copies and that both that
79aa228fdSmrgdnl  copyright notice and this permission notice appear in supporting
89aa228fdSmrgdnl  documentation, and that the name of Red Hat not be used in
99aa228fdSmrgdnl  advertising or publicity pertaining to distribution of the software without
109aa228fdSmrgdnl  specific, written prior permission.  Red Hat makes no
119aa228fdSmrgdnl  representations about the suitability of this software for any purpose.  It
129aa228fdSmrgdnl  is provided "as is" without express or implied warranty.
139aa228fdSmrgdnl 
149aa228fdSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
159aa228fdSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
169aa228fdSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
179aa228fdSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
189aa228fdSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
199aa228fdSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
209aa228fdSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
219aa228fdSmrgdnl
229aa228fdSmrgdnl Process this file with autoconf to create configure.
239aa228fdSmrg
248f65982aSmrgAC_PREREQ([2.60])
2580b026c6SmrgAC_INIT([xmag], [1.0.5],
268f65982aSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xmag])
278f65982aSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
289aa228fdSmrgAM_MAINTAINER_MODE
299aa228fdSmrg
308f65982aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
318f65982aSmrgm4_ifndef([XORG_MACROS_VERSION],
328f65982aSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
338f65982aSmrgXORG_MACROS_VERSION(1.8)
348f65982aSmrgXORG_DEFAULT_OPTIONS
3583d7c197Smrg
3680b026c6SmrgAC_CONFIG_HEADERS([config.h])
379aa228fdSmrg
389aa228fdSmrgAC_CHECK_FUNCS([nanosleep poll select])
399aa228fdSmrg
4080b026c6Smrg# Math libraries & functions
4180b026c6Smrg# - some compilers use builtin inlines for floor
4280b026c6Smrg# - lrint() is a C99 addition not found on some older systems
4380b026c6Smrg# - must do the libm check first so that the lrint check will have it in $LIBS
4480b026c6SmrgAC_SEARCH_LIBS([floor], [m])
4580b026c6SmrgAC_SEARCH_LIBS([lrint], [m])
4680b026c6SmrgAC_CHECK_FUNCS([lrint])
4780b026c6Smrg
489aa228fdSmrg# Checks for pkg-config packages
498f65982aSmrgPKG_CHECK_MODULES(XMAG, xaw7 xmu xt x11)
509aa228fdSmrg
518f65982aSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
5283d7c197SmrgAC_ARG_WITH(appdefaultdir,
5380b026c6Smrg	AS_HELP_STRING([--with-appdefaultdir=<pathname>],
5483d7c197Smrg	  [specify directory for app-defaults files (default is autodetected)]),
5583d7c197Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
569aa228fdSmrgAC_SUBST(appdefaultdir)
579aa228fdSmrg
589aa228fdSmrg
5980b026c6SmrgAC_CONFIG_FILES([
6080b026c6Smrg	Makefile
6180b026c6Smrg	man/Makefile])
6280b026c6SmrgAC_OUTPUT
63