mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-15 02:00:22 +02:00
(AC_STRUCT_ST_RDEV, AC_STRUCT_ST_BLKSIZE): No longer use these.
Instead use AC_CHECK_MEMBERS. (AC_STRUCT_ST_BLOCKS): Use instead of ad-hoc test. Use AC_PREREQ, AC_INIT and AC_CONFIG_SRCDIR sequence instead of lone AC_INIT. Use AC_CONFIG_FILES, AC_CONFIG_COMMANDS and AC_OUTPUT sequence instead of lone AC_OUTPUT. (AC_CONFIG_FILES): Add test-suite/Makefile and check-guile. (AC_CONFIG_COMMANDS): Also chmod +x check-guile.
This commit is contained in:
parent
d2e93f1160
commit
4903f72b0e
1 changed files with 38 additions and 16 deletions
48
configure.in
48
configure.in
|
@ -20,7 +20,10 @@ dnl along with GUILE; see the file COPYING. If not, write to the
|
|||
dnl Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
dnl Boston, MA 02111-1307, USA.
|
||||
|
||||
AC_INIT(Makefile.in)
|
||||
AC_PREREQ(2.50)
|
||||
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([Makefile.in])
|
||||
. $srcdir/GUILE-VERSION
|
||||
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
|
||||
AM_MAINTAINER_MODE
|
||||
|
@ -336,18 +339,10 @@ AC_REPLACE_FUNCS(inet_aton putenv strerror memmove)
|
|||
AC_FUNC_ALLOCA
|
||||
if test "$ALLOCA" = "alloca.o"; then LIBOBJS="alloca.o $LIBOBJS"; fi
|
||||
|
||||
AC_STRUCT_ST_RDEV
|
||||
AC_STRUCT_ST_BLKSIZE
|
||||
AC_CHECK_MEMBERS([struct stat.st_rdev])
|
||||
AC_CHECK_MEMBERS([struct stat.st_blksize])
|
||||
|
||||
# We could use AC_STRUCT_ST_BLOCKS here, but that adds fileblocks.o to
|
||||
# LIBOBJS, which we don't need. This seems more direct.
|
||||
AC_CACHE_CHECK([for st_blocks in struct stat], ac_cv_struct_st_blocks,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/stat.h>], [struct stat s; s.st_blocks;],
|
||||
ac_cv_struct_st_blocks=yes, ac_cv_struct_st_blocks=no)])
|
||||
if test $ac_cv_struct_st_blocks = yes; then
|
||||
AC_DEFINE(HAVE_ST_BLOCKS)
|
||||
fi
|
||||
AC_STRUCT_ST_BLOCKS
|
||||
|
||||
AC_CACHE_CHECK([for S_ISLNK in sys/stat.h], ac_cv_macro_S_ISLNK,
|
||||
[AC_TRY_CPP([#include <sys/stat.h>
|
||||
|
@ -522,7 +517,34 @@ AC_SUBST(AWK)
|
|||
AC_SUBST(LIBLOBJS)
|
||||
AC_SUBST(EXTRA_DOT_DOC_FILES)
|
||||
|
||||
AC_OUTPUT([Makefile libguile/Makefile libguile/guile-snarf libguile/guile-doc-snarf libguile/guile-func-name-check libguile/guile-snarf.awk libguile/versiondat.h ice-9/Makefile qt/Makefile qt/qt.h qt/md/Makefile qt/time/Makefile guile-config/Makefile doc/Makefile], [chmod +x libguile/guile-snarf libguile/guile-doc-snarf libguile/guile-func-name-check])
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
libguile/Makefile
|
||||
libguile/guile-snarf
|
||||
libguile/guile-doc-snarf
|
||||
libguile/guile-func-name-check
|
||||
libguile/guile-snarf.awk
|
||||
libguile/versiondat.h
|
||||
ice-9/Makefile
|
||||
qt/Makefile
|
||||
qt/qt.h
|
||||
qt/md/Makefile
|
||||
qt/time/Makefile
|
||||
guile-config/Makefile
|
||||
doc/Makefile
|
||||
test-suite/Makefile
|
||||
check-guile
|
||||
])
|
||||
|
||||
AC_CONFIG_COMMANDS(default,[
|
||||
chmod +x libguile/guile-snarf \
|
||||
libguile/guile-doc-snarf \
|
||||
libguile/guile-func-name-check \
|
||||
check-guile
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
|
||||
|
||||
dnl Local Variables:
|
||||
dnl comment-start: "dnl "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue