From eabfbc83ad6b79b9bddf80f316add0f31202504f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 21 Mar 1997 03:10:21 +0000 Subject: [PATCH] . --- m4/ccstdc.m4 | 61 ------------------------------------------------- m4/dmalloc.m4 | 21 ----------------- m4/error.m4 | 13 ----------- m4/header.m4 | 12 ---------- m4/init.m4 | 20 ---------------- m4/install.m4 | 13 ----------- m4/lispdir.m4 | 38 ------------------------------- m4/maintainer.m4 | 22 ------------------ m4/obstack.m4 | 15 ------------ m4/protos.m4 | 25 -------------------- m4/ptrdiff.m4 | 12 ---------- m4/regex.m4 | 37 ------------------------------ m4/sanity.m4 | 19 ---------------- m4/strtod.m4 | 69 -------------------------------------------------------- m4/termios.m4 | 14 ------------ m4/winsz.m4 | 35 ---------------------------- 16 files changed, 426 deletions(-) delete mode 100644 m4/ccstdc.m4 delete mode 100644 m4/dmalloc.m4 delete mode 100644 m4/error.m4 delete mode 100644 m4/header.m4 delete mode 100644 m4/init.m4 delete mode 100644 m4/install.m4 delete mode 100644 m4/lispdir.m4 delete mode 100644 m4/maintainer.m4 delete mode 100644 m4/obstack.m4 delete mode 100644 m4/protos.m4 delete mode 100644 m4/ptrdiff.m4 delete mode 100644 m4/regex.m4 delete mode 100644 m4/sanity.m4 delete mode 100644 m4/strtod.m4 delete mode 100644 m4/termios.m4 delete mode 100644 m4/winsz.m4 diff --git a/m4/ccstdc.m4 b/m4/ccstdc.m4 deleted file mode 100644 index 727fea1f0..000000000 --- a/m4/ccstdc.m4 +++ /dev/null @@ -1,61 +0,0 @@ -## ----------------------------------------- ## -## ANSIfy the C compiler whenever possible. ## -## From Franc,ois Pinard ## -## ----------------------------------------- ## - -# serial 1 - -# @defmac AC_PROG_CC_STDC -# @maindex PROG_CC_STDC -# @ovindex CC -# If the C compiler in not in ANSI C mode by default, try to add an option -# to output variable @code{CC} to make it so. This macro tries various -# options that select ANSI C on some system or another. It considers the -# compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and -# handles function prototypes correctly. -# -# If you use this macro, you should check after calling it whether the C -# compiler has been set to accept ANSI C; if not, the shell variable -# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source -# code in ANSI C, you can make an un-ANSIfied copy of it by using the -# program @code{ansi2knr}, which comes with Ghostscript. -# @end defmac - -AC_DEFUN(AM_PROG_CC_STDC, -[AC_REQUIRE([AC_PROG_CC]) -AC_MSG_CHECKING(for ${CC-cc} option to accept ANSI C) -AC_CACHE_VAL(am_cv_prog_cc_stdc, -[am_cv_prog_cc_stdc=no -ac_save_CC="$CC" -# Don't try gcc -ansi; that turns off useful extensions and -# breaks some systems' header files. -# AIX -qlanglvl=ansi -# Ultrix and OSF/1 -std1 -# HP-UX -Aa -D_HPUX_SOURCE -# SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - AC_TRY_COMPILE( -[#if !defined(__STDC__) || __STDC__ != 1 -choke me -#endif -/* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */ -#ifdef _SEQUENT_ -# include -# include -#endif -], [ -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);};], -[am_cv_prog_cc_stdc="$ac_arg"; break]) -done -CC="$ac_save_CC" -]) -AC_MSG_RESULT($am_cv_prog_cc_stdc) -case "x$am_cv_prog_cc_stdc" in - x|xno) ;; - *) CC="$CC $am_cv_prog_cc_stdc" ;; -esac -]) diff --git a/m4/dmalloc.m4 b/m4/dmalloc.m4 deleted file mode 100644 index 365ef8039..000000000 --- a/m4/dmalloc.m4 +++ /dev/null @@ -1,21 +0,0 @@ -## ----------------------------------- ## -## Check if --with-dmalloc was given. ## -## From Franc,ois Pinard ## -## ----------------------------------- ## - -# serial 1 - -AC_DEFUN(AM_WITH_DMALLOC, -[AC_MSG_CHECKING(if malloc debugging is wanted) -AC_ARG_WITH(dmalloc, -[ --with-dmalloc use dmalloc, as in - ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz], -[if test "$withval" = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE(WITH_DMALLOC) - LIBS="$LIBS -ldmalloc" - LDFLAGS="$LDFLAGS -g" -else - AC_MSG_RESULT(no) -fi], [AC_MSG_RESULT(no)]) -]) diff --git a/m4/error.m4 b/m4/error.m4 deleted file mode 100644 index eac272a50..000000000 --- a/m4/error.m4 +++ /dev/null @@ -1,13 +0,0 @@ -dnl From Jim Meyering. Use this if you use the GNU error.[ch]. -dnl FIXME: Migrate into libit - -AC_DEFUN(AM_FUNC_ERROR_AT_LINE, -[AC_CACHE_CHECK([for error_at_line], am_cv_lib_error_at_line, - [AC_TRY_LINK([],[error_at_line(0, 0, "", 0, "");], - am_cv_lib_error_at_line=yes, - am_cv_lib_error_at_line=no)]) - if test $am_cv_lib_error_at_line = no; then - LIBOBJS="$LIBOBJS error.o" - fi - AC_SUBST(LIBOBJS)dnl -]) diff --git a/m4/header.m4 b/m4/header.m4 deleted file mode 100644 index 3a408e105..000000000 --- a/m4/header.m4 +++ /dev/null @@ -1,12 +0,0 @@ -# Like AC_CONFIG_HEADER, but automatically create stamp file. - -AC_DEFUN(AM_CONFIG_HEADER, -[AC_PREREQ([2.12]) -AC_CONFIG_HEADER([$1]) -dnl When config.status generates a header, we must update the stamp-h file. -dnl This file resides in the same directory as the config header -dnl that is generated. We must strip everything past the first ":", -dnl and everything past the last "/". -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl -test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl -changequote([,]))]) diff --git a/m4/init.m4 b/m4/init.m4 deleted file mode 100644 index 8afadf27f..000000000 --- a/m4/init.m4 +++ /dev/null @@ -1,20 +0,0 @@ -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - -dnl Usage: -dnl AM_INIT_AUTOMAKE(package,version) - -AC_DEFUN(AM_INIT_AUTOMAKE, -[AC_REQUIRE([AM_PROG_INSTALL]) -PACKAGE=[$1] -AC_SUBST(PACKAGE) -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") -VERSION=[$2] -AC_SUBST(VERSION) -AC_DEFINE_UNQUOTED(VERSION, "$VERSION") -AM_SANITY_CHECK -AC_ARG_PROGRAM -AC_PROG_MAKE_SET]) diff --git a/m4/install.m4 b/m4/install.m4 deleted file mode 100644 index 78b049217..000000000 --- a/m4/install.m4 +++ /dev/null @@ -1,13 +0,0 @@ -## --------------------------------------------------------- ## -## Use AC_PROG_INSTALL, supplementing it with INSTALL_SCRIPT ## -## substitution. ## -## From Franc,ois Pinard ## -## --------------------------------------------------------- ## - -# serial 1 - -AC_DEFUN(AM_PROG_INSTALL, -[AC_REQUIRE([AC_PROG_INSTALL]) -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' -AC_SUBST(INSTALL_SCRIPT)dnl -]) diff --git a/m4/lispdir.m4 b/m4/lispdir.m4 deleted file mode 100644 index b04a17ca9..000000000 --- a/m4/lispdir.m4 +++ /dev/null @@ -1,38 +0,0 @@ -## ------------------------ -## Emacs LISP file handling -## From Ulrich Drepper -## ------------------------ - -# serial 1 - -AC_DEFUN(AM_PATH_LISPDIR, - [# If set to t, that means we are running in a shell under Emacs. - # If you have an Emacs named "t", then use the full path. - test "$EMACS" = t && EMACS= - AC_PATH_PROG(EMACS, emacs xemacs, no) - if test $EMACS != "no"; then - AC_MSG_CHECKING([where .elc files should go]) - dnl Set default value - lispdir="\$(datadir)/emacs/site-lisp" - if test "x$prefix" = "xNONE"; then - if test -d $ac_default_prefix/share/emacs/site-lisp; then - lispdir="\$(prefix)/share/emacs/site-lisp" - else - if test -d $ac_default_prefix/lib/emacs/site-lisp; then - lispdir="\$(prefix)/lib/emacs/site-lisp" - fi - fi - else - if test -d $prefix/share/emacs/site-lisp; then - lispdir="\$(prefix)/share/emacs/site-lisp" - else - if test -d $prefix/lib/emacs/site-lisp; then - lispdir="\$(prefix)/lib/emacs/site-lisp" - fi - fi - fi - AC_MSG_RESULT($lispdir) - ELCFILES="\$(ELCFILES)" - fi - AC_SUBST(lispdir) - AC_SUBST(ELCFILES)]) diff --git a/m4/maintainer.m4 b/m4/maintainer.m4 deleted file mode 100644 index 5d9a7658b..000000000 --- a/m4/maintainer.m4 +++ /dev/null @@ -1,22 +0,0 @@ -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# serial 1 - -AC_DEFUN(AM_MAINTAINER_MODE, -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT($USE_MAINTAINER_MODE) - if test $USE_MAINTAINER_MODE = yes; then - MAINT= - else - MAINT='#M#' - fi - AC_SUBST(MAINT)dnl -] -) diff --git a/m4/obstack.m4 b/m4/obstack.m4 deleted file mode 100644 index b702aee43..000000000 --- a/m4/obstack.m4 +++ /dev/null @@ -1,15 +0,0 @@ -dnl From Jim Meyering. -dnl FIXME: migrate into libit. - -AC_DEFUN(AM_FUNC_OBSTACK, -[AC_CACHE_CHECK([for obstacks], am_cv_func_obstack, - [AC_TRY_LINK([#include "obstack.h"], - [struct obstack *mem;obstack_free(mem,(char *) 0)], - am_cv_func_obstack=yes, - am_cv_func_obstack=no)]) - if test $am_cv_func_obstack = yes; then - AC_DEFINE(HAVE_OBSTACK) - else - LIBOBJS="$LIBOBJS obstack.o" - fi -]) diff --git a/m4/protos.m4 b/m4/protos.m4 deleted file mode 100644 index 5c82294eb..000000000 --- a/m4/protos.m4 +++ /dev/null @@ -1,25 +0,0 @@ -## ------------------------------- ## -## Check for function prototypes. ## -## From Franc,ois Pinard ## -## ------------------------------- ## - -# serial 1 - -AC_DEFUN(AM_C_PROTOTYPES, -[AC_REQUIRE([AM_PROG_CC_STDC]) -AC_BEFORE([$0], [AC_C_INLINE]) -AC_MSG_CHECKING([for function prototypes]) -if test "$am_cv_prog_cc_stdc" != no; then - AC_MSG_RESULT(yes) - AC_DEFINE(PROTOTYPES) - U= ANSI2KNR= -else - AC_MSG_RESULT(no) - U=_ ANSI2KNR=./ansi2knr - # Ensure some checks needed by ansi2knr itself. - AC_HEADER_STDC - AC_CHECK_HEADERS(string.h) -fi -AC_SUBST(U)dnl -AC_SUBST(ANSI2KNR)dnl -]) diff --git a/m4/ptrdiff.m4 b/m4/ptrdiff.m4 deleted file mode 100644 index 85bf4aceb..000000000 --- a/m4/ptrdiff.m4 +++ /dev/null @@ -1,12 +0,0 @@ -# From Ulrich Drepper. - -# serial 1 - -AC_DEFUN(AM_TYPE_PTRDIFF_T, - [AC_CACHE_CHECK([for ptrdiff_t], am_cv_type_ptrdiff_t, - [AC_TRY_COMPILE([#include ], [ptrdiff_t p], - am_cv_type_ptrdiff_t=yes, am_cv_type_ptrdiff_t=no)]) - if test $am_cv_type_ptrdiff_t = yes; then - AC_DEFINE(HAVE_PTRDIFF_T) - fi -]) diff --git a/m4/regex.m4 b/m4/regex.m4 deleted file mode 100644 index 007b16636..000000000 --- a/m4/regex.m4 +++ /dev/null @@ -1,37 +0,0 @@ -## --------------------------------- ## -## Check if --with-regex was given. ## -## --------------------------------- ## - -# serial 1 - -# The idea is to distribute rx.[hc] and regex.[hc] together, for a while. -# The WITH_REGEX symbol (which should also be documented in acconfig.h) -# is used to decide which of regex.h or rx.h should be included in the -# application. If `./configure --with-regex' is given (the default), the -# package will use gawk's regex. If `./configure --without-regex', a -# check is made to see if rx is already installed, as with newer Linux'es. -# If not found, the package will use the rx from the distribution. -# If found, the package will use the system's rx which, on Linux at least, -# will result in a smaller executable file. - -AC_DEFUN(AM_WITH_REGEX, -[AC_MSG_CHECKING(which of GNU rx or gawk's regex is wanted) -AC_ARG_WITH(regex, -[ --without-regex use GNU rx in lieu of gawk's regex for matching], -[test "$withval" = yes && am_with_regex=1], -[am_with_regex=1]) -if test -n "$am_with_regex"; then - AC_MSG_RESULT(regex) - AC_DEFINE(WITH_REGEX) - AC_CACHE_CHECK([for GNU regex in libc], am_cv_gnu_regex, - AC_TRY_LINK([], [extern int re_max_failures; re_max_failures = 1], - am_cv_gnu_regex=yes, am_cv_gnu_regex=no)) - if test $am_cv_gnu_regex = no; then - LIBOBJS="$LIBOBJS regex.o" - fi -else - AC_MSG_RESULT(rx) - AC_CHECK_FUNC(re_rx_search, , [LIBOBJS="$LIBOBJS rx.o"]) -fi -AC_SUBST(LIBOBJS)dnl -]) diff --git a/m4/sanity.m4 b/m4/sanity.m4 deleted file mode 100644 index 65ca99993..000000000 --- a/m4/sanity.m4 +++ /dev/null @@ -1,19 +0,0 @@ -# -# Check to make sure that the build environment is sane. -# - -AC_DEFUN(AM_SANITY_CHECK, -[AC_MSG_CHECKING([whether build environment is sane]) -echo timestamp > conftestfile -# Do this in a subshell so we don't clobber the current shell's -# arguments. FIXME: maybe try `-L' hack like GETLOADAVG test? -if (set X `ls -t $srcdir/configure conftestfile`; test "[$]2" = conftestfile) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -rm -f conftest* -AC_MSG_RESULT(yes)]) diff --git a/m4/strtod.m4 b/m4/strtod.m4 deleted file mode 100644 index 8aaf4b793..000000000 --- a/m4/strtod.m4 +++ /dev/null @@ -1,69 +0,0 @@ -## Copyright (C) 1996 Free Software Foundation, Inc. - -## This program 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 2, or (at your option) -## any later version. - -## This program 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 this program; if not, write to the Free Software -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -## 02111-1307, USA. - -## From Jim Meyering. - -## serial 1 - -## @defmac AC_FUNC_STRTOD -## @maindex FUNC_STRTOD -## @ovindex LIBOBJS -## If the @code{strtod} function is not available, or does not work -## correctly (like the one on SunOS 5.4), add @samp{strtod.o} to output -## variable @code{LIBOBJS}. -## @end defmac - -AC_DEFUN(AM_FUNC_STRTOD, -[AC_CACHE_CHECK(for working strtod, am_cv_func_strtod, -[AC_TRY_RUN([ -double strtod (); -int -main() -{ - { - /* Some versions of Linux strtod mis-parse strings with leading '+'. */ - char *string = " +69"; - char *term; - double value; - value = strtod (string, &term); - if (value != 69 || term != (string + 4)) - exit (1); - } - - { - /* Under Solaris 2.4, strtod returns the wrong value for the - terminating character under some conditions. */ - char *string = "NaN"; - char *term; - strtod (string, &term); - if (term != string && *(term - 1) == 0) - exit (1); - } - exit (0); -} -], am_cv_func_strtod=yes, am_cv_func_strtod=no, am_cv_func_strtod=no)]) -test $am_cv_func_strtod = no && LIBOBJS="$LIBOBJS strtod.o" -AC_SUBST(LIBOBJS)dnl -am_cv_func_strtod_needs_libm=no -if test $am_cv_func_strtod = no; then - AC_CHECK_FUNCS(pow) - if test $ac_cv_func_pow = no; then - AC_CHECK_LIB(m, pow, [am_cv_func_strtod_needs_libm=yes], - [AC_MSG_WARN(can't find library containing definition of pow)]) - fi -fi -]) diff --git a/m4/termios.m4 b/m4/termios.m4 deleted file mode 100644 index 1eb31d1e3..000000000 --- a/m4/termios.m4 +++ /dev/null @@ -1,14 +0,0 @@ -dnl From Jim Meyering. - -# serial 1 - -AC_DEFUN(AM_SYS_POSIX_TERMIOS, -[AC_CACHE_CHECK([POSIX termios], am_cv_sys_posix_termios, - [AC_TRY_LINK([#include -#include -#include ], - [/* SunOS 4.0.3 has termios.h but not the library calls. */ - tcgetattr(0, 0);], - am_cv_sys_posix_termios=yes, - am_cv_sys_posix_termios=no)]) -]) diff --git a/m4/winsz.m4 b/m4/winsz.m4 deleted file mode 100644 index 163e512bd..000000000 --- a/m4/winsz.m4 +++ /dev/null @@ -1,35 +0,0 @@ -dnl From Jim Meyering. - -# serial 1 - -AC_DEFUN(AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL, -[AC_REQUIRE([AM_SYS_POSIX_TERMIOS]) - AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h], - am_cv_sys_tiocgwinsz_needs_sys_ioctl_h, - [am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no - - gwinsz_in_termios_h=no - if test $am_cv_sys_posix_termios = yes; then - AC_EGREP_CPP([yes], - [#include -# include -# ifdef TIOCGWINSZ - yes -# endif - ], gwinsz_in_termios_h=yes) - fi - - if test $gwinsz_in_termios_h = no; then - AC_EGREP_CPP([yes], - [#include -# include -# ifdef TIOCGWINSZ - yes -# endif - ], am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes) - fi - ]) - if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then - AC_DEFINE(GWINSZ_IN_SYS_IOCTL) - fi -]) -- 2.11.0