git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: git@vger.kernel.org
Cc: Allan Caffee <allan.caffee@gmail.com>
Subject: Re: [PATCH] Autoconf: Disable inline for compilers that don't support it.
Date: Sat, 14 Mar 2009 13:46:52 -0700	[thread overview]
Message-ID: <7vy6v7al37.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20090314010421.GA6642@linux.vnet> (Allan Caffee's message of "Fri, 13 Mar 2009 21:04:21 -0400")

Allan Caffee <allan.caffee@gmail.com> writes:

> The Autoconf macro AC_C_INLINE will redefine the inline keyword to whatever the
> current compiler supports (including possibly nothing).
>
> Signed-off-by: Allan Caffee <allan.caffee@gmail.com>

As far as I can tell, this makes scriptlet to set ac_cv_c_inline and then
the result is written to confdefs.h:

    case $ac_cv_c_inline in
      inline | yes) ;;
      *)
        case $ac_cv_c_inline in
          no) ac_val=;;
          *) ac_val=$ac_cv_c_inline;;
        esac
        cat >>confdefs.h <<_ACEOF
    #ifndef __cplusplus
    #define inline $ac_val
    #endif
    _ACEOF
        ;;
    esac

which is used only during the ./configure run but not during the actual
build.

What am I missing?

  reply	other threads:[~2009-03-14 20:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-14 18:32 Compiler requirements for git? Corey Stup
2009-01-14 22:38 ` Miklos Vajna
2009-03-14  1:04   ` [PATCH] Autoconf: Disable inline for compilers that don't support it Allan Caffee
2009-03-14 20:46     ` Junio C Hamano [this message]
2009-03-15 15:21       ` Allan Caffee
2009-03-15 19:52         ` Junio C Hamano
2009-03-16 22:31           ` Allan Caffee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vy6v7al37.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=allan.caffee@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).