From 6870f04d0861fc0647cd6d1a704c0acbf33bd089 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sun, 6 Sep 2009 15:26:39 -0400 Subject: [PATCH] Replace AC_DEFINE_DIR private copy with offical 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 | 45 --------------------------------------------- configure.ac | 24 ++++++++++++------------ 2 files changed, 12 insertions(+), 57 deletions(-) delete mode 100644 acinclude.m4 diff --git a/acinclude.m4 b/acinclude.m4 deleted file mode 100644 index 44971b9..0000000 --- a/acinclude.m4 +++ /dev/null @@ -1,45 +0,0 @@ -# =========================================================================== -# http://www.nongnu.org/autoconf-archive/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.]) -# -# LICENSE -# -# 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 -]) diff --git a/configure.ac b/configure.ac index fb46901..3d61699 100644 --- a/configure.ac +++ b/configure.ac @@ -395,7 +395,7 @@ if test "x$DYNAMIC_GREETER" = "xyes" ; then PKG_CHECK_MODULES(XDMGREET, xt x11 xext) GREETERLIB="${XDMLIBDIR}/libXdmGreet.so" - AC_DEFINE_DIR(DEF_GREETER_LIB, GREETERLIB, + AX_DEFINE_DIR(DEF_GREETER_LIB, GREETERLIB, [Location of Xdm Greeter library]) XDMGREET_CFLAGS="$XDMGREET_CFLAGS $XDM_PRINT_CFLAGS $DMCP_CFLAGS $XLIB_CFLAGS $OS_CFLAGS $GREETER_CFLAGS $AUTH_CFLAGS" @@ -466,21 +466,21 @@ fi if test -z "$DEF_SERVER_LINE" ; then DEF_SERVER_LINE=":0 local ${DEF_SERVER} :0" fi -AC_DEFINE_DIR(DEF_SERVER_LINE, DEF_SERVER_LINE, +AX_DEFINE_DIR(DEF_SERVER_LINE, DEF_SERVER_LINE, [Define to default Xserver file entry for local X server]) # -DXRDB_PROGRAM="$(BINDIR)/xrdb" AC_ARG_WITH(xrdb, AC_HELP_STRING([--with-xrdb=path], [Use path for xrdb (default: bindir/xrdb)]), [XRDB=$withval], [XRDB=${bindir}/xrdb]) -AC_DEFINE_DIR(XRDB_PROGRAM, XRDB, +AX_DEFINE_DIR(XRDB_PROGRAM, XRDB, [Define to pathname for xrdb program]) # -DDEF_SESSION="$(BINDIR)/xterm -ls" AC_ARG_WITH(default-session, AC_HELP_STRING([--with-default-session=command], [Use command for default session (default: bindir/xterm -ls)]), [DEF_SESSION=$withval], [DEF_SESSION="${bindir}/xterm -ls"]) -AC_DEFINE_DIR(DEF_SESSION, DEF_SESSION, +AX_DEFINE_DIR(DEF_SESSION, DEF_SESSION, [Define to default command to start X session]) # -DDEF_USER_PATH="$(DEF_USER_PATH)" @@ -508,7 +508,7 @@ if test -z "$DEF_USER_PATH" ; then ;; esac fi -AC_DEFINE_DIR(DEF_USER_PATH, DEF_USER_PATH, +AX_DEFINE_DIR(DEF_USER_PATH, DEF_USER_PATH, [Define to default PATH environment variable for user sessions]) # -DDEF_SYSTEM_PATH="$(DEF_SYSTEM_PATH)" @@ -530,29 +530,29 @@ if test -z "$DEF_SYSTEM_PATH" ; then ;; esac fi -AC_DEFINE_DIR(DEF_SYSTEM_PATH, DEF_SYSTEM_PATH, +AX_DEFINE_DIR(DEF_SYSTEM_PATH, DEF_SYSTEM_PATH, [Define to default PATH environment variable for system commands]) # -DDEF_SYSTEM_SHELL="$(BOURNE_SHELL)" if test -z "$BOURNE_SHELL" ; then BOURNE_SHELL=/bin/sh fi -AC_DEFINE_DIR(DEF_SYSTEM_SHELL, BOURNE_SHELL, +AX_DEFINE_DIR(DEF_SYSTEM_SHELL, BOURNE_SHELL, [Define to default shell]) # -DDEF_FAILSAFE_CLIENT="$(BINDIR)/xterm" -AC_DEFINE_DIR(DEF_FAILSAFE_CLIENT, bindir/xterm, +AX_DEFINE_DIR(DEF_FAILSAFE_CLIENT, bindir/xterm, [Define to default command to start failsafe X session]) # -DDEF_XDM_CONFIG="$(XDMDIR)/xdm-config" -AC_DEFINE_DIR(DEF_XDM_CONFIG, XDMCONFIGDIR/xdm-config, +AX_DEFINE_DIR(DEF_XDM_CONFIG, XDMCONFIGDIR/xdm-config, [Define to pathname of default xdm-config file]) # -DDEF_CHOOSER="$(CHOOSERPATH)" -AC_DEFINE_DIR(DEF_CHOOSER, XDMLIBDIR/chooser, +AX_DEFINE_DIR(DEF_CHOOSER, XDMLIBDIR/chooser, [Define to pathname of where chooser binary is installed]) # -DDEF_AUTH_DIR="$(XDMDIR)" @@ -563,12 +563,12 @@ AC_ARG_WITH(authdir, [XDMXAUTHDIR="$withval"], [XDMXAUTHDIR="/var/lib/xdm"]) AC_SUBST(XDMXAUTHDIR) -AC_DEFINE_DIR(DEF_AUTH_DIR, XDMXAUTHDIR, +AX_DEFINE_DIR(DEF_AUTH_DIR, XDMXAUTHDIR, [Define to pathname where authentication cookie files should be stored]) # -DDEF_GREETER_LIB="$(XDMDIR)/libXdmGreet.so" -AC_DEFINE_DIR(DEF_GREETER_LIB, XDMLIBDIR/libXdmGreet.so, +AX_DEFINE_DIR(DEF_GREETER_LIB, XDMLIBDIR/libXdmGreet.so, [Define to pathname where greeter shared object is installed (if used)]) PKG_CHECK_MODULES(APPDEFS, xt) -- 1.6.0.4