autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] Shell functions, take 1


From: Paolo Bonzini
Subject: [RFC] Shell functions, take 1
Date: Mon, 5 May 2003 00:39:55 +0200

Here is the first attempt at using shell functions.  It causes no difference
whatsoever in configure's output for GNU Smalltalk 2.1.1's four configure
scripts, with a 15% reduction in script size (measured in bytes) with the
reduction in the individual files ranging from 7% to 25%.  Scripts using
complex aclocal feature tests tend not to batch everything into a single
AC_CHECK_FUNCS or AC_CHECK_HEADERS call, and have a bigger impact.

I have not yet measured the timing differences (neither in autoconf nor in
the configure scripts).

Tested with bash only.

2003-05-05  Paolo Bonzini  <address@hidden>

        * functions.m4 (AC_CHECK_FUNC): use shell functions
        * general.m4 (AC_CHECK_DECL): use shell functions
        (_AC_COMPUTE_INT_PREPROC,
        _AC_COMPUTE_INT_RUN): use AS_VAR_SET to set
        the variable
        * headers.m4 (_AC_CHECK_HEADER_MONGREL,
        _AC_CHECK_HEADER_OLD, _AC_CHECK_HEADER_NEW):
        use shell functions
        * libs.m4 (AC_SEARCH_LIBS, AC_CHECK_LIB): use
        shell functions
        * types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_SIZEOF,
        AC_CHECK_MEMBER): use shell functions




Attachment: ac-shell-func.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]