Updated for the new BSD ELF, not just for Linux anymore

This commit is contained in:
bdc 1999-08-10 17:14:48 +00:00
parent 7e1ad158c7
commit f0e9ece68e
2 changed files with 437 additions and 219 deletions

639
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -166,17 +166,17 @@ AC_DEFUN(SCSH_GMTOFF,[
]) ])
dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- dnl -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
AC_DEFUN(SCSH_LINUX_ELF, [ AC_DEFUN(SCSH_ELF, [
AC_MSG_CHECKING(for Linux using ELF) AC_MSG_CHECKING(for ELF)
AC_CACHE_VAL(scsh_cv_linux_elf,[ AC_CACHE_VAL(scsh_cv_elf,[
touch conftest.c touch conftest.c
if ${CC} -v -o a.out conftest.c 2>&1 | grep -q __ELF__ ; then if ${CC} -v -o a.out conftest.c 2>&1 | grep -q __ELF__ ; then
scsh_cv_linux_elf=yes scsh_cv_elf=yes
else else
scsh_cv_linux_elf=no scsh_cv_elf=no
fi]) fi])
AC_MSG_RESULT($scsh_cv_linux_elf) AC_MSG_RESULT($scsh_cv_elf)
if test $scsh_cv_linux_elf = yes; then if test $scsh_cv_elf = yes; then
LDFLAGS=-rdynamic LDFLAGS=-rdynamic
fi fi
rm -f conftest.c a.out rm -f conftest.c a.out
@ -286,12 +286,13 @@ case "$host" in
dir=linux dir=linux
# gross, but needed for some older a.out systems for 0.4.x # gross, but needed for some older a.out systems for 0.4.x
LIBS=-lc LIBS=-lc
SCSH_LINUX_ELF SCSH_ELF
;; ;;
## NetBSD and FreeBSD ( and maybe 386BSD also) ## NetBSD and FreeBSD ( and maybe 386BSD also)
*-*-*bsd* ) *-*-*bsd* )
dir=bsd dir=bsd
SCSH_ELF
;; ;;
## NeXT ## NeXT