mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-19 03:20:05 +00:00
f65fd747b4
Sun Dec 8 06:56:49 1996 Ulrich Drepper <drepper@cygnus.com> * io/getwd.c: Use PATH_MAX not LOCAL_PATH_MAX. Fix typo in comment. * stdlib/canonicalize.c: Correct bugs in last change. Patch by HJ Lu. * libio/Makefile (routines): Remove ioprims. (aux): Remove cleanup. Add IO_DEBUG option for .o files. * libio/cleanups.c: Removed. * libio/ioprims.c: Removed. * libio/filedoalloc.c: More updates from libg++-2.8b5. * libio/fileops.c: Likewise. * libio/genops.c: Likewise. * libio/iolibio.h: Likewise. * libio/iopopen.c: Likewise. * libio/iovsprintf.c: Likewise. * libio/iovsscanf.c: Likewise. * libio/libio.h: Likewise. * libio/libioP.h: Likewise. * libio/memstream.c: Likewise. * libio/strfile.h: Likewise. * libio/vasprintf.c: Likewise. * libio/vsnprintf.c: Likewise. * libio/stdio.h: Define P_tmpdir only is __USE_SVID. * manual/arith.texi: Change references to ANSI C to ISO C. * manual/conf.texi: Likewise. * manual/creature.texi: Likewise. * manual/ctype.texi: Likewise. * manual/errno.texi: Likewise. * manual/filesys.texi: Likewise. * manual/intro.texi. Likewise. * manual/io.texi: Likewise. * manual/lang.texi: Likewise. * manual/libc.texinfo: Likewise. * manual/locale.texi: Likewise. * manual/maint.texi: Likewise. * manual/mbyte.texi: Likewise. * manual/memory.texi: Likewise. * manual/process.texi: Likewise. * manual/process.texi: Likewise. * manual/search.texi: Likewise. * manual/setjmp.texi: Likewise. * manual/signal.texi: Likewise. * manual/startup.texi: Likewise. * manual/stdio.texi: Likewise. * manual/string.texi: Likewise. * manual/time.texi: Likewise. * manual/locale.texi: Remove description of LC_RESPONSE and add LC_MESSAGES. * Makefile (subdirs): Change malloc in $(malloc). * config.make.in: Add variable malloc which is initialized from @malloc@. * configure.in: Add new option --enable-new-malloc to use new malloc. This is the default on Linux. * sysdeps/unix/sysv/linux/configure.in: Define malloc to new-malloc by default. * new-malloc/Makefile: New file. Improved malloc implementation. * new-malloc/malloc.c: Likewise. * new-malloc/malloc.h: Likewise. * new-malloc/mallocbug.c: Likewise. * new-malloc/obstack.c: Likewise. * new-malloc/obstack.h: Likewise. * new-malloc/thread-m.h: Likewise. * time/Makefile: Compile ap.c with NO_MCHECK flag for now. * time/ap.c: Don't call mcheck if NO_MCHECK is defined. * resolv/Makefile: Add rule to rebuiild libresolv.so when libc.so changed. * stdio/feof.c: Update copyright. * stdio/stdio.h: Add field for lock to FILE structure. Add cast to *MAGIC constants to prevent warnings. * stdio-common/bug7.c: Correct test. Stream must not be closed twice. * stdlib/Makefile (routines): Add secure-getenv. * stdlib/secure-getenv.c: New file. __secure_getenv function moved to here from sysdeps/generic/getenv.c. Otherwise an application cannot replace the getenv function in the libc. * sysdeps/generic/getenv.c: Remove __secure_getenv function. * sysdeps/stub/getenv.c: Remove __secure_getenv alias. * sysdeps/mach/libc-lock.h: Define__libc_mutex_lock to __mutex_lock. * sysdeps/posix/fdopen.c: Update copyright. Don't use EXFUN. * time/test-tz.c: Comment fifth test out. PROBLEM. * time/tzset.c: De-ANSI-declfy. (__tzset): Don't increment pointer tz when no DST information is given. Sat Dec 7 23:47:54 1996 Ulrich Drepper <drepper@cygnus.com> * sysdeps/mach/libc-lock.h [_LIBC]: Add definition of __libc_mutex_lock. Patch by Thomas Bushnell. * sysdeps/unix/sysv/linux/timebits.h: Load <asm/param.h> only if __USE_MISC. * sysdeps/unix/sysv/linux/Dist: Add llseek.c. Sat Dec 7 12:18:56 1996 Ulrich Drepper <drepper@cygnus.com> * time/strftime (%c format): Remove %Z from default string. Reported by Paul Eggert * io/getwd.c: Don't apply getcwd on user supplied buffer.
82 lines
2.8 KiB
Plaintext
82 lines
2.8 KiB
Plaintext
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
|
|
|
|
# We also use the new malloc by default.
|
|
test $malloc = default && malloc=new-malloc
|
|
|
|
# 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
|
|
|
|
define([LIBC_LINUX_VERSION],[2.0.10])dnl
|
|
define([libc_cv_linuxVER], [libc_cv_linux]patsubst(LIBC_LINUX_VERSION,[\.]))dnl
|
|
AC_CACHE_CHECK(installed Linux kernel header files, libc_cv_linuxVER, [dnl
|
|
AC_TRY_COMPILE([#include <linux/version.h>],
|
|
[#if LINUX_VERSION_CODE < ]dnl
|
|
patsubst(LIBC_LINUX_VERSION,[^\([^.]*\)\.\([^.]*\)\.\([^.]*\)$],dnl
|
|
[ (\1 *65536+ \2 *256+ \3) /* \1.\2.\3 */])[
|
|
eat flaming death
|
|
#endif],
|
|
libc_cv_linuxVER='LIBC_LINUX_VERSION or later',
|
|
libc_cv_linuxVER='TOO OLD!')])
|
|
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
|
|
files.])
|
|
fi
|
|
|
|
# The Linux filesystem standard prescribes where to place "essential"
|
|
# files. I.e., when the installation prefix is "/usr" we have to place
|
|
# shared library objects and the configuation files on the root partition
|
|
# in /lib and /etc.
|
|
if test "$prefix" = "/usr"; then
|
|
libc_cv_slibdir="/lib"
|
|
libc_cv_sysconfdir="/etc"
|
|
fi
|
|
|
|
# Under Linux the LinuxThreads and crypt add-on should be available.
|
|
case $add_ons in
|
|
# Both are available. Good.
|
|
*linuxthreads*des-crypt* | *des-crypt*linuxthreads*)
|
|
message=
|
|
;;
|
|
*linuxthreads*)
|
|
message="\
|
|
*** WARNING:
|
|
*** Are you sure you do not want to use the \`crypt' add-on?"
|
|
;;
|
|
*des-crypt*)
|
|
message="\
|
|
*** WARNING:
|
|
*** Are you sure you do not want to use the \`LinuxThread' add-on?"
|
|
;;
|
|
*)
|
|
message="\
|
|
*** WARNING: Are you sure you do not want to use the \`LinuxThreads'
|
|
*** and \`crypt' add-ons?"
|
|
;;
|
|
esac
|
|
|
|
if test "$message"; then
|
|
if test $enable_sanity = yes; then
|
|
echo "\
|
|
*** You should not compile the GNU libc without the \`LinuxThreads' and
|
|
*** \`crypt' add-on. Not using them risks to be incompatible with the
|
|
*** libraries of other systems. Consider getting the add-ons and restart
|
|
*** the configuration.
|
|
*** If you really mean to avoid those add-ons run configure again, now
|
|
*** using the extra parameter \`--disable-sanity-checks'."
|
|
exit 1
|
|
else
|
|
echo "$message"
|
|
fi
|
|
fi
|