branch: main commit e7e8cfe4e22549191769ef0ae037c18636a06ddc Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Delete obsolete autoconf files * aclocal.m4: Delete. * autogen.sh: Delete. * configure.ac: Delete. * doc/Makefile.in: Delete. --- aclocal.m4 | 569 -------------------------------------------------------- autogen.sh | 65 ------- configure.ac | 280 ---------------------------- doc/Makefile.in | 211 --------------------- 4 files changed, 1125 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 deleted file mode 100644 index c6c73054..00000000 --- a/aclocal.m4 +++ /dev/null @@ -1,569 +0,0 @@ -# serial 1 - -dnl this was once done by Katsumi Yamaoka <yama...@jpl.org>, but -dnl pretty much no original code remains. - -dnl EMACS_LISP takes 5 arguments. $1 is the name of the shell -dnl variable to assign a value, $2 is a Lisp expression placed into -dnl shell double quotes (which has consequences for quoting and -dnl variable expansion). $3 is a list of Emacs options evaluated before -dnl the expression itself, $4 is a list of Elisp variables that is -dnl assigned from the command line arguments from $5. - -AC_DEFUN(EMACS_LISP, [ - elisp="$2" - OUTPUT=./conftest-$$ - echo "${EMACS}" -batch $3 -eval "(let* (patsubst([$4], [\w+], [(\&(pop command-line-args-left))])(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" $5 >& AS_MESSAGE_LOG_FD 2>&1 - "${EMACS}" -batch $3 -eval "(let* (patsubst([$4], [\w+], [(\&(pop command-line-args-left))])(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" $5 >& AS_MESSAGE_LOG_FD 2>&1 - $1="`cat ${OUTPUT}`" - echo "=> [$]{$1}" >& AS_MESSAGE_LOG_FD 2>&1 - rm -f ${OUTPUT} -]) - -# This generates a prefix variables $1 from the executable in $2. -# The executable is searched in PATH, and a potential bin/ or -# bin/architecture/ component is stripped from it. -AC_DEFUN(EMACS_PATH_PREFIX,[ - EMACS_LISP([$1],[[(condition-case nil (let* - ((prefix (directory-file-name (file-name-directory (executable-find cmd)))) - (parent (directory-file-name (file-name-directory prefix)))) - (if (string= (file-name-nondirectory prefix) \"bin\") - (setq prefix parent) - (if (string= (file-name-nondirectory parent) \"bin\") - (setq prefix (directory-file-name (file-name-directory parent))))) - prefix) (error "NONE"))]],[[-no-site-file]],[[cmd]],[$2])]) - -AC_DEFUN(EMACS_PROG_EMACS, [ -# Check for Emacs, report its path, flavor and prefix - -# Apparently, if you run a shell window in Emacs, it sets the EMACS -# environment variable to 't'. Let's undo the damage. -if test "${EMACS}" = "t"; then - EMACS="" -fi -AC_ARG_WITH(emacs, - [ --with-emacs@<:@=PATH@:>@ Use Emacs to build (on PATH if given)], - [if test "${withval}" = "yes"; then EMACS=emacs - else EMACS="${withval}"; fi]) - -# "${prefix}/bin" is for Windows users -AC_PATH_PROGS(EMACS, ${EMACS} emacs, "", ${PATH} "${prefix}/bin" ) -if test -z "${EMACS}"; then - AC_MSG_ERROR([Emacs not found! Aborting!]) -fi - - EMACS_FLAVOR=emacs - EMACS_NAME="Emacs" - AC_SUBST(EMACS_FLAVOR) - AC_MSG_CHECKING([for ${EMACS_NAME} prefix]) - EMACS_PATH_PREFIX([[emacsprefix]],[["${EMACS}"]]) - AC_MSG_RESULT([["${emacsprefix}"]]) -]) - -AC_DEFUN(AC_DATE_VERSION_FROM_CHANGELOG, [ -AC_MSG_CHECKING([for date with git]) -$1=[`git log -1 --date=short --format=%cd 2> /dev/null`] -if test "X${$1}" = X -then - AC_MSG_RESULT([git not found, checking for date in ChangeLog:]) - $1=[`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "$3"`] - if test "X${$1}" = X - then - AC_MSG_ERROR([[not found]]) - fi -fi -AC_MSG_RESULT(${$1}) - -AC_MSG_CHECKING([for release with git]) -if git describe --tags > /dev/null 2> /dev/null -then - if test "X`git describe --tags | sed 's/release_.._..//'`" = X - then - $2=[`git describe --tags`] - else - $2=${$1} - AC_MSG_RESULT([not found, using ${$2} instead]) - fi -else - AC_MSG_RESULT([git not found, checking for release in ChangeLog:]) - $2=[`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "$3"`] - if test "X${$2}" = X - then - $2=${$1} - AC_MSG_RESULT([not found, using ${$2} instead]) - else - AC_MSG_RESULT([${$2}]) - fi -fi -]) - -AC_DEFUN(EMACS_CHECK_VERSION, [ -AC_MSG_CHECKING([if ${EMACS_NAME} is recent enough]) -EMACS_LISP(result,[(cond ((< emacs-major-version $1) \"no\") - ((> emacs-major-version $1) \"yes\") - ((< emacs-minor-version 0$2) \"no\") - (t \"yes\"))],[[-no-site-file]]) -AC_MSG_RESULT([${result}]) -if test "${result}" != "yes" -then - AC_MSG_ERROR([This package requires at least ${EMACS_NAME} version $1.$2 Aborting!]) -fi -]) - -dnl Look for an installation directory under given prefixes. -dnl $1 is the variable name we are looking for. -dnl $2 is a list of prefixes to try as a list of shell words -dnl $3 is a Lisp expression giving a list of directory names -dnl those should be be either nil or a relative path like "tex/latex". -dnl Those names are tried in turn, and every one of them is matched -dnl against the tail of each location in $4. nil matches everything, -dnl it is a wildcard. -dnl $4 is Lisp expression giving a list of locations where to find names. -dnl A location is only considered if it is nonnil, an existing -dnl absolute directory, -dnl and is a subdirectory of one of the given prefixes. -dnl $5,$6,$7 are additional arguments for the elisp call -AC_DEFUN(EMACS_EXAMINE_INSTALLATION_DIR, - [ for currentprefix in $2 - do - expprefix="${currentprefix}" - AC_FULL_EXPAND(expprefix) - EMACS_LISP([$1], - [(catch 22 - (let (reldir (dirs $4)) - (dolist (name $3 \"NONE\") - (dolist (dir dirs) - (when (and dir - (setq dir (directory-file-name dir)) - (file-name-absolute-p dir) - (file-directory-p dir) - (not (string-match \"\\\\\`\\\\.\\\\.\" - (setq reldir (file-relative-name dir expanded)))) - (not (file-name-absolute-p reldir)) - (let ((name name) (dir dir)) - (while (and dir name - (string= (file-name-nondirectory dir) - (file-name-nondirectory name)) - (setq dir (file-name-directory dir) - name (file-name-directory name)) - (if (and dir name) - (setq dir (directory-file-name dir) - name (directory-file-name name))))) - (null name)) - (throw 22 - (if (string= reldir \".\") (directory-file-name prefix) - (concat (file-name-as-directory prefix) - reldir)))))))))],[$5], - [prefix expanded $6],["${currentprefix}" "${expprefix}" $7]) - if test "[$]$1" != NONE; then break; fi; done]) - -AC_DEFUN(EMACS_PATH_LISPDIR, [ - AC_MSG_CHECKING([where lisp files go]) - AC_ARG_WITH(lispdir, - [ --with-lispdir=DIR A place in load-path for Lisp files; most - files will be place in a subdirectory.], - [[lispdir="${withval}"]]) - if test "X${lispdir}" = X; then - # Test paths relative to prefixes - EMACS_EXAMINE_INSTALLATION_DIR(lispdir, - [['${datadir}/'${EMACS_FLAVOR} '${libdir}/'${EMACS_FLAVOR} \ - "${emacsprefix}/share/${EMACS_FLAVOR}" \ - '${datadir}' '${libdir}' "${emacsprefix}"]], - [[(list \"${EMACS_FLAVOR}/site-lisp\" \"${EMACS_FLAVOR}/site-packages\" - \"site-lisp\" \"site-packages\")]], load-path) - if test "${lispdir}" = "NONE"; then - # No? notify user. - AC_MSG_ERROR([Cannot locate lisp directory, -use --with-lispdir, --datadir, or possibly --prefix to rectify this]) - fi - fi - AC_MSG_RESULT([[${lispdir}]]) - AC_SUBST(lispdir) -]) - - -AC_DEFUN(TEX_PATH_TEXMFDIR, - [ -AC_ARG_WITH(texmf-dir, -[ --with-texmf-dir=DIR TEXMF tree to install into, - or --without-texmf-dir for runtime config], - [ texmfdir="${withval}" ; - if test "x${texmfdir}" = xno - then - previewtexmfdir="${packagedatadir}/latex" - previewdocdir="${packagedatadir}/doc" - else - AC_FULL_EXPAND(withval) - if test ! -d "${withval}" ; then - AC_MSG_ERROR([--with-texmf-dir="${texmfdir}": Directory does not exist]) - fi - previewtexmfdir="${texmfdir}/tex/latex/preview" - previewdocdir="${texmfdir}/doc/latex/styles" - fi - ]) - -AC_ARG_WITH(tex-dir, - [ --with-tex-dir=DIR Location to install preview TeX sources], - [ previewtexmfdir="${withval}" ; - AC_FULL_EXPAND(withval) - if test ! -d "${withval}" ; then - AC_MSG_ERROR([--with-tex-dir="${previewtexmfdir}": Directory does not exist]) - fi - ]) - -AC_ARG_WITH(doc-dir, - [ --with-doc-dir=DIR Location to install preview.dvi], - [ previewdocdir="${withval}" ; - AC_FULL_EXPAND(withval) - if test ! -d "${withval}" ; then - AC_MSG_ERROR([--with-doc-dir="${previewdocdir}": Directory does not exist]) - fi - ]) - -# First check for docstrip.cfg information -- removed. Too high -# likelihood to pick up a user preference instead of a system setting. - -# Next -# kpsepath -n latex tex -# and then go for the following in its output: -# a) first path component in datadir/prefix ending in tex/latex// (strip trailing -# // and leading !!): "Searching for TDS-compliant directory." Install -# in preview subdirectory. -# b) first absolute path component ending in // "Searching for directory -# hierarchy" Install in preview subdirectory. -# c) anything absolute. Install both files directly there. - -if test "x${texmfdir}" != xno ; then -if test "x${previewtexmfdir}" = x ; then - -AC_MSG_CHECKING([for prefix from kpsepath]) - -EMACS_PATH_PREFIX(texprefix,kpsepath) - -if test "x${texprefix}" != "xNONE" -then - -AC_MSG_RESULT([["${texprefix}"]]) - -AC_MSG_CHECKING([for TDS-compliant directory]) - -pathoutput="`kpsepath -n latex tex`" - -EMACS_EXAMINE_INSTALLATION_DIR(texmfdir, - [['${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf"]], - [[(list nil)]], - [[(mapcar (lambda(x) - (and (string-match \"\\\\\`!*\\\\(.*\\\\)/tex/latex//+\\\\'\" x) - (match-string 1 x))) - (append (split-string pathoutput \";\") - (split-string pathoutput \":\")))]], - [[-no-site-file]], - [[pathoutput]],[["${pathoutput}"]]) - -if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then - previewdocdir="${texmfdir}/doc/latex/styles" - previewtexmfdir="${texmfdir}/tex/latex/preview" -fi - -if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then - -AC_MSG_RESULT([no]) -AC_MSG_CHECKING([for TeX directory hierarchy]) - -EMACS_EXAMINE_INSTALLATION_DIR(texmfdir, - [['${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" '${datadir}' "${texprefix}/share" "${texprefix}"]], - [[(list nil)]], - [[(mapcar (lambda(x) - (and (string-match \"\\\\\`!*\\\\(.*[^/]\\\\)//+\\\\'\" x) - (match-string 1 x))) - (append (split-string pathoutput \";\") - (split-string pathoutput \":\")))]], - [[-no-site-file]], - [[pathoutput]],[["${pathoutput}"]]) - -if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then - previewtexmfdir="${texmfdir}/preview" - previewdocdir="${texmfdir}/preview" -fi -fi - -if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then - -AC_MSG_RESULT([no]) -AC_MSG_CHECKING([for TeX input directory]) - -EMACS_EXAMINE_INSTALLATION_DIR(texmfdir, - [['${datadir}' "${texprefix}/share" "${texprefix}"]], - [[(list nil)]], - [[(mapcar (lambda(x) - (and (string-match \"\\\\\`!*\\\\(.*[^/]\\\\)/?\\\\'\" x) - (match-string 1 x))) - (append (split-string pathoutput \";\") - (split-string pathoutput \":\")))]], - [[-no-site-file]], - [[pathoutput]],[["${pathoutput}"]]) - -if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then - previewtexmfdir="${texmfdir}" - previewdocdir="${texmfdir}" -fi -fi -fi - -if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no ; then - -AC_MSG_RESULT([no]) - AC_MSG_ERROR([Cannot find the texmf directory! -Please use --with-texmf-dir=dir to specify where the preview tex files go]) -fi - -AC_MSG_RESULT(${texmfdir}) -fi -fi - -echo Preview will be placed in ${previewtexmfdir} -echo Preview docs will be placed in ${previewdocdir} -AC_SUBST(texmfdir) -AC_SUBST(previewtexmfdir) -AC_SUBST(previewdocdir)]) - -AC_DEFUN(AC_FULL_EXPAND, -[ __ac_tmp_oldprefix__="${prefix}" - __ac_tmp_oldexec_prefix__="$exec_prefix" - test "x${prefix}" = xNONE && prefix="${ac_default_prefix}" - test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}' - while :;do case "[$]$1" in *\[$]*) __ac_tmp__='s/[[\`"-"]]/\\&/g' -eval "$1=`sed ${__ac_tmp__} <<EOF -[$]$1 -EOF -`";; *) break ;; esac; done - prefix="${__ac_tmp_oldprefix__}" - exec_prefix="${__ac_tmp_oldexec_prefix__}" ]) - -AC_DEFUN(AC_CHECK_PROG_REQUIRED, [ -AC_CHECK_PROG($1, $2, NONE) -if test "${$1}"x = NONEx ; then - AC_MSG_ERROR([$3]) -fi -]) - -AC_DEFUN(AC_CHECK_PROGS_REQUIRED, [ -AC_CHECK_PROGS($1, $2, NONE) -if test "${$1}"x = NONEx ; then - AC_MSG_ERROR([$3]) -fi -]) - - -AC_DEFUN(AC_PATH_PROG_REQUIRED, [ -AC_PATH_PROG($1, $2, NONE) -if test "${$1}"x = NONEx ; then - AC_MSG_ERROR([$3]) -fi -]) - -AC_DEFUN(AC_PATH_PROGS_REQUIRED, [ -AC_PATH_PROGS($1, $2, NONE) -if test "${$1}"x = NONEx ; then - AC_MSG_ERROR([$3]) -fi -]) - - -dnl -dnl Check whether a function exists in a library -dnl All '_' characters in the first argument are converted to '-' -dnl -AC_DEFUN(EMACS_CHECK_LIB, [ -if test -z "$3"; then - AC_MSG_CHECKING(for $2 in $1) -fi -library=`echo $1 | tr _ -` -EMACS_LISP(EMACS_cv_SYS_$1,(progn (fmakunbound '$2) (condition-case nil (progn (require '${library}) (fboundp '$2)) (error (prog1 nil (message \"${library} not found\")))))) -if test "${EMACS_cv_SYS_$1}" = "nil"; then - EMACS_cv_SYS_$1=no -fi -if test "${EMACS_cv_SYS_$1}" = "t"; then - EMACS_cv_SYS_$1=yes -fi -HAVE_$1=${EMACS_cv_SYS_$1} -AC_SUBST(HAVE_$1) -if test -z "$3"; then - AC_MSG_RESULT(${HAVE_$1}) -fi -]) - -dnl -dnl Check whether a library is require'able -dnl All '_' characters in the first argument are converted to '-' -dnl -AC_DEFUN(EMACS_CHECK_REQUIRE, [ -if test -z "$2"; then - AC_MSG_CHECKING(for $1) -fi -library=`echo $1 | tr _ -` -EMACS_LISP($1, - [(condition-case nil (require '${library} ) \ - (error (prog1 nil (message \"${library} not found\"))))]) -if test "$$1" = "nil"; then - $1=no -fi -if test "$$1" = "${library}"; then - $1=yes -fi -HAVE_$1=$$1 -AC_SUBST(HAVE_$1) -if test -z "$2"; then - AC_MSG_RESULT(${HAVE_$1}) -fi -]) - -dnl -dnl Perform sanity checking and try to locate the auctex package -dnl -AC_DEFUN(EMACS_CHECK_AUCTEX, [ -AC_MSG_CHECKING(for the location of AUCTeX's tex-site.el) -AC_ARG_WITH(tex-site,[ --with-tex-site=DIR Location of AUCTeX's tex-site.el, if not standard], - [ auctexdir="${withval}" ; - AC_FULL_EXPAND(withval) - if test ! -d "${withval}" ; then - AC_MSG_ERROR([--with-tex-site=${auctexdir}: Directory does not exist]) - fi -]) -if test -z "${auctexdir}" ; then - AC_CACHE_VAL(EMACS_cv_ACCEPTABLE_AUCTEX,[ - EMACS_LISP(EMACS_cv_ACCEPTABLE_AUCTEX, - [[(condition-case nil - (directory-file-name (file-name-directory - (locate-library \"tex-site\"))) - (error \"\"))]]) - if test -z "${EMACS_cv_ACCEPTABLE_AUCTEX}" ; then - AC_MSG_ERROR([Can't find AUCTeX! Please install it! -Check the PROBLEMS file for details.]) - fi - ]) - auctexdir="${EMACS_cv_ACCEPTABLE_AUCTEX}" -fi -AC_MSG_RESULT(${auctexdir}) -AC_SUBST(auctexdir) -]) - -dnl -dnl MAKEINFO_CHECK_MACRO( MACRO, [ACTION-IF-FOUND -dnl [, ACTION-IF-NOT-FOUND]]) -dnl -AC_DEFUN(MAKEINFO_CHECK_MACRO, -[if test -n "${MAKEINFO}" -a "${makeinfo}" != ":"; then - AC_MSG_CHECKING([if ${MAKEINFO} understands @$1{}]) - echo \\\\input texinfo > conftest.texi - echo @$1{test} >> conftest.texi - if ${MAKEINFO} conftest.texi > /dev/null 2> /dev/null; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) - else - AC_MSG_RESULT(no) - ifelse([$3], , :, [$3]) - fi - rm -f conftest.texi conftest.info -fi -]) - -dnl -dnl MAKEINFO_CHECK_MACROS( MACRO ... [, ACTION-IF-FOUND -dnl [, ACTION-IF-NOT-FOUND]]) -dnl -AC_DEFUN(MAKEINFO_CHECK_MACROS, -[for ac_macro in $1; do - MAKEINFO_CHECK_MACRO(${ac_macro}, $2, - [MAKEINFO_MACROS="-D no-${ac_macro} ${MAKEINFO_MACROS}" - $3])dnl - done -AC_SUBST(MAKEINFO_MACROS) -]) - -AC_DEFUN(AC_SHELL_QUOTIFY, -[$1=["`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF] -[$]$1 -EOF -`"]) - -dnl -dnl Check if build directory is valid. -dnl The directory should not be part of `load-path' -dnl -AC_DEFUN(VALID_BUILD_DIR, [ - AC_MSG_CHECKING([if build directory is valid]) - EMACS_LISP(valid_build_dir, - [[(if (or (member (directory-file-name default-directory) load-path)\ - (member (file-name-as-directory default-directory) load-path))\ - \"no\" \"yes\")]]) - if test "${valid_build_dir}" = "no"; then - AC_MSG_ERROR([Build directory inside load-path! Aborting!]) - else - AC_MSG_RESULT([yes]) - fi -]) - -# AUCTEX_AUTO_DIR -# --------------- -# Set the directory containing AUCTeX automatically generated global style -# hooks. -AC_DEFUN(AUCTEX_AUTO_DIR, -[AC_MSG_CHECKING([where automatically generated global style hooks go]) - AC_ARG_WITH(auto-dir, - [ --with-auto-dir=DIR directory containing AUCTeX automatically generated - global style hooks], - [autodir="${withval}"], - [autodir='${localstatedir}/auctex']) - AC_MSG_RESULT([${autodir}]) - AC_SUBST(autodir) -]) - -# AC_LISPIFY_DIR -# First argument is a variable name where a lisp expression is to be -# substituted with AC_SUBST and "lisp" prepended. -# lispdir is used for two purposes: any relative names are resolved -# relative to lispdir, and the lispification uses relative file names -# in relation to the second argument if the target dir is in the -# lispdir hierarchy. -# Second argument is a path to be resolved relatively to the filename -# in the third argument. -# If a third argument is given, it specifies a path specification -# to be expanded relative to the resulting directory. -AC_DEFUN(AC_LISPIFY_DIR,[ - tmpdir="[$]{$1}" - AC_FULL_EXPAND(tmpdir) - explispdir="[$]{lispdir}" - AC_FULL_EXPAND(explispdir) - expstartup=$2 - AC_FULL_EXPAND(expstartup) -EMACS_LISP([lisp$1],[[(progn (setq path (directory-file-name path)) - (if (or target - (not (string= (car load-path) (directory-file-name (car load-path))))) - (setq path (file-name-as-directory path))) - (setq path (expand-file-name path lispdir)) - (setq startupdir (file-name-directory (expand-file-name startup lispdir))) - (prin1-to-string - (if (or (string-match \"\\\\\`\\\\.\\\\.\" - (setq relname (file-relative-name startupdir lispdir))) - (file-name-absolute-p relname) - (string-match \"\\\\\`\\\\.\\\\.\" - (setq relname (file-relative-name path lispdir))) - (file-name-absolute-p relname)) - (concat path target) - (cond (target - \`(expand-file-name - ,(file-relative-name (concat path target) startupdir) - (file-name-directory load-file-name))) - ((string= path startupdir) - '(file-name-directory load-file-name)) - ((string= path (directory-file-name startupdir)) - '(directory-file-name (file-name-directory load-file-name))) - (t - \`(expand-file-name - ,(file-relative-name path startupdir) - (file-name-directory load-file-name)))))))]], - -no-site-file,[[path lispdir startup target]], - [["${tmpdir}" "${explispdir}" "${expstartup}" $3]]) - AC_SUBST([lisp$1]) - AC_SUBST([$1])]) diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index ae22c803..00000000 --- a/autogen.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh - -# Bootstrap script for AUCTeX - -# Maintainer: auctex-devel@gnu.org - -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. - -# This file is part of AUCTeX. - -# AUCTeX is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. - -# AUCTeX is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with AUCTeX; see the file COPYING. If not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301, USA. - -test "x${AUTOCONF}" != x || AUTOCONF=autoconf -test "x${MAKEINFO}" != x || MAKEINFO=makeinfo -test "x${PDFTEX}" != x || PDFTEX=pdftex -test "x${PERL}" != x || PERL=perl -test "x${MAKE}" != x || MAKE=make -${AUTOCONF} || { echo "Error running ${AUTOCONF} in ." >&2 ; exit 1; } -rm -rf autom4te.cache -if test "x${AUCTEXDATE}" = x -then - AUCTEXDATE=`git log -1 --date=short --format=%cd 2> /dev/null` - if test "X${AUCTEXDATE}" = X - then - echo "Can't find date with git, trying with ChangeLog.1..." >&2 - AUCTEXDATE=`LC_ALL=C sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' ChangeLog.1` - test "X${AUCTEXDATE}" != X || { echo "Can't find date in ChangeLog.1" >&2 ; exit 1; } - fi -fi - -if test "x${AUCTEXVERSION}" = x -then - if git describe --tags >/dev/null 2> /dev/null - then - if test "X`git describe --tags | sed 's/release_.._..//'`" = X - then - AUCTEXVERSION=`git describe --tags` - else - AUCTEXVERSION=${AUCTEXDATE} - fi - else - AUCTEXVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' ChangeLog.1` - test "X${AUCTEXVERSION}" != X || AUCTEXVERSION=${AUCTEXDATE} - fi -fi - -cd doc -rm -f version.texi -${MAKE} -f Makefile.in MAKEINFO="${MAKEINFO}" PDFTEX="${PDFTEX}" PERL="$PERL" AUCTEXDATE="$AUCTEXDATE" AUCTEXVERSION="$AUCTEXVERSION" dist || { echo "Error running ${MAKE} in doc" >&2 ; exit 1; } -cd .. - - diff --git a/configure.ac b/configure.ac deleted file mode 100644 index 49d2bf8d..00000000 --- a/configure.ac +++ /dev/null @@ -1,280 +0,0 @@ -dnl Autoconf script for AUCTeX - -dnl Maintainer: auctex-devel@gnu.org - -dnl Copyright (C) 2003-2024 Free Software Foundation, Inc. - -dnl This file is part of AUCTeX. - -dnl AUCTeX is free software; you can redistribute it and/or modify it -dnl under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 3, or (at your option) -dnl any later version. - -dnl AUCTeX is distributed in the hope that it will be useful, but -dnl WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl General Public License for more details. - -dnl You should have received a copy of the GNU General Public License -dnl along with AUCTeX; see the file COPYING. If not, write to the Free -dnl Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -dnl MA 02110-1301, USA. - -AC_INIT([auctex],[13.3],[bug-auc...@gnu.org]) - -AC_CHECK_PROGS_REQUIRED(MAKECMD, make, [make not found, aborting!]) -AC_PROG_MAKE_SET -AC_PROG_INSTALL - -AC_DATE_VERSION_FROM_CHANGELOG(AUCTEXDATE,AUCTEXVERSION,ChangeLog.1) -AC_SUBST(AUCTEXDATE) -AC_SUBST(AUCTEXVERSION) - -AC_DATE_VERSION_FROM_CHANGELOG(PREVIEWDATE,PREVIEWVERSION,ChangeLog-preview) -AC_SUBST(PREVIEWDATE) -AC_SUBST(PREVIEWVERSION) - -EMACS_PROG_EMACS - -EMACS_CHECK_VERSION(27,1) - -# The Debian package uses `--disable-build-dir-test'; normal users should -# never need to modify the default behavior. -AC_ARG_ENABLE([build-dir-test], - [ --enable-build-dir-test test for build directory inside `load-path' - (on by default)], - [if ! [[ "X-${enableval}" = "X-no" ]] - then VALID_BUILD_DIR - fi], - [VALID_BUILD_DIR]) - -AC_ARG_ENABLE(preview, - [ --disable-preview disable inclusion of preview-latex], - [preview_enabled="$enableval"], - [preview_enabled="yes"]) -AC_SUBST(preview_enabled) - -EMACS_PATH_LISPDIR -AC_MSG_CHECKING(what file to use for auctex startup) -AC_ARG_WITH(auctexstartfile, -[[ --with-auctexstartfile=FILE What file to use for auctex startup.]], -[[ auctexstartfile="${withval}" ]], -[ _tmpdir_="${lispdir}" -AC_FULL_EXPAND(_tmpdir_) -if test -d "${_tmpdir_}/site-start.d" -then -auctexstartfile="${lispdir}/site-start.d/auctex.el" -else -auctexstartfile="${lispdir}/auctex.el" -fi]) -AC_MSG_RESULT([[${auctexstartfile}]]) - -AC_MSG_CHECKING(what file to use for preview startup) -AC_ARG_WITH(previewstartfile, -[[ --with-previewstartfile=FILE What file to use for preview startup.]], -[[ previewstartfile="${withval}" ]], -[ _tmpdir_="${lispdir}" -AC_FULL_EXPAND(_tmpdir_) -if test -d "${_tmpdir_}/site-start.d" -then -previewstartfile="${lispdir}/site-start.d/preview-latex.el" -else -previewstartfile="${lispdir}/preview-latex.el" -fi]) -AC_MSG_RESULT([[${previewstartfile}]]) - -packagelispdir="${lispdir}/auctex" -packagedatadir="${packagelispdir}" -texsitedir="${lispdir}" - -AC_SUBST(auctexstartfile) -AC_SUBST(previewstartfile) - -AC_MSG_CHECKING([where the package lisp files go]) -AC_ARG_WITH(packagelispdir, -[[ --with-packagelispdir=DIR - Directory for the package lisp files.]], - [packagelispdir=["${withval}"]]) -AC_LISPIFY_DIR(packagelispdir,[["${texsitedir}/tex-site.el"]]) -AC_MSG_RESULT([[${packagelispdir}]]) - -AC_MSG_CHECKING([where the data files go]) -AC_ARG_WITH(packagedatadir, -[[ --with-packagedatadir=DIR Where the data files go.]], - [packagedatadir=["${withval}"]]) -AC_LISPIFY_DIR(packagedatadir,[["${texsitedir}/tex-site.el"]]) -AC_MSG_RESULT([[${packagedatadir}]]) - -AC_LISPIFY_DIR(texsite,[["${auctexstartfile}"]],tex-site.el) - -AC_MSG_CHECKING(where the info files go) -AC_MSG_RESULT([[${infodir}]]) - -AUCTEX_AUTO_DIR -AC_LISPIFY_DIR(autodir,"${texsitedir}/tex-site.el") - -AC_PATH_PROG(TEX, tex, :) -AC_PATH_PROG(PDFTEX, pdftex, :) -AC_PATH_PROG(DVIPS, dvips, :) - - -dnl Preview related options. -if test "X${preview_enabled}" = Xyes -then - AC_ARG_VAR(GS,[Ghostscript executable for batch operation]) - AC_CHECK_PROGS(GS, gs GSWIN32C.EXE, NONE) - - EMACS_LISP([[lispGS]],[[(if (member dir (list \"NONE\" (if (eq system-type 'windows-nt) \"GSWIN32C.EXE\" \"gs\"))) \"\" \`(defvar preview-gs-command ,dir))]],-no-site-file,[[dir]],[["${GS}"]]) - AC_SUBST(lispGS) - - dnl check to see if GS supports -dTextAlphaBits and -dGraphicsAlphaBits - dnl Check to see if specific drivers are built in. - dnl Need table of mappings, with priority - - AC_PATH_PROG_REQUIRED(LATEX, latex, [LaTeX not found, aborting! - You must install LaTeX for preview to work.]) - - AC_PATH_PROG(PDFLATEX, pdflatex) - - # Determine which latex-style components to install - # To match .sty, .def, .cfg, but _not_ .drv - TEXMFGEN=[`sed -n 's/^%<installer>.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx`] - # Replace newlines with spaces. - TEXMFGEN="`echo ${TEXMFGEN}`" - AC_SUBST(TEXMFGEN) - - AC_PATH_PROG_REQUIRED(TEX, tex, NONE) - - TEX_PATH_TEXMFDIR - - if test "x${texmfdir}" = "xno" - then - packagetexstyles="${packagedatadir}/latex" - AC_LISPIFY_DIR(packagetexstyles,"${previewstartfile}") - lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})" - test "X${TEXHASH}" = X && TEXHASH=: - else - lisppackagetexstyles= - fi - AC_SUBST(lisppackagetexstyles) - - # Be very careful about assuming things about the available hash programs - # MiKTeX comes with a braindead link to mktexlsr, apparently, so first - # try the regular utility from them. - AC_ARG_VAR(TEXHASH,[command to update the TeX filename database. - Set to : to skip updating the database on installation. - This is the default for --without-texmf-dir]) - - if test "X${TEXHASH}" = "X" - then - AC_PATH_PROG(TEXHASH, texhash) - AC_CHECK_PROG(TEXHASH, initexmf, initexmf -u) - if test "X${TEXHASH}" = X - then - AC_PATH_PROGS(TEXHASH, mktexlsr MakeTeXls-R, :) - fi - fi - - AC_MSG_CHECKING([[for glaring installation conflicts]]) - exppackagelispdir="$packagelispdir" - AC_FULL_EXPAND(exppackagelispdir) - exppreviewstartfile="$previewstartfile" - AC_FULL_EXPAND(exppreviewstartfile) - - EMACS_LISP(shadows,[[ - (concat - (and (setq tmp (locate-library \"preview.elc\")) - (not (string= (file-truename tmp) - (file-truename (expand-file-name \"preview.elc\" - packagelispdir)))) - (format \"Conflicting previous installation in \`%s' found!\n\" - (file-name-directory tmp))) - (and (setq tmp (locate-library \"preview-latex.el\")) - (not (string= (file-truename tmp) - (file-truename previewstartfile))) - (format \"Conflicting previous startup file \`%s' found!\n\" tmp)))]],, - [[packagelispdir previewstartfile]],[["${exppackagelispdir}" "${exppreviewstartfile}"]]) - if test "NONE${shadows}" != NONE - then - conflictsmsg="Conflicts with previous installations have been detected. - Please fix them before continuing. - " - AC_MSG_RESULT([[ouch! - ]]) - AC_MSG_WARN([[${shadows} - ]]) - else - conflictsmsg= - AC_MSG_RESULT([[probably none]]) - fi - - AC_SHELL_QUOTIFY(texmfdir) - AC_SHELL_QUOTIFY(exec_prefix) - AC_SHELL_QUOTIFY(libdir) - AC_SHELL_QUOTIFY(previewtexmfdir) - AC_SHELL_QUOTIFY(previewdocdir) - AC_SHELL_QUOTIFY(previewstartfile) - AC_SHELL_QUOTIFY(auctexdir) - AC_SHELL_QUOTIFY(datadir) - AC_SHELL_QUOTIFY(GS) - AC_SHELL_QUOTIFY(TEXHASH) - AC_SHELL_QUOTIFY(LATEX) - AC_SHELL_QUOTIFY(PDFLATEX) -fi - -AC_ARG_VAR(PERL,[Perl executable. If set to :, some documentation -cannot be regenerated, but installation of an unmodified tarball will -succeed.]) - -if test "x$PERL" = x -then - AC_PATH_PROG(PERL, perl, :) -fi - -AC_ARG_VAR(MAKEINFO,[Makeinfo executable. If set to :, some documentation -cannot be regenerated, but installation of an unmodified tarball will -succeed.]) - -AC_PATH_PROG(MAKEINFO, makeinfo, :) -AC_PATH_PROG(TEXI2HTML, texi2html, :) -AC_PATH_PROG(TEXI2DVI, texi2dvi, :) -AC_PATH_PROG(TEXI2PDF, texi2pdf, :) - -AC_ARG_VAR(INSTALL_INFO, [install-info executable. Set to : to skip making a dir file.]) - -if test "X${INSTALL_INFO}" = X -then - AC_PATH_PROG(INSTALL_INFO, install-info, :, ${PATH} /usr/sbin /sbin) -fi - -AC_SHELL_QUOTIFY(prefix) -AC_SHELL_QUOTIFY(localstatedir) -AC_SHELL_QUOTIFY(packagelispdir) -AC_SHELL_QUOTIFY(packagedatadir) -AC_SHELL_QUOTIFY(lispdir) -AC_SHELL_QUOTIFY(infodir) -AC_SHELL_QUOTIFY(datadir) -AC_SHELL_QUOTIFY(autodir) -AC_SHELL_QUOTIFY(auctexstartfile) -AC_SHELL_QUOTIFY(EMACS) -AC_SHELL_QUOTIFY(INSTALL_INFO) -AC_SHELL_QUOTIFY(PERL) -AC_SHELL_QUOTIFY(MAKEINFO) -AC_SHELL_QUOTIFY(TEX) -AC_SHELL_QUOTIFY(PDFTEX) -AC_SHELL_QUOTIFY(DVIPS) -AC_SHELL_QUOTIFY(TEXI2HTML) -AC_SHELL_QUOTIFY(TEXI2DVI) -AC_SHELL_QUOTIFY(TEXI2PDF) - -AC_CONFIG_FILES([Makefile tex-site.el.out:tex-site.el.in doc/Makefile auctex.el preview.el latex/Makefile]) -AC_OUTPUT - - -cat >&2 <<EOF - -Congratulations! Configuration of AUCTeX is complete. - -Type "make" at the prompt to build. -EOF diff --git a/doc/Makefile.in b/doc/Makefile.in deleted file mode 100644 index f3931c65..00000000 --- a/doc/Makefile.in +++ /dev/null @@ -1,211 +0,0 @@ -# Makefile for AUCTeX - -# Maintainer: auctex-devel@gnu.org - -# Copyright (C) 2003-2008, 2013-2015, 2018-2019 Free Software Foundation, Inc. - -# This file is part of AUCTeX. - -# AUCTeX is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. - -# AUCTeX is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with AUCTeX; see the file COPYING. If not, write to the Free -# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301, USA. - -prefix=@prefix@$(null) -datarootdir=@datarootdir@$(null) -datadir=@datadir@$(null) -infodir=@infodir@$(null) -docdir=@docdir@$(null) -TEX=@TEX@ -PDFTEX=@PDFTEX@ -MAKEINFO=@MAKEINFO@ -MAKEINFO_PLAIN=-D rawfile --no-headers -INSTALL_INFO=@INSTALL_INFO@ -INSTALL=@INSTALL@ -INSTALL_DATA=@INSTALL_DATA@ -DESTDIR= -# If `texi2html' is not available, use `makeinfo' when possible. Set the ToC -# file accordingly. Actually, makeinfo >= 5 is needed, but we don't check the -# version. -ifneq (@TEXI2HTML@,:) - TEXI2HTML=@TEXI2HTML@ - TEXI2HTML_TOC=auctex_toc.html -else - ifneq (@MAKEINFO@,:) - TEXI2HTML=@MAKEINFO@ --html - TEXI2HTML_TOC=index.html - else - TEXI2HTML=@TEXI2HTML@ - TEXI2HTML_TOC=auctex_toc.html - endif -endif -TEXI2DVI=@TEXI2DVI@ -TEXI2PDF=@TEXI2PDF@ -MKINSTALLDIRS = ../mkinstalldirs -DVIPS=@DVIPS@ -PERL=@PERL@ -AUCTEXDATE=@AUCTEXDATE@ -AUCTEXVERSION=@AUCTEXVERSION@ -PACKAGE_TARNAME=@PACKAGE_TARNAME@ - -AUCTEXTEXIFILES = auctex.texi install.texi wininstall.texi intro.texi \ - changes.texi todo.texi faq.texi macros.texi quickstart.texi \ - fdl.texi version.texi -PREVIEWTEXIFILES = copying.texi preview-faq.texi macros.texi \ - preview-dtxdoc.texi preview-latex.texi preview-problems.texi \ - preview-readme.texi preview-todo.texi fdl.texi version.texi -DISTTEXTS = ../README ../INSTALL ../TODO ../INSTALL.windows ../FAQ ../CHANGES \ - ../PROBLEMS.preview - -all: dist - -info: auctex.info preview-latex.info - -dvi: auctex.dvi tex-ref.dvi preview-latex.dvi - -install: install-auctex install-preview - -dist: $(DISTTEXTS) preview-latex.info auctex.info tex-ref.pdf - -extradist: html/$(TEXI2HTML_TOC) auctex.ps auctex.pdf tex-ref.ps tex-ref.pdf - -.PHONY: all info dvi dist install-auctex disttexts clean distclean \ - maintainer-clean install-preview uninstall html-docs \ - extradist - -# AUCTeX - -html/$(TEXI2HTML_TOC): auctex.texi - rm -rf html - mkdir html - cd html && $(TEXI2HTML) --split=node -I .. ../auctex.texi && \ - test ! -d auctex || { mv auctex/* . && rm -rf auctex ; } - -tex-ref.dvi: tex-ref.tex - $(TEX) tex-ref - -tex-ref.ps: tex-ref.dvi - $(DVIPS) tex-ref.dvi -Ppdf -o tex-ref.ps - -tex-ref.pdf: tex-ref.tex - $(PDFTEX) tex-ref.tex - -version.texi: ../ChangeLog.1 - echo @set VERSION $(AUCTEXVERSION) >version.texi - echo @set UPDATED $(AUCTEXDATE) >>version.texi - -auctex.dvi: $(AUCTEXTEXIFILES) - $(TEXI2DVI) auctex.texi - -auctex.pdf: $(AUCTEXTEXIFILES) - $(TEXI2PDF) auctex.texi - -auctex.ps: auctex.dvi - $(DVIPS) auctex.dvi -Ppdf -o auctex.ps - -auctex.info: $(AUCTEXTEXIFILES) - $(MAKEINFO) auctex.texi - -install-auctex: auctex.info tex-ref.pdf - -$(MKINSTALLDIRS) $(DESTDIR)$(infodir) - rm -f $(DESTDIR)$(infodir)/auctex $(DESTDIR)$(infodir)/auctex-* - $(INSTALL_DATA) auctex.info $(DESTDIR)$(infodir) - for x in auctex.info-*; do \ - if [ -r $$x ]; then \ - $(INSTALL_DATA) $$x $(DESTDIR)$(infodir) ; \ - fi; \ - done - -$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) auctex.info - $(MKINSTALLDIRS) $(DESTDIR)$(docdir) - rm -f $(DESTDIR)$(docdir)/tex-ref.pdf - $(INSTALL_DATA) tex-ref.pdf $(DESTDIR)$(docdir) - -# preview - -preview-latex/index.html: $(PREVIEWTEXIFILES) - rm -f preview-latex/* - $(TEXI2HTML) preview-latex.texi - -html-docs: preview-latex/index.html - -preview-dtxdoc.texi: ../latex/preview.dtx preview-dtxdoc.pl - -$(PERL) preview-dtxdoc.pl ../latex/preview.dtx \ - preview-dtxdoc.texi - -preview-latex.dvi: $(PREVIEWTEXIFILES) - $(TEXI2DVI) preview-latex.texi - -preview-latex.ps: preview-latex.dvi - $(DVIPS) preview-latex.dvi -Ppdf -o preview-latex.ps - -preview-latex.pdf: $(PREVIEWTEXIFILES) - $(TEXI2PDF) preview-latex.texi - -preview-latex.info: $(PREVIEWTEXIFILES) - $(MAKEINFO) preview-latex.texi - -install-preview: preview-latex.info - -$(MKINSTALLDIRS) $(DESTDIR)$(infodir) - for x in preview-latex.info* ; do \ - $(INSTALL_DATA) $$x $(DESTDIR)$(infodir) ; \ - done - -$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) preview-latex.info - -# disttexts - -../INSTALL: install.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) install.texi --output $@ - -../INSTALL.windows: wininstall.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) wininstall.texi --output $@ - -../README: intro.texi preview-readme.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) intro.texi --output $@ - $(MAKEINFO) $(MAKEINFO_PLAIN) preview-readme.texi --output - >> $@ - -../CHANGES: changes.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) changes.texi --output $@ - -../TODO: todo.texi preview-todo.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) todo.texi --output $@ - $(MAKEINFO) $(MAKEINFO_PLAIN) preview-todo.texi --output - >> $@ - -../FAQ: faq.texi preview-faq.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) faq.texi --output $@ - $(MAKEINFO) $(MAKEINFO_PLAIN) --number-sections preview-faq.texi --output - >> $@ - -../PROBLEMS.preview: preview-problems.texi macros.texi - $(MAKEINFO) $(MAKEINFO_PLAIN) --number-sections preview-problems.texi --output $@ - -# clean - -uninstall: - for info in $(DESTDIR)$(infodir)/{auctex.info,preview-latex.info}; do \ - test ! -f $${info} || \ - $(INSTALL_INFO) --delete --info-dir=$(DESTDIR)$(infodir) $${info}; \ - done - rm -f $(DESTDIR)$(infodir)/auctex.info $(DESTDIR)$(infodir)/auctex.info-* \ - $(DESTDIR)$(infodir)/preview-latex.info* - rm -rf -f $(DESTDIR)$(docdir) - -clean: - rm -f *.dvi *.ps *.pdf *.aux *.cp *.fn *.ky *.log *~ \#*\# \ - *.tp *.vr *.pg *.toc *.tp *.bak *.cps *.kys *.tps \ - *.fns *.vrs *.pgs *.tmp *.html - rm -rf html preview-latex - -distclean: clean - rm -f Makefile - -maintainer-clean: distclean - rm -f preview-dtxdoc.texi version.texi $(DISTTEXTS) *.info *.info-*