diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-11-28 23:37:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-11-28 23:37:49 +0000 |
commit | 0fea0021dc0a121c6164844f77e55e00963764ed (patch) | |
tree | c8ef4e71d88b5e33d0377441c12866646974a5a8 /sysdeps | |
parent | 6d4752d8b97037222ad88e74eb149459e5c0b53c (diff) | |
download | glibc-0fea0021dc0a121c6164844f77e55e00963764ed.tar glibc-0fea0021dc0a121c6164844f77e55e00963764ed.tar.gz glibc-0fea0021dc0a121c6164844f77e55e00963764ed.tar.bz2 glibc-0fea0021dc0a121c6164844f77e55e00963764ed.zip |
Update.
1998-11-28 23:23 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
* sysdeps/unix/sysv/linux/configure.in: Test for symlinks in
$prefix/include that may be clobbered on installation.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/configure | 23 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/configure.in | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index a55ba24fe2..4165a54327 100644 --- a/sysdeps/unix/sysv/linux/configure +++ b/sysdeps/unix/sysv/linux/configure @@ -116,3 +116,26 @@ case "$machine" in ;; esac + +# If $prefix/include/{net,scsi} are symlinks, make install will +# clobber what they're linked to (probably a kernel tree). +# test -L ought to work on all Linux boxes. +echo $ac_n "checking for symlinks in ${prefix}/include...$ac_c" +if test -L ${prefix}/include/net +then message=" ${prefix}/include/net is a symlink" +fi +if test -L ${prefix}/include/scsi +then message="$message + ${prefix}/include/scsi is a symlink" +fi +if test -n "$message"; then +echo " +*** error: +$message +\`make install' will destroy the target of the link(s). +Delete the links and re-run configure, or better still, move the entire +${prefix}/include directory out of the way." +exit 1 +else +echo " ok" +fi diff --git a/sysdeps/unix/sysv/linux/configure.in b/sysdeps/unix/sysv/linux/configure.in index 535cd8f41d..7a38bfda0c 100644 --- a/sysdeps/unix/sysv/linux/configure.in +++ b/sysdeps/unix/sysv/linux/configure.in @@ -101,3 +101,26 @@ case "$machine" in ;; esac changequote([,]) + +# If $prefix/include/{net,scsi} are symlinks, make install will +# clobber what they're linked to (probably a kernel tree). +# test -L ought to work on all Linux boxes. +echo $ac_n "checking for symlinks in ${prefix}/include...$ac_c" +if test -L ${prefix}/include/net +then message=" ${prefix}/include/net is a symlink" +fi +if test -L ${prefix}/include/scsi +then message="$message + ${prefix}/include/scsi is a symlink" +fi +if test -n "$message"; then +echo " +*** error: +$message +\`make install' will destroy the target of the link(s). +Delete the links and re-run configure, or better still, move the entire +${prefix}/include directory out of the way." +exit 1 +else +echo " ok" +fi |