?RCS: License or the Artistic License, as specified in the README file.
?RCS:
?MAKE:d_quad quadtype uquadtype quadkind: \
- longsize intsize d_longlong longlongsize d_int64t \
+ longsize intsize d_longlong longlongsize d_int64_t \
Inhdr Setvar use64bits
?MAKE: -pick add $@ %<
?S:d_quad:
eval $setvar
quadkind=3
;;
- *) case "$d_int64t" in
+ *) case "$d_int64_t" in
define)
val=int64_t
set quadtype
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
?MAKE:alignbytes: Myread Compile cat rm crosscompile multiarch \
- d_longdbl uselongdouble longdblsize
+ d_longdbl uselongdouble test
?MAKE: -pick add $@ %<
?S:alignbytes:
?S: This variable holds the number of bytes required to align a
?D:gccversion=''
?LINT:change cpp
?LINT:change ccflags
+?LINT:extern ldflags
: see if we need a special compiler
echo " "
if ./usg; then
?RCS: Revision 3.0 1993/08/18 12:09:03 ram
?RCS: Baseline for dist 3.0 netwide release.
?RCS:
-?MAKE:libs ignore_versioned_solibs libsfound libsfiles libsdirs: \
+?MAKE:libs ignore_versioned_solibs libsfound libsfiles libsdirs libspath: \
test cat Myread Oldconfig Loc libpth package xlibpth so _a \
usesocks ccflags
?MAKE: -pick add $@ %<
?S: This variable holds the directory names aka dirnames of the libraries
?S: we found and accepted, duplicates are removed.
?S:.
+?S:libspath:
+?S: This variable holds the directory names probed for libraries.
+?S:.
?S:ignore_versioned_solibs:
?S: This variable should be non-empty if non-versioned shared
?S: libraries (libfoo.so.x.y) are to be ignored (because they
?INIT:libswanted=''
?INIT:: some systems want to use only the non-versioned libso:s
?INIT:ignore_versioned_solibs=''
+?LINT:extern libscheck
?LINT:use libscheck
: Looking for optional libraries
echo " "
libsfound=''
libsfiles=''
libsdirs=''
+libspath=''
+for thisdir in $libpth $xlibpth; do
+ test -d $thisdir && libspath="$libspath $thisdir"
+done
for thislib in $libswanted; do
-?X:
-?X: Comparisons via case statement use the string " $dflt " to ensure that
-?X: each library is separated by a space. That way, by looking to something
-?X: like *"-l$thislib "*, we ensure we find -lm and not -lmalloc (which was
-?X: the case with the old looking pattern *-l$thislib*.
-?X:
- for thisdir in $libpth; do
+ for thisdir in $libspath; do
xxx=''
if $test ! -f "$xxx" -a "X$ignore_versioned_solibs" = "X"; then
xxx=`ls $thisdir/lib$thislib.$so.[0-9] 2>/dev/null|tail -1`
?RCS: that same Artistic Licence; a copy of which may be found at the root
?RCS: of the source tree for dist 3.0.
?RCS:
-?MAKE:d_int64t: Inhdr echo n c cat rm Setvar Compile i_inttypes
+?MAKE:d_int64_t: Inhdr echo n c cat rm Setvar Compile i_inttypes
?MAKE: -pick add $@ %<
-?S:d_int64t:
+?S:d_int64_t:
?S: This symbol will be defined if the C compiler supports int64_t.
?S:.
?C:HAS_INT64_T:
?C: Usually the <inttypes.h> needs to be included, but sometimes
?C: <sys/types.h> is enough.
?C:.
-?H:#$d_int64t HAS_INT64_T /**/
+?H:#$d_int64_t HAS_INT64_T /**/
?H:.
-?LINT:set d_int64t
+?LINT:set d_int64_t
: check for int64_t
echo " "
$echo $n "Checking to see if your system supports int64_t...$c" >&4
echo " No, it doesn't." >&4
fi
$rm -f try try.*
-set d_int64t
+set d_int64_t
eval $setvar
--- /dev/null
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 2000, Jarkko Hietaniemi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 3.0.
+?RCS:
+?MAKE:d_socklen_t: Inhdr echo n c cat rm Setvar Compile d_socket
+?MAKE: -pick add $@ %<
+?S:d_socklen_t:
+?S: This symbol will be defined if the C compiler supports socklen_t.
+?S:.
+?C:HAS_SOCKLEN_T:
+?C: This symbol will defined if the C compiler supports socklen_t.
+?C: Usually the <sys/socket.h> needs to be included.
+?C:.
+?H:#$d_socklen_t HAS_SOCKLEN_T /**/
+?H:.
+?LINT:set d_socklen_t
+: check for socklen_t
+echo " "
+$echo $n "Checking to see if your system supports socklen_t...$c" >&4
+$cat >try.c <<EOCP
+#include <sys/types.h>
+#$d_socket HAS_SOCKET
+#ifdef HAS_SOCKET
+#include <sys/socket.h>
+#endif
+int main() { socklen_t x = 16; }
+EOCP
+set try
+if eval $compile; then
+ val="$define"
+ echo " Yes, it does." >&4
+else
+ val="$undef"
+ echo " No, it doesn't." >&4
+fi
+$rm -f try try.*
+set d_socklen_t
+eval $setvar
+
?S: This variable conditionally defines the I_SYSUTSNAME symbol,
?S: and indicates whether a C program should include <sys/utsname.h>.
?S:.
-?C:I_SYS_UTSNAME:
+?C:I_SYSUTSNAME:
?C: This symbol, if defined, indicates that <sys/utsname.h> exists and
?C: should be included.
?C:.
-?H:#$i_sysutsname I_SYS_UTSNAME /**/
+?H:#$i_sysutsname I_SYSUTSNAME /**/
?H:.
?LINT:set i_sysutsname