diff options
author | Jim Blandy <jimb@red-bean.com> | 1997-04-24 06:32:52 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1997-04-24 06:32:52 +0000 |
commit | 3a629497d24fa093b23e81750535821c3c0fc78d (patch) | |
tree | 6dcb3d36287f534768a35e2647dde8f5b06d6a3d /acinclude.m4 | |
parent | ebe2a6c136062b14bd03d820efbfa8ddbf2b62fa (diff) | |
download | guile-3a629497d24fa093b23e81750535821c3c0fc78d.tar.gz |
Changes for reduced Guile distribution: one configure script,
no plugins.
* configure.in: Merged the old text from qt/configure.in and
libguile/configure.in; Tom Tromey says automake only wants one
configure.in script. This seems fishy, but...
* Makefile.am: List the subdirectories explicitly; no more PLUGIN
gubbish.
* acconfig.h, acinclude.m4: Moved here from libguile, since
libguile's configure script lives here now.
* AUTHORS, INSTALL, README: Updated.
* Makefile.in, aclocal.m4 configure: Regenerated. Just like
amputated amphibian limbs.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 000000000..65b4b11c2 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,59 @@ +dnl On the NeXT, #including <utime.h> doesn't give you a definition for +dnl struct utime, unless you #define _POSIX_SOURCE. + +AC_DEFUN(GUILE_STRUCT_UTIMBUF, [ + AC_CACHE_CHECK([whether we need POSIX to get struct utimbuf], + guile_cv_struct_utimbuf_needs_posix, + [AC_TRY_CPP([ +#ifdef __EMX__ +#include <sys/utime.h> +#else +#include <utime.h> +#endif +struct utime blah; +], + guile_cv_struct_utimbuf_needs_posix=no, + guile_cv_struct_utimbuf_needs_posix=yes)]) + if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then + AC_DEFINE(UTIMBUF_NEEDS_POSIX) + fi]) + + + + +dnl +dnl Apparently, at CMU they have a weird version of libc.h that is +dnl installed in /usr/local/include and conflicts with unistd.h. +dnl In these situations, we should not #include libc.h. +dnl This test arranges to #define LIBC_H_WITH_UNISTD_H iff libc.h is +dnl present on the system, and is safe to #include. +dnl +AC_DEFUN([GUILE_HEADER_LIBC_WITH_UNISTD], + [ + AC_CHECK_HEADERS(libc.h unistd.h) + AC_CACHE_CHECK( + "whether libc.h and unistd.h can be included together", + guile_cv_header_libc_with_unistd, + [ + if test "$ac_cv_header_libc_h" = "no"; then + guile_cv_header_libc_with_unistd="no" + elif test "$ac_cv_header_unistd.h" = "no"; then + guile_cv_header_libc_with_unistd="yes" + else + AC_TRY_COMPILE( + [ +# include <libc.h> +# include <unistd.h> + ], + [], + [guile_cv_header_libc_with_unistd=yes], + [guile_cv_header_libc_with_unistd=no] + ) + fi + ] + ) + if test "$guile_cv_header_libc_with_unistd" = yes; then + AC_DEFINE(LIBC_H_WITH_UNISTD_H) + fi + ] +) |