[Top][All Lists]

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

Re: how to add this function to the aclole.m4

From: Eric Blake
Subject: Re: how to add this function to the aclole.m4
Date: Thu, 20 May 2010 15:53:49 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b1 Mnenhy/0.8.2 Thunderbird/3.0.4

On 05/20/2010 03:50 PM, Steffen DETTMER wrote:
> I think you should rewrite your macro as:
>      [AC_CACHE_CHECK([for $1 function prototype in $2], [ac_cv_have_$1_proto],
>          [AC_EGREP_HEADER([$1], [$2],
>              [ac_cv_have_$1_proto=yes],
>              [ac_cv_have_$1_proto=no])
>          ])
>      if test $ac_cv_have_$1_proto = yes ; then
>              ac_tr_func=HAVE_`echo $1 | tr
> 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO

Why waste the extra processes during all client's configure time, when
you can convert the string during m4 time just once during the
developer's autoconf time?


Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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