Mercurial > hg > octave-lyh > gnulib-hg
changeset 8666:7ff0dd9e3d4f
Better guessing in gl_PRINTF_DIRECTIVE_F when cross-compiling.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 12 Apr 2007 00:10:40 +0000 |
parents | c18ed5db8600 |
children | ff93f259165e |
files | m4/printf.m4 |
diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -192,10 +192,23 @@ return 0; }], [gl_cv_func_printf_directive_f=yes], [gl_cv_func_printf_directive_f=no], [ +changequote(,)dnl case "$host_os" in + # Guess yes on glibc systems. + *-gnu*) gl_cv_func_printf_directive_f="guessing yes";; + # Guess yes on FreeBSD >= 6. + freebsd[1-5]*) gl_cv_func_printf_directive_f="guessing no";; + freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";; + # Guess yes on MacOS X >= 10.3. + darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";; + darwin*) gl_cv_func_printf_directive_f="guessing yes";; + # Guess yes on Solaris >= 2.10. + solaris2.[0-9]*) gl_cv_func_printf_directive_f="guessing no";; + solaris*) gl_cv_func_printf_directive_f="guessing yes";; # If we don't know, assume the worst. *) gl_cv_func_printf_directive_f="guessing no";; esac +changequote([,])dnl ]) ]) ]) @@ -505,6 +518,6 @@ dnl OSF/1 5.1 # # # . . . . # . dnl OSF/1 4.0d # # # . . # # # # dnl NetBSD 4.0 . ? ? . . . . . ? -dnl NetBSD 3.0 . # ? . # . . . . -dnl BeOS # # ? . # . . . . +dnl NetBSD 3.0 . # # . # . . . . +dnl BeOS # # # . # . . . . dnl mingw # # # . # . # # #