?RCS: You may distribute under the terms of either the GNU General Public
?RCS: License or the Artistic License, as specified in the README file.
?RCS:
-?MAKE:i_sysuio d_iovec_s: Inhdr Hasfield
+?MAKE:i_sysuio: Inhdr
?MAKE: -pick add $@ %<
?S:i_sysuio:
?S: This variable conditionally defines the I_SYSUIO symbol, and indicates
?S: whether a C program should include <sys/uio.h>.
?S:.
-?S:d_iovec_s:
-?S: This variable conditionally defines the HAS_STRUCT_IOVEC symbol,
-?S: which indicates that the struct iovec is supported.
-?S:.
?C:I_SYSUIO:
?C: This symbol, if defined, indicates that <sys/uio.h> exists and
?C: should be included.
?C:.
-?C:HAS_STRUCT_IOVEC:
-?C: This symbol, if defined, indicates that the struct iovec
-?C: to do scatter writes/gather reads is supported.
-?C:.
?H:#$i_sysuio I_SYSUIO /**/
-?H:#$d_iovec_s HAS_STRUCT_IOVEC /**/
?H:.
-?LINT:set i_sysuio d_iovec_s
+?LINT:set i_sysuio
: see if this is a sys/uio.h system
set sys/uio.h i_sysuio
eval $inhdr
-echo "Checking to see if your system supports struct iovec..." >&4
-set d_iovec_s iovec iov_base $i_sysuio sys/uio.h
-eval $hasfield
-case "$d_iovec_s" in
-"$define") echo "Yup, it does." >&4
- ;;
-*) echo "Nope, it doesn't." >&4
- ;;
-esac
-
set d_ccmsghdr_s ccmsghdr ccmsg_len $i_systypes sys/types.h $d_socket sys/socket.h $i_sysuio sys/uio.h
eval $hasstruct
case "$d_cmsghdr_s" in
-"$define") echo "Yup, it does." >&4 ;;
-*) echo "Nope, it doesn't." >&4 ;;
+"$define") echo "Yup, it does." ;;
+*) echo "Nope, it doesn't." ;;
esac
set d_fs_data_s fs_data $i_systypes sys/types.h $i_sysparam sys/param.h $i_sysmount sys/mount.h
eval $hasstruct
case "$d_fs_data_s" in
-"$define") echo "Yup, it does." >&4 ;;
-*) echo "Nope, it doesn't." >&4 ;;
+"$define") echo "Yup, it does." ;;
+*) echo "Nope, it doesn't." ;;
esac
--- /dev/null
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 1999 Jarkko Hietaniemi
+?RCS:
+?RCS: You may distribute under the terms of either the GNU General Public
+?RCS: License or the Artistic License, as specified in the README file.
+?RCS:
+?MAKE:d_iovec_s: i_sysuio Hasfield
+?MAKE: -pick add $@ %<
+?S:d_iovec_s:
+?S: This variable conditionally defines the HAS_STRUCT_IOVEC symbol,
+?S: which indicates that the struct iovec is supported.
+?S:.
+?C:HAS_STRUCT_IOVEC:
+?C: This symbol, if defined, indicates that the struct iovec
+?C: to do scatter writes/gather reads is supported.
+?C:.
+?H:#$d_iovec_s HAS_STRUCT_IOVEC /**/
+?H:.
+?LINT:set d_iovec_s
+echo "Checking to see if your system supports struct iovec..." >&4
+set d_iovec_s iovec iov_base $i_sysuio sys/uio.h
+eval $hasfield
+case "$d_iovec_s" in
+"$define") echo "Yup, it does." ;;
+*) echo "Nope, it doesn't." ;;
+esac
+
set d_cmsghdr_s cmsghdr cmsg_len $i_systypes sys/types.h $d_socket sys/socket.h $i_sysuio sys/uio.h
eval $hasstruct
case "$d_msghdr_s" in
-"$define") echo "Yup, it does." >&4 ;;
-*) echo "Nope, it doesn't." >&4 ;;
+"$define") echo "Yup, it does." ;;
+*) echo "Nope, it doesn't." ;;
esac
val="$undef"
fi
case "$val" in
- $define) echo "Yup, it can." >&4 ;;
- $undef) echo "No, it can't." >&4 ;;
+ $define) echo "Yup, it can." ;;
+ $undef) echo "No, it can't." ;;
esac
;;
*) val="$undef"
val="$undef"
fi
case "$val" in
- $define) echo "Yup, it can." >&4 ;;
- $undef) echo "No, it can't." >&4 ;;
+ $define) echo "Yup, it can." ;;
+ $undef) echo "No, it can't." ;;
esac
;;
*) val="$undef"
;;
esac
case "$d_statfs_f_flags" in
-"$define") echo "Yup, it does." >&4 ;;
-*) echo "Nope, it doesn't." >&4 ;;
+"$define") echo "Yup, it does." ;;
+*) echo "Nope, it doesn't." ;;
esac
set d_statfs_s statfs $i_systypes sys/types.h $i_sysparam sys/param.h $i_sysmount sys/mount.h $i_sysvfs sys/vfs.h $i_sysstatfs sys/statfs.h
eval $hasstruct
case "$d_statfs_s" in
-"$define") echo "Yup, it does." >&4 ;;
-*) echo "Nope, it doesn't." >&4 ;;
+"$define") echo "Yup, it does." ;;
+*) echo "Nope, it doesn't." ;;
esac
?RCS: License or the Artistic License, as specified in the README file.
?RCS:
?MAKE:d_llseek d_fpos64_t d_off64_t: \
- Inlibc Setvar n c cc optimize ccflags rm cat echo
+ Inlibc Setvar n c Compile rm cat echo lseeksize
?MAKE: -pick add $@ %<
?S:d_llseek:
?S: This variable conditionally defines the HAS_LLSEEK symbol, which
$cat >try.c <<EOCP
#include <sys/types.h>
#include <unistd.h>
-off64_t foo() { off64_t x; x = 7; return x; }'
+int main() { off64_t x = 7; }'
EOCP
-if $cc $optimize $ccflags -c try.c >/dev/null 2>&1; then
+set try
+if eval $compile; then
val="$define"
- echo " Yup, it does." >&4
+ echo " Yup, it does."
else
val="$undef"
- echo " Nope, it doesn't." >&4
+ echo " Nope, it doesn't."
+ case "$lseeksize" in
+ 8) echo "(This is okay because your off_t is 64 bits wide.)" ;;
+ esac
fi
-$rm -f try.*
+$rm -f try.* try
set d_off64_t
eval $setvar
$echo $n "Checking to see if your system supports fpos64_t...$c" >&4
$cat >try.c <<EOCP
#include <sys/stdio.h>
-fpos64_t foo() { fpos64_t x; x = 7; return x; }'
+int main() { fpos64_t x x = 7; }'
EOCP
-if $cc $optimize $ccflags -c try.c >/dev/null 2>&1; then
+set try
+if eval $compile; then
val="$define"
- echo " Yup, it does." >&4
+ echo " Yup, it does."
else
val="$undef"
- echo " Nope, it doesn't." >&4
+ echo " Nope, it doesn't."
+ case "$lseeksize" in
+ 8) echo "(This is okay because your off_t is 64 bits wide.)" ;;
+ esac
fi
-$rm -f try.*
+$rm -f try.* try
set d_fpos64_t
eval $setvar
if eval $compile; then
yyy=`./try`
case "$yyy" in
- detached) echo "Nope, they aren't." >&4 ;;
- *) echo "Yup, they are." >&4 ;;
+ detached) echo "Nope, they aren't." ;;
+ *) echo "Yup, they are." ;;
esac
else
set try -DPTHREAD_ATTR_GETDETACHSTATE_INT
if eval $compile; then
yyy=`./try`
case "$yyy" in
- detached) echo "Nope, they aren't." >&4 ;;
- *) echo "Yup, they are." >&4 ;;
+ detached) echo "Nope, they aren't." ;;
+ *) echo "Yup, they are." ;;
esac
else
echo " "