Mercurial > hg > octave-shane > gnulib-hg
comparison m4/printf.m4 @ 10783:7f50373172eb
Guess that printf on Haiku survives out-of-memory conditions.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 10 Nov 2008 13:30:35 +0100 |
parents | 0471a8660b70 |
children | e1a3422c4e90 |
comparison
equal
deleted
inserted
replaced
10782:f65529c86553 | 10783:7f50373172eb |
---|---|
1 # printf.m4 serial 23 | 1 # printf.m4 serial 24 |
2 dnl Copyright (C) 2003, 2007-2008 Free Software Foundation, Inc. | 2 dnl Copyright (C) 2003, 2007-2008 Free Software Foundation, Inc. |
3 dnl This file is free software; the Free Software Foundation | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | 4 dnl gives unlimited permission to copy and/or distribute it, |
5 dnl with or without modifications, as long as this notice is preserved. | 5 dnl with or without modifications, as long as this notice is preserved. |
6 | 6 |
813 AC_REQUIRE([AC_PROG_CC]) | 813 AC_REQUIRE([AC_PROG_CC]) |
814 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles | 814 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles |
815 AC_CACHE_CHECK([whether printf survives out-of-memory conditions], | 815 AC_CACHE_CHECK([whether printf survives out-of-memory conditions], |
816 [gl_cv_func_printf_enomem], | 816 [gl_cv_func_printf_enomem], |
817 [ | 817 [ |
818 gl_cv_func_printf_enomem="guessing no" | |
818 if test "$cross_compiling" = no; then | 819 if test "$cross_compiling" = no; then |
819 AC_LANG_CONFTEST([AC_LANG_SOURCE([ | 820 AC_LANG_CONFTEST([AC_LANG_SOURCE([ |
820 ]GL_NOCRASH[ | 821 ]GL_NOCRASH[ |
821 changequote(,)dnl | 822 changequote(,)dnl |
822 #include <stdio.h> | 823 #include <stdio.h> |
878 esac | 879 esac |
879 else | 880 else |
880 gl_cv_func_printf_enomem="guessing no" | 881 gl_cv_func_printf_enomem="guessing no" |
881 fi | 882 fi |
882 rm -fr conftest* | 883 rm -fr conftest* |
883 else | 884 fi |
885 if test "$gl_cv_func_printf_enomem" = "guessing no"; then | |
884 changequote(,)dnl | 886 changequote(,)dnl |
885 case "$host_os" in | 887 case "$host_os" in |
886 # Guess yes on glibc systems. | 888 # Guess yes on glibc systems. |
887 *-gnu*) gl_cv_func_printf_enomem="guessing yes";; | 889 *-gnu*) gl_cv_func_printf_enomem="guessing yes";; |
888 # Guess yes on Solaris. | 890 # Guess yes on Solaris. |
899 irix*) gl_cv_func_printf_enomem="guessing yes";; | 901 irix*) gl_cv_func_printf_enomem="guessing yes";; |
900 # Guess yes on OSF/1. | 902 # Guess yes on OSF/1. |
901 osf*) gl_cv_func_printf_enomem="guessing yes";; | 903 osf*) gl_cv_func_printf_enomem="guessing yes";; |
902 # Guess yes on BeOS. | 904 # Guess yes on BeOS. |
903 beos*) gl_cv_func_printf_enomem="guessing yes";; | 905 beos*) gl_cv_func_printf_enomem="guessing yes";; |
906 # Guess yes on Haiku. | |
907 haiku*) gl_cv_func_printf_enomem="guessing yes";; | |
904 # If we don't know, assume the worst. | 908 # If we don't know, assume the worst. |
905 *) gl_cv_func_printf_enomem="guessing no";; | 909 *) gl_cv_func_printf_enomem="guessing no";; |
906 esac | 910 esac |
907 changequote([,])dnl | 911 changequote([,])dnl |
908 fi | 912 fi |
1303 dnl IRIX 6.5 # . # # # # . . . . # . . . . # . . . | 1307 dnl IRIX 6.5 # . # # # # . . . . # . . . . # . . . |
1304 dnl OSF/1 5.1 # . # # # # . . . . # . . . . # . . # | 1308 dnl OSF/1 5.1 # . # # # # . . . . # . . . . # . . # |
1305 dnl OSF/1 4.0d # . # # # # . . . . # . . # # # # # # | 1309 dnl OSF/1 4.0d # . # # # # . . . . # . . # # # # # # |
1306 dnl NetBSD 4.0 . ? ? ? ? ? . . ? ? ? ? ? . . . ? ? ? | 1310 dnl NetBSD 4.0 . ? ? ? ? ? . . ? ? ? ? ? . . . ? ? ? |
1307 dnl NetBSD 3.0 . . . . # # . # # ? # . # . . . . . . | 1311 dnl NetBSD 3.0 . . . . # # . # # ? # . # . . . . . . |
1312 dnl Haiku . . . # # # . . . . . . ? . . . . . . | |
1308 dnl BeOS # # . # # # . # . ? . # ? . . . . . . | 1313 dnl BeOS # # . # # # . # . ? . # ? . . . . . . |
1309 dnl mingw # # # # # # . # # . # # ? . # # # . . | 1314 dnl mingw # # # # # # . # # . # # ? . # # # . . |