mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
* sysdeps/unix/sysv/linux/net/if.h: New file.
* sysdeps/unix/sysv/linux/Dist: Add it. * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add net/if.h. * Makeconfig (link-libc): Add libc.a after libc.so in link. * Rules (static-only-routines rule): Use empty.o instead of dummy.o. (empty.o): New target. (generated): Add empty.c, empty.o.
This commit is contained in:
parent
5570726557
commit
8942a07afc
11
ChangeLog
11
ChangeLog
@ -1,5 +1,16 @@
|
|||||||
Thu May 9 09:17:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
Thu May 9 09:17:46 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/net/if.h: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/Dist: Add it.
|
||||||
|
* sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
|
||||||
|
net/if.h.
|
||||||
|
|
||||||
|
* Makeconfig (link-libc): Add libc.a after libc.so in link.
|
||||||
|
|
||||||
|
* Rules (static-only-routines rule): Use empty.o instead of dummy.o.
|
||||||
|
(empty.o): New target.
|
||||||
|
(generated): Add empty.c, empty.o.
|
||||||
|
|
||||||
* resolv: Code updated from BIND-4.9.3P2C3.
|
* resolv: Code updated from BIND-4.9.3P2C3.
|
||||||
|
|
||||||
* Rules (static-only-routines rule): Use dummy.o, not dummy.so.
|
* Rules (static-only-routines rule): Use dummy.o, not dummy.so.
|
||||||
|
@ -292,7 +292,7 @@ endif
|
|||||||
ifndef link-libc
|
ifndef link-libc
|
||||||
ifeq (yes,$(build-shared))
|
ifeq (yes,$(build-shared))
|
||||||
link-libc = -Wl,-rpath-link=$(common-objdir) \
|
link-libc = -Wl,-rpath-link=$(common-objdir) \
|
||||||
$(common-objpfx)libc.so$(libc.so-version) $(gnulib)
|
$(common-objpfx)libc.so $(common-objpfx)libc.a $(gnulib)
|
||||||
# Choose the default search path for the dynamic linker based on
|
# Choose the default search path for the dynamic linker based on
|
||||||
# where we will install libraries.
|
# where we will install libraries.
|
||||||
ifneq ($(libdir),$(slibdir))
|
ifneq ($(libdir),$(slibdir))
|
||||||
|
10
Rules
10
Rules
@ -70,7 +70,11 @@ $(objpfx)dummy.o:
|
|||||||
@rm -f $(@:.o=.c)
|
@rm -f $(@:.o=.c)
|
||||||
echo 'void __dummy__ () { }' > $(@:.o=.c)
|
echo 'void __dummy__ () { }' > $(@:.o=.c)
|
||||||
$(CC) -c $(@:.o=.c) -o $@
|
$(CC) -c $(@:.o=.c) -o $@
|
||||||
generated := $(generated) dummy.o dummy.c
|
$(objpfx)empty.o:
|
||||||
|
@rm -f $(@:.o=.c)
|
||||||
|
echo '' > $(@:.o=.c)
|
||||||
|
$(CC) -c $(@:.o=.c) -o $@
|
||||||
|
generated := $(generated) dummy.o dummy.c empty.c empty.o
|
||||||
|
|
||||||
# This makes all the auxilliary and test programs.
|
# This makes all the auxilliary and test programs.
|
||||||
|
|
||||||
@ -144,8 +148,8 @@ $(common-objpfx)sor-$(subdir): Makefile
|
|||||||
|
|
||||||
ifdef static-only-routines
|
ifdef static-only-routines
|
||||||
# These routines are to be omitted from the shared library object,
|
# These routines are to be omitted from the shared library object,
|
||||||
# so we replace the PIC objects for them with the dummy object file.
|
# so we replace the PIC objects for them with the empty object file.
|
||||||
$(static-only-routines:%=$(objpfx)%.so): %.so: $(common-objpfx) dummy.o
|
$(static-only-routines:%=$(objpfx)%.so): %.so: $(common-objpfx) empty.o
|
||||||
rm -f $@
|
rm -f $@
|
||||||
ln $< $@
|
ln $< $@
|
||||||
endif
|
endif
|
||||||
|
205
configure
vendored
205
configure
vendored
@ -1089,6 +1089,62 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
|
||||||
|
# On Suns, sometimes $CPP names a directory.
|
||||||
|
if test -n "$CPP" && test -d "$CPP"; then
|
||||||
|
CPP=
|
||||||
|
fi
|
||||||
|
if test -z "$CPP"; then
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
|
else
|
||||||
|
# This must be in double quotes, not single quotes, because CPP may get
|
||||||
|
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
||||||
|
CPP="${CC-cc} -E"
|
||||||
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
||||||
|
# not just through cpp.
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 1108 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
#include <assert.h>
|
||||||
|
Syntax Error
|
||||||
|
EOF
|
||||||
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
|
{ (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
|
if test -z "$ac_err"; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo "$ac_err" >&5
|
||||||
|
rm -rf conftest*
|
||||||
|
CPP="${CC-cc} -E -traditional-cpp"
|
||||||
|
cat > conftest.$ac_ext <<EOF
|
||||||
|
#line 1123 "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
#include <assert.h>
|
||||||
|
Syntax Error
|
||||||
|
EOF
|
||||||
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
|
{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
|
if test -z "$ac_err"; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
echo "$ac_err" >&5
|
||||||
|
rm -rf conftest*
|
||||||
|
CPP=/lib/cpp
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
ac_cv_prog_CPP="$CPP"
|
||||||
|
fi
|
||||||
|
CPP="$ac_cv_prog_CPP"
|
||||||
|
else
|
||||||
|
ac_cv_prog_CPP="$CPP"
|
||||||
|
fi
|
||||||
|
echo "$ac_t""$CPP" 1>&4
|
||||||
|
|
||||||
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
|
||||||
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
set dummy ${ac_tool_prefix}ar; ac_word=$2
|
||||||
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
|
||||||
@ -1182,61 +1238,97 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
|
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
||||||
# On Suns, sometimes $CPP names a directory.
|
set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
||||||
if test -n "$CPP" && test -d "$CPP"; then
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
|
||||||
CPP=
|
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
|
||||||
fi
|
|
||||||
if test -z "$CPP"; then
|
|
||||||
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
|
|
||||||
echo $ac_n "(cached) $ac_c" 1>&4
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
else
|
else
|
||||||
# This must be in double quotes, not single quotes, because CPP may get
|
if test -n "$OBJDUMP"; then
|
||||||
# substituted into the Makefile and "${CC-cc}" will confuse make.
|
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
||||||
CPP="${CC-cc} -E"
|
|
||||||
# On the NeXT, cc -E runs the code through the compiler's parser,
|
|
||||||
# not just through cpp.
|
|
||||||
cat > conftest.$ac_ext <<EOF
|
|
||||||
#line 1201 "configure"
|
|
||||||
#include "confdefs.h"
|
|
||||||
#include <assert.h>
|
|
||||||
Syntax Error
|
|
||||||
EOF
|
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
||||||
{ (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
|
||||||
if test -z "$ac_err"; then
|
|
||||||
:
|
|
||||||
else
|
else
|
||||||
echo "$ac_err" >&5
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
rm -rf conftest*
|
for ac_dir in $PATH; do
|
||||||
CPP="${CC-cc} -E -traditional-cpp"
|
test -z "$ac_dir" && ac_dir=.
|
||||||
cat > conftest.$ac_ext <<EOF
|
if test -f $ac_dir/$ac_word; then
|
||||||
#line 1216 "configure"
|
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
||||||
#include "confdefs.h"
|
break
|
||||||
#include <assert.h>
|
fi
|
||||||
Syntax Error
|
done
|
||||||
EOF
|
IFS="$ac_save_ifs"
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="objdump"
|
||||||
{ (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
fi
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
fi
|
||||||
if test -z "$ac_err"; then
|
OBJDUMP="$ac_cv_prog_OBJDUMP"
|
||||||
:
|
if test -n "$OBJDUMP"; then
|
||||||
|
echo "$ac_t""$OBJDUMP" 1>&4
|
||||||
else
|
else
|
||||||
echo "$ac_err" >&5
|
echo "$ac_t""no" 1>&4
|
||||||
rm -rf conftest*
|
|
||||||
CPP=/lib/cpp
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
|
||||||
fi
|
|
||||||
rm -f conftest*
|
|
||||||
ac_cv_prog_CPP="$CPP"
|
# Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
|
||||||
fi
|
set dummy ${ac_tool_prefix}objcopy; ac_word=$2
|
||||||
CPP="$ac_cv_prog_CPP"
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
else
|
else
|
||||||
ac_cv_prog_CPP="$CPP"
|
if test -n "$OBJCOPY"; then
|
||||||
|
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
|
||||||
|
else
|
||||||
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
|
for ac_dir in $PATH; do
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f $ac_dir/$ac_word; then
|
||||||
|
ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$ac_save_ifs"
|
||||||
|
test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="objcopy"
|
||||||
fi
|
fi
|
||||||
echo "$ac_t""$CPP" 1>&4
|
fi
|
||||||
|
OBJCOPY="$ac_cv_prog_OBJCOPY"
|
||||||
|
if test -n "$OBJCOPY"; then
|
||||||
|
echo "$ac_t""$OBJCOPY" 1>&4
|
||||||
|
else
|
||||||
|
echo "$ac_t""no" 1>&4
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for ac_prog in mawk gawk nawk awk
|
||||||
|
do
|
||||||
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
||||||
|
set dummy $ac_prog; ac_word=$2
|
||||||
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&4
|
||||||
|
if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
|
||||||
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
|
else
|
||||||
|
if test -n "$AWK"; then
|
||||||
|
ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
||||||
|
else
|
||||||
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
|
for ac_dir in $PATH; do
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f $ac_dir/$ac_word; then
|
||||||
|
ac_cv_prog_AWK="$ac_prog"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$ac_save_ifs"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AWK="$ac_cv_prog_AWK"
|
||||||
|
if test -n "$AWK"; then
|
||||||
|
echo "$ac_t""$AWK" 1>&4
|
||||||
|
else
|
||||||
|
echo "$ac_t""no" 1>&4
|
||||||
|
fi
|
||||||
|
|
||||||
|
test -n "$AWK" && break
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
|
echo $ac_n "checking for signed size_t type""... $ac_c" 1>&4
|
||||||
@ -1267,7 +1359,7 @@ if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&4
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1271 "configure"
|
#line 1363 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#define __need_size_t
|
#define __need_size_t
|
||||||
#define __need_wchar_t
|
#define __need_wchar_t
|
||||||
@ -1283,7 +1375,7 @@ size_t size; wchar_t wchar;
|
|||||||
if (&size == NULL || &wchar == NULL) abort ();
|
if (&size == NULL || &wchar == NULL) abort ();
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:1379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
libc_cv_friendly_stddef=yes
|
libc_cv_friendly_stddef=yes
|
||||||
else
|
else
|
||||||
@ -1390,7 +1482,7 @@ if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&4
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1394 "configure"
|
#line 1486 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@ -1399,7 +1491,7 @@ asm (".section .init");
|
|||||||
asm (".section .fini");
|
asm (".section .fini");
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
if { (eval echo configure:1495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
libc_cv_have_initfini=yes
|
libc_cv_have_initfini=yes
|
||||||
else
|
else
|
||||||
@ -1427,7 +1519,7 @@ if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
|
|||||||
echo $ac_n "(cached) $ac_c" 1>&4
|
echo $ac_n "(cached) $ac_c" 1>&4
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1431 "configure"
|
#line 1523 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
asm ("_glibc_foobar:");
|
asm ("_glibc_foobar:");
|
||||||
int main() { return 0; }
|
int main() { return 0; }
|
||||||
@ -1435,7 +1527,7 @@ int t() {
|
|||||||
glibc_foobar ();
|
glibc_foobar ();
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
libc_cv_asm_underscores=yes
|
libc_cv_asm_underscores=yes
|
||||||
else
|
else
|
||||||
@ -1795,9 +1887,12 @@ s%@build_cpu@%$build_cpu%g
|
|||||||
s%@build_vendor@%$build_vendor%g
|
s%@build_vendor@%$build_vendor%g
|
||||||
s%@build_os@%$build_os%g
|
s%@build_os@%$build_os%g
|
||||||
s%@CC@%$CC%g
|
s%@CC@%$CC%g
|
||||||
|
s%@CPP@%$CPP%g
|
||||||
s%@AR@%$AR%g
|
s%@AR@%$AR%g
|
||||||
s%@RANLIB@%$RANLIB%g
|
s%@RANLIB@%$RANLIB%g
|
||||||
s%@CPP@%$CPP%g
|
s%@OBJDUMP@%$OBJDUMP%g
|
||||||
|
s%@OBJCOPY@%$OBJCOPY%g
|
||||||
|
s%@AWK@%$AWK%g
|
||||||
s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
|
s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
|
||||||
s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
|
s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
|
||||||
s%@uname_sysname@%$uname_sysname%g
|
s%@uname_sysname@%$uname_sysname%g
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
net/if.h
|
||||||
sys/acct.h
|
sys/acct.h
|
||||||
sys/quota.h
|
sys/quota.h
|
||||||
sys/socketcall.h
|
sys/socketcall.h
|
||||||
|
@ -26,7 +26,7 @@ headers += sys/timex.h
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(subdir), socket)
|
ifeq ($(subdir), socket)
|
||||||
headers += sys/socketcall.h
|
headers += sys/socketcall.h net/if.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(subdir), sunrpc)
|
ifeq ($(subdir), sunrpc)
|
||||||
|
1
sysdeps/unix/sysv/linux/net/if.h
Normal file
1
sysdeps/unix/sysv/linux/net/if.h
Normal file
@ -0,0 +1 @@
|
|||||||
|
#include <linux/if.h>
|
Loading…
Reference in New Issue
Block a user