configure.ac revision 3538fbe3
1492e1cfeSmrg 2492e1cfeSmrgdnl Copyright 2005 Red Hat, Inc. 33538fbe3Smrgdnl 4492e1cfeSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 5492e1cfeSmrgdnl documentation for any purpose is hereby granted without fee, provided that 6492e1cfeSmrgdnl the above copyright notice appear in all copies and that both that 7492e1cfeSmrgdnl copyright notice and this permission notice appear in supporting 8492e1cfeSmrgdnl documentation, and that the name of Red Hat not be used in 9492e1cfeSmrgdnl advertising or publicity pertaining to distribution of the software without 10492e1cfeSmrgdnl specific, written prior permission. Red Hat makes no 11492e1cfeSmrgdnl representations about the suitability of this software for any purpose. It 12492e1cfeSmrgdnl is provided "as is" without express or implied warranty. 133538fbe3Smrgdnl 14492e1cfeSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15492e1cfeSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16492e1cfeSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17492e1cfeSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18492e1cfeSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19492e1cfeSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20492e1cfeSmrgdnl PERFORMANCE OF THIS SOFTWARE. 21492e1cfeSmrgdnl 22492e1cfeSmrgdnl Process this file with autoconf to create configure. 23492e1cfeSmrg 249e0146f7SmrgAC_PREREQ([2.60]) 253538fbe3SmrgAC_INIT([xfd],[1.1.1], 269e0146f7Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xfd]) 279e0146f7SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 28492e1cfeSmrgAM_MAINTAINER_MODE 29492e1cfeSmrg 309e0146f7Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 319e0146f7Smrgm4_ifndef([XORG_MACROS_VERSION], 329e0146f7Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 339e0146f7SmrgXORG_MACROS_VERSION(1.8) 349e0146f7SmrgXORG_DEFAULT_OPTIONS 35492e1cfeSmrg 363538fbe3SmrgAC_CONFIG_HEADERS([config.h]) 37492e1cfeSmrg 38492e1cfeSmrg 399e0146f7Smrg# Internationalization & localization support 409e0146f7SmrgAC_SEARCH_LIBS([gettext], [intl], [USE_GETTEXT="yes"], [USE_GETTEXT="no"]) 419e0146f7SmrgAC_MSG_CHECKING([where to install localized messages]) 429e0146f7SmrgAC_ARG_WITH([localedir], AS_HELP_STRING([--with-localedir=<path>], 439e0146f7Smrg [Path to install message files in (default: datadir/locale)]), 449e0146f7Smrg [LOCALEDIR=${withval}], [LOCALEDIR=${datadir}/locale]) 453538fbe3SmrgAC_SUBST([LOCALEDIR]) 469e0146f7Smrgif test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 479e0146f7Smrg AC_MSG_RESULT([nowhere]) 489e0146f7Smrg USE_GETTEXT="no" 499e0146f7Smrgelse 509e0146f7Smrg AC_MSG_RESULT([$LOCALEDIR]) 519e0146f7Smrgfi 52492e1cfeSmrg 539e0146f7Smrgif test "x$USE_GETTEXT" = "xyes" ; then 549e0146f7Smrg AC_DEFINE([USE_GETTEXT], 1, 559e0146f7Smrg [Define to 1 if you want to use the gettext() function.]) 569e0146f7Smrgfi 579e0146f7SmrgAM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes") 58492e1cfeSmrg 599e0146f7Smrg# Checks for pkg-config packages 603538fbe3SmrgPKG_CHECK_MODULES(XFD, xaw7 fontconfig xft xrender xmu) 61492e1cfeSmrg 62492e1cfeSmrgPKG_CHECK_MODULES(APPDEFS, xt) 639e0146f7Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 649e0146f7SmrgAC_ARG_WITH(appdefaultdir, 653538fbe3Smrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 669e0146f7Smrg [specify directory for app-defaults files (default is autodetected)]), 679e0146f7Smrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 68492e1cfeSmrgAC_SUBST(appdefaultdir) 69492e1cfeSmrg 70492e1cfeSmrg 713538fbe3SmrgAC_CONFIG_FILES([ 723538fbe3Smrg Makefile 733538fbe3Smrg man/Makefile]) 743538fbe3SmrgAC_OUTPUT 75