annotate acinclude.m4 @ 355:60d3da6ab336

2003-1-5 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.h src/gtk/gtkui.c - when spawning a thread, make sure that the GUI will be updated properly as soon as the thread is finished. * src/uicommon/gftpuicallbacks.c src/uicommon/gftpui.h - added gftpui_common_run_ls() * src/uicommon/gftpui.c (gftpui_common_cmd_ls) src/gtk/transfer.c (ftp_list_files) - converted these functions over to use gftpui_common_run_ls()
author masneyb
date Tue, 06 Jan 2004 01:44:09 +0000
parents 532eb171d5c2
children 97fd5eb34be0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
113
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
1 #serial 4
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
2
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
3 dnl By default, many hosts won't let programs access large files;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
4 dnl one must use special compiler options to get large-file access to work.
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
5 dnl For more details about this brain damage please see:
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
6 dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
7
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
8 dnl Written by Paul Eggert <eggert@twinsun.com>.
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
9
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
10 dnl Internal subroutine of AC_SYS_LARGEFILE.
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
11 dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
12 AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
13 [AC_CACHE_CHECK([for $1 value to request large file support],
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
14 ac_cv_sys_largefile_$1,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
15 [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || {
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
16 ac_cv_sys_largefile_$1=no
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
17 ifelse($1, CFLAGS,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
18 [case "$host_os" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
19 # IRIX 6.2 and later require cc -n32.
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
20 changequote(, )dnl
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
21 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
22 changequote([, ])dnl
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
23 if test "$GCC" != yes; then
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
24 ac_cv_sys_largefile_CFLAGS=-n32
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
25 fi
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
26 ac_save_CC="$CC"
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
27 CC="$CC $ac_cv_sys_largefile_CFLAGS"
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
28 AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
29 CC="$ac_save_CC"
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
30 esac])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
31 }])])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
32
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
33 dnl Internal subroutine of AC_SYS_LARGEFILE.
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
34 dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
35 AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
36 [case $2 in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
37 no) ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
38 ?*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
39 case "[$]$1" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
40 '') $1=$2 ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
41 *) $1=[$]$1' '$2 ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
42 esac ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
43 esac])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
44
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
45 dnl Internal subroutine of AC_SYS_LARGEFILE.
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
46 dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
47 AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
48 [AC_CACHE_CHECK([for $1], $2,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
49 [$2=no
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
50 changequote(, )dnl
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
51 $4
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
52 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
53 case "$ac_flag" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
54 -D$1)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
55 $2=1 ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
56 -D$1=*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
57 $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
58 esac
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
59 done
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
60 changequote([, ])dnl
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
61 ])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
62 if test "[$]$2" != no; then
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
63 AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
64 fi])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
65
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
66 AC_DEFUN(AC_SYS_LARGEFILE,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
67 [AC_REQUIRE([AC_CANONICAL_HOST])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
68 AC_ARG_ENABLE(largefile,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
69 [ --disable-largefile omit support for large files])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
70 if test "$enable_largefile" != no; then
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
71 AC_CHECK_TOOL(GETCONF, getconf)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
72 AC_SYS_LARGEFILE_FLAGS(CFLAGS)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
73 AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
74 AC_SYS_LARGEFILE_FLAGS(LIBS)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
75
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
76 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
77 case "$ac_flag" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
78 no) ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
79 -D_FILE_OFFSET_BITS=*) ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
80 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
81 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
82 -D?* | -I?*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
83 AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
84 *)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
85 AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
86 esac
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
87 done
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
88 AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
89 AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
90 AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
91 ac_cv_sys_file_offset_bits,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
92 [Number of bits in a file offset, on hosts where this is settable.]
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
93 [case "$host_os" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
94 # HP-UX 10.20 and later
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
95 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
96 ac_cv_sys_file_offset_bits=64 ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
97 esac])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
98 AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
99 ac_cv_sys_largefile_source,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
100 [Define to make fseeko etc. visible, on some hosts.],
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
101 [case "$host_os" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
102 # HP-UX 10.20 and later
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
103 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
104 ac_cv_sys_largefile_source=1 ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
105 esac])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
106 AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
107 ac_cv_sys_large_files,
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
108 [Define for large files, on AIX-style hosts.],
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
109 [case "$host_os" in
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
110 # AIX 4.2 and later
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
111 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
112 ac_cv_sys_large_files=1 ;;
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
113 esac])
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
114 fi
b83715e9535c 2003-2-23 Brian Masney <masneyb@gftp.org>
masneyb
parents:
diff changeset
115 ])
202
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
116
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
117 # serial 1
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
118
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
119 dnl This function is derived from
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
120 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
121
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
122 AC_DEFUN(AC_TYPE_SOCKLEN_T,
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
123 [AC_MSG_CHECKING([for socklen_t in sys/socket.h])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
124 AC_TRY_COMPILE([#define _POSIX_PII_SOCKET
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
125 #include <sys/types.h>
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
126 #include <sys/socket.h>], [socklen_t x = 5;],
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
127 [AC_MSG_RESULT(yes)],
207
cf4098008615 2003-7-1 Brian Masney <masneyb@gftp.org>
masneyb
parents: 202
diff changeset
128 [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
129 AC_MSG_RESULT(no)])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
130 ])
7d7d8299610d 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 113
diff changeset
131
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
132 # serial 1
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
133
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
134 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
135 dnl %'ld format.
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
136
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
137 dnl Brian Masney <masneyb@gftp.org>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
138
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
139 dnl
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
140 AC_DEFUN(AC_INTL_PRINTF,
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
141 [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
142 AC_TRY_RUN([#include <stdio.h>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
143 #include <string.h>
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
144
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
145 int main(void) {
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
146 char buf[20];
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
147 sprintf (buf, "%'ld", (long) 1);
330
532eb171d5c2 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 328
diff changeset
148 if (strchr (buf, '1') == NULL)
328
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
149 return (1);
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
150 return (0);
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
151 }],
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
152 [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
153 AC_MSG_RESULT(yes)],
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
154 [AC_MSG_RESULT(no)])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
155 ])
51bb530a100c 2003-12-7 Brian Masney <masneyb@gftp.org>
masneyb
parents: 207
diff changeset
156