1996-06-10 17:41:16 +08:00
|
|
|
sinclude(./aclocal.m4)dnl Autoconf lossage
|
|
|
|
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
|
|
# Local configure fragment for sysdeps/unix/sysv/linux.
|
|
|
|
|
|
|
|
# On Linux, the default is to use libio instead of stdio.
|
|
|
|
test $stdio = default && stdio=libio
|
|
|
|
|
|
|
|
# Don't bother trying to generate any glue code to be compatible with the
|
|
|
|
# existing system library, because we are the only system library.
|
|
|
|
inhibit_glue=yes
|
|
|
|
|
1996-07-29 11:49:00 +08:00
|
|
|
define([LIBC_LINUX_VERSION],[2.0.10])dnl
|
1998-08-22 06:29:58 +08:00
|
|
|
if test -n "$sysheaders"; then
|
2000-01-27 09:31:24 +08:00
|
|
|
OLD_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
1998-08-22 06:29:58 +08:00
|
|
|
fi
|
1996-07-26 06:41:27 +08:00
|
|
|
define([libc_cv_linuxVER], [libc_cv_linux]patsubst(LIBC_LINUX_VERSION,[\.]))dnl
|
|
|
|
AC_CACHE_CHECK(installed Linux kernel header files, libc_cv_linuxVER, [dnl
|
1999-05-30 06:56:42 +08:00
|
|
|
AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
|
|
|
|
#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < ]dnl
|
1996-07-26 06:41:27 +08:00
|
|
|
patsubst(LIBC_LINUX_VERSION,[^\([^.]*\)\.\([^.]*\)\.\([^.]*\)$],dnl
|
|
|
|
[ (\1 *65536+ \2 *256+ \3) /* \1.\2.\3 */])[
|
1996-06-10 17:41:16 +08:00
|
|
|
eat flaming death
|
|
|
|
#endif],
|
1999-05-30 06:56:42 +08:00
|
|
|
libc_cv_linuxVER='TOO OLD!',
|
|
|
|
libc_cv_linuxVER='LIBC_LINUX_VERSION or later')])
|
1996-07-26 06:41:27 +08:00
|
|
|
if test "$libc_cv_linuxVER" != 'LIBC_LINUX_VERSION or later'; then
|
|
|
|
AC_MSG_ERROR([GNU libc requires kernel header files from
|
|
|
|
Linux LIBC_LINUX_VERSION or later to be installed before configuring.
|
|
|
|
The kernel header files are found usually in /usr/include/asm and
|
|
|
|
/usr/include/linux; make sure these directories use files from
|
|
|
|
Linux LIBC_LINUX_VERSION or later. This check uses <linux/version.h>, so
|
|
|
|
make sure that file was built correctly when installing the kernel header
|
1998-08-22 06:29:58 +08:00
|
|
|
files. To use kernel headers not from /usr/include/linux, use the
|
|
|
|
configure option --with-headers.])
|
|
|
|
fi
|
1999-05-27 07:37:38 +08:00
|
|
|
|
|
|
|
# If the user gave a minimal version number test whether the available
|
2000-06-13 11:49:12 +08:00
|
|
|
# kernel headers are young enough. Additionally we have minimal
|
|
|
|
# kernel versions for some architectures.
|
2000-06-13 14:22:36 +08:00
|
|
|
case "$machine" in
|
2000-06-21 20:39:22 +08:00
|
|
|
mips*)
|
|
|
|
arch_minimum_kernel=2.2.15
|
|
|
|
;;
|
2000-06-13 14:22:36 +08:00
|
|
|
sh*)
|
|
|
|
arch_minimum_kernel=2.3.99
|
|
|
|
;;
|
|
|
|
ia64*)
|
|
|
|
arch_minimum_kernel=2.4.0
|
|
|
|
;;
|
2000-10-15 14:50:42 +08:00
|
|
|
hppa*)
|
|
|
|
arch_minimum_kernel=2.3.99
|
|
|
|
;;
|
2000-06-13 14:22:36 +08:00
|
|
|
*)
|
|
|
|
arch_minimum_kernel=2.0.10
|
|
|
|
;;
|
|
|
|
esac
|
2000-06-13 11:49:12 +08:00
|
|
|
if test -n "$minimum_kernel"; then
|
2000-06-13 14:22:36 +08:00
|
|
|
changequote(,)
|
|
|
|
user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
|
|
|
|
arch_version=$((`echo "$arch_minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
|
|
|
|
changequote([,])
|
|
|
|
if test $user_version -lt $arch_version; then
|
2000-06-13 11:49:12 +08:00
|
|
|
AC_MSG_WARN([minimum kernel version reset to $arch_minimum_kernel])
|
|
|
|
minimum_kernel=$arch_minimum_kernel
|
|
|
|
fi
|
|
|
|
else
|
2000-06-13 14:22:36 +08:00
|
|
|
if test $arch_minimum_kernel != '2.0.10'; then
|
|
|
|
minimum_kernel=$arch_minimum_kernel
|
|
|
|
fi
|
2000-06-13 11:49:12 +08:00
|
|
|
fi
|
|
|
|
|
1999-05-27 07:37:38 +08:00
|
|
|
if test -n "$minimum_kernel"; then
|
|
|
|
AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
|
|
|
|
changequote(,)dnl
|
1999-05-30 06:56:42 +08:00
|
|
|
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
|
Update.
2001-03-12 Jakub Jelinek <jakub@redhat.com>
* csu/Makefile (abi-tag.h): Define OS and version separately, allow
version to be overriden from config.h.
* csu/abi-note.S: Use OS and version separately, include config.h.
* elf/dl-load.c (_dl_osversion): New.
(_dl_map_object_from_fd): Kill some warnings.
(open_verify): Check .note.ABI-tag of the library if present.
* elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
* elf/cache.c (struct cache_entry): Add osversion.
(print_entry): Print osversion.
(print_cache): Pass osversion to it.
(compare): Sort according to osversion.
(save_cache): Set osversion.
(add_to_cache): Add osversion argument.
* sysdeps/generic/ldconfig.h (add_to_cache, process_file,
process_elf_file): Add osversion argument.
* elf/readlib.c (process_file): Likewise.
* sysdeps/generic/readelflib.c (process_elf_file): Likewise.
* sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* elf/ldconfig.c (manual_link): Pass it.
(search_dir): Issue diagnostic if two libs with the same soname in
the same directory have different .note.ABI-tag. Record osversion in
dlib_entry and use it from there.
(struct lib_entry): Remove.
(struct dlib_entry): Add osversion.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
osversion.
* sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
field with osversion.
* sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
* sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
* sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
version in _dl_osversion.
* sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
* Makerules (build-shlib-helper, build-module-helper): New.
(build-shlib, build-module-helper): Make sure .note.ABI-tag comes
early.
* config.h.in (__ABI_TAG_VERSION): Add.
* elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
Handle LD_ASSUME_KERNEL.
* sysdeps/unix/sysv/linux/dl-librecon.h: New.
2001-03-16 15:40:05 +08:00
|
|
|
abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
|
1999-05-27 07:37:38 +08:00
|
|
|
changequote([,])dnl
|
1999-05-30 06:56:42 +08:00
|
|
|
AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
|
1999-05-27 07:37:38 +08:00
|
|
|
#if LINUX_VERSION_CODE < $decnum
|
|
|
|
eat flaming death
|
1999-05-30 06:56:42 +08:00
|
|
|
#endif], libc_minimum_kernel='too old!', libc_minimum_kernel=ok)
|
|
|
|
AC_MSG_RESULT($libc_minimum_kernel)
|
|
|
|
if test "$libc_minimum_kernel" = ok; then
|
1999-05-27 07:37:38 +08:00
|
|
|
AC_DEFINE_UNQUOTED(__LINUX_KERNEL_VERSION, $decnum)
|
Update.
2001-03-12 Jakub Jelinek <jakub@redhat.com>
* csu/Makefile (abi-tag.h): Define OS and version separately, allow
version to be overriden from config.h.
* csu/abi-note.S: Use OS and version separately, include config.h.
* elf/dl-load.c (_dl_osversion): New.
(_dl_map_object_from_fd): Kill some warnings.
(open_verify): Check .note.ABI-tag of the library if present.
* elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
* elf/cache.c (struct cache_entry): Add osversion.
(print_entry): Print osversion.
(print_cache): Pass osversion to it.
(compare): Sort according to osversion.
(save_cache): Set osversion.
(add_to_cache): Add osversion argument.
* sysdeps/generic/ldconfig.h (add_to_cache, process_file,
process_elf_file): Add osversion argument.
* elf/readlib.c (process_file): Likewise.
* sysdeps/generic/readelflib.c (process_elf_file): Likewise.
* sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* elf/ldconfig.c (manual_link): Pass it.
(search_dir): Issue diagnostic if two libs with the same soname in
the same directory have different .note.ABI-tag. Record osversion in
dlib_entry and use it from there.
(struct lib_entry): Remove.
(struct dlib_entry): Add osversion.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
osversion.
* sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
field with osversion.
* sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
* sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
* sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
version in _dl_osversion.
* sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
* Makerules (build-shlib-helper, build-module-helper): New.
(build-shlib, build-module-helper): Make sure .note.ABI-tag comes
early.
* config.h.in (__ABI_TAG_VERSION): Add.
* elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
Handle LD_ASSUME_KERNEL.
* sysdeps/unix/sysv/linux/dl-librecon.h: New.
2001-03-16 15:40:05 +08:00
|
|
|
AC_DEFINE_UNQUOTED(__ABI_TAG_VERSION, $abinum)
|
1999-05-27 07:37:38 +08:00
|
|
|
else
|
1999-05-30 06:56:42 +08:00
|
|
|
AC_MSG_ERROR([*** The available kernel headers are older than the requested
|
1999-05-27 07:37:38 +08:00
|
|
|
*** compatible kernel version])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
1998-08-22 06:29:58 +08:00
|
|
|
if test -n "$sysheaders"; then
|
2000-01-27 09:31:24 +08:00
|
|
|
CPPFLAGS=$OLD_CPPFLAGS
|
1996-06-10 17:41:16 +08:00
|
|
|
fi
|
1996-12-07 11:30:25 +08:00
|
|
|
# The Linux filesystem standard prescribes where to place "essential"
|
|
|
|
# files. I.e., when the installation prefix is "/usr" we have to place
|
1996-12-20 09:39:50 +08:00
|
|
|
# shared library objects and the configuration files on the root partition
|
1996-12-07 11:30:25 +08:00
|
|
|
# in /lib and /etc.
|
Update.
2000-02-27 Ulrich Drepper <drepper@redhat.com>
* conform/conformtest.pl (@headers): Add wordexp.h, wctype.h, wchar.h,
varargs.h, utmpx.h, utime.h, unistd.h, ulimit.h, ucontext.h, time.h,
termios.h, tar.h, sys/wait.h, sys/uio.h, sys/types.h, sys/times.h,
sys/timeb.h, sys/time.h, sys/statvfs.h, sys/stat.h, sys/shm.h,
sys/sem.h, and sys/resource.h.
Implement handling of allow-header.
* conform/data/fcntl.h-data: Correct various bugs.
* conform/data/fnmatch.h-data: Likewise.
* conform/data/math.h-data: Likewise.
* conform/data/ndbm.h-data: Likewise.
* conform/data/nl_types.h-data: Likewise.
* conform/data/poll.h-data: Likewise.
* conform/data/pthread.h-data: Likewise.
* conform/data/semaphore.h-data: Likewise.
* conform/data/setjmp.h-data: Likewise.
* conform/data/signal.h-data: Likewise.
* conform/data/stdarg.h-data: Likewise.
* conform/data/stddef.h-data: Likewise.
* conform/data/stdio.h-data: Likewise.
* conform/data/stdlib.h-data: Likewise.
* conform/data/string.h-data: Likewise.
* conform/data/strings.h-data: Likewise.
* conform/data/stropts.h-data: Likewise.
* conform/data/syslog.h-data: Likewise.
* conform/data/sys/ipc.h-data: Likewise.
* conform/data/sys/mman.h-data: Likewise.
* conform/data/sys/msg.h-data: Likewise.
* conform/data/tar.h-data: New file.
* conform/data/termios.h-data: New file.
* conform/data/time.h-data: New file.
* conform/data/ucontext.h-data: New file.
* conform/data/ulimit.h-data: New file.
* conform/data/unistd.h-data: New file.
* conform/data/utime.h-data: New file.
* conform/data/utmpx.h-data: New file.
* conform/data/varargs.h-data: New file.
* conform/data/wchar.h-data: New file.
* conform/data/wctype.h-data: New file.
* conform/data/wordexp.h-data: New file.
* conform/data/sys/resource.h-data: New file.
* conform/data/sys/sem.h-data: New file.
* conform/data/sys/shm.h-data: New file.
* conform/data/sys/stat.h-data: New file.
* conform/data/sys/statvfs.h-data: New file.
* conform/data/sys/time.h-data: New file.
* conform/data/sys/timeb.h-data: New file.
* conform/data/sys/times.h-data: New file.
* conform/data/sys/types.h-data: New file.
* conform/data/sys/uio.h-data: New file.
* conform/data/sys/wait.h-data: New file.
* grp/grp.h (getgrent_r): Declare only if __USE_GNU.
* include/sys/time.h (__itimes): Fix type of second parameter.
* io/sys/stat.h (S_IFLNK): Define also if __USE_XOPEN.
(S_ISVTX): Likewise.
* io/sys/statvfs.h: Define fsblkcnt_t and fsfilcnt_t.
* locale/langindo.h: Make ERA_YEAR, INT_CURR_SYMBOL, CURRENCY_SYMBOL,
MON_DECIMAL_POINT, MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN,
NEGATIVE_SIGN, INT_FRAC_DIGITS, FRAC_DIGITS, P_CS_PRECEDES,
P_SEP_BY_SPACE, N_CS_PRECEDES, N_SEP_BY_SPACE, P_SIGN_POSN,
N_SIGN_POSN, DECIMAL_POINT, THOUSANDS_SEP, GROUPING, YESEXPR,
NOEXPR, YESSTR, and NOSTR only available if __USE_GNU.
* math/bits/mathcalls.h: Don't declare tgamma and scalbn if only
__USE_XOPEN.
* posix/unistd.h: Don't define ptrdiff_t.
(sbrk): Correct type of parameter.
* sysdeps/generic/sbrk.c: Likewise.
* sysdeps/mach/hurd/sbrk.c: Likewise.
* posix/sys/types.h: Allow id_t, suseconds_t, fsblkcnt_t, and
fsfilcnt_t being defined elsewhere.
* resource/sys/resource.h: Define id_t.
If __USE_XOPEN use int for type of first parameter if getrlimit,
getrlimit64, setrlimit, setrlimit64, getrusage, getpriority, and
setpriority.
* sysdeps/generic/getpriority.c: Fix type of second parameter.
* sysdeps/generic/setpriority.c: Likewise.
* sysdeps/mach/hurd/getpriority.c: Likewise.
* sysdeps/mach/hurd/setpriority.c: Likewise.
* sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
* sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
* sysdeps/unix/sysv/linux/getpriority.c: Likewise.
* sysdeps/generic/utimes.c: Fix parameter of third parameter.
* sysdeps/mach/hurd/utimes.c: Likewise.
* sysdeps/posix/utimes.c: Likewise.
* sysdeps/generic/bits/shm.h: Define shmatt_t type and use it in
struct shmid_ds definition.
* sysdeps/gnu/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
* sysvipc/sys/shm.h: Define time_t.
* sysvipc/sys/sem.h (struct sembuf): Make sem_num field unsigned.
* sysdeps/gnu/bits/sem.h: Rename anonymous type struct sem_queue and
struct sem_undo to struct __sem_queue and struct __sem_undo resp.
* time/time.h: Define suseconds_t if not already done.
* sysdeps/unix/sysv/linux/bits/statvfs.h: Rename f_spare to __f_spare.
* sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
* sysdeps/unix/sysv/linux/statvfs64.c: Likewise.
* sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
* intl/bindtextdom.c: Use rwlock to avoid surprising results in
multithreaded applications.
* intl/dcigettext.c: Likewise.
* intl/textdomain.c: Likewise.
* intl/*.c: Update copyright.
* sysdeps/generic/bits/libc-lock.h: Define __libc_rwlock_* stubs.
2000-02-27 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/configure.in: Treat also "/usr/" as
prefix especially.
2000-02-27 Ulrich Drepper <drepper@redhat.com>
* po/de.po: Update from translation team.
* po/ko.po: Likewise.
2000-02-28 13:08:01 +08:00
|
|
|
if test "$prefix" = "/usr" -o "$prefix" = "/usr/"; then
|
1999-05-19 23:35:26 +08:00
|
|
|
# 64bit libraries on sparc go to /lib64 and not /lib
|
|
|
|
if test "$machine" = "sparc/sparc64"; then
|
|
|
|
libc_cv_slibdir="/lib64"
|
|
|
|
if test "$libdir" = '${exec_prefix}/lib'; then
|
|
|
|
libdir='${exec_prefix}/lib64';
|
2000-02-12 02:50:36 +08:00
|
|
|
# Locale data can be shared between 32bit and 64bit libraries
|
|
|
|
libc_cv_localedir='${exec_prefix}/lib/locale'
|
1999-05-19 23:35:26 +08:00
|
|
|
fi
|
|
|
|
else
|
|
|
|
libc_cv_slibdir="/lib"
|
|
|
|
fi
|
2000-06-14 21:50:11 +08:00
|
|
|
# Allow the user to override the path with --sysconfdir
|
|
|
|
if test $sysconfdir = '${prefix}/etc'; then
|
|
|
|
libc_cv_sysconfdir=/etc
|
|
|
|
else
|
|
|
|
libc_cv_sysconfdir=$sysconfdir
|
|
|
|
fi
|
update from main archive 970121
1997-01-21 Paul Eggert <eggert@twinsun.com>
* posix/getopt.c (_getopt_internal): Return -1, not EOF, when args
are exhausted; this is required by POSIX.2.
* catgets/gencat.c, db/makedb.c, locale/programs/locale.c,
locale/programs/localedef.c, manual/examples/subopt.c,
posix/getopt.c, posix/getopt1.c, stdio-common/bug4.c,
sunrpc/rpcinfo.c (main): Check getopt return value against -1, not EOF.
Tue Jan 21 23:10:40 1997 Ulrich Drepper <drepper@cygnus.com>
* version.h (VERSION): Bump to 1.102.
* sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_sigaction.h.
* elf/Makefile: Don't use CFLAGS-dl-load.c, but instead
CPPFLAGS-dl-load.c so that dependencies can be determined correctly.
* elf/dl-load.c: Fix comment.
* time/Banner: New file.
* time/Makefile (distribute): Add Banner.
Update from ADO tzcode1997a and tzdata1997a.
* time/antarctica: Update.
* time/australia: Update.
* time/zdump.c: Update.
* time/zic.c: Update.
* time/zone.tab: Update.
Mon Jan 20 08:38:32 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config.make.in (has-ldconfig): New variable.
* configure, configure.in (has_ldconfig): New substitute.
* sysdeps/unix/sysv/linux/configure.in (has_ldconfig): New,
check if $srcdir/elf/ldconfig.c exists.
* Makeconfig (rootsbindir): New, default as
$(exec_prefix)/sbin.
(rtld-version-installed-name): New, default as
ld-$(version).so.
* Makefile (install): Call `$(common-objpfx)elf/ldconfig -d'
only if $(cross-compiling) is no and $(build-shared) is yes.
* Makerules (make-shlib-link): New macro.
($(slibdir)/libfoo.so.$(libfoo.so-version)): Use
$(make-shlib-link) for symlink.
(install-rootsbin, install-rootsbin-nosubdir): New.
(install-no-libc.a-nosubdir): Add
install-rootsbin-nosubdir.
* Rules (others): Add $(install-rootsbin).
* config.make.in (rootsbindir): New.
* configure, configure.in (libc_cv_rootsbindir): New
substitute.
* elf/Makefile (others, install-rootsbin): New, set to
ldconfig.
(+link): New for static linking.
($(slibdir)/$(rtld-version-installed-name)): New.
($(slibdir)/$(rtld-installed-name)): Depend on
$(slibdir)/$(rtld-version-installed-name) and use
$(make-shlib-link) for symlink.
* sunrpc/xdr.c (xdr_string): Return FALSE if sp == NULL
while XDR_ENCODE.
* sysdeps/unix/sysv/linux/a.out.h: Use #include_next for
glibc internals.
* sysdeps/unix/sysv/linux/configure.in (libc_cv_rootsbindir):
New, set to "/sbin" if "$prefix" == "/usr".
Tue Jan 21 13:38:39 1997 Ulrich Drepper <drepper@cygnus.com>
* Makefile (distribute): Add glibcbug.in.
Reported by Philip Blundell <pjb27@cam.ac.uk>.
* elf/Makefile ($(objpfx)trusted-dirs.h): Create elf/ subdir in
build directory if necessary.
Reported by marcus@shannon.sysc.pdx.edu (Marcus G. Daniels).
1997-01-22 13:26:05 +08:00
|
|
|
libc_cv_rootsbindir="/sbin"
|
1996-12-07 11:30:25 +08:00
|
|
|
fi
|
|
|
|
|
2000-02-29 13:21:42 +08:00
|
|
|
# Under Linux the LinuxThreads add-on should be available.
|
1996-12-07 11:30:25 +08:00
|
|
|
case $add_ons in
|
2000-06-13 11:49:12 +08:00
|
|
|
# It is available. Good.
|
1996-12-07 11:30:25 +08:00
|
|
|
*linuxthreads*)
|
2000-02-29 13:21:42 +08:00
|
|
|
message=
|
1996-12-07 11:30:25 +08:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
message="\
|
1996-12-15 10:15:29 +08:00
|
|
|
*** WARNING: Are you sure you do not want to use the \`linuxthreads'
|
2000-03-21 13:41:11 +08:00
|
|
|
*** add-on?"
|
1996-12-07 11:30:25 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$message"; then
|
|
|
|
if test $enable_sanity = yes; then
|
|
|
|
echo "\
|
2000-03-21 13:41:11 +08:00
|
|
|
*** You should not compile the GNU libc without the \`linuxthreads'
|
2000-02-29 13:21:42 +08:00
|
|
|
*** add-on. Not using them risks being incompatible with the
|
|
|
|
*** libraries of other systems. Consider getting the add-on and restarting
|
1996-12-07 11:30:25 +08:00
|
|
|
*** the configuration.
|
2000-02-29 13:21:42 +08:00
|
|
|
*** If you really mean to not use this add-on, run configure again
|
1996-12-07 11:30:25 +08:00
|
|
|
*** using the extra parameter \`--disable-sanity-checks'."
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "$message"
|
|
|
|
fi
|
|
|
|
fi
|
update from main archive 970121
1997-01-21 Paul Eggert <eggert@twinsun.com>
* posix/getopt.c (_getopt_internal): Return -1, not EOF, when args
are exhausted; this is required by POSIX.2.
* catgets/gencat.c, db/makedb.c, locale/programs/locale.c,
locale/programs/localedef.c, manual/examples/subopt.c,
posix/getopt.c, posix/getopt1.c, stdio-common/bug4.c,
sunrpc/rpcinfo.c (main): Check getopt return value against -1, not EOF.
Tue Jan 21 23:10:40 1997 Ulrich Drepper <drepper@cygnus.com>
* version.h (VERSION): Bump to 1.102.
* sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_sigaction.h.
* elf/Makefile: Don't use CFLAGS-dl-load.c, but instead
CPPFLAGS-dl-load.c so that dependencies can be determined correctly.
* elf/dl-load.c: Fix comment.
* time/Banner: New file.
* time/Makefile (distribute): Add Banner.
Update from ADO tzcode1997a and tzdata1997a.
* time/antarctica: Update.
* time/australia: Update.
* time/zdump.c: Update.
* time/zic.c: Update.
* time/zone.tab: Update.
Mon Jan 20 08:38:32 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
* config.make.in (has-ldconfig): New variable.
* configure, configure.in (has_ldconfig): New substitute.
* sysdeps/unix/sysv/linux/configure.in (has_ldconfig): New,
check if $srcdir/elf/ldconfig.c exists.
* Makeconfig (rootsbindir): New, default as
$(exec_prefix)/sbin.
(rtld-version-installed-name): New, default as
ld-$(version).so.
* Makefile (install): Call `$(common-objpfx)elf/ldconfig -d'
only if $(cross-compiling) is no and $(build-shared) is yes.
* Makerules (make-shlib-link): New macro.
($(slibdir)/libfoo.so.$(libfoo.so-version)): Use
$(make-shlib-link) for symlink.
(install-rootsbin, install-rootsbin-nosubdir): New.
(install-no-libc.a-nosubdir): Add
install-rootsbin-nosubdir.
* Rules (others): Add $(install-rootsbin).
* config.make.in (rootsbindir): New.
* configure, configure.in (libc_cv_rootsbindir): New
substitute.
* elf/Makefile (others, install-rootsbin): New, set to
ldconfig.
(+link): New for static linking.
($(slibdir)/$(rtld-version-installed-name)): New.
($(slibdir)/$(rtld-installed-name)): Depend on
$(slibdir)/$(rtld-version-installed-name) and use
$(make-shlib-link) for symlink.
* sunrpc/xdr.c (xdr_string): Return FALSE if sp == NULL
while XDR_ENCODE.
* sysdeps/unix/sysv/linux/a.out.h: Use #include_next for
glibc internals.
* sysdeps/unix/sysv/linux/configure.in (libc_cv_rootsbindir):
New, set to "/sbin" if "$prefix" == "/usr".
Tue Jan 21 13:38:39 1997 Ulrich Drepper <drepper@cygnus.com>
* Makefile (distribute): Add glibcbug.in.
Reported by Philip Blundell <pjb27@cam.ac.uk>.
* elf/Makefile ($(objpfx)trusted-dirs.h): Create elf/ subdir in
build directory if necessary.
Reported by marcus@shannon.sysc.pdx.edu (Marcus G. Daniels).
1997-01-22 13:26:05 +08:00
|
|
|
|
1999-12-05 02:05:55 +08:00
|
|
|
# One Linux we use ldconfig.
|
|
|
|
use_ldconfig=yes
|
1998-03-30 01:03:23 +08:00
|
|
|
|
|
|
|
# We need some extensions to the `ldd' script.
|
|
|
|
changequote(,)
|
|
|
|
case "$machine" in
|
1999-07-07 00:26:03 +08:00
|
|
|
i[3456]86* | m68*)
|
1998-03-30 01:03:23 +08:00
|
|
|
ldd_rewrite_script=../sysdeps/unix/sysv/linux/ldd-rewrite.sed
|
|
|
|
;;
|
1999-07-14 23:21:35 +08:00
|
|
|
sparc*)
|
1999-07-07 00:26:03 +08:00
|
|
|
ldd_rewrite_script=../sysdeps/unix/sysv/linux/sparc/ldd-rewrite.sed
|
|
|
|
;;
|
1998-03-30 01:03:23 +08:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
changequote([,])
|
1998-11-29 07:37:49 +08:00
|
|
|
|
1998-12-02 21:44:40 +08:00
|
|
|
if test $host = $build; then
|
|
|
|
# If $prefix/include/{net,scsi} are symlinks, make install will
|
|
|
|
# clobber what they're linked to (probably a kernel tree).
|
|
|
|
# test -L ought to work on all Linux boxes.
|
|
|
|
if test "x$prefix" != xNONE; then
|
|
|
|
ac_prefix=$prefix
|
|
|
|
else
|
|
|
|
ac_prefix=$ac_default_prefix
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([for symlinks in ${ac_prefix}/include])
|
1998-12-05 04:58:15 +08:00
|
|
|
ac_message=
|
1998-12-02 21:44:40 +08:00
|
|
|
if test -L ${ac_prefix}/include/net; then
|
1998-12-05 04:58:15 +08:00
|
|
|
ac_message="$ac_message
|
|
|
|
${ac_prefix}/include/net is a symlink"
|
1998-12-02 21:44:40 +08:00
|
|
|
fi
|
|
|
|
if test -L ${ac_prefix}/include/scsi; then
|
1998-12-05 04:58:15 +08:00
|
|
|
ac_message="$ac_message
|
1998-12-02 21:44:40 +08:00
|
|
|
${ac_prefix}/include/scsi is a symlink"
|
|
|
|
fi
|
1998-12-05 04:58:15 +08:00
|
|
|
if test -n "$ac_message"; then
|
|
|
|
AC_MSG_ERROR([$ac_message
|
1998-11-29 07:37:49 +08:00
|
|
|
\`make install' will destroy the target of the link(s).
|
|
|
|
Delete the links and re-run configure, or better still, move the entire
|
1998-12-02 21:44:40 +08:00
|
|
|
${ac_prefix}/include directory out of the way.])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(ok)
|
|
|
|
fi
|
1998-11-29 07:37:49 +08:00
|
|
|
fi
|