configure.ac revision 5afa940d
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.60]) 25AC_INIT([imake], [1.0.4], 26 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [imake]) 27AM_INIT_AUTOMAKE([foreign dist-bzip2]) 28AM_MAINTAINER_MODE 29 30AM_CONFIG_HEADER(config.h) 31 32# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 33m4_ifndef([XORG_MACROS_VERSION], 34 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 35XORG_MACROS_VERSION(1.8) 36XORG_DEFAULT_OPTIONS 37 38AC_PROG_CPP 39XORG_PROG_RAWCPP 40CPP_PROGRAM=${RAWCPP} 41AC_SUBST(CPP_PROGRAM) 42 43AC_CHECK_FUNCS([mkstemp]) 44 45AC_CHECK_PROG(HAS_PERL, perl, yes) 46AM_CONDITIONAL([HAS_PERL], [test "x$HAS_PERL" = xyes]) 47 48m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) 49 50DEFAULT_XCONFDIR="${libdir}/X11/config" 51AC_ARG_WITH(config-dir, 52 AS_HELP_STRING([--with-config-dir=<path>], [Path to config dir (default: ${libdir}/X11/config)]), 53 [XCONFDIR="$withval"], 54 [XCONFDIR="$DEFAULT_XCONFDIR"]) 55AC_SUBST(XCONFDIR) 56 57DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E" 58AC_ARG_WITH(script-preproc-cmd, 59 AS_HELP_STRING([--with-script-preproc-cmd=CMD], [Preprocessor command to run on scripts (default: "gcc -E")]), 60 [PREPROCESSCMD_MKDEPEND="$withval"], 61 [PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"]) 62AC_SUBST(PREPROCESSCMD_MKDEPEND) 63 64DEFAULT_ARCMD="ar clq" 65AC_ARG_WITH(create-lib-cmd, 66 AS_HELP_STRING([--with-create-lib-cmd=CMD], [Command to create libraries (default: "ar clq")]), 67 [ARCMD="$withval"], 68 [ARCMD="$DEFAULT_ARCMD"]) 69AC_SUBST(ARCMD) 70 71DEFAULT_RANLIB="ranlib" 72AC_ARG_WITH(clean-lib-cmd, 73 AS_HELP_STRING([--with-clean-lib-cmd=CMD], [Command to clean up libraries (default: "ranlib")]), 74 [RANLIB="$withval"], 75 [RANLIB="$DEFAULT_RANLIB"]) 76AC_SUBST(RANLIB) 77 78AC_ARG_ENABLE(revpath, 79 AS_HELP_STRING([--disable-revpath], [Build revpath (default: enabled)]), 80 [BUILD_REVPATH="$enableval"], 81 [BUILD_REVPATH=yes]) 82AM_CONDITIONAL([BUILD_REVPATH], [test "x$BUILD_REVPATH" = xyes]) 83 84AC_ARG_ENABLE(makeg, 85 AS_HELP_STRING([--disable-makeg], [Build makeg (default: enabled)]), 86 [BUILD_MAKEG="$enableval"], 87 [BUILD_MAKEG=yes]) 88AM_CONDITIONAL([BUILD_MAKEG], [test "x$BUILD_MAKEG" = xyes]) 89 90AC_ARG_ENABLE(xmkmf, 91 AS_HELP_STRING([--disable-xmkmf], [Build xmkmf (default: enabled)]), 92 [BUILD_XMKMF="$enableval"], 93 [BUILD_XMKMF=yes]) 94AM_CONDITIONAL([BUILD_XMKMF], [test "x$BUILD_XMKMF" = xyes]) 95 96AC_ARG_ENABLE(ccmakedep, 97 AS_HELP_STRING([--disable-ccmakedep], [Build ccmakedep (default: enabled)]), 98 [BUILD_CCMAKEDEP="$enableval"], 99 [BUILD_CCMAKEDEP=yes]) 100AM_CONDITIONAL([BUILD_CCMAKEDEP], [test "x$BUILD_CCMAKEDEP" = xyes]) 101 102AC_ARG_ENABLE(mergelib, 103 AS_HELP_STRING([--disable-mergelib], [Build mergelib (default: enabled)]), 104 [BUILD_MERGELIB="$enableval"], 105 [BUILD_MERGELIB=yes]) 106AM_CONDITIONAL([BUILD_MERGELIB], [test "x$BUILD_MERGELIB" = xyes]) 107 108AC_ARG_ENABLE(mkdirhier, 109 AS_HELP_STRING([--disable-mkdirhier], [Build mkdirhier (default: enabled)]), 110 [BUILD_MKDIRHIER="$enableval"], 111 [BUILD_MKDIRHIER=yes]) 112AM_CONDITIONAL([BUILD_MKDIRHIER], [test "x$BUILD_MKDIRHIER" = xyes]) 113 114AC_ARG_ENABLE(cleanlinks, 115 AS_HELP_STRING([--disable-cleanlinks], [Build cleanlinks (default: enabled)]), 116 [BUILD_CLEANLINKS="$enableval"], 117 [BUILD_CLEANLINKS=yes]) 118AM_CONDITIONAL([BUILD_CLEANLINKS], [test "x$BUILD_CLEANLINKS" = xyes]) 119 120AC_ARG_ENABLE(mkhtmlindex, 121 AS_HELP_STRING([--disable-mkhtmlindex], [Build mkhtmlindex (default: enabled)]), 122 [BUILD_MKHTMLINDEX="$enableval"], 123 [BUILD_MKHTMLINDEX=yes]) 124AM_CONDITIONAL([BUILD_MKHTMLINDEX], [test "x$BUILD_MKHTMLINDEX" = xyes]) 125 126# Checks for pkg-config packages 127PKG_CHECK_MODULES(XPROTO, xproto) 128 129AC_OUTPUT([Makefile]) 130