annotate m4/largefile.m4 @ 753:11b85ac0ec15

2006-6-22 Brian Masney <masneyb@gftp.org> * src/gtk/transfer.c - split update_file_status() into another function. Updated the string that is displayed to the user with information on whether or not the file is being downloaded or updated. (closes #163750)
author masneyb
date Fri, 23 Jun 2006 01:20:01 +0000
parents d74bfa342116
children dd3e5fa64b6a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
1 #serial 4
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
2
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
3 dnl By default, many hosts won't let programs access large files;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
4 dnl one must use special compiler options to get large-file access to work.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
5 dnl For more details about this brain damage please see:
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
6 dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
7
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
8 dnl Written by Paul Eggert <eggert@twinsun.com>.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
9
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
10 dnl Internal subroutine of AC_SYS_LARGEFILE.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
11 dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
12 AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
13 [AC_CACHE_CHECK([for $1 value to request large file support],
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
14 ac_cv_sys_largefile_$1,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
15 [ac_cv_sys_largefile_$1=`($GETCONF LFS_$1) 2>/dev/null` || {
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
16 ac_cv_sys_largefile_$1=no
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
17 ifelse($1, CFLAGS,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
18 [case "$host_os" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
19 # IRIX 6.2 and later require cc -n32.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
20 changequote(, )dnl
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
21 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
22 changequote([, ])dnl
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
23 if test "$GCC" != yes; then
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
24 ac_cv_sys_largefile_CFLAGS=-n32
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
25 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
26 ac_save_CC="$CC"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
27 CC="$CC $ac_cv_sys_largefile_CFLAGS"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
28 AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
29 CC="$ac_save_CC"
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
30 esac])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
31 }])])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
32
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
33 dnl Internal subroutine of AC_SYS_LARGEFILE.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
34 dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
35 AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
36 [case $2 in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
37 no) ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
38 ?*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
39 case "[$]$1" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
40 '') $1=$2 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
41 *) $1=[$]$1' '$2 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
42 esac ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
43 esac])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
44
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
45 dnl Internal subroutine of AC_SYS_LARGEFILE.
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
46 dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
47 AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
48 [AC_CACHE_CHECK([for $1], $2,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
49 [$2=no
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
50 changequote(, )dnl
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
51 $4
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
52 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
53 case "$ac_flag" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
54 -D$1)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
55 $2=1 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
56 -D$1=*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
57 $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
58 esac
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
59 done
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
60 changequote([, ])dnl
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
61 ])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
62 if test "[$]$2" != no; then
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
63 AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
64 fi])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
65
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
66 AC_DEFUN(AC_SYS_LARGEFILE,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
67 [AC_REQUIRE([AC_CANONICAL_HOST])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
68 AC_ARG_ENABLE(largefile,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
69 [ --disable-largefile omit support for large files])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
70 if test "$enable_largefile" != no; then
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
71 AC_CHECK_TOOL(GETCONF, getconf)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
72 AC_SYS_LARGEFILE_FLAGS(CFLAGS)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
73 AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
74 AC_SYS_LARGEFILE_FLAGS(LIBS)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
75
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
76 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
77 case "$ac_flag" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
78 no) ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
79 -D_FILE_OFFSET_BITS=*) ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
80 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
81 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
82 -D?* | -I?*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
83 AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
84 *)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
85 AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
86 esac
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
87 done
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
88 AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
89 AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
90 AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
91 ac_cv_sys_file_offset_bits,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
92 [Number of bits in a file offset, on hosts where this is settable.]
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
93 [case "$host_os" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
94 # HP-UX 10.20 and later
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
95 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
96 ac_cv_sys_file_offset_bits=64 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
97 esac])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
98 AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
99 ac_cv_sys_largefile_source,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
100 [Define to make fseeko etc. visible, on some hosts.],
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
101 [case "$host_os" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
102 # HP-UX 10.20 and later
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
103 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
104 ac_cv_sys_largefile_source=1 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
105 esac])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
106 AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
107 ac_cv_sys_large_files,
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
108 [Define for large files, on AIX-style hosts.],
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
109 [case "$host_os" in
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
110 # AIX 4.2 and later
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
111 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
112 ac_cv_sys_large_files=1 ;;
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
113 esac])
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
114 fi
d74bfa342116 2002-09-24 gettextize <bug-gnu-gettext@gnu.org>
masneyb
parents:
diff changeset
115 ])