annotate acinclude.m4 @ 185:cc94bd62d290

2003-6-16 Brian Masney <masneyb@gftp.org> * lib/protocols.c (_gftp_get_next_charset) - set the separator for remote charsets to be a comma * lib/options.h - updated description of remote charsets
author masneyb
date Tue, 17 Jun 2003 10:13:26 +0000
parents b83715e9535c
children 7d7d8299610d
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 ])