~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/printf.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# printf.m4 serial 43
2
 
dnl Copyright (C) 2003, 2007-2011 Free Software Foundation, Inc.
 
1
# printf.m4 serial 50
 
2
dnl Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
63
63
                                 # Guess yes on FreeBSD >= 5.
64
64
           freebsd[1-4]*)        gl_cv_func_printf_sizes_c99="guessing no";;
65
65
           freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
66
 
                                 # Guess yes on MacOS X >= 10.3.
 
66
                                 # Guess yes on Mac OS X >= 10.3.
67
67
           darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
68
68
           darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
69
69
                                 # Guess yes on OpenBSD >= 3.9.
178
178
int main ()
179
179
{
180
180
  int result = 0;
181
 
  if (sprintf (buf, "%f", 1.0 / 0.0) < 0
 
181
  if (sprintf (buf, "%f", 1.0 / zero) < 0
182
182
      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
183
183
    result |= 1;
184
 
  if (sprintf (buf, "%f", -1.0 / 0.0) < 0
 
184
  if (sprintf (buf, "%f", -1.0 / zero) < 0
185
185
      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
186
186
    result |= 1;
187
187
  if (sprintf (buf, "%f", zero / zero) < 0
188
188
      || !strisnan (buf, 0, strlen (buf)))
189
189
    result |= 2;
190
 
  if (sprintf (buf, "%e", 1.0 / 0.0) < 0
 
190
  if (sprintf (buf, "%e", 1.0 / zero) < 0
191
191
      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
192
192
    result |= 4;
193
 
  if (sprintf (buf, "%e", -1.0 / 0.0) < 0
 
193
  if (sprintf (buf, "%e", -1.0 / zero) < 0
194
194
      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
195
195
    result |= 4;
196
196
  if (sprintf (buf, "%e", zero / zero) < 0
197
197
      || !strisnan (buf, 0, strlen (buf)))
198
198
    result |= 8;
199
 
  if (sprintf (buf, "%g", 1.0 / 0.0) < 0
 
199
  if (sprintf (buf, "%g", 1.0 / zero) < 0
200
200
      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
201
201
    result |= 16;
202
 
  if (sprintf (buf, "%g", -1.0 / 0.0) < 0
 
202
  if (sprintf (buf, "%g", -1.0 / zero) < 0
203
203
      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
204
204
    result |= 16;
205
205
  if (sprintf (buf, "%g", zero / zero) < 0
222
222
                                 # Guess yes on FreeBSD >= 6.
223
223
           freebsd[1-5]*)        gl_cv_func_printf_infinite="guessing no";;
224
224
           freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
225
 
                                 # Guess yes on MacOS X >= 10.3.
 
225
                                 # Guess yes on Mac OS X >= 10.3.
226
226
           darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
227
227
           darwin*)              gl_cv_func_printf_infinite="guessing yes";;
228
228
                                 # Guess yes on HP-UX >= 11.
251
251
  AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
252
252
  AC_REQUIRE([AC_PROG_CC])
253
253
  AC_REQUIRE([gl_BIGENDIAN])
 
254
  AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
254
255
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
255
256
  dnl The user can set or unset the variable gl_printf_safe to indicate
256
257
  dnl that he wishes a safe handling of non-IEEE-754 'long double' values.
294
295
{
295
296
  int result = 0;
296
297
  nocrash_init();
297
 
  if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0
 
298
  if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
298
299
      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
299
300
    result |= 1;
300
 
  if (sprintf (buf, "%Lf", -1.0L / 0.0L) < 0
 
301
  if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
301
302
      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
302
303
    result |= 1;
303
304
  if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
304
305
      || !strisnan (buf, 0, strlen (buf)))
305
306
    result |= 1;
306
 
  if (sprintf (buf, "%Le", 1.0L / 0.0L) < 0
 
307
  if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
307
308
      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
308
309
    result |= 1;
309
 
  if (sprintf (buf, "%Le", -1.0L / 0.0L) < 0
 
310
  if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
310
311
      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
311
312
    result |= 1;
312
313
  if (sprintf (buf, "%Le", zeroL / zeroL) < 0
313
314
      || !strisnan (buf, 0, strlen (buf)))
314
315
    result |= 1;
315
 
  if (sprintf (buf, "%Lg", 1.0L / 0.0L) < 0
 
316
  if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
316
317
      || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
317
318
    result |= 1;
318
 
  if (sprintf (buf, "%Lg", -1.0L / 0.0L) < 0
 
319
  if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
319
320
      || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
320
321
    result |= 1;
321
322
  if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
322
323
      || !strisnan (buf, 0, strlen (buf)))
323
324
    result |= 1;
324
 
#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
 
325
#if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
325
326
/* Representation of an 80-bit 'long double' as an initializer for a sequence
326
327
   of 'unsigned int' words.  */
327
328
# ifdef WORDS_BIGENDIAN
478
479
#include <stdio.h>
479
480
#include <string.h>
480
481
static char buf[100];
 
482
static double zero = 0.0;
481
483
int main ()
482
484
{
483
485
  int result = 0;
502
504
    result |= 4;
503
505
  /* This catches a FreeBSD 6.1 bug.  See
504
506
     <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00107.html> */
505
 
  if (sprintf (buf, "%010a %d", 1.0 / 0.0, 33, 44, 55) < 0
 
507
  if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
506
508
      || buf[0] == '0')
507
509
    result |= 8;
508
 
  /* This catches a MacOS X 10.3.9 (Darwin 7.9) bug.  */
 
510
  /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug.  */
509
511
  if (sprintf (buf, "%.1a", 1.999) < 0
510
512
      || (strcmp (buf, "0x1.0p+1") != 0
511
513
          && strcmp (buf, "0x2.0p+0") != 0
512
514
          && strcmp (buf, "0x4.0p-1") != 0
513
515
          && strcmp (buf, "0x8.0p-2") != 0))
514
516
    result |= 16;
515
 
  /* This catches the same MacOS X 10.3.9 (Darwin 7.9) bug and also a
 
517
  /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
516
518
     glibc 2.4 bug <http://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
517
519
  if (sprintf (buf, "%.1La", 1.999L) < 0
518
520
      || (strcmp (buf, "0x1.0p+1") != 0
562
564
#include <stdio.h>
563
565
#include <string.h>
564
566
static char buf[100];
 
567
static double zero = 0.0;
565
568
int main ()
566
569
{
567
570
  int result = 0;
568
571
  if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
569
572
      || strcmp (buf, "1234567.000000 33") != 0)
570
573
    result |= 1;
571
 
  if (sprintf (buf, "%F", 1.0 / 0.0) < 0
 
574
  if (sprintf (buf, "%F", 1.0 / zero) < 0
572
575
      || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
573
576
    result |= 2;
574
577
  /* This catches a Cygwin 1.5.x bug.  */
587
590
                                 # Guess yes on FreeBSD >= 6.
588
591
           freebsd[1-5]*)        gl_cv_func_printf_directive_f="guessing no";;
589
592
           freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
590
 
                                 # Guess yes on MacOS X >= 10.3.
 
593
                                 # Guess yes on Mac OS X >= 10.3.
591
594
           darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
592
595
           darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
593
596
                                 # Guess yes on Solaris >= 2.10.
615
618
      AC_RUN_IFELSE(
616
619
        [AC_LANG_SOURCE([[
617
620
#include <stdio.h>
 
621
#include <stdlib.h>
618
622
#include <string.h>
 
623
#ifdef _MSC_VER
 
624
/* See page about "Parameter Validation" on msdn.microsoft.com.  */
 
625
static void cdecl
 
626
invalid_parameter_handler (const wchar_t *expression,
 
627
                           const wchar_t *function,
 
628
                           const wchar_t *file, unsigned int line,
 
629
                           uintptr_t dummy)
 
630
{
 
631
  exit (1);
 
632
}
 
633
#endif
619
634
static char fmtstring[10];
620
635
static char buf[100];
621
636
int main ()
622
637
{
623
638
  int count = -1;
 
639
#ifdef _MSC_VER
 
640
  _set_invalid_parameter_handler (invalid_parameter_handler);
 
641
#endif
624
642
  /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
625
643
     support %n in format strings in read-only memory but not in writable
626
644
     memory.  */
636
654
        [
637
655
changequote(,)dnl
638
656
         case "$host_os" in
639
 
           *)     gl_cv_func_printf_directive_n="guessing yes";;
 
657
           mingw*) gl_cv_func_printf_directive_n="guessing no";;
 
658
           *)      gl_cv_func_printf_directive_n="guessing yes";;
640
659
         esac
641
660
changequote([,])dnl
642
661
        ])
862
881
#include <stdio.h>
863
882
#include <string.h>
864
883
static char buf[100];
 
884
static double zero = 0.0;
865
885
int main ()
866
886
{
867
 
  if (sprintf (buf, "%010f", 1.0 / 0.0, 33, 44, 55) < 0
 
887
  if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
868
888
      || (strcmp (buf, "       inf") != 0
869
889
          && strcmp (buf, "  infinity") != 0))
870
890
    return 1;
932
952
        [
933
953
changequote(,)dnl
934
954
         case "$host_os" in
935
 
           # Guess no only on Solaris, native Win32, and BeOS systems.
 
955
           # Guess no only on Solaris, native Windows, and BeOS systems.
936
956
           solaris*)     gl_cv_func_printf_precision="guessing no" ;;
937
957
           mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
938
958
           beos*)        gl_cv_func_printf_precision="guessing no" ;;
1008
1028
changequote([,])dnl
1009
1029
          ])])
1010
1030
          if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
1011
 
            (./conftest
 
1031
            (./conftest 2>&AS_MESSAGE_LOG_FD
1012
1032
             result=$?
 
1033
             _AS_ECHO_LOG([\$? = $result])
1013
1034
             if test $result != 0 && test $result != 77; then result=1; fi
1014
1035
             exit $result
1015
1036
            ) >/dev/null 2>/dev/null
1023
1044
          fi
1024
1045
          rm -fr conftest*
1025
1046
        else
1026
 
          dnl A universal build on Apple MacOS X platforms.
 
1047
          dnl A universal build on Apple Mac OS X platforms.
1027
1048
          dnl The result would be 'no' in 32-bit mode and 'yes' in 64-bit mode.
1028
1049
          dnl But we need a configuration result that is valid in both modes.
1029
1050
          gl_cv_func_printf_enomem="guessing no"
1076
1097
[
1077
1098
  AC_REQUIRE([AC_PROG_CC])
1078
1099
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
1100
  AC_REQUIRE([gl_SNPRINTF_PRESENCE])
1079
1101
  AC_CACHE_CHECK([whether snprintf truncates the result as in C99],
1080
1102
    [gl_cv_func_snprintf_truncation_c99],
1081
1103
    [
1083
1105
        [AC_LANG_SOURCE([[
1084
1106
#include <stdio.h>
1085
1107
#include <string.h>
 
1108
#if HAVE_SNPRINTF
 
1109
# define my_snprintf snprintf
 
1110
#else
 
1111
# include <stdarg.h>
 
1112
static int my_snprintf (char *buf, int size, const char *format, ...)
 
1113
{
 
1114
  va_list args;
 
1115
  int ret;
 
1116
  va_start (args, format);
 
1117
  ret = vsnprintf (buf, size, format, args);
 
1118
  va_end (args);
 
1119
  return ret;
 
1120
}
 
1121
#endif
1086
1122
static char buf[100];
1087
1123
int main ()
1088
1124
{
1089
1125
  strcpy (buf, "ABCDEF");
1090
 
  snprintf (buf, 3, "%d %d", 4567, 89);
 
1126
  my_snprintf (buf, 3, "%d %d", 4567, 89);
1091
1127
  if (memcmp (buf, "45\0DEF", 6) != 0)
1092
1128
    return 1;
1093
1129
  return 0;
1102
1138
                                 # Guess yes on FreeBSD >= 5.
1103
1139
           freebsd[1-4]*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
1104
1140
           freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
1105
 
                                 # Guess yes on MacOS X >= 10.3.
 
1141
                                 # Guess yes on Mac OS X >= 10.3.
1106
1142
           darwin[1-6].*)        gl_cv_func_snprintf_truncation_c99="guessing no";;
1107
1143
           darwin*)              gl_cv_func_snprintf_truncation_c99="guessing yes";;
1108
1144
                                 # Guess yes on OpenBSD >= 3.9.
1157
1193
[
1158
1194
  AC_REQUIRE([AC_PROG_CC])
1159
1195
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
1196
  AC_REQUIRE([gl_SNPRINTF_PRESENCE])
1160
1197
  AC_CACHE_CHECK([whether snprintf returns a byte count as in C99],
1161
1198
    [gl_cv_func_snprintf_retval_c99],
1162
1199
    [
1164
1201
        [AC_LANG_SOURCE([[
1165
1202
#include <stdio.h>
1166
1203
#include <string.h>
 
1204
#if HAVE_SNPRINTF
 
1205
# define my_snprintf snprintf
 
1206
#else
 
1207
# include <stdarg.h>
 
1208
static int my_snprintf (char *buf, int size, const char *format, ...)
 
1209
{
 
1210
  va_list args;
 
1211
  int ret;
 
1212
  va_start (args, format);
 
1213
  ret = vsnprintf (buf, size, format, args);
 
1214
  va_end (args);
 
1215
  return ret;
 
1216
}
 
1217
#endif
1167
1218
static char buf[100];
1168
1219
int main ()
1169
1220
{
1170
1221
  strcpy (buf, "ABCDEF");
1171
 
  if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
 
1222
  if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
1172
1223
    return 1;
1173
 
  if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
 
1224
  if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
1174
1225
    return 2;
1175
 
  if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
 
1226
  if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
1176
1227
    return 3;
1177
1228
  return 0;
1178
1229
}]])],
1186
1237
                                 # Guess yes on FreeBSD >= 5.
1187
1238
           freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
1188
1239
           freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
1189
 
                                 # Guess yes on MacOS X >= 10.3.
 
1240
                                 # Guess yes on Mac OS X >= 10.3.
1190
1241
           darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
1191
1242
           darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
1192
1243
                                 # Guess yes on OpenBSD >= 3.9.
1221
1272
[
1222
1273
  AC_REQUIRE([AC_PROG_CC])
1223
1274
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
 
1275
  AC_REQUIRE([gl_SNPRINTF_PRESENCE])
1224
1276
  AC_CACHE_CHECK([whether snprintf fully supports the 'n' directive],
1225
1277
    [gl_cv_func_snprintf_directive_n],
1226
1278
    [
1228
1280
        [AC_LANG_SOURCE([[
1229
1281
#include <stdio.h>
1230
1282
#include <string.h>
 
1283
#if HAVE_SNPRINTF
 
1284
# define my_snprintf snprintf
 
1285
#else
 
1286
# include <stdarg.h>
 
1287
static int my_snprintf (char *buf, int size, const char *format, ...)
 
1288
{
 
1289
  va_list args;
 
1290
  int ret;
 
1291
  va_start (args, format);
 
1292
  ret = vsnprintf (buf, size, format, args);
 
1293
  va_end (args);
 
1294
  return ret;
 
1295
}
 
1296
#endif
1231
1297
static char fmtstring[10];
1232
1298
static char buf[100];
1233
1299
int main ()
1237
1303
     support %n in format strings in read-only memory but not in writable
1238
1304
     memory.  */
1239
1305
  strcpy (fmtstring, "%d %n");
1240
 
  snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
 
1306
  my_snprintf (buf, 4, fmtstring, 12345, &count, 33, 44, 55);
1241
1307
  if (count != 6)
1242
1308
    return 1;
1243
1309
  return 0;
1252
1318
                                 # Guess yes on FreeBSD >= 5.
1253
1319
           freebsd[1-4]*)        gl_cv_func_snprintf_directive_n="guessing no";;
1254
1320
           freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
1255
 
                                 # Guess yes on MacOS X >= 10.3.
 
1321
                                 # Guess yes on Mac OS X >= 10.3.
1256
1322
           darwin[1-6].*)        gl_cv_func_snprintf_directive_n="guessing no";;
1257
1323
           darwin*)              gl_cv_func_snprintf_directive_n="guessing yes";;
1258
1324
                                 # Guess yes on Solaris >= 2.6.
1289
1355
AC_DEFUN([gl_SNPRINTF_SIZE1],
1290
1356
[
1291
1357
  AC_REQUIRE([AC_PROG_CC])
 
1358
  AC_REQUIRE([gl_SNPRINTF_PRESENCE])
1292
1359
  AC_CACHE_CHECK([whether snprintf respects a size of 1],
1293
1360
    [gl_cv_func_snprintf_size1],
1294
1361
    [
1295
1362
      AC_RUN_IFELSE(
1296
1363
        [AC_LANG_SOURCE([[
1297
1364
#include <stdio.h>
 
1365
#if HAVE_SNPRINTF
 
1366
# define my_snprintf snprintf
 
1367
#else
 
1368
# include <stdarg.h>
 
1369
static int my_snprintf (char *buf, int size, const char *format, ...)
 
1370
{
 
1371
  va_list args;
 
1372
  int ret;
 
1373
  va_start (args, format);
 
1374
  ret = vsnprintf (buf, size, format, args);
 
1375
  va_end (args);
 
1376
  return ret;
 
1377
}
 
1378
#endif
1298
1379
int main()
1299
1380
{
1300
1381
  static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
1301
 
  snprintf (buf, 1, "%d", 12345);
 
1382
  my_snprintf (buf, 1, "%d", 12345);
1302
1383
  return buf[1] != 'E';
1303
1384
}]])],
1304
1385
        [gl_cv_func_snprintf_size1=yes],
1379
1460
                                 # Guess yes on FreeBSD >= 5.
1380
1461
           freebsd[1-4]*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
1381
1462
           freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
1382
 
                                 # Guess yes on MacOS X >= 10.3.
 
1463
                                 # Guess yes on Mac OS X >= 10.3.
1383
1464
           darwin[1-6].*)        gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
1384
1465
           darwin*)              gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
1385
1466
                                 # Guess yes on Cygwin.
1459
1540
dnl   glibc 2.5                      .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
1460
1541
dnl   glibc 2.3.6                    .  .  .  .  #  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
1461
1542
dnl   FreeBSD 5.4, 6.1               .  .  .  .  #  .  .  .  .  .  .  #  .  #  .  .  .  .  .  .
1462
 
dnl   MacOS X 10.5.8                 .  .  .  #  #  .  .  .  .  .  .  #  .  .  .  .  .  .  .  .
1463
 
dnl   MacOS X 10.3.9                 .  .  .  .  #  .  .  .  .  .  .  #  .  #  .  .  .  .  .  .
 
1543
dnl   Mac OS X 10.5.8                .  .  .  #  #  .  .  .  .  .  .  #  .  .  .  .  .  .  .  .
 
1544
dnl   Mac OS X 10.3.9                .  .  .  .  #  .  .  .  .  .  .  #  .  #  .  .  .  .  .  .
1464
1545
dnl   OpenBSD 3.9, 4.0               .  .  #  #  #  #  .  #  .  #  .  #  .  #  .  .  .  .  .  .
1465
1546
dnl   Cygwin 1.7.0 (2009)            .  .  .  #  .  .  .  ?  .  .  .  .  .  ?  .  .  .  .  .  .
1466
1547
dnl   Cygwin 1.5.25 (2008)           .  .  .  #  #  .  .  #  .  .  .  .  .  #  .  .  .  .  .  .
1467
1548
dnl   Cygwin 1.5.19 (2006)           #  .  .  #  #  #  .  #  .  #  .  #  #  #  .  .  .  .  .  .
1468
 
dnl   Solaris 11 2010-11             .  .  #  #  #  .  .  #  .  .  .  #  .  .  .  .  .  .  .  .
 
1549
dnl   Solaris 11 2011-11             .  .  #  #  #  .  .  #  .  .  .  #  .  .  .  .  .  .  .  .
1469
1550
dnl   Solaris 10                     .  .  #  #  #  .  .  #  .  .  .  #  #  .  .  .  .  .  .  .
1470
1551
dnl   Solaris 2.6 ... 9              #  .  #  #  #  #  .  #  .  .  .  #  #  .  .  .  #  .  .  .
1471
1552
dnl   Solaris 2.5.1                  #  .  #  #  #  #  .  #  .  .  .  #  .  .  #  #  #  #  #  #
1484
1565
dnl   Haiku                          .  .  .  #  #  #  .  #  .  .  .  .  .  ?  .  .  ?  .  .  .
1485
1566
dnl   BeOS                           #  #  .  #  #  #  .  ?  #  .  ?  .  #  ?  .  .  ?  .  .  .
1486
1567
dnl   old mingw / msvcrt             #  #  #  #  #  #  .  .  #  #  .  #  #  ?  .  #  #  #  .  .
 
1568
dnl   MSVC 9                         #  #  #  #  #  #  #  .  #  #  .  #  #  ?  #  #  #  #  .  .
1487
1569
dnl   mingw 2009-2011                .  #  .  #  .  .  .  .  #  #  .  .  .  ?  .  .  .  .  .  .
1488
1570
dnl   mingw-w64 2011                 #  #  #  #  #  #  .  .  #  #  .  #  #  ?  .  #  #  #  .  .