From a94018c9815dfe268d1db4e79f6294b36c62be3a Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sun, 6 Sep 2009 15:43:15 -0400 Subject: [PATCH] Replace AC_DEFINE_DIR private copy with official AX_DEFINE_DIR #23750 The official copy is now installed in share/aclocal. http://www.nongnu.org/autoconf-archive/ax_define_dir.html The private copy of this modules has beeen removed and configure.ac has been updated. --- acinclude.m4 | 50 -------------------------------------------------- configure.ac | 14 +++++++------- 2 files changed, 7 insertions(+), 57 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 1485a8c..8f94582 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1,53 +1,3 @@ -# =========================================================================== -# http://autoconf-archive.cryp.to/ac_define_dir.html -# =========================================================================== -# -# SYNOPSIS -# -# AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION]) -# -# DESCRIPTION -# -# This macro sets VARNAME to the expansion of the DIR variable, taking -# care of fixing up ${prefix} and such. -# -# VARNAME is then offered as both an output variable and a C preprocessor -# symbol. -# -# Example: -# -# AC_DEFINE_DIR([DATADIR], [datadir], [Where data are placed to.]) -# -# LAST MODIFICATION -# -# 2008-04-12 -# -# COPYLEFT -# -# Copyright (c) 2008 Stepan Kasal -# Copyright (c) 2008 Andreas Schwab -# Copyright (c) 2008 Guido U. Draheim -# Copyright (c) 2008 Alexandre Oliva -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. - -AC_DEFUN([AC_DEFINE_DIR], [ - prefix_NONE= - exec_prefix_NONE= - test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix - test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix -dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn -dnl refers to ${prefix}. Thus we have to use `eval' twice. - eval ac_define_dir="\"[$]$2\"" - eval ac_define_dir="\"$ac_define_dir\"" - AC_SUBST($1, "$ac_define_dir") - AC_DEFINE_UNQUOTED($1, "$ac_define_dir", [$3]) - test "$prefix_NONE" && prefix=NONE - test "$exec_prefix_NONE" && exec_prefix=NONE -]) - dnl dolt, a replacement for libtool dnl Copyright © 2007-2008 Josh Triplett dnl Copying and distribution of this file, with or without modification, diff --git a/configure.ac b/configure.ac index 3735837..cf2e468 100644 --- a/configure.ac +++ b/configure.ac @@ -379,11 +379,11 @@ if test "x$GCC" = "xyes"; then fi X11_DATADIR="${datadir}/X11" -AC_DEFINE_DIR(X11_DATADIR, X11_DATADIR, [Location of libX11 data]) +AX_DEFINE_DIR(X11_DATADIR, X11_DATADIR, [Location of libX11 data]) AC_SUBST(X11_DATADIR) X11_LIBDIR="${libdir}/X11" -AC_DEFINE_DIR(X11_LIBDIR, X11_LIBDIR, [Location of libX11 library data]) +AX_DEFINE_DIR(X11_LIBDIR, X11_LIBDIR, [Location of libX11 library data]) AC_SUBST(X11_LIBDIR) X11_CFLAGS="$CWARNFLAGS $X11_CFLAGS $XPROTO_CFLAGS" @@ -399,25 +399,25 @@ AC_SUBST(X11_LIBS) # X11_LOCALEDATADIR="${X11_DATADIR}/locale" -AC_DEFINE_DIR(XLOCALEDATADIR, X11_LOCALEDATADIR, [Location of libX11 locale data]) +AX_DEFINE_DIR(XLOCALEDATADIR, X11_LOCALEDATADIR, [Location of libX11 locale data]) AC_SUBST(X11_LOCALEDATADIR) AC_ARG_WITH(locale-lib-dir, AS_HELP_STRING([--with-locale-lib-dir=DIR], [Directory where locale libraries files are installed (default: $libdir/X11/locale)]), [ X11_LOCALELIBDIR="$withval" ], [ X11_LOCALELIBDIR="${X11_LIBDIR}/locale" ]) -AC_DEFINE_DIR(XLOCALELIBDIR, X11_LOCALELIBDIR, [Location of libX11 locale libraries]) +AX_DEFINE_DIR(XLOCALELIBDIR, X11_LOCALELIBDIR, [Location of libX11 locale libraries]) AC_SUBST(X11_LOCALELIBDIR) X11_LOCALEDIR="${X11_LOCALEDATADIR}" -AC_DEFINE_DIR(XLOCALEDIR, X11_LOCALEDIR, [Location of libX11 locale data]) +AX_DEFINE_DIR(XLOCALEDIR, X11_LOCALEDIR, [Location of libX11 locale data]) AC_SUBST(X11_LOCALEDIR) XKEYSYMDB="${X11_DATADIR}/XKeysymDB" -AC_DEFINE_DIR(XKEYSYMDB, XKEYSYMDB, [Location of keysym database]) +AX_DEFINE_DIR(XKEYSYMDB, XKEYSYMDB, [Location of keysym database]) XERRORDB="${X11_DATADIR}/XErrorDB" -AC_DEFINE_DIR(XERRORDB, XERRORDB, [Location of error message database]) +AX_DEFINE_DIR(XERRORDB, XERRORDB, [Location of error message database]) XORG_CHECK_MALLOC_ZERO -- 1.6.0.4