configure.ac revision f14f4646
15dfecf96Smrg
25dfecf96Smrgdnl  Copyright 2005 Red Hat, Inc.
35dfecf96Smrgdnl 
45dfecf96Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
55dfecf96Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
65dfecf96Smrgdnl  the above copyright notice appear in all copies and that both that
75dfecf96Smrgdnl  copyright notice and this permission notice appear in supporting
85dfecf96Smrgdnl  documentation, and that the name of Red Hat not be used in
95dfecf96Smrgdnl  advertising or publicity pertaining to distribution of the software without
105dfecf96Smrgdnl  specific, written prior permission.  Red Hat makes no
115dfecf96Smrgdnl  representations about the suitability of this software for any purpose.  It
125dfecf96Smrgdnl  is provided "as is" without express or implied warranty.
135dfecf96Smrgdnl 
145dfecf96Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
155dfecf96Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
165dfecf96Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
175dfecf96Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
185dfecf96Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
195dfecf96Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
205dfecf96Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
215dfecf96Smrgdnl
225dfecf96Smrgdnl Process this file with autoconf to create configure.
235dfecf96Smrg
245dfecf96SmrgAC_PREREQ([2.57])
25f14f4646SmrgAC_INIT(xedit,[1.1.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xedit)
265dfecf96SmrgAM_INIT_AUTOMAKE([dist-bzip2])
275dfecf96SmrgAM_MAINTAINER_MODE
285dfecf96Smrg
295dfecf96SmrgAM_CONFIG_HEADER(config.h)
305dfecf96Smrg
315dfecf96SmrgAC_PROG_CC
32f14f4646SmrgAM_PROG_CC_C_O
335dfecf96SmrgAC_PROG_INSTALL
345dfecf96SmrgAC_PROG_RANLIB
35f14f4646SmrgPKG_PROG_PKG_CONFIG
365dfecf96Smrg
37f14f4646SmrgAC_ARG_ENABLE(xprint,
38f14f4646Smrg	      AS_HELP_STRING([--enable-xprint],
39f14f4646Smrg			     [Compile with xprint support (default: disabled)]),
40f14f4646Smrg	      [enable_xprint=$enableval], [enable_xprint=no])
41f14f4646SmrgAM_CONDITIONAL(USE_XPRINT, test x$enable_xprint = xyes)
42f14f4646Smrgif test x$enable_xprint = xyes; then
43f14f4646Smrg   PKG_CHECK_MODULES(PKGDEPS, xprintutil xp xaw8)
44f14f4646Smrgelse
45f14f4646Smrg   PKG_CHECK_MODULES(PKGDEPS, xaw7)
465dfecf96Smrgfi
475dfecf96Smrg
48f14f4646SmrgAC_ARG_WITH(lispdir, AS_HELP_STRING([--with-lispdir=PATH],
49f14f4646Smrg	    [Directory to install lisp files (default: $libdir/X11/xedit/lisp)]),
50f14f4646Smrg	    [ lispdir="$withval"],
51f14f4646Smrg	    [ lispdir=${libdir}/X11/xedit/lisp ])
52f14f4646SmrgLISPDIR=$lispdir
53f14f4646SmrgAC_SUBST(LISPDIR)
54f14f4646Smrg
55f14f4646SmrgAC_CHECK_FUNC(realpath, [], [have_realpath=yes])
56f14f4646SmrgAM_CONDITIONAL(NEED_REALPATH, test x$have_realpath = xyes)
57f14f4646SmrgAC_CHECK_FUNC(strcasecmp, [], [have_strcasecmp=yes])
58f14f4646SmrgAM_CONDITIONAL(NEED_STRCASECMP, test x$have_strcasecmp = xyes)
59f14f4646SmrgAC_CHECK_FUNC(unsetenv, [], [have_unsetenv=yes])
60f14f4646SmrgAM_CONDITIONAL(NEED_UNSETENV, test x$have_unsetenv = xyes)
61f14f4646Smrg
62f14f4646SmrgAC_SUBST(PKGDEPS_CFLAGS)
63f14f4646SmrgAC_SUBST(PKGDEPS_LIBS)
645dfecf96Smrg
655dfecf96SmrgPKG_CHECK_MODULES(APPDEFS, xt)
665dfecf96Smrgappdefaultdir=$(pkg-config --variable=appdefaultdir xt)
675dfecf96SmrgAC_SUBST(appdefaultdir)
685dfecf96Smrg
695dfecf96SmrgXORG_MANPAGE_SECTIONS
705dfecf96SmrgXORG_RELEASE_VERSION
715dfecf96Smrg
725dfecf96SmrgAC_OUTPUT([Makefile])
73