1995-09-08 20:50:01 +08:00
|
|
|
Dnl Process this file with autoconf to produce a configure script.
|
1995-03-10 12:12:12 +08:00
|
|
|
AC_REVISION([$CVSid$])
|
Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* string/argz-extract.c: Remove const from decl.
* string/argz.h: Here too.
* Makeconfig (version.mk): Fix regexp in sed cmd.
Depend on $(..)Makeconfig.
* GMP code updated from gmp-2.0 release.
* stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
* sysdeps/generic/add_1.c: File removed.
* stdlib/strtod.c: mp_limb is now mp_limb_t.
* stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
* stdio-common/_itoa.c: Likewise.
* stdio-common/printf_fp.c: Likewise.
Don't include ansidecl.h.
* sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
* shlib-versions: New file.
* Makerules (soversions.mk): New target, include file generated from
shlib-versions. Moved shared library rules before installation rules.
Rewrote shared library installation rules for versioned libraries.
* math/Makefile (libm.so-version): Variable removed.
* sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
* hurd/report-wait.c (_S_msg_describe_ports): New function.
* configure.in: Add AC_PROG_LN_S check.
* config.make.in (LN_S): New variable.
Sun May 5 03:10:44 1996 Ulrich Drepper <drepper@cygnus.com>
* misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug. gcc does
not know about weak aliases now and optimizes necessary `if'
statement away.
* posix/unistd.h: Add swapoff prototype.
* sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
* sysdeps/posix/fpathconf.c (__fpathconf): Get information
for _PC_PATH_MAX from fstatfs function if available.
* sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
_SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
_SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
_SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
_SC_TIMER_MAX.
* sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
* sysdeps/stub/swapoff.c: New file. Stub version for swapoff
function.
* sysdeps/unix/syscalls.list: Add swapoff.
* sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
(sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
sysinfo, and uselib.
(headers): Add sys/sysinfo.h.
* sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
* sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
(sysdep_routines): Add ioperm, iopl, and vm86.
(headers): Add sys/perm.h and sys/vm86.h.
* sysdeps/unix/sysv/linux/i386/sys/perm.h: New file. Contains
prototypes for iopl and ioperm.
* sysdeps/unix/sysv/linux/i386/sys/vm86.h: New file. Contains
prototype for vm86.
* sysdeps/unix/sysv/linux/i386/syscalls.list: New file. Add
vm86 system call.
* sysdeps/unix/sysv/linux/sys/acct.h: New file. Contains
prototypes for acct function.
* sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
file with prototypes.
* sysdeps/unix/sysv/linux/sys/sysinfo.h: New file. Contains
prototype for sysinfo function.
* sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
llseek, setfsgid, setfsuid, sysinfo, and uselib.
* sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
posix/sysconf.c now only handle cases different to that
implementation.
Tue May 7 15:08:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
* stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
(all references changed). Now exported.
* stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
(wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
instead of struct data.
(lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
occurences of `wrap' and `wrapmargin' to `wmargin'.
(line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
line_wrap_set_wmargin, line_wrap_point): New functions.
* stdio/linewrap.h: New file.
* stdio/Makefile (headers): Add linewrap.h.
Tue May 7 14:19:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* sysdeps/unix/sysv/linux/i386/Makefile: File removed.
* stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
* sysdeps/unix/sysv/linux/schedbits.h: New file.
Tue May 7 13:47:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
* stdio/linewrap.c (struct data): Make margin fields not-pointers.
(lwoutput): Adjust uses acordingly.
* sysdeps/mach/hurd/fdatasync.c: New file.
* sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
* sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
* sysdeps/mach/hurd/symlink.c: Likewise.
* sysdeps/mach/hurd/link.c: Likewise.
* sysdeps/mach/hurd/bind.c: Likewise.
* hurd/hurdsig.c (write_corefile): Likewise.
* hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
* sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
* sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
proc_mark_exit.
* sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
* sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
* sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
* hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
hurd_signal_detail.
* hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
* hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
Likewise.
* sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
* hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
* hurd/hurdsig.c (write_corefile): Take const struct
hurd_signal_detail * arg. Pass all details to crash_dump_task.
(_hurd_internal_post_signal): Pass DETAIL to write_corefile.
(_hurd_internal_post_signal: suspend): Pass code and error to
proc_mark_stop.
* hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
proc_getprocinfo by reference.
1996-05-08 10:07:47 +08:00
|
|
|
AC_PREREQ(2.10)dnl dnl Minimum Autoconf version required.
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_INIT(features.h)
|
|
|
|
AC_CONFIG_HEADER(config.h)
|
|
|
|
|
|
|
|
# This will get text that should go into config.make.
|
|
|
|
config_vars=
|
|
|
|
|
|
|
|
# Check for a --with-gmp argument and set gmp-srcdir in config.make.
|
|
|
|
AC_ARG_WITH(gmp, dnl
|
|
|
|
--with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed),
|
|
|
|
[dnl
|
|
|
|
case "$with_gmp" in
|
|
|
|
yes) AC_MSG_ERROR(--with-gmp requires an argument; use --with-gmp=DIRECTORY) ;;
|
|
|
|
''|no) ;;
|
|
|
|
*) config_vars="$config_vars
|
|
|
|
gmp-srcdir = $withval" ;;
|
|
|
|
esac
|
|
|
|
])
|
1995-11-11 04:38:31 +08:00
|
|
|
# Check for a --with-gettext argument and set gettext-srcdir in config.make.
|
|
|
|
AC_ARG_WITH(gettext, dnl
|
|
|
|
--with-gettext=DIR find GNU gettext source code in DIR (not needed),
|
|
|
|
[dnl
|
|
|
|
case "$with_gettext" in
|
|
|
|
yes)
|
|
|
|
AC_MSG_ERROR(--with-gettext requires an argument; use --with-gettext=DIR) ;;
|
|
|
|
''|no) ;;
|
|
|
|
*)
|
|
|
|
config_vars="$config_vars
|
|
|
|
gettext-srcdir = $withval" ;;
|
|
|
|
esac
|
|
|
|
])
|
1995-02-18 09:27:10 +08:00
|
|
|
|
1995-03-10 12:12:12 +08:00
|
|
|
dnl Arguments to specify presence of other packages/features.
|
1995-04-14 11:27:44 +08:00
|
|
|
AC_ARG_WITH(fp, dnl
|
1996-05-14 06:01:00 +08:00
|
|
|
--with-fp if using floating-point hardware [default=yes],
|
1995-04-14 11:27:44 +08:00
|
|
|
with_fp=$withval, with_fp=yes)
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_ARG_WITH(gnu-binutils, dnl
|
|
|
|
--with-gnu-binutils if using GNU binutils (as and ld),
|
1995-04-14 11:27:44 +08:00
|
|
|
gnu_binutils=$withval, gnu_binutils=no)
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_ARG_WITH(gnu-ld, dnl
|
|
|
|
--with-gnu-ld if using GNU ld (in the binutils package),
|
1995-04-14 11:27:44 +08:00
|
|
|
gnu_ld=$withval, gnu_ld=no)
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_ARG_WITH(gnu-as, dnl
|
|
|
|
--with-gnu-as if using GNU as (in the binutils package),
|
1995-04-14 11:27:44 +08:00
|
|
|
gnu_as=$withval, gnu_as=no)
|
1995-02-18 09:27:10 +08:00
|
|
|
test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
|
|
|
|
AC_ARG_WITH(elf, dnl
|
|
|
|
--with-elf if using the ELF object format,
|
1995-04-14 11:27:44 +08:00
|
|
|
elf=$withval, elf=no)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
1995-10-17 08:41:39 +08:00
|
|
|
AC_ARG_ENABLE(libio, dnl
|
|
|
|
[ --enable-libio build in GNU libio instead of GNU stdio],
|
1995-11-24 18:00:21 +08:00
|
|
|
[if test $enableval = yes; then
|
|
|
|
stdio=libio
|
|
|
|
else
|
|
|
|
stdio=stdio
|
|
|
|
fi],
|
|
|
|
stdio=default)
|
1995-10-17 08:41:39 +08:00
|
|
|
|
1995-03-10 12:12:12 +08:00
|
|
|
dnl Arguments to enable or disable building the shared, profiled, and
|
|
|
|
dnl -fomit-frame-pointer libraries.
|
|
|
|
AC_ARG_ENABLE(shared, dnl
|
|
|
|
[ --enable-shared build shared library [default=yes if GNU ld & ELF]],
|
1996-07-29 13:54:17 +08:00
|
|
|
shared=$enableval, shared=default)
|
1995-03-10 12:12:12 +08:00
|
|
|
AC_ARG_ENABLE(profile, dnl
|
|
|
|
[ --enable-profile build profiled library [default=yes]],
|
1996-07-29 13:54:17 +08:00
|
|
|
profile=$enableval, profile=yes)
|
1995-03-10 12:12:12 +08:00
|
|
|
AC_ARG_ENABLE(omitfp, dnl
|
1996-07-29 13:54:17 +08:00
|
|
|
[ --enable-omitfp build undebuggable optimized library [default=no]],
|
|
|
|
omitfp=$enableval, omitfp=no)
|
|
|
|
|
|
|
|
dnl Generic infrastructure for drop-in additions to libc.
|
|
|
|
AC_ARG_ENABLE(add-ons, dnl
|
|
|
|
[ --enable-add-ons=DIR... configure and build named extra directories],
|
1996-08-02 13:27:50 +08:00
|
|
|
[add_ons=`echo "$enableval" | sed 's/,/ /g'`],
|
|
|
|
[add_ons=])
|
1996-07-29 13:54:17 +08:00
|
|
|
AC_CONFIG_SUBDIRS($add_ons)
|
1996-09-05 10:49:18 +08:00
|
|
|
add_ons_pfx=
|
|
|
|
if test x$add_ons != x; then
|
|
|
|
for f in $add_ons; do
|
|
|
|
add_ons_pfx="$add_ons_pfx $f/"
|
|
|
|
done
|
|
|
|
fi
|
1995-03-10 12:12:12 +08:00
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_CANONICAL_HOST
|
|
|
|
# We keep the original values in `$config_*' and never modify them, so we
|
|
|
|
# can write them unchanged into config.make. Everything else uses
|
|
|
|
# $machine, $vendor, and $os, and changes them whenever convenient.
|
|
|
|
config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
|
|
|
|
|
1995-05-20 08:13:43 +08:00
|
|
|
# Some configurations imply other options.
|
|
|
|
case "$host_os" in
|
|
|
|
gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
|
|
|
|
# These systems always use GNU tools.
|
1996-03-20 05:23:40 +08:00
|
|
|
gnu_ld=yes gnu_as=yes ;;
|
1995-05-20 08:13:43 +08:00
|
|
|
esac
|
|
|
|
case "$host_os" in
|
1996-07-02 06:16:41 +08:00
|
|
|
linux*ecoff*)
|
|
|
|
;;
|
1995-05-20 08:13:43 +08:00
|
|
|
gnu* | linux* | sysv4* | solaris2*)
|
1996-07-02 06:16:41 +08:00
|
|
|
# These systems (almost) always use the ELF format.
|
|
|
|
elf=yes
|
Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
* time/Makefile (tests): Add test-tz.
* time/test-tz.c: New test.
* time/clocktest.c: Rewrite to test more meaningfully.
* sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
create_module, delete_module, get_kernel_syms, init_module,
klogctl.
* sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
instead of SYMLOOP_MAX, which is nowhere to be found.
* sysdeps/unix/sysv/linux/sys/msq_buf.h,
sysdeps/unix/sysv/linux/sys/sem_buf.h,
sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
control ops and datastructures.
* sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
I/O related functions.
* sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
daemon related functions/operations.
* sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
logging related functions/operations.
* sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
module related functions/operations.
* sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
for non-Alpha based Linux systems.
* sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
* sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
sys/io.h, sys/klog.h, and sys/kdaemon.h.
* sysdeps/unix/sysdep.h (END): Define empty END macro for
platforms that don't need some sort of end directive at the
end of functions.
* sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
syscall wrapper to allow correct generation of debugging
information.
* sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
directive for both ELF and ECOFF.
(ret): Delete macro. It was a dangerous macro and unnecessary
since the Alpha assemblers recognizes "ret" as a macro themselves.
* sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
ut_session to guarantee long alignment. This is important for
Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
This will all get cleaned up as programs start to use ut_tv
instead ut_time.
* sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
* sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
_setjmp.
* sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/llseek.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
.end directive.
* csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
function by having it contain a dummy function call.
* configure.in (config_machine): Don't make ELF the default for
Linux/Alpha just yet (use --with-elf instead).
(.init/.fini check): Generate .text to ensure function start and
end are in same section.
* sysdeps/unix/bsd/osf/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
break value, not just the low 32 bits to accomodate large
memories.
Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
dynamically resolve _end for initializing __curbrk, support the
brk(0) query idiom.
* sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
* sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
* stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
sys/klog.h, and sys/kdaemon.h.
* sysdeps/unix/sysv/linux/sys/io.h: New file.
* sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
* sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
* sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
dangerous and unnecessary since both OSF/1 as and gas define "ret"
as a pseudo-instruction.
Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
them. Bug found by David Mosberger-Tang.
* sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
of PTR.
* extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
to work around Make bug when A contains var ref.
Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
* sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
strong names and [gs]etpgid as weak aliases.
* math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
1996-06-03 02:50:07 +08:00
|
|
|
;;
|
1995-05-20 08:13:43 +08:00
|
|
|
esac
|
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
machine=$config_machine
|
|
|
|
vendor=$config_vendor
|
|
|
|
os=$config_os
|
|
|
|
|
|
|
|
dnl We need to use [ and ] for other purposes for a while now.
|
|
|
|
changequote(,)dnl
|
|
|
|
# Expand the configuration machine name into a subdirectory by architecture
|
|
|
|
# type and particular chip.
|
|
|
|
case "$machine" in
|
1996-05-09 06:40:39 +08:00
|
|
|
a29k | am29000) base_machine=a29k machine=a29k ;;
|
|
|
|
alpha*) base_machine=alpha machine=alpha/$machine ;;
|
|
|
|
hppa*) base_machine=hppa machine=hppa/$machine ;;
|
1996-08-10 08:00:16 +08:00
|
|
|
i[3456]86) base_machine=i386 machine=i386/$machine ;;
|
1996-05-09 06:40:39 +08:00
|
|
|
m680?0) base_machine=m68k machine=m68k/$machine ;;
|
|
|
|
m68k) base_machine=m68k machine=m68k/m68020 ;;
|
|
|
|
m88???) base_machine=m88k machine=m88k/$machine ;;
|
|
|
|
m88k) base_machine=m88k machine=m88k/m88100 ;;
|
|
|
|
mips*) base_machine=mips machine=mips/$machine ;;
|
|
|
|
mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
|
|
|
|
sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
|
|
|
|
supersparc) base_machine=sparc machine=sparc/sparc8 ;;
|
1995-02-18 09:27:10 +08:00
|
|
|
esac
|
1996-05-09 06:40:39 +08:00
|
|
|
changequote([,])dnl
|
|
|
|
AC_SUBST(base_machine)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
1996-05-09 06:40:39 +08:00
|
|
|
# Compute the list of sysdep directories for this configuration.
|
1996-06-14 20:05:04 +08:00
|
|
|
# This can take a while to compute.
|
1996-05-09 06:40:39 +08:00
|
|
|
sysdep_dir=$srcdir/sysdeps
|
1996-06-14 20:05:04 +08:00
|
|
|
AC_MSG_CHECKING(sysdep dirs)
|
1996-05-09 06:40:39 +08:00
|
|
|
dnl We need to use [ and ] for other purposes for a while now.
|
|
|
|
changequote(,)dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
|
|
|
|
os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
|
|
|
|
|
|
|
|
case "$os" in
|
|
|
|
gnu*)
|
|
|
|
base_os=mach/hurd ;;
|
1995-04-09 03:09:39 +08:00
|
|
|
netbsd* | 386bsd* | freebsd* | bsdi*)
|
1995-02-18 09:27:10 +08:00
|
|
|
base_os=unix/bsd/bsd4.4 ;;
|
1995-03-10 09:56:19 +08:00
|
|
|
osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
|
1995-02-18 09:27:10 +08:00
|
|
|
base_os=unix/bsd ;;
|
1995-09-08 20:50:01 +08:00
|
|
|
sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
|
1995-02-18 09:27:10 +08:00
|
|
|
base_os=unix/sysv ;;
|
1995-09-08 20:50:01 +08:00
|
|
|
solaris[2-9]*)
|
1995-02-18 09:27:10 +08:00
|
|
|
base_os=unix/sysv/sysv4 ;;
|
|
|
|
none)
|
|
|
|
base_os=standalone ;;
|
|
|
|
*)
|
|
|
|
base_os='' ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
|
|
|
|
tail=$os
|
|
|
|
ostry=$os
|
|
|
|
while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
|
|
|
|
ostry="$ostry /$o"
|
|
|
|
tail=$o
|
1995-11-11 04:38:31 +08:00
|
|
|
done
|
1995-02-18 09:27:10 +08:00
|
|
|
o=`echo $tail | sed 's/[0-9]*$//'`
|
|
|
|
if test $o != $tail; then
|
|
|
|
ostry="$ostry /$o"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
|
|
|
|
base=
|
|
|
|
tail=$base_os
|
|
|
|
while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
|
|
|
|
set $b
|
|
|
|
base="$base /$1"
|
|
|
|
tail="$2"
|
|
|
|
done
|
|
|
|
|
|
|
|
# For sparc/sparc9, try sparc/sparc9 and then sparc.
|
|
|
|
mach=
|
|
|
|
tail=$machine
|
|
|
|
while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
|
|
|
|
set $m
|
1995-04-27 13:47:52 +08:00
|
|
|
# Prepend the machine's FPU directory unless --without-fp.
|
|
|
|
if test "$with_fp" = yes; then
|
|
|
|
mach="$mach /$1/fpu"
|
1995-04-20 06:12:34 +08:00
|
|
|
fi
|
1995-02-18 09:27:10 +08:00
|
|
|
mach="$mach /$1"
|
|
|
|
tail="$2"
|
|
|
|
done
|
|
|
|
|
|
|
|
dnl We are done with glob and regexp uses of [ and ]; return to autoconf.
|
|
|
|
changequote([,])dnl
|
|
|
|
|
|
|
|
# Find what sysdep directories exist.
|
|
|
|
sysnames=
|
1996-09-05 10:49:18 +08:00
|
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
|
|
|
for d in $add_ons_pfx ''; do
|
|
|
|
for b in $base ''; do
|
|
|
|
for m0 in $mach ''; do
|
|
|
|
for v in /$vendor ''; do
|
|
|
|
for o in /$ostry ''; do
|
|
|
|
for m in $mach ''; do
|
|
|
|
if test "$m0$b$v$o$m"; then
|
|
|
|
try="${d}sysdeps$m0$b$v$o$m"
|
|
|
|
test -n "$enable_debug_configure" &&
|
|
|
|
echo "$0 [DEBUG]: try $try" >&2
|
|
|
|
case $try in
|
|
|
|
/*) dest=$try ;;
|
|
|
|
*) dest=$srcdir/$try ;;
|
|
|
|
esac
|
|
|
|
if test -d $dest; then
|
|
|
|
sysnames="$sysnames $try"
|
|
|
|
{ test -n "$o" || test -n "$b"; } && os_used=t
|
|
|
|
{ test -n "$m" || test -n "$m0"; } && machine_used=t
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
1995-02-18 09:27:10 +08:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
1996-09-05 10:49:18 +08:00
|
|
|
IFS="$ac_save_ifs"
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
if test -z "$os_used" && test "$os" != none; then
|
|
|
|
AC_MSG_ERROR(Operating system $os is not supported.)
|
|
|
|
fi
|
|
|
|
if test -z "$machine_used" && test "$machine" != none; then
|
|
|
|
AC_MSG_ERROR(The $machine is not supported.)
|
|
|
|
fi
|
|
|
|
|
|
|
|
# We have now validated the configuration.
|
|
|
|
|
1995-04-14 11:27:44 +08:00
|
|
|
|
1995-04-27 13:47:52 +08:00
|
|
|
# If using ELF, look for an `elf' subdirectory of each machine directory.
|
|
|
|
# We prepend these rather than inserting them whereever the machine appears
|
|
|
|
# because things specified by the machine's ELF ABI should override
|
|
|
|
# OS-specific things, and should always be the same for any OS on the
|
|
|
|
# machine (otherwise what's the point of an ABI?).
|
|
|
|
if test "$elf" = yes; then
|
|
|
|
elf_dirs=
|
1996-09-05 10:49:18 +08:00
|
|
|
for d in $add_ons_pfx ''; do
|
|
|
|
case $d in
|
|
|
|
/*) xsrcdir= ;;
|
|
|
|
*) xsrcdir=$srcdir/ ;;
|
|
|
|
esac
|
|
|
|
for m in $mach; do
|
|
|
|
if test -d $xsrcdir${d}sysdeps$m/elf; then
|
1996-09-08 10:16:48 +08:00
|
|
|
elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
|
1996-09-05 10:49:18 +08:00
|
|
|
fi
|
|
|
|
done
|
1995-02-18 09:27:10 +08:00
|
|
|
done
|
1996-09-05 10:49:18 +08:00
|
|
|
sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
|
1995-02-18 09:27:10 +08:00
|
|
|
fi
|
|
|
|
|
1995-04-14 11:27:44 +08:00
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
# Expand the list of system names into a full list of directories
|
|
|
|
# from each element's parent name and Implies file (if present).
|
|
|
|
set $sysnames
|
1996-06-19 22:52:21 +08:00
|
|
|
names=
|
1995-02-18 09:27:10 +08:00
|
|
|
while test $# -gt 0; do
|
|
|
|
name=$1
|
|
|
|
shift
|
|
|
|
|
1996-06-19 22:52:21 +08:00
|
|
|
case " $names " in *" $name "*)
|
1996-06-14 20:05:04 +08:00
|
|
|
# Already in the list.
|
|
|
|
continue
|
1996-06-19 22:52:21 +08:00
|
|
|
esac
|
1996-06-14 20:05:04 +08:00
|
|
|
|
|
|
|
# Report each name as we discover it, so there is no long pause in output.
|
|
|
|
echo $ac_n "$name $ac_c" >&AC_FD_MSG
|
|
|
|
|
1996-09-05 10:49:18 +08:00
|
|
|
name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
|
|
|
|
|
|
|
|
case $name in
|
|
|
|
/*) xsrcdir= ;;
|
|
|
|
*) xsrcdir=$srcdir/ ;;
|
|
|
|
esac
|
|
|
|
test -n "$enable_debug_configure" &&
|
|
|
|
echo "[DEBUG]: name/Implies $xsrcdir$name/Implies" >&2
|
|
|
|
|
|
|
|
if test -f $xsrcdir$name/Implies; then
|
1995-02-18 09:27:10 +08:00
|
|
|
# Collect more names from the `Implies' file (removing comments).
|
1996-09-05 10:49:18 +08:00
|
|
|
implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
|
|
|
|
implied=
|
|
|
|
for x in $implied_candidate; do
|
|
|
|
if test -d $xsrcdir$name_base/$x; then
|
|
|
|
implied="$implied $name_base/$x";
|
|
|
|
else
|
|
|
|
AC_MSG_WARN($name/Implies specifies nonexistent $x)
|
|
|
|
fi
|
1995-02-18 09:27:10 +08:00
|
|
|
done
|
|
|
|
else
|
|
|
|
implied=
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Add NAME to the list of names.
|
|
|
|
names="$names $name"
|
|
|
|
|
|
|
|
# Find the parent of NAME, using the empty string if it has none.
|
|
|
|
changequote(,)dnl
|
1996-09-05 10:49:18 +08:00
|
|
|
parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
|
1995-02-18 09:27:10 +08:00
|
|
|
changequote([,])dnl
|
|
|
|
|
|
|
|
# Add the names implied by NAME, and NAME's parent (if it has one), to
|
|
|
|
# the list of names to be processed (the argument list). We prepend the
|
|
|
|
# implied names to the list and append the parent. We want implied
|
|
|
|
# directories to come before further directories inferred from the
|
|
|
|
# configuration components; this ensures that for sysv4, unix/common
|
|
|
|
# (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
|
|
|
|
# after sysv4).
|
|
|
|
sysnames="`echo $implied $* $parent`"
|
|
|
|
test -n "$sysnames" && set $sysnames
|
|
|
|
done
|
|
|
|
|
|
|
|
# Add the default directories.
|
1996-09-05 10:49:18 +08:00
|
|
|
sysnames="$names sysdeps/generic sysdeps/stub"
|
1996-06-14 20:05:04 +08:00
|
|
|
AC_SUBST(sysnames)
|
|
|
|
# The other names were emitted during the scan.
|
1996-09-05 10:49:18 +08:00
|
|
|
AC_MSG_RESULT(sysdeps/generic sysdeps/stub)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
1996-06-14 20:05:04 +08:00
|
|
|
|
|
|
|
### Locate tools.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
if test "$INSTALL" = "${srcdir}/install-sh"; then
|
|
|
|
# The makefiles need to use a different form to find it in $srcdir.
|
|
|
|
INSTALL='$(..)./install-sh'
|
|
|
|
fi
|
Tue May 7 19:00:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* string/argz-extract.c: Remove const from decl.
* string/argz.h: Here too.
* Makeconfig (version.mk): Fix regexp in sed cmd.
Depend on $(..)Makeconfig.
* GMP code updated from gmp-2.0 release.
* stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
* sysdeps/generic/add_1.c: File removed.
* stdlib/strtod.c: mp_limb is now mp_limb_t.
* stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
* stdio-common/_itoa.c: Likewise.
* stdio-common/printf_fp.c: Likewise.
Don't include ansidecl.h.
* sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
* shlib-versions: New file.
* Makerules (soversions.mk): New target, include file generated from
shlib-versions. Moved shared library rules before installation rules.
Rewrote shared library installation rules for versioned libraries.
* math/Makefile (libm.so-version): Variable removed.
* sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
* hurd/report-wait.c (_S_msg_describe_ports): New function.
* configure.in: Add AC_PROG_LN_S check.
* config.make.in (LN_S): New variable.
Sun May 5 03:10:44 1996 Ulrich Drepper <drepper@cygnus.com>
* misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug. gcc does
not know about weak aliases now and optimizes necessary `if'
statement away.
* posix/unistd.h: Add swapoff prototype.
* sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
* sysdeps/posix/fpathconf.c (__fpathconf): Get information
for _PC_PATH_MAX from fstatfs function if available.
* sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
_SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
_SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
_SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
_SC_TIMER_MAX.
* sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
* sysdeps/stub/swapoff.c: New file. Stub version for swapoff
function.
* sysdeps/unix/syscalls.list: Add swapoff.
* sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
(sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
sysinfo, and uselib.
(headers): Add sys/sysinfo.h.
* sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
* sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
(sysdep_routines): Add ioperm, iopl, and vm86.
(headers): Add sys/perm.h and sys/vm86.h.
* sysdeps/unix/sysv/linux/i386/sys/perm.h: New file. Contains
prototypes for iopl and ioperm.
* sysdeps/unix/sysv/linux/i386/sys/vm86.h: New file. Contains
prototype for vm86.
* sysdeps/unix/sysv/linux/i386/syscalls.list: New file. Add
vm86 system call.
* sysdeps/unix/sysv/linux/sys/acct.h: New file. Contains
prototypes for acct function.
* sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
file with prototypes.
* sysdeps/unix/sysv/linux/sys/sysinfo.h: New file. Contains
prototype for sysinfo function.
* sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
llseek, setfsgid, setfsuid, sysinfo, and uselib.
* sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
posix/sysconf.c now only handle cases different to that
implementation.
Tue May 7 15:08:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
* stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
(all references changed). Now exported.
* stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
(wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
instead of struct data.
(lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
occurences of `wrap' and `wrapmargin' to `wmargin'.
(line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
line_wrap_set_wmargin, line_wrap_point): New functions.
* stdio/linewrap.h: New file.
* stdio/Makefile (headers): Add linewrap.h.
Tue May 7 14:19:12 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* sysdeps/unix/sysv/linux/i386/Makefile: File removed.
* stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
* sysdeps/unix/sysv/linux/schedbits.h: New file.
Tue May 7 13:47:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
* stdio/linewrap.c (struct data): Make margin fields not-pointers.
(lwoutput): Adjust uses acordingly.
* sysdeps/mach/hurd/fdatasync.c: New file.
* sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
* sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
* sysdeps/mach/hurd/symlink.c: Likewise.
* sysdeps/mach/hurd/link.c: Likewise.
* sysdeps/mach/hurd/bind.c: Likewise.
* hurd/hurdsig.c (write_corefile): Likewise.
* hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
* sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
* sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
proc_mark_exit.
* sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
* sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
* sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
* hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
hurd_signal_detail.
* hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
* hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
Likewise.
* sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
* hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
* hurd/hurdsig.c (write_corefile): Take const struct
hurd_signal_detail * arg. Pass all details to crash_dump_task.
(_hurd_internal_post_signal): Pass DETAIL to write_corefile.
(_hurd_internal_post_signal: suspend): Pass code and error to
proc_mark_stop.
* hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
proc_getprocinfo by reference.
1996-05-08 10:07:47 +08:00
|
|
|
AC_PROG_LN_S
|
1996-05-09 00:18:27 +08:00
|
|
|
AC_CHECK_PROGS(MSGFMT, msgfmt gmsgfmt, :)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
1995-03-10 12:12:12 +08:00
|
|
|
AC_CHECK_TOOL(CC, gcc)
|
1996-06-23 06:06:08 +08:00
|
|
|
if test $host != $build; then
|
|
|
|
AC_CHECK_PROG(BUILD_CC, gcc cc)
|
|
|
|
fi
|
Wed May 8 20:04:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
[! libc.so-version]: Clear static-only-routines.
($(common-objpfx)sor-$(subdir)): New target.
[static-only-routines]: New static pattern rule for these .so's.
* Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
[libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
New targets replace it.
(install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
$(slibdir)/libc.so.
* io/Makefile (static-only-routines): New variable.
* configure.in: Check for tools objdump and objcopy, and for awk.
* config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
Thu May 9 01:24:00 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/programs/config.h: Remove definition of wint_t.
* locale/programs/ld-collate.c: Include <wchar.h> instead of
<wcstr.h>.
* manual/time.texi: Add some more description for %U and %W
format of strftime. Describe new format %V of strftime.
* resolv/gethnamaddr.c: Prevent warning by preventing variable
definition.
* stdio-common/_itoa.c: Ditto.
Tue May 7 23:43:07 1996 Ulrich Drepper <drepper@cygnus.com>
* libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
stdio-common/vfscanf.c: Prepare for reentrent libio.
* libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
Used in reentrent libio.
* misc/getusershell.c: Prevent warnings.
1996-05-09 08:37:21 +08:00
|
|
|
AC_PROG_CPP
|
1995-03-10 12:12:12 +08:00
|
|
|
AC_CHECK_TOOL(AR, ar)
|
|
|
|
AC_CHECK_TOOL(RANLIB, ranlib, :)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(for signed size_t type, libc_cv_signed_size_t, [dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
echo '#include <stddef.h>
|
|
|
|
FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
|
|
|
|
if eval "$ac_cpp conftest.c 2>/dev/null" \
|
|
|
|
| grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
|
|
|
|
libc_cv_signed_size_t=no
|
|
|
|
else
|
|
|
|
libc_cv_signed_size_t=yes
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
if test $libc_cv_signed_size_t = yes; then
|
|
|
|
dnl Do this by hand instead of AC_DEFINE so can add #undef to avoid warnings.
|
|
|
|
cat >> confdefs.h <<\EOF
|
|
|
|
#undef __SIZE_TYPE__
|
|
|
|
#define __SIZE_TYPE__ unsigned
|
|
|
|
EOF
|
|
|
|
fi
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(for libc-friendly stddef.h, libc_cv_friendly_stddef, [dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_TRY_COMPILE(dnl
|
|
|
|
[#define __need_size_t
|
|
|
|
#define __need_wchar_t
|
|
|
|
#include <stddef.h>
|
|
|
|
#define __need_NULL
|
|
|
|
#include <stddef.h>], [size_t size; wchar_t wchar;
|
|
|
|
#ifdef offsetof
|
|
|
|
#error stddef.h ignored __need_*
|
|
|
|
#endif
|
|
|
|
if (&size == NULL || &wchar == NULL) abort ();],
|
|
|
|
libc_cv_friendly_stddef=yes,
|
|
|
|
libc_cv_friendly_stddef=no)])
|
|
|
|
if test $libc_cv_friendly_stddef = yes; then
|
|
|
|
config_vars="$config_vars
|
|
|
|
override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
|
|
|
|
fi
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(whether we need to use -P to assemble .S files,
|
|
|
|
libc_cv_need_minus_P, [dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
cat > conftest.S <<EOF
|
|
|
|
#include "confdefs.h"
|
|
|
|
/* Nothing whatsoever. */
|
|
|
|
EOF
|
|
|
|
if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
|
|
|
|
libc_cv_need_minus_P=no
|
|
|
|
else
|
|
|
|
libc_cv_need_minus_P=yes
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
if test $libc_cv_need_minus_P = yes; then
|
|
|
|
config_vars="$config_vars
|
|
|
|
asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
|
|
|
|
fi
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(for assembler global-symbol directive,
|
|
|
|
libc_cv_asm_global_directive, [dnl
|
1995-07-17 20:43:55 +08:00
|
|
|
libc_cv_asm_global_directive=UNKNOWN
|
|
|
|
for ac_globl in .globl .global; do
|
|
|
|
cat > conftest.s <<EOF
|
|
|
|
.text
|
|
|
|
${ac_globl} foo
|
|
|
|
foo: .long 0
|
|
|
|
EOF
|
|
|
|
if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
|
|
|
|
libc_cv_asm_global_directive=${ac_globl}
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
test $libc_cv_asm_global_directive != UNKNOWN && break
|
|
|
|
done])
|
|
|
|
if test $libc_cv_asm_global_directive = UNKNOWN; then
|
|
|
|
AC_MSG_ERROR(cannot determine asm global directive)
|
|
|
|
else
|
|
|
|
AC_DEFINE_UNQUOTED(ASM_GLOBAL_DIRECTIVE, ${libc_cv_asm_global_directive})
|
|
|
|
fi
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(for .set assembler directive, libc_cv_asm_set_directive, [dnl
|
1995-07-17 20:43:55 +08:00
|
|
|
cat > conftest.s <<EOF
|
1995-04-14 11:52:54 +08:00
|
|
|
.text
|
|
|
|
foo: .long 0
|
1995-06-14 06:16:50 +08:00
|
|
|
.set glibc_conftest_frobozz,foo
|
1995-07-17 20:43:55 +08:00
|
|
|
$libc_cv_asm_global_directive glibc_conftest_frobozz
|
1995-04-14 11:52:54 +08:00
|
|
|
EOF
|
1995-06-14 06:16:50 +08:00
|
|
|
# The alpha-dec-osf1 assembler gives only a warning for `.set'
|
|
|
|
# (but it doesn't work), so we must do a linking check to be sure.
|
|
|
|
cat > conftest1.c <<\EOF
|
|
|
|
extern int glibc_conftest_frobozz;
|
|
|
|
main () { printf ("%d\n", glibc_conftest_frobozz); }
|
|
|
|
EOF
|
|
|
|
if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
|
1995-10-17 10:14:34 +08:00
|
|
|
-o conftest conftest.s conftest1.c 1>&AC_FD_CC 2>&AC_FD_CC; then
|
1995-04-14 11:52:54 +08:00
|
|
|
libc_cv_asm_set_directive=yes
|
|
|
|
else
|
|
|
|
libc_cv_asm_set_directive=no
|
|
|
|
fi
|
1995-04-19 04:16:50 +08:00
|
|
|
rm -f conftest*])
|
1995-04-14 11:52:54 +08:00
|
|
|
if test $libc_cv_asm_set_directive = yes; then
|
|
|
|
AC_DEFINE(HAVE_ASM_SET_DIRECTIVE)
|
|
|
|
fi
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
if test $elf != yes; then
|
|
|
|
AC_CACHE_CHECK(for .init and .fini sections, libc_cv_have_initfini,
|
|
|
|
[AC_TRY_COMPILE(, [asm (".section .init");
|
Wed May 29 00:57:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
* time/Makefile (tests): Add test-tz.
* time/test-tz.c: New test.
* time/clocktest.c: Rewrite to test more meaningfully.
* sysdeps/unix/sysv/linux/syscalls.list: Add bdflush,
create_module, delete_module, get_kernel_syms, init_module,
klogctl.
* sysdeps/unix/sysv/linux/sys/param.h (MAXSYMLINKS): Define as 5
instead of SYMLOOP_MAX, which is nowhere to be found.
* sysdeps/unix/sysv/linux/sys/msq_buf.h,
sysdeps/unix/sysv/linux/sys/sem_buf.h,
sysdeps/unix/sysv/linux/sys/shm_buf.h [__USE_MISC]: Add more
control ops and datastructures.
* sysdeps/unix/sysv/linux/sys/io.h: New file declaring low-level
I/O related functions.
* sysdeps/unix/sysv/linux/sys/kdaemon.h: New file declaring kernel
daemon related functions/operations.
* sysdeps/unix/sysv/linux/sys/klog.h: New file declaring kernel
logging related functions/operations.
* sysdeps/unix/sysv/linux/sys/module.h: New file declaring kernel
module related functions/operations.
* sysdeps/unix/sysv/linux/speed.c: Only do "mention this twice" hack
for non-Alpha based Linux systems.
* sysdeps/unix/sysv/linux/alpha/speed.c: Remove.
* sysdeps/unix/sysv/linux/Makefile (headers): Add sys/module.h,
sys/io.h, sys/klog.h, and sys/kdaemon.h.
* sysdeps/unix/sysdep.h (END): Define empty END macro for
platforms that don't need some sort of end directive at the
end of functions.
* sysdeps/unix/make-syscalls.sh: Emit END($strong) at end of
syscall wrapper to allow correct generation of debugging
information.
* sysdeps/unix/alpha/sysdep.h (END): Redefine to use .end
directive for both ELF and ECOFF.
(ret): Delete macro. It was a dangerous macro and unnecessary
since the Alpha assemblers recognizes "ret" as a macro themselves.
* sysdeps/gnu/utmpbits.h (struct utmp): Move ut_tv behind
ut_session to guarantee long alignment. This is important for
Linux/Alpha since ut_tv.tv_sec is 32 bits and time_t is 64 bits.
This will all get cleaned up as programs start to use ut_tv
instead ut_time.
* sysdeps/alpha/divrem.h: Include <sysdep.h> instead of <*/regdef.h>.
* sysdeps/alpha/bsd-_setjmp.S (setjmp): Renamed entry point to
_setjmp.
* sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S,
sysdeps/alpha/copysign.S, sysdeps/alpha/divrem.h,
sysdeps/alpha/fabs.S, sysdeps/alpha/ffs.S, sysdeps/alpha/htonl.S,
sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/llseek.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/sysdep.S: Use END macro instead of
.end directive.
* csu/initfini.c (_fini): Tell gcc that _fini is not a leaf
function by having it contain a dummy function call.
* configure.in (config_machine): Don't make ELF the default for
Linux/Alpha just yet (use --with-elf instead).
(.init/.fini check): Generate .text to ensure function start and
end are in same section.
* sysdeps/unix/bsd/osf/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/brk.S (__curbrk): Store the entire
break value, not just the low 32 bits to accomodate large
memories.
Tue May 28 10:46:04 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/unix/sysv/linux/alpha/brk.S: Rather than attempt to
dynamically resolve _end for initializing __curbrk, support the
brk(0) query idiom.
* sysdeps/alpha/bb_init_func.S: Don't make `init' an external symbol.
* sysdeps/alpha/bsd-_setjmp.S: The function is _setjmp not setjmp.
Sun May 26 22:17:38 1996 Richard Henderson <rth@tamu.edu>
* stdlib/lcong48_r.c, stdlib/seed48_r.c, stdlib/strtod.c,
stdlib/strtol.c: Include <string.h> for mem* and str* fns used.
Thu May 23 02:15:56 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/Makefile (headers): Add sys/io.h,
sys/klog.h, and sys/kdaemon.h.
* sysdeps/unix/sysv/linux/sys/io.h: New file.
* sysdeps/unix/sysv/linux/sys/klog.h: Ditto.
* sysdeps/unix/sysv/linux/sys/kdaemon.h: Ditto.
* sysdeps/unix/alpha/sysdep.h (ret): Remove macro. It is
dangerous and unnecessary since both OSF/1 as and gas define "ret"
as a pseudo-instruction.
Sat Jun 1 17:18:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* time/tzset.c (__tzset): Clear tz_rules name pointers after freeing
them. Bug found by David Mosberger-Tang.
* sysdeps/posix/tempname.c (__stdio_gen_tempname): Use __ptr_t instead
of PTR.
* extra-lib.mk (extra-objs): Use patsubst intead of $(A:=B) syntax
to work around Make bug when A contains var ref.
Fri May 31 18:27:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* string/string.h [__USE_MISC]: Declare basename; OSF/1 puts it here.
* sysdeps/unix/sysv/linux/syscalls.list (getpgid, setpgid): Define __
strong names and [gs]etpgid as weak aliases.
* math/math_private.h (GET_LDOUBLE_EXP): Add missing backslash.
1996-06-03 02:50:07 +08:00
|
|
|
asm (".section .fini");
|
|
|
|
asm (".text");],
|
1995-07-27 17:00:07 +08:00
|
|
|
libc_cv_have_initfini=yes,
|
|
|
|
libc_cv_have_initfini=no)])
|
|
|
|
AC_SUBST(libc_cv_have_initfini)dnl
|
|
|
|
if test $libc_cv_have_initfini = yes; then
|
|
|
|
AC_DEFINE(HAVE_INITFINI)
|
|
|
|
fi
|
|
|
|
fi
|
1995-04-14 11:52:54 +08:00
|
|
|
|
1996-03-20 05:10:11 +08:00
|
|
|
if test $elf = yes; then
|
|
|
|
libc_cv_asm_underscores=no
|
|
|
|
else
|
|
|
|
AC_CACHE_CHECK(for _ prefix on C symbol names, libc_cv_asm_underscores,
|
1996-03-26 01:48:26 +08:00
|
|
|
[AC_TRY_LINK([asm ("_glibc_foobar:");], [glibc_foobar ();],
|
|
|
|
libc_cv_asm_underscores=yes,
|
|
|
|
libc_cv_asm_underscores=no)])
|
1996-03-20 05:10:11 +08:00
|
|
|
fi
|
|
|
|
if test $libc_cv_asm_underscores = no; then
|
|
|
|
AC_DEFINE(NO_UNDERSCORES)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $elf = yes; then
|
|
|
|
libc_cv_weak_symbols=yes
|
|
|
|
libc_cv_asm_weak_directive=yes
|
|
|
|
libc_cv_asm_weakext_directive=no
|
|
|
|
else
|
|
|
|
AC_CACHE_CHECK(for assembler .weak directive, libc_cv_asm_weak_directive,
|
|
|
|
[dnl
|
|
|
|
cat > conftest.s <<EOF
|
|
|
|
.text
|
|
|
|
${libc_cv_asm_global_directive} foo
|
|
|
|
foo: .long 0
|
|
|
|
.weak foo
|
|
|
|
.weak bar; bar = foo
|
|
|
|
EOF
|
|
|
|
if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
|
|
|
|
libc_cv_asm_weak_directive=yes
|
|
|
|
else
|
|
|
|
libc_cv_asm_weak_directive=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
|
1996-03-20 05:23:40 +08:00
|
|
|
if test $libc_cv_asm_weak_directive = no; then
|
1996-03-20 05:10:11 +08:00
|
|
|
AC_CACHE_CHECK(for assembler .weakext directive,
|
|
|
|
libc_cv_asm_weakext_directive,
|
|
|
|
[dnl
|
|
|
|
cat > conftest.s <<EOF
|
|
|
|
.text
|
|
|
|
${libc_cv_asm_global_directive} foo
|
|
|
|
foo: .long 0
|
|
|
|
.weakext foo
|
Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
* locale/programs/locale.c: Include string.h.
* sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
(xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
appropriate sign-extension is performed on machines with
sizeof(long) > 4.
* sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
sizeof(int)<sizeof(long), we need to go through a temporary
variable.
* locale/programs/ld-numeric.c: Include <alloca.h>
* libio/stdio.h (__libc_fatal): Add prototype.
* libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
in efect.
* libio/iopopen.c (read_or_write, parent_end, child_end): Declare
volatile to avoid "might get clobbered by longjmp" warning.
* features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
unless _LOOSE_KERNEL_NAMES is in effect (which, with high
probability is a sure loser).
* sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
* sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
* sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
* misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
to be Linux FSSTND compliant.
Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
* sysdeps/unix/sysv/linux/alpha/sysdep.S,
sysdeps/unix/sysv/linux/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/llseek.S,
sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
__syscall_error to avoid intruding application name space.
* sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
to SYS_get?id so that syscall stubs in sysdeps/unix define
these syscalls in terms of getxpid/getxuid/getxgid.
* sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
sysdeps/unix/execve.S, sysdeps/unix/fork.S,
sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
* sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
(PSEUDO_END): Rename END() to PSEUDO_END().
* sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
to PSEUDO_END to improve branch-prediction. Include .frame
directive to make syscalls debugabble.
(PSEUDO_END): New macro.
* sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
latter is illegal under DEC Unix.
* sysdeps/unix/alpha/sysdep.S: Renamed from
sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
as well.
* sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
EWOULDBLOCK -> EAGAIN mapping was unnecessary since
EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
* sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
address register in the .frame directive.
* sysdeps/alpha/copysign.c: Remove.
* sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
* errno.h: Move __END_DECLS to correct place to make file
compilable under c++.
* dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
d_ino only if <direntry.h> hasn't defined d_fileno.
* configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
arguments to weakext to make .weakext detection work on ECOFF systems.
* FAQ: Add Linux/Alpha to list of supported platforms. Mention
that _validuser() has been replaced by __ivaliduser().
Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
as unsigned long, not as int (to avoid incorrect int->long
promotion).
1996-06-19 14:54:12 +08:00
|
|
|
.weakext foo, bar
|
1996-03-20 05:10:11 +08:00
|
|
|
EOF
|
|
|
|
if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
|
|
|
|
libc_cv_asm_weakext_directive=yes
|
|
|
|
else
|
|
|
|
libc_cv_asm_weakext_directive=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
|
|
|
|
fi # no .weak
|
|
|
|
fi # not ELF
|
|
|
|
|
1996-03-28 17:48:58 +08:00
|
|
|
if test $libc_cv_asm_weak_directive = yes; then
|
1996-03-20 05:10:11 +08:00
|
|
|
AC_DEFINE(HAVE_ASM_WEAK_DIRECTIVE)
|
1996-03-28 17:48:58 +08:00
|
|
|
elif test $libc_cv_asm_weakext_directive = yes; then
|
1996-03-20 05:10:11 +08:00
|
|
|
AC_DEFINE(HAVE_ASM_WEAKEXT_DIRECTIVE)
|
|
|
|
fi
|
|
|
|
|
Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
for nonmatching nonerror (instead of !MATCH).
(rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
* resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
unsigned long for variable NET2.
* time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
* catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
catgets/open_catalog.c: New files. Implementation of XPG4
compliant catgets() function and needed tools.
* Makefile (subdirs): Add catgets.
Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: Correct some typos.
* sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
__signgam.
Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (no-whole-archive): New variable.
(build-shlib): Use it.
* elf/Makefile (libdl.so): Use it.
* configure.in (libc_cv_ld_no_whole_archive): New check for
--no-whole-archive.
* config.make.in (have-no-whole-archive): New variable.
* stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
from 3 to 4.
* Make-dist: Include version.mk.
(version, release): Variables removed.
* Makeconfig (version.mk): New target.
Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/Makefile (headers): Add langinfo.h.
(CPPFLAGS): Remove -Iliblib.
1996-04-20 08:05:25 +08:00
|
|
|
AC_CACHE_CHECK(for ld --no-whole-archive, libc_cv_ld_no_whole_archive, [dnl
|
|
|
|
cat > conftest.c <<\EOF
|
Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
* malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
* malloc/malloc-size.c: New file.
* malloc/malloc-walk.c: New file.
* malloc/malloc-find.c (malloc_find_object_address): Return null if
PTR is outside the heap.
* elf/dl-load.c (_dl_map_object): If the requested name matches the
soname of a loaded object, use that object.
Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makefile (subdirs): Add nss.
* inet/Makefile (routines): Add getrpcent, getrpcbyname,
getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
* inet/getrpcbynumber_r.c: New file.
* inet/getrpcbynumber.c: New file.
* inet/getrpcbyname.c: New file.
* inet/getrpcbyname_r.c: New file.
* inet/getrpcent_r.c: New file.
* inet/getrpcent.c: New file.
* nss/rpc-lookup.c: New file.
* nss/nss_files/files-rpc.c: New file.
* nss/Makefile (routines): Add rpc-lookup.
(libnss_files-routines): Add files-rpc.
* sunrpc/Makefile (routines): Remove getrpcent.
* sunrpc/getrpcent.c: File removed.
* nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
non-null on entry.
* Makeconfig (rpath-link): Add $(nssobjdir).
(nssobjdir): New variable.
* Makerules: Move shared library building before objects rules, so
versions are known before extra-lib.mk gets included.
* extra-lib.mk (lib-noranlib): Depend on the shared object too.
* pwd/getpwuid.c: Rewritten using nss.
* pwd/getpwnam.c: Likewise.
* pwd/getpwent.c: Likewise.
* grp/getgrnam.c: Likewise.
* grp/getgrgid.c: Likewise.
* grp/getgrent.c: Likewise.
* pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
* pwd/getpwent_r.c: New file.
* pwd/getpwnam_r.c: New file.
* pwd/getpwuid_r.c: New file.
* grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
* grp/getgrnam_r.c: New file.
* grp/getgrgid_r.c: New file.
* grp/getgrent_r.c: New file.
* grp/Makefile (routines): Remove grpopen, grpread.
* pwd/Makefile (routines): Remove pwdopen, pwdread.
* grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
* pwd/fgetpwent.c: Rewritten using files-parse.c.
* grp/fgetgrent.c: Likewise.
* nss/Makefile (routines): Add grp-lookup and pwd-lookup.
* nss/pwd-lookup.c, nss/grp-lookup.c: New files.
* nss/nss_files/files-grp.c: New file.
* nss/nss_files/files-pwd.c: New file.
* nss/Makefile (subdir-dirs): New variable; use it in vpath.
* nss/nss_files/files-parse.c: New file.
* nss/nss_files/files-XXX.c: New file.
* nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
nss/nss_files/files-service.c, nss/nss_files/files-network.c:
Rewritten using them.
* nss/Makefile (libnss_files-routines): Remove files-host.
Add files-hosts, files-grp, files-pwd.
* nss/nss_dns/dns-network.c: Don't include <pthread.h>.
Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
A .plt entry now loads the .rela.plt offset directly rather
than making us calculate it.
Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* time/Makefile ($(installed-localtime-file) rule): Do
$(make-target-directory) first.
* resolv.h: Fix wrapper for resolv/resolv.h.
* configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
Compile dummy file and pass -nostdlib -nostartfiles so as not to
require installed libraries.
* shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
libnss_dns=1.
Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
* resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
* inet/herrno.c: New file.
* resolv/res_init.c: Remove res_hconf calls.
* nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
nss/service-lookup.c: New files. Implementation of name
service switch, following the approach in Solaris.
Interface specification and general structure inspired by Peter
Eriksson <pen@lysator.liu.se>.
* nss/nss_files/files-host.c, nss/nss_files/files-network.c,
nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
Implementation of libnss_files.so module for file based databases
in NSS service.
* nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
if libnss_dns.so module for DNS name lookup in NSS service.
* inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
Changed to serve as interface to NSS.
* inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
interfaces to NSS, including reentrant functions.
* resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
resolv/sethostent.c: Removed: Obsoleted by NSS.
* resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
gethnamaddr.c. These private functions are now used in more
than one file.
* resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* rpm/Makefile ($(config)): Make sure the word list in the for
loop is syntactically non-empty.
1996-06-25 16:56:57 +08:00
|
|
|
_start () {}
|
1996-08-26 18:28:45 +08:00
|
|
|
int __eh_pc;
|
|
|
|
__throw () {}
|
Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
for nonmatching nonerror (instead of !MATCH).
(rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
* resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
unsigned long for variable NET2.
* time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
* catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
catgets/open_catalog.c: New files. Implementation of XPG4
compliant catgets() function and needed tools.
* Makefile (subdirs): Add catgets.
Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: Correct some typos.
* sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
__signgam.
Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (no-whole-archive): New variable.
(build-shlib): Use it.
* elf/Makefile (libdl.so): Use it.
* configure.in (libc_cv_ld_no_whole_archive): New check for
--no-whole-archive.
* config.make.in (have-no-whole-archive): New variable.
* stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
from 3 to 4.
* Make-dist: Include version.mk.
(version, release): Variables removed.
* Makeconfig (version.mk): New target.
Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/Makefile (headers): Add langinfo.h.
(CPPFLAGS): Remove -Iliblib.
1996-04-20 08:05:25 +08:00
|
|
|
EOF
|
1996-06-25 20:13:01 +08:00
|
|
|
dnl No \ in command here because it ends up inside ''.
|
|
|
|
if AC_TRY_COMMAND([${CC-cc} $CFLAGS
|
|
|
|
-nostdlib -nostartfiles -Wl,--no-whole-archive
|
Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
* malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
* malloc/malloc-size.c: New file.
* malloc/malloc-walk.c: New file.
* malloc/malloc-find.c (malloc_find_object_address): Return null if
PTR is outside the heap.
* elf/dl-load.c (_dl_map_object): If the requested name matches the
soname of a loaded object, use that object.
Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makefile (subdirs): Add nss.
* inet/Makefile (routines): Add getrpcent, getrpcbyname,
getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
* inet/getrpcbynumber_r.c: New file.
* inet/getrpcbynumber.c: New file.
* inet/getrpcbyname.c: New file.
* inet/getrpcbyname_r.c: New file.
* inet/getrpcent_r.c: New file.
* inet/getrpcent.c: New file.
* nss/rpc-lookup.c: New file.
* nss/nss_files/files-rpc.c: New file.
* nss/Makefile (routines): Add rpc-lookup.
(libnss_files-routines): Add files-rpc.
* sunrpc/Makefile (routines): Remove getrpcent.
* sunrpc/getrpcent.c: File removed.
* nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
non-null on entry.
* Makeconfig (rpath-link): Add $(nssobjdir).
(nssobjdir): New variable.
* Makerules: Move shared library building before objects rules, so
versions are known before extra-lib.mk gets included.
* extra-lib.mk (lib-noranlib): Depend on the shared object too.
* pwd/getpwuid.c: Rewritten using nss.
* pwd/getpwnam.c: Likewise.
* pwd/getpwent.c: Likewise.
* grp/getgrnam.c: Likewise.
* grp/getgrgid.c: Likewise.
* grp/getgrent.c: Likewise.
* pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
* pwd/getpwent_r.c: New file.
* pwd/getpwnam_r.c: New file.
* pwd/getpwuid_r.c: New file.
* grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
* grp/getgrnam_r.c: New file.
* grp/getgrgid_r.c: New file.
* grp/getgrent_r.c: New file.
* grp/Makefile (routines): Remove grpopen, grpread.
* pwd/Makefile (routines): Remove pwdopen, pwdread.
* grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
* pwd/fgetpwent.c: Rewritten using files-parse.c.
* grp/fgetgrent.c: Likewise.
* nss/Makefile (routines): Add grp-lookup and pwd-lookup.
* nss/pwd-lookup.c, nss/grp-lookup.c: New files.
* nss/nss_files/files-grp.c: New file.
* nss/nss_files/files-pwd.c: New file.
* nss/Makefile (subdir-dirs): New variable; use it in vpath.
* nss/nss_files/files-parse.c: New file.
* nss/nss_files/files-XXX.c: New file.
* nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
nss/nss_files/files-service.c, nss/nss_files/files-network.c:
Rewritten using them.
* nss/Makefile (libnss_files-routines): Remove files-host.
Add files-hosts, files-grp, files-pwd.
* nss/nss_dns/dns-network.c: Don't include <pthread.h>.
Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
A .plt entry now loads the .rela.plt offset directly rather
than making us calculate it.
Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* time/Makefile ($(installed-localtime-file) rule): Do
$(make-target-directory) first.
* resolv.h: Fix wrapper for resolv/resolv.h.
* configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
Compile dummy file and pass -nostdlib -nostartfiles so as not to
require installed libraries.
* shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
libnss_dns=1.
Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
* resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
* inet/herrno.c: New file.
* resolv/res_init.c: Remove res_hconf calls.
* nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
nss/service-lookup.c: New files. Implementation of name
service switch, following the approach in Solaris.
Interface specification and general structure inspired by Peter
Eriksson <pen@lysator.liu.se>.
* nss/nss_files/files-host.c, nss/nss_files/files-network.c,
nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
Implementation of libnss_files.so module for file based databases
in NSS service.
* nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
if libnss_dns.so module for DNS name lookup in NSS service.
* inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
Changed to serve as interface to NSS.
* inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
interfaces to NSS, including reentrant functions.
* resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
resolv/sethostent.c: Removed: Obsoleted by NSS.
* resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
gethnamaddr.c. These private functions are now used in more
than one file.
* resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* rpm/Makefile ($(config)): Make sure the word list in the for
loop is syntactically non-empty.
1996-06-25 16:56:57 +08:00
|
|
|
-o conftest conftest.c]); then
|
Fri Apr 19 00:49:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
for nonmatching nonerror (instead of !MATCH).
(rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
* resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
unsigned long for variable NET2.
* time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
Tue Apr 9 14:37:31 1996 Ulrich Drepper <drepper@cygnus.com>
* catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
catgets/open_catalog.c: New files. Implementation of XPG4
compliant catgets() function and needed tools.
* Makefile (subdirs): Add catgets.
Thu Apr 18 23:36:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
Wed Apr 10 20:48:43 1996 Ulrich Drepper <drepper@cygnus.com>
* stdio-common/vfprintf.c: Correct some typos.
* sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
__signgam.
Thu Apr 18 21:07:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* Makerules (no-whole-archive): New variable.
(build-shlib): Use it.
* elf/Makefile (libdl.so): Use it.
* configure.in (libc_cv_ld_no_whole_archive): New check for
--no-whole-archive.
* config.make.in (have-no-whole-archive): New variable.
* stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
from 3 to 4.
* Make-dist: Include version.mk.
(version, release): Variables removed.
* Makeconfig (version.mk): New target.
Fri Apr 19 01:42:18 1996 Ulrich Drepper <drepper@cygnus.com>
* locale/Makefile (headers): Add langinfo.h.
(CPPFLAGS): Remove -Iliblib.
1996-04-20 08:05:25 +08:00
|
|
|
libc_cv_ld_no_whole_archive=yes
|
|
|
|
else
|
|
|
|
libc_cv_ld_no_whole_archive=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
AC_SUBST(libc_cv_ld_no_whole_archive)dnl
|
|
|
|
|
1996-08-28 08:26:07 +08:00
|
|
|
AC_CACHE_CHECK(for gcc -fno-exceptions, libc_cv_gcc_no_exceptions, [dnl
|
|
|
|
cat > conftest.c <<\EOF
|
|
|
|
_start () {}
|
|
|
|
int __eh_pc;
|
|
|
|
__throw () {}
|
|
|
|
EOF
|
|
|
|
dnl No \ in command here because it ends up inside ''.
|
|
|
|
if AC_TRY_COMMAND([${CC-cc} $CFLAGS
|
|
|
|
-nostdlib -nostartfiles -fno-exceptions
|
|
|
|
-o conftest conftest.c]); then
|
|
|
|
libc_cv_gcc_no_exceptions=yes
|
|
|
|
else
|
|
|
|
libc_cv_gcc_no_exceptions=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*])
|
|
|
|
AC_SUBST(libc_cv_gcc_no_exceptions)dnl
|
|
|
|
|
1996-03-20 05:10:11 +08:00
|
|
|
### End of automated tests.
|
|
|
|
### Now run sysdeps configure fragments.
|
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
# sysdeps configure fragments may set these with files to be linked below.
|
|
|
|
libc_link_dests=
|
|
|
|
libc_link_sources=
|
|
|
|
|
|
|
|
# Iterate over all the sysdep directories we will use, running their
|
|
|
|
# configure fragments, and looking for a uname implementation.
|
|
|
|
uname=
|
|
|
|
for dir in $sysnames; do
|
1996-09-05 10:49:18 +08:00
|
|
|
case $dir in
|
|
|
|
/*) dest=$dir ;;
|
|
|
|
*) dest=$srcdir/$dir ;;
|
|
|
|
esac
|
|
|
|
if test -r $dest/configure; then
|
|
|
|
AC_MSG_RESULT(running configure fragment for $dest)
|
|
|
|
. $dest/configure
|
1995-02-18 09:27:10 +08:00
|
|
|
fi
|
1996-02-08 10:10:15 +08:00
|
|
|
[
|
1995-02-18 09:27:10 +08:00
|
|
|
if test -z "$uname"; then
|
1996-01-30 03:30:15 +08:00
|
|
|
if test -r $sysdep_dir/$dir/uname.c ||
|
|
|
|
test -r $sysdep_dir/$dir/uname.S ||
|
|
|
|
{ test -r $sysdep_dir/$dir/syscalls.list &&
|
|
|
|
grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
|
|
|
|
uname=$dir
|
1996-02-08 10:10:15 +08:00
|
|
|
fi
|
1995-02-18 09:27:10 +08:00
|
|
|
fi
|
1996-02-08 10:10:15 +08:00
|
|
|
]dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
AC_LINK_FILES(`echo $libc_link_sources`, `echo $libc_link_dests`)
|
|
|
|
|
|
|
|
# If we will use the generic uname implementation, we must figure out what
|
|
|
|
# it will say by examining the system, and write the results in config-name.h.
|
|
|
|
if test "$uname" = generic; then
|
|
|
|
|
|
|
|
changequote(,)dnl
|
|
|
|
uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
|
|
|
|
changequote([,])dnl
|
|
|
|
if test $uname_sysname != $config_os; then
|
|
|
|
config_release=`echo $config_os | sed s/$uname_sysname//`
|
|
|
|
fi
|
|
|
|
dnl
|
|
|
|
AC_DEFUN(LIBC_KERNEL_ID, [dnl
|
|
|
|
if test -r /vmunix; then
|
|
|
|
kernel_id=`strings /vmunix | grep UNIX`
|
|
|
|
elif test -r /dynix; then
|
|
|
|
kernel_id=`strings /dynix | grep DYNIX`
|
|
|
|
else
|
|
|
|
kernel_id=
|
|
|
|
fi
|
|
|
|
])dnl
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(OS release for uname, libc_cv_uname_release, [dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_REQUIRE([LIBC_KERNEL_ID])dnl
|
|
|
|
changequote(,)dnl
|
|
|
|
kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
|
|
|
|
changequote([,])dnl
|
|
|
|
if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
|
|
|
|
!= x$config_release; then
|
|
|
|
# The configuration release is a substring of the kernel release.
|
|
|
|
libc_cv_uname_release=$kernel_release
|
|
|
|
elif test x$config_release != x; then
|
|
|
|
libc_cv_uname_release=$config_release
|
|
|
|
elif test x$kernel_release != x; then
|
|
|
|
libc_cv_uname_release=$kernel_release
|
|
|
|
else
|
|
|
|
libc_cv_uname_release=unknown
|
|
|
|
fi])
|
|
|
|
uname_release="$libc_cv_uname_release"
|
|
|
|
|
1995-07-27 17:00:07 +08:00
|
|
|
AC_CACHE_CHECK(OS version for uname, libc_cv_uname_version, [dnl
|
1995-02-18 09:27:10 +08:00
|
|
|
AC_REQUIRE([LIBC_KERNEL_ID])dnl
|
|
|
|
changequote(,)dnl
|
|
|
|
kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
|
|
|
|
changequote([,])dnl
|
|
|
|
if test -n "$kernel_version"; then
|
|
|
|
libc_cv_uname_version="$kernel_version"
|
|
|
|
else
|
|
|
|
libc_cv_uname_version=unknown
|
|
|
|
fi])
|
|
|
|
uname_version="$libc_cv_uname_version"
|
|
|
|
|
|
|
|
AC_SUBST(uname_sysname) AC_SUBST(uname_release) AC_SUBST(uname_version)dnl
|
|
|
|
config_uname=config-name.h:config-name.in
|
|
|
|
else
|
|
|
|
# For non-generic uname, we don't need to create config-name.h at all.
|
|
|
|
config_uname=
|
|
|
|
fi
|
|
|
|
|
Sat Nov 18 16:46:01 1995 Ulrich Drepper <drepper@gnu.ai.mit.edu>
* libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
New files. Slightly modified version from Linux libc.
* libio/memstream.c, libio/vdprintf.c: New files for functions not
(yet) part of GNU libio.
* libio/iofopncook.c: Implementation of `fopencookie', mainly written
by Per Bothner.
* stdio-common/getline.c: Adapted to libio.
* stdio-common/snprintf.c: Adapted to libio.
* stdio-common/vfprintf.c: Adapted to libio.
* stdio-common/vfscanf.c: Adapted to libio.
* sysdeps/posix/tempname.c: Adapted to libio.
1995-11-20 11:48:11 +08:00
|
|
|
AC_MSG_CHECKING(stdio selection)
|
|
|
|
AC_SUBST(stdio)
|
|
|
|
case $stdio in
|
|
|
|
libio) AC_DEFINE(USE_IN_LIBIO) ;;
|
|
|
|
default) stdio=stdio ;;
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT($stdio)
|
|
|
|
|
1996-03-20 05:10:11 +08:00
|
|
|
AC_SUBST(gnu_ld) AC_SUBST(gnu_as) AC_SUBST(elf)
|
1995-02-18 09:27:10 +08:00
|
|
|
if test $gnu_ld = yes; then
|
|
|
|
AC_DEFINE(HAVE_GNU_LD)
|
|
|
|
fi
|
|
|
|
if test $gnu_as = yes; then
|
|
|
|
AC_DEFINE(HAVE_GNU_AS)
|
|
|
|
fi
|
|
|
|
if test $elf = yes; then
|
|
|
|
AC_DEFINE(HAVE_ELF)
|
|
|
|
fi
|
|
|
|
|
1995-03-10 12:12:12 +08:00
|
|
|
AC_SUBST(shared)
|
|
|
|
if test $shared = default; then
|
|
|
|
if test $gnu_ld = yes; then
|
|
|
|
shared=$elf
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AC_SUBST(profile)
|
|
|
|
AC_SUBST(omitfp)
|
|
|
|
|
update from main archive 960906
Sat Sep 7 05:15:45 1996 Ulrich Drepper <drepper@cygnus.com>
* libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
* libio/iofopen: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/iovsprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/memstream.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vdprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
Sat Sep 7 03:55:47 1996 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig (soversions.mk): Also use shlib-versions files
in add-on directories.
* config.make.in (config-defines): Remove. Not used anymore.
(defines): New variable. Initiliazed by @DEFINES@.
* configure.in: Add AC_SUBST(DEFINES).
* libio/Makefile (routines): When compiling reentrant libc add
clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
iofflush_u, putc_u, putchar_u, ioflockfile.
(CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
* sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
and __libc_cleanup_region_end.
* sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
using __errno_location function.
* sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
using __errno_location function.
(__errno_location): New function.
* sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
syscall_error handler for reentrant libc.
* sysdeps/unix/opendir.c: Remove unneeded `;'.
* libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
[!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
as empty macros.
* libioP.h: Include <libc-lock.h>.
* libio/stdio.h: Add prototypes for *_locked and *_unlocked
functions.
* libio/clearerr.c: Use _IO_ protected versions of flockfile
and funlockfile to be namespace clean.
* libio/genops.c: Use __libc_lock_* macros for handling lock.
* libio/iofdopen: Add initialization of _lock in _IO_FILE.
* libio/iofopen: Likewise.
* libio/iofopncook.c: Likewise.
* libio/iopopen.c: Likewise.
* libio/iovsprintf.c: Likewise.
* libio/iovsscanf.c: Likewise.
* libio/memstream.c: Likewise.
* libio/vasprintf.c: Likewise.
* libio/vdprintf.c: Likewise.
* libio/vsnprintf.c: Likewise.
* libio/fgetc.c: Use __libc_cleanup_region_* macros instead
of flockfile etc.
* libio/fputc.c: Likewise.
* libio/freopen.c: Likewise.
* libio/fseek.c: Likewise.
* libio/getc.c: Likewise.
* libio/getchar.c: Likewise.
* libio/iofclose.c: Likewise.
* libio/iofflush.c: Likewise.
* libio/iofgetpos.c: Likewise.
* libio/iofgets.c: Likewise.
* libio/iofputs.c: Likewise.
* libio/iofread.c: Likewise.
* libio/iofsetpos.c: Likewise.
* libio/ioftell.c: Likewise.
* libio/iofwrite.c: Likewise.
* libio/iogetdelim.c: Likewise.
* libio/iogets.c: Likewise.
* libio/ioputs.c: Likewise.
* libio/iosetbuffer.c: Likewise.
* libio/iosetvbuf.c: Likewise.
* libio/ioungetc.c: Likewise.
* libio/putc.c: Likewise.
* libio/putchar.c: Likewise.
* libio/rewind.c: Likewise.
* stdio-common/vfprintf.c: Likewise.
* stdio-common/vfscanf.c: Likewise.
* libio/clearerr_u.c: Correct alias name.
* libio/ferror_u.c: Likewise.
* libio/fileno.c: Likewise.
* libio/fputc_u.c: Likewise.
* libio/getc.c: Likewise.
* libio/getc_u.c: Likewise.
* libio/getchar.c: Likewise.
* libio/getchar_u.c: Likewise.
* libio/putc.c: Likewise.
* libio/putchar.c: Likewise.
* libio/feof_u.c: Undefine macro with name of function before
definition of function itself.
* libio/ioflockfile.c: New file. Implementation of flockfile and
funlockfile.
* libio/putchar_u.c: Fix typo. Use stdout instead of fp.
* malloc/malloc.h: Don't include <libc-lock.h> and don't declare
_malloc_loc.
* malloc/free.c: Include <libc-lock.h>.
* malloc/realloc.c: Likewise.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/memalign.c: Likewise.
* malloc/malloc.c: Likewise.
* sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
Fri Sep 6 19:38:49 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
and __libc_lock_critical_end as empty macros.
* malloc/malloc.h: Don't include <libc-lock.h> and don't declare
__libc_malloc_lock.
* malloc/free.c: Include <libc-lock.h>.
* malloc/malloc-find.c: Likewise.
* malloc/malloc-size.c: Likewise.
* malloc/malloc-walk.c: Likewise.
* malloc/malloc.c: Likewise.
* malloc/memalign.c: Likewise.
* malloc/realloc.c: Likewise.
* Makefile: Undo change from Mon Sep 2 22:15:14 1996. No more
extra_solibs pass.
* Rules: Likewise.
* extra-lib.mk: Likewise.
* manual/Makefile: Likewise.
* db/Makefile (makedb): Choose dependecies based on build-shared.
Patch by Andres Schwab.
* sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
* sysdeps/unix/sysv/linux/errnos.h: New file.
* sysdeps/unix/sysv/linux/schedbits.h: New file.
* sysdeps/unix/sysv/linux/waitflags.h: New file.
* sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
Fri Sep 6 08:26:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* rpm/template: Fix typo in %build section.
Fri Sep 6 03:31:07 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
building libc without thread support.
* resolv/netdb.h: Likewise for h_errno macro.
Thu Sep 5 23:01:48 1996 Ulrich Drepper <drepper@cygnus.com>
* libc-symbols.h: Add new macro weak_const_function. It's like
weak_function, but the function is additionally marked as const.
* features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
Thu Sep 5 22:55:49 1996 Richard Henderson <rth@tamu.edu>
* inet/herrno.c (__h_errno_location): New function.
(h_errno): Make strong_alias __h_errno so that we can access
the variable even if `h_errno' is a macro.
* resolv/netdb.h: Define macro h_errno to access thread specific
version of h_errno variable. Declare alias __h_errno for h_errno.
* resolv/res_query (h_errno): Remove definition.
* sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
Add macro `errno' to get thread specific variable.
* sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
__errno_location function.
(__errno_location): New function.
Thu Sep 5 21:08:44 1996 Ulrich Drepper <drepper@cygnus.com>
* posix/gnu/types.h: Remove definition of key_t.
* sysdeps/generic/gnu/types.h: Move it to here.
* sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
definition of key_t.
* sysdeps/unix/sysv/linux/waitflags.h: New file. Linux specific
definitions.
* sysdeps/unix/sysv/linux/schedbits.h: New file. Include
clone prototypes and associated flags.
Thu Sep 5 08:58:47 1996 Richard Henderson <rth@tamu.edu>
* sysdeps/alpha/elf/start.S: Make _start global again.
hertz.
here.
Wed Sep 4 16:16:13 1996 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
* sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1996-09-07 12:10:57 +08:00
|
|
|
AC_SUBST(DEFINES)
|
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
|
|
|
|
config_makefile=
|
|
|
|
else
|
|
|
|
config_makefile=Makefile
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_OUTPUT(config.make ${config_makefile} ${config_uname}, ,
|
|
|
|
[echo '$config_vars' >> config.make])
|