X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/blobdiff_plain/b91e23910ae2f433757880fa1c7e7b4a66c586e6..98ea3924ffaa6d7cc759da49322dde5f54335870:/aclocal.glob diff --git a/aclocal.glob b/aclocal.glob index cf5334f..b185537 100644 --- a/aclocal.glob +++ b/aclocal.glob @@ -1,6 +1,6 @@ dnl -*-fundamental-*- *@--GLOB-HEADER--@* dnl -dnl $Id: aclocal.glob,v 1.1 1999/05/05 19:23:47 mdw Exp $ +dnl $Id: aclocal.glob,v 1.5 1999/07/27 18:27:37 mdw Exp $ dnl dnl Common library of autoconf macros dnl @@ -28,13 +28,25 @@ dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl----- Revision history --------------------------------------------------- dnl dnl $Log: aclocal.glob,v $ -dnl Revision 1.1 1999/05/05 19:23:47 mdw -dnl Initial revision +dnl Revision 1.5 1999/07/27 18:27:37 mdw +dnl Fix typo in header line for mdw_DECL_ENVIRON. +dnl +dnl Revision 1.4 1999/07/26 23:44:32 mdw +dnl Reorder and tidy documentation. +dnl +dnl Revision 1.3 1999/07/17 10:27:44 mdw +dnl More useful macros added. +dnl +dnl Revision 1.2 1999/05/13 22:57:23 mdw +dnl Change `-ise' to `-ize' throughout. +dnl +dnl Revision 1.1.1.1 1999/05/05 19:23:47 mdw +dnl New import. The old CVS repository was lost in a disk disaster. dnl dnl----- Common files distribution --------------------------- *@--NOTICE--@* dnl -dnl $Id: aclocal.glob,v 1.1 1999/05/05 19:23:47 mdw Exp $ +dnl $Id: aclocal.glob,v 1.5 1999/07/27 18:27:37 mdw Exp $ dnl --- *@-AC_PROG_CC_STDC-@* --- dnl @@ -223,7 +235,7 @@ dnl Author: Unknown dnl dnl Synopsis: AM_INIT_GUILE_MODULE(MODNAME) dnl -dnl Arguments: MODNAME = value to initialise `module' variable with +dnl Arguments: MODNAME = value to initialize `module' variable with dnl dnl Use: This macro will automatically get the guile version from the dnl top-level srcdir, and will initialize automake. It also @@ -1060,6 +1072,91 @@ indir($@) AC_DIVERT_POP()dnl ])]) +dnl --- *@-mdw_CURSES-@* --- +dnl +dnl Author: Mark Wooding +dnl +dnl Synopsis: mdw_CURSES +dnl +dnl Arguments: --- +dnl +dnl Use: Searches for a `curses' library (one of `ncurses' or +dnl `curses') using mdw_CHECK_MANYLIBS. If one is found, the +dnl preprocessor macro HAVE_CURSES is defined, and a search is +dnl made for a `curses' header file (one of , +dnl or ) using AC_CHECK_HEADERS +dnl and the appropriate preprocessor symbol is defined. +dnl Finally, a check is made for the function `wresize' using +dnl AC_CHECK_FUNCS. + +AC_DEFUN(mdw_CURSES, +[mdw_CHECK_MANYLIBS(newwin, ncurses curses, AC_DEFINE(HAVE_CURSES)) +if test $mdw_cv_lib_newwin != no; then +AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h curses.h], [break]) +if test "$ac_cv_header_ncurses_h" = "no" && + test "$ac_cv_header_ncurses_ncurses_h" = "no" && + test "$ac_cv_header_curses_h" = "no"; then + AC_MSG_WARN([couldn't find a \`curses' header. Assuming \`curses.h'.]) + AC_DEFINE(HAVE_CURSES_H) +fi +AC_CHECK_FUNCS(wresize) +fi]) + +dnl --- *@-mdw_TYPE_SSIZE_T-@* --- +dnl +dnl Author: Mark Wooding +dnl +dnl Synopsis: mdw_TYPE_SSIZE_T +dnl +dnl Arguments: --- +dnl +dnl Use: Checks whether the Posix type `ssize_t' is defined. If not, +dnl it defaults to `int'. + +AC_DEFUN(mdw_TYPE_SSIZE_T, +[AC_REQUIRE([AC_HEADER_STDC]) +AC_CACHE_CHECK(for ssize_t, mdw_cv_ssize_t, +[AC_EGREP_CPP(ssize_t, +[#include +#if HAVE_UNISTD_H +#include +#endif +#if STDC_HEADERS +#include +#include +#endif], +[mdw_cv_ssize_t=yes], [mdw_cv_ssize_t=no])]) +if test $mdw_cv_ssize_t = no; then + AC_DEFINE(ssize_t, int) +fi]) + +dnl --- *@-mdw_DECL_ENVIRON-@* --- +dnl +dnl Author: Mark Wooding +dnl +dnl Synopsis: mdw_DECL_ENVIRON +dnl +dnl Arguments: --- +dnl +dnl Use: Searches for a declaration of the global `environ' variable. +dnl If one is found in one of the `usual' places, DECL_ENVIRON +dnl is defined as a preprocessor symbol. + +AC_DEFUN(mdw_DECL_ENVIRON, +[AC_CACHE_CHECK([for declaration of \`environ'], mdw_cv_environ, +[AC_EGREP_CPP(environ, +[#include +#if HAVE_UNISTD_H +#include +#endif +#if STDC_HEADERS +#include +#include +#endif], [mdw_cv_environ=yes], [mdw_cv_environ=no])]) +if test $mdw_cv_environ = yes; then + AC_DEFINE(DECL_ENVIRON) +fi]) + dnl --- *@-mdw_CHECK_MANYLIBS-@* --- dnl dnl Author: Mark Wooding