[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to add this function to the aclole.m4
From: |
Steffen DETTMER |
Subject: |
Re: how to add this function to the aclole.m4 |
Date: |
Thu, 20 May 2010 23:50:01 +0200 |
User-agent: |
Mutt/1.4.1i |
* Ralph Blach wrote on Thu, May 20, 2010 at 16:57 -0400:
> Ralf Wildenhues wrote:
> >* Ralph Blach wrote on Thu, May 20, 2010 at 10:27:59PM CEST:
> >
> >>AC_DEFUN([AC_CHECK_FUNC_PROTO],
> >> [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
> >> AC_DEFINE_UNQUOTED($ac_tr_func)
> >> fi
> >>])
[...]
> >Your macro still lacks proper quotation. You need to [quote] at least
> >the third argument of the AC_CACHE_CHECK call, but better all others
> >too, as well as each argument of AC_EGREP_HEADER.
[...]
> First I dont really understand "proper quotation"
> because I dont really understand this language.
I think you should rewrite your macro as:
AC_DEFUN([AC_CHECK_FUNC_PROTO],
[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
AC_DEFINE_UNQUOTED($ac_tr_func)
fi
oki,
Steffen
About Ingenico: Ingenico is a leading provider of payment solutions, with over
15 million terminals deployed in more than 125 countries. Its 2,850 employees
worldwide support retailers, banks and service providers to optimize and secure
their electronic payments solutions, develop their offer of services and
increase their point of sales revenue. More information on
http://www.ingenico.com/.
This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you must
not use, copy, disclose or take any action based on this message or any
information herein. If you have received this message in error, please advise
the sender immediately by reply e-mail and delete this message. Thank you for
your cooperation.
P Please consider the environment before printing this e-mail
- how to add this function to the aclole.m4, Ralph Blach, 2010/05/19
- Re: how to add this function to the aclole.m4, Eric Blake, 2010/05/19
- Re: how to add this function to the aclole.m4, Ralph Blach, 2010/05/20
- Re: how to add this function to the aclole.m4, Ralf Wildenhues, 2010/05/20
- Re: how to add this function to the aclole.m4, Ralph Blach, 2010/05/20
- Re: how to add this function to the aclole.m4, Ralf Wildenhues, 2010/05/20
- Re: how to add this function to the aclole.m4, Ralph Blach, 2010/05/20
- Re: how to add this function to the aclole.m4,
Steffen DETTMER <=
- Re: how to add this function to the aclole.m4, Eric Blake, 2010/05/20