annotate acinclude.m4 @ 626:fe0f94cffc3b

2004-11-21 Brian Masney <masneyb@gftp.org> * de.po - updated German translation (from Bernd Leibing <bernd.leibing@kiz.uni-ulm.de>)
author masneyb
date Sun, 21 Nov 2004 14:13:00 +0000
parents bccfdbfaac00
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
1 # serial 1
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
2
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
3 dnl This function is derived from
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
4 dnl http://savannah.gnu.org/cgi-bin/viewcvs/gcc/gcc/libjava/configure.in?rev=1.142.2.7&content-type=text/vnd.viewcvs-markup
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
5
503
eb6dafc07f42 2004-7-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 502
diff changeset
6 AC_DEFUN([AC_TYPE_SOCKLEN_T],
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
7 [AC_MSG_CHECKING([for socklen_t in sys/socket.h])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
8 AC_TRY_COMPILE([#define _POSIX_PII_SOCKET
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
9 #include <sys/types.h>
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
10 #include <sys/socket.h>], [socklen_t x = 5;],
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
11 [AC_MSG_RESULT(yes)],
207
cf4098008615 2003-7-1 Brian Masney <masneyb@gftp.org>
masneyb
parents: 202
diff changeset
12 [AC_DEFINE(socklen_t,int,Need to define socklen_t as an int because it should be in sys/socket.h)
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
13 AC_MSG_RESULT(no)])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
14 ])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
15
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
16 # serial 1
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
17
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
18 dnl This macro checks to see if the printf family of functions supports the
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
19 dnl %'ld format.
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
20
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
21 dnl Brian Masney <masneyb@gftp.org>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
22
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
23 dnl
503
eb6dafc07f42 2004-7-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 502
diff changeset
24 AC_DEFUN([AC_INTL_PRINTF],
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
25 [AC_MSG_CHECKING([whether the printf family of functions supports %'ld])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
26 AC_TRY_RUN([#include <stdio.h>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
27 #include <string.h>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
28
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
29 int main(void) {
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
30 char buf[20];
532
bccfdbfaac00 2004-8-17 Brian Masney <masneyb@gftp.org>
masneyb
parents: 503
diff changeset
31 #if defined (_LARGEFILE_SOURCE)
bccfdbfaac00 2004-8-17 Brian Masney <masneyb@gftp.org>
masneyb
parents: 503
diff changeset
32 sprintf (buf, "%'lld", (long) 1);
bccfdbfaac00 2004-8-17 Brian Masney <masneyb@gftp.org>
masneyb
parents: 503
diff changeset
33 #else
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
34 sprintf (buf, "%'ld", (long) 1);
532
bccfdbfaac00 2004-8-17 Brian Masney <masneyb@gftp.org>
masneyb
parents: 503
diff changeset
35 #endif
330
532eb171d5c2 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 328
diff changeset
36 if (strchr (buf, '1') == NULL)
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
37 return (1);
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
38 return (0);
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
39 }],
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
40 [AC_DEFINE(HAVE_INTL_PRINTF,1,Define if printf supports %'ld)
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
41 AC_MSG_RESULT(yes)],
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
42 [AC_MSG_RESULT(no)])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
43 ])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
44
478
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
45 # serial 1
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
46
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
47 dnl Brian Masney <masneyb@gftp.org>
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
48
503
eb6dafc07f42 2004-7-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 502
diff changeset
49 AC_DEFUN([AC_TYPE_INTPTR_T],
478
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
50 [AC_MSG_CHECKING([for intptr_t in stdint.h])
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
51 AC_TRY_COMPILE([#include <stdint.h>],
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
52 [intptr_t i = 0;],
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
53 [AC_MSG_RESULT(yes)],
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
54 [AC_DEFINE(intptr_t,long,Need to define intptr_t as a long because it should be in stdint.h)
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
55 AC_MSG_RESULT(no)])
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
56 ])
97fd5eb34be0 2004-6-6 Brian Masney <masneyb@gftp.org>
masneyb
parents: 330
diff changeset
57