Skip to content
Snippets Groups Projects
Commit 7f419562 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

gcc has __FUNCTION__ instead of __func__.

Rev: src/configure.in:1.215
parent 6ba844c6
No related branches found
No related tags found
No related merge requests found
AC_REVISION("$Id: configure.in,v 1.214 1998/07/11 15:19:25 grubba Exp $") AC_REVISION("$Id: configure.in,v 1.215 1998/07/11 15:49:27 grubba Exp $")
AC_INIT(interpret.c) AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h) AC_CONFIG_HEADER(machine.h)
...@@ -2132,6 +2132,32 @@ if test "$pike_cv_have_working___func__" = yes; then ...@@ -2132,6 +2132,32 @@ if test "$pike_cv_have_working___func__" = yes; then
AC_DEFINE(HAVE_WORKING___FUNC__) AC_DEFINE(HAVE_WORKING___FUNC__)
else :; fi else :; fi
# gcc has __FUNCTION__ instead.
AC_MSG_CHECKING(if __FUNCTION__ exists and works)
AC_CACHE_VAL(pike_cv_have_working___FUNCTION__,
[
AC_TRY_RUN([
#ifdef HAVE_STRING_H
#include <string.h>
#else /* !HAVE_STRING_H */
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif /* HAVE_STRIGNS_H */
#endif /* HAVE_STRING_H */
int main()
{
exit(strcmp("main", __FUNCTION__));
}
], pike_cv_have_working___FUNCTION__=yes,
pike_cv_have_working___FUNCTION__=no,
pike_cv_have_working___FUNCTION__=no)
])
AC_MSG_RESULT($pike_cv_have_working___FUNCTION__)
if test "$pike_cv_have_working___FUNCTION__" = yes; then
AC_DEFINE(HAVE_WORKING___FUNCTION__)
else :; fi
############################################################################# #############################################################################
AC_MSG_CHECKING(for gcc function attributes) AC_MSG_CHECKING(for gcc function attributes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment