Author: yoann
Date: 2009-04-22 11:43:14 +0200 (Wed, 22 Apr 2009)
New Revision: 11157
Modified:
libprelude/trunk/libmissing/m4/btowc.m4
libprelude/trunk/libmissing/m4/mbrtowc.m4
libprelude/trunk/libmissing/m4/wcrtomb.m4
libprelude/trunk/libmissing/m4/wctob.m4
Log:
Cross compilation fixes.
Modified: libprelude/trunk/libmissing/m4/btowc.m4
===================================================================
--- libprelude/trunk/libmissing/m4/btowc.m4 2009-04-22 09:43:10 UTC (rev 11156)
+++ libprelude/trunk/libmissing/m4/btowc.m4 2009-04-22 09:43:14 UTC (rev 11157)
@@ -30,7 +30,7 @@
*) gl_cv_func_btowc_eof="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_FR != none; then
+ if test $LOCALE_FR != none && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <stdio.h>
Modified: libprelude/trunk/libmissing/m4/mbrtowc.m4
===================================================================
--- libprelude/trunk/libmissing/m4/mbrtowc.m4 2009-04-22 09:43:10 UTC (rev 11156)
+++ libprelude/trunk/libmissing/m4/mbrtowc.m4 2009-04-22 09:43:14 UTC (rev 11157)
@@ -105,7 +105,7 @@
*) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_JA != none; then
+ if test $LOCALE_JA != none && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <string.h>
@@ -153,7 +153,7 @@
*) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_ZH_CN != none; then
+ if test $LOCALE_ZH_CN != none && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <string.h>
@@ -204,7 +204,7 @@
*) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_FR_UTF8 != none; then
+ if test $LOCALE_FR_UTF8 != none && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <string.h>
@@ -254,7 +254,7 @@
*) gl_cv_func_mbrtowc_retval="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
+ if (test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none) && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <string.h>
@@ -321,7 +321,7 @@
*) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_ZH_CN != none; then
+ if test $LOCALE_ZH_CN != none && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <string.h>
Modified: libprelude/trunk/libmissing/m4/wcrtomb.m4
===================================================================
--- libprelude/trunk/libmissing/m4/wcrtomb.m4 2009-04-22 09:43:10 UTC (rev 11156)
+++ libprelude/trunk/libmissing/m4/wcrtomb.m4 2009-04-22 09:43:14 UTC (rev 11157)
@@ -35,7 +35,7 @@
*) gl_cv_func_wcrtomb_retval="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
+ if (test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none) && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <stdio.h>
Modified: libprelude/trunk/libmissing/m4/wctob.m4
===================================================================
--- libprelude/trunk/libmissing/m4/wctob.m4 2009-04-22 09:43:10 UTC (rev 11156)
+++ libprelude/trunk/libmissing/m4/wctob.m4 2009-04-22 09:43:14 UTC (rev 11157)
@@ -34,7 +34,7 @@
*) gl_cv_func_wctob_works="guessing yes" ;;
esac
changequote([,])dnl
- if test $LOCALE_FR != none; then
+ if test $LOCALE_FR != none && test $cross_compiling = no; then
AC_TRY_RUN([
#include <locale.h>
#include <string.h>
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.