mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
679e4c434f
just return &_nl_C_locobj instead of copying it. * locale/freelocale.c (__freelocale): Check for &_nl_C_locobj. * locale/duplocale.c (__duplocale): Likewise. 2002-10-07 Roland McGrath <roland@frob.com> * config.h.in (HAVE_I386_SET_GDT): New #undef. * sysdeps/mach/configure.in: Define it with new check for i386_set_gdt. * sysdeps/mach/configure: Regenerated. 2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL): Add all necessary register outputs for syscall-clobbered registers. 2002-10-02 David Mosberger <davidm@hpl.hp.com> * sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for Itanium 2 (and Itanium). Fix unwind directives and make it fit in 80 columns. * sysdeps/ia64/memset.S: Ditto. * sysdeps/ia64/memcpy.S: Ditto. Move jump table to .rodata section. 2002-10-03 Roland McGrath <roland@frob.com> * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add clobbers to asm.
371 lines
10 KiB
Plaintext
371 lines
10 KiB
Plaintext
|
|
if test "x$MIG" = xMISSING; then
|
|
{ echo "configure: error: cannot find required build tool mig" 1>&2; exit 1; }
|
|
fi
|
|
|
|
### Sanity checks for Mach header installation
|
|
ac_safe=`echo "mach/mach_types.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for mach/mach_types.h""... $ac_c" 1>&6
|
|
echo "configure:10: checking for mach/mach_types.h" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 15 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/mach_types.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:20: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
{ echo "configure: error: cannot find Mach headers" 1>&2; exit 1; }
|
|
fi
|
|
|
|
ac_safe=`echo "mach/mach_types.defs" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for mach/mach_types.defs""... $ac_c" 1>&6
|
|
echo "configure:44: checking for mach/mach_types.defs" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 49 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/mach_types.defs>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:54: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
:
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
{ echo "configure: error: cannot find Mach .defs files" 1>&2; exit 1; }
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo $ac_n "checking for task_t in mach/mach_types.h""... $ac_c" 1>&6
|
|
echo "configure:80: checking for task_t in mach/mach_types.h" >&5
|
|
if eval "test \"`echo '$''{'libc_cv_mach_task_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 85 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/mach_types.h>
|
|
int main() {
|
|
extern task_t foo;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:92: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
libc_cv_mach_task_t=task_t
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
libc_cv_mach_task_t=task_port_t
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$libc_cv_mach_task_t" 1>&6
|
|
if test $libc_cv_mach_task_t != task_t; then
|
|
DEFINES="$DEFINES -Dtask_t=task_port_t"
|
|
fi
|
|
echo $ac_n "checking for thread_t in mach/mach_types.h""... $ac_c" 1>&6
|
|
echo "configure:109: checking for thread_t in mach/mach_types.h" >&5
|
|
if eval "test \"`echo '$''{'libc_cv_mach_thread_t'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 114 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/mach_types.h>
|
|
int main() {
|
|
extern thread_t foo;
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
libc_cv_mach_thread_t=thread_t
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
libc_cv_mach_thread_t=thread_port_t
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$libc_cv_mach_thread_t" 1>&6
|
|
if test $libc_cv_mach_thread_t != thread_t; then
|
|
DEFINES="$DEFINES -Dthread_t=thread_port_t"
|
|
fi
|
|
|
|
echo $ac_n "checking for creation_time in task_basic_info""... $ac_c" 1>&6
|
|
echo "configure:139: checking for creation_time in task_basic_info" >&5
|
|
if eval "test \"`echo '$''{'libc_cv_mach_task_creation_time'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 144 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/task_info.h>
|
|
int main() {
|
|
|
|
extern struct task_basic_info *i;
|
|
long s = i->creation_time.seconds;
|
|
|
|
; return 0; }
|
|
EOF
|
|
if { (eval echo configure:154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
|
rm -rf conftest*
|
|
libc_cv_mach_task_creation_time=yes
|
|
else
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
libc_cv_mach_task_creation_time=no
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
|
|
echo "$ac_t""$libc_cv_mach_task_creation_time" 1>&6
|
|
if test $libc_cv_mach_task_creation_time = no; then
|
|
DEFINES="$DEFINES -DNO_CREATION_TIME=1"
|
|
fi
|
|
|
|
mach_interface_list=
|
|
for ifc in mach mach4 \
|
|
clock clock_priv host_priv host_security ledger lock_set \
|
|
processor processor_set task thread_act vm_map \
|
|
memory_object memory_object_default default_pager \
|
|
i386/mach_i386 \
|
|
; do
|
|
ac_safe=`echo "mach/${ifc}.defs" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for mach/${ifc}.defs""... $ac_c" 1>&6
|
|
echo "configure:180: checking for mach/${ifc}.defs" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 185 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/${ifc}.defs>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
mach_interface_list="$mach_interface_list $ifc"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
done
|
|
if test "x$mach_interface_list" = x; then
|
|
{ echo "configure: error: what manner of Mach is this?" 1>&2; exit 1; }
|
|
fi
|
|
|
|
echo $ac_n "checking for host_page_size in mach_host.defs""... $ac_c" 1>&6
|
|
echo "configure:217: checking for host_page_size in mach_host.defs" >&5
|
|
if eval "test \"`echo '$''{'libc_cv_mach_host_page_size'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 222 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/mach_host.defs>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "host_page_size" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
libc_cv_mach_host_page_size=yes
|
|
else
|
|
rm -rf conftest*
|
|
libc_cv_mach_host_page_size=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$libc_cv_mach_host_page_size" 1>&6
|
|
if test $libc_cv_mach_host_page_size = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_HOST_PAGE_SIZE 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
ac_safe=`echo "mach/machine/ndr_def.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for mach/machine/ndr_def.h""... $ac_c" 1>&6
|
|
echo "configure:248: checking for mach/machine/ndr_def.h" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 253 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/machine/ndr_def.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
ac_safe=`echo "machine/ndr_def.h" | sed 'y%./+-%__p_%'`
|
|
echo $ac_n "checking for machine/ndr_def.h""... $ac_c" 1>&6
|
|
echo "configure:279: checking for machine/ndr_def.h" >&5
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 284 "configure"
|
|
#include "confdefs.h"
|
|
#include <machine/ndr_def.h>
|
|
EOF
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
|
{ (eval echo configure:289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
|
|
if test -z "$ac_err"; then
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=yes"
|
|
else
|
|
echo "$ac_err" >&5
|
|
echo "configure: failed program was:" >&5
|
|
cat conftest.$ac_ext >&5
|
|
rm -rf conftest*
|
|
eval "ac_cv_header_$ac_safe=no"
|
|
fi
|
|
rm -f conftest*
|
|
fi
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
|
|
echo "$ac_t""yes" 1>&6
|
|
DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'"
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
echo $ac_n "checking for i386_io_perm_modify in mach_i386.defs""... $ac_c" 1>&6
|
|
echo "configure:314: checking for i386_io_perm_modify in mach_i386.defs" >&5
|
|
if eval "test \"`echo '$''{'libc_cv_mach_i386_ioports'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 319 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/i386/mach_i386.defs>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "i386_io_perm_modify" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
libc_cv_mach_i386_ioports=yes
|
|
else
|
|
rm -rf conftest*
|
|
libc_cv_mach_i386_ioports=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$libc_cv_mach_i386_ioports" 1>&6
|
|
if test $libc_cv_mach_i386_ioports = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_I386_IO_PERM_MODIFY 1
|
|
EOF
|
|
|
|
fi
|
|
|
|
echo $ac_n "checking for i386_set_gdt in mach_i386.defs""... $ac_c" 1>&6
|
|
echo "configure:344: checking for i386_set_gdt in mach_i386.defs" >&5
|
|
if eval "test \"`echo '$''{'libc_cv_mach_i386_gdt'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 349 "configure"
|
|
#include "confdefs.h"
|
|
#include <mach/i386/mach_i386.defs>
|
|
EOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
egrep "i386_set_gdt" >/dev/null 2>&1; then
|
|
rm -rf conftest*
|
|
libc_cv_mach_i386_gdt=yes
|
|
else
|
|
rm -rf conftest*
|
|
libc_cv_mach_i386_gdt=no
|
|
fi
|
|
rm -f conftest*
|
|
|
|
fi
|
|
|
|
echo "$ac_t""$libc_cv_mach_i386_gdt" 1>&6
|
|
if test $libc_cv_mach_i386_gdt = yes; then
|
|
cat >> confdefs.h <<\EOF
|
|
#define HAVE_I386_SET_GDT 1
|
|
EOF
|
|
|
|
fi
|