mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 01:54:24 +03:00
* acinclude.m4 (MC_ASM_LABELS): New macro to work around a bug
gettext. Define _INTL_REDIRECT_MACROS if needed. * configure.in: Use MC_ASM_LABELS.
This commit is contained in:
parent
8c7b8d313e
commit
d6d16e47ef
@ -1,3 +1,9 @@
|
|||||||
|
2003-03-11 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* acinclude.m4 (MC_ASM_LABELS): New macro to work around a bug
|
||||||
|
gettext. Define _INTL_REDIRECT_MACROS if needed.
|
||||||
|
* configure.in: Use MC_ASM_LABELS.
|
||||||
|
|
||||||
2003-03-07 Pavel Roskin <proski@gnu.org>
|
2003-03-07 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* configure.in: Add --with-glib-static option.
|
* configure.in: Add --with-glib-static option.
|
||||||
|
28
acinclude.m4
28
acinclude.m4
@ -891,3 +891,31 @@ if test "$mc_cv_g_module_supported" = yes; then
|
|||||||
[Define if gmodule functionality is supported])
|
[Define if gmodule functionality is supported])
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Check if it's possible to use asm labels to rename functions.
|
||||||
|
dnl This macro is necessary because gettext wrongly assumes that gcc
|
||||||
|
dnl can do it regardless of the OS.
|
||||||
|
dnl
|
||||||
|
AC_DEFUN([MC_ASM_LABELS], [
|
||||||
|
AC_CACHE_CHECK([whether functions can be renamed by asm labels],
|
||||||
|
mc_cv_asm_labels,
|
||||||
|
[mc_cv_asm_labels=no
|
||||||
|
if test -n "$GCC"; then
|
||||||
|
AC_TRY_LINK(, [
|
||||||
|
static int function1 (void) __asm__ ("function2");
|
||||||
|
static int function1 (void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return function2();
|
||||||
|
], [mc_cv_asm_labels=yes])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
if test "$mc_cv_asm_labels" != yes; then
|
||||||
|
AC_DEFINE(_INTL_REDIRECT_MACROS, 1,
|
||||||
|
[Define if functions cannot be renamed by asm labels])
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
@ -102,6 +102,7 @@ AC_FUNC_MMAP
|
|||||||
dnl
|
dnl
|
||||||
dnl Internationalization
|
dnl Internationalization
|
||||||
dnl
|
dnl
|
||||||
|
MC_ASM_LABELS
|
||||||
AM_GNU_GETTEXT
|
AM_GNU_GETTEXT
|
||||||
AM_GNU_GETTEXT_VERSION(0.11.5)
|
AM_GNU_GETTEXT_VERSION(0.11.5)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user