aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-10-28 06:44:41 +0000
committerUlrich Drepper <drepper@redhat.com>2006-10-28 06:44:41 +0000
commit78fbd00f39d48592d55bd4a022a909c9577b21db (patch)
tree2bf24b213e2eeb96c06422c63ed4108db191e78e /configure.in
parenteb0a3d0cab507fecefe390a340f74ab8e5cf7831 (diff)
downloadglibc-78fbd00f39d48592d55bd4a022a909c9577b21db.zip
glibc-78fbd00f39d48592d55bd4a022a909c9577b21db.tar.gz
glibc-78fbd00f39d48592d55bd4a022a909c9577b21db.tar.bz2
* configure.in: Require assembler support for visibility, compiler
support for visibility and aliases, linker support for various -z options. * Makeconfig: Remove conditional code which now is unnecessary. * config.h.in: Likewise. * config.make.in: Likewise. * dlfcn/Makefile: Likewise. * elf/Makefile: Likewise. * elf/dl-load.c: Likewise. * elf/rtld.c: Likewise. * include/libc-symbols.h: Likewise. * include/stdio.h: Likewise. * io/Makefile: Likewise. * io/fstat.c: Likewise. * io/fstat64.c: Likewise. * io/fstatat.c: Likewise. * io/fstatat64.c: Likewise. * io/lstat.c: Likewise. * io/lstat64.c: Likewise. * io/mknod.c: Likewise. * io/mknodat.c: Likewise. * io/stat.c: Likewise. * io/stat64.c: Likewise. * libio/stdio.c: Likewise. * nscd/Makefile: Likewise. * stdlib/Makefile: Likewise. * stdlib/atexit.c: Likewise. * sysdeps/generic/ldsodefs.h: Likewise. * sysdeps/i386/dl-machine.h: Likewise. * sysdeps/i386/sysdep.h: Likewise. * sysdeps/i386/i686/memcmp.S: Likewise. * sysdeps/powerpc/powerpc32/sysdep.h: Likewise. * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in27
1 files changed, 10 insertions, 17 deletions
diff --git a/configure.in b/configure.in
index 6a7e51d..fb43804 100644
--- a/configure.in
+++ b/configure.in
@@ -1259,12 +1259,9 @@ EOF
if AC_TRY_COMMAND(${CC-cc} -c $ASFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_asm_protected_directive=yes
else
- libc_cv_asm_protected_directive=no
+ AC_MSG_ERROR(assembler support for symbol visibility is required)
fi
rm -f conftest*])
- AC_SUBST(libc_cv_asm_protected_directive)
- AC_DEFINE(HAVE_PROTECTED)
- AC_DEFINE(HAVE_HIDDEN)
if test $libc_cv_asm_protected_directive = yes; then
AC_CACHE_CHECK(whether __attribute__((visibility())) is supported,
@@ -1283,8 +1280,8 @@ EOF
fi
rm -f conftest.[cs]
])
- if test $libc_cv_visibility_attribute = yes; then
- AC_DEFINE(HAVE_VISIBILITY_ATTRIBUTE)
+ if test $libc_cv_visibility_attribute != yes; then
+ AC_MSG_ERROR(compiler support for visibility attribute is required)
fi
fi
@@ -1307,7 +1304,7 @@ changequote([,])dnl
rm -f conftest.c conftest.s
])
if test $libc_cv_broken_visibility_attribute = yes; then
- AC_DEFINE(HAVE_BROKEN_VISIBILITY_ATTRIBUTE)
+ AC_MSG_ERROR(working compiler support for visibility attribute is required)
fi
fi
@@ -1331,7 +1328,7 @@ EOF
rm -f conftest.c conftest.s
])
if test $libc_cv_broken_alias_attribute = yes; then
- AC_DEFINE(HAVE_BROKEN_ALIAS_ATTRIBUTE)
+ AC_MSG_ERROR(working alias attribute support required)
fi
if test $libc_cv_visibility_attribute = yes; then
@@ -1403,10 +1400,9 @@ EOF
then
libc_cv_z_nodelete=yes
else
- libc_cv_z_nodelete=no
+ AC_MSG_ERROR(linker with -z nodelete support required)
fi
rm -f conftest*])
- AC_SUBST(libc_cv_z_nodelete)
AC_CACHE_CHECK(for -z nodlopen option,
libc_cv_z_nodlopen, [dnl
@@ -1420,10 +1416,9 @@ EOF
then
libc_cv_z_nodlopen=yes
else
- libc_cv_z_nodlopen=no
+ AC_MSG_ERROR(linker with -z nodlopen support required)
fi
rm -f conftest*])
- AC_SUBST(libc_cv_z_nodlopen)
AC_CACHE_CHECK(for -z initfirst option,
libc_cv_z_initfirst, [dnl
@@ -1437,10 +1432,9 @@ EOF
then
libc_cv_z_initfirst=yes
else
- libc_cv_z_initfirst=no
+ AC_MSG_ERROR(linker with -z initfirst support required)
fi
rm -f conftest*])
- AC_SUBST(libc_cv_z_initfirst)
AC_CACHE_CHECK(for -z relro option,
libc_cv_z_relro, [dnl
@@ -1452,9 +1446,8 @@ EOF
libc_cv_z_relro=yes
fi
fi])
- AC_SUBST(libc_cv_z_relro)
- if test $libc_cv_z_relro = yes; then
- AC_DEFINE(HAVE_Z_RELRO)
+ if test $libc_cv_z_relro != yes; then
+ AC_MSG_ERROR(linker with -z relro support required)
fi
AC_CACHE_CHECK(for -Bgroup option,