Commit 75a39864 by Jeffrey A Law Committed by Jeff Law

configure.in: Check for bogus GCC_EXEC_PREFIX and LIBRARY_PATH.

        * configure.in: Check for bogus GCC_EXEC_PREFIX and LIBRARY_PATH.
        * configure: Rebuilt.

From-SVN: r22320
parent b5370a88
Mon Sep 7 23:38:01 1998 Jeffrey A Law (law@cygnus.com)
* configure.in: Check for bogus GCC_EXEC_PREFIX and LIBRARY_PATH.
* configure: Rebuilt.
Mon Sep 7 22:41:46 1998 Michael Meissner <meissner@cygnus.com> Mon Sep 7 22:41:46 1998 Michael Meissner <meissner@cygnus.com>
* rs6000.c (rs6000_override_options): Fix name for ec603e, to add * rs6000.c (rs6000_override_options): Fix name for ec603e, to add
......
...@@ -29,6 +29,59 @@ hard_link=ln ...@@ -29,6 +29,59 @@ hard_link=ln
symbolic_link='ln -s' symbolic_link='ln -s'
copy=cp copy=cp
# Check for bogus environment variables.
# Test if LIBRARY_PATH contains the notation for the current directory
# since this would lead to problems installing/building glibc.
# LIBRARY_PATH contains the current directory if one of the following
# is true:
# - one of the terminals (":" and ";") is the first or last sign
# - two terminals occur directly after each other
# - the path contains an element with a dot in it
AC_MSG_CHECKING(LIBRARY_PATH variable)
changequote(,)dnl
case ${LIBRARY_PATH} in
[:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
library_path_setting="contains current directory"
;;
*)
library_path_setting="ok"
;;
esac
changequote([,])dnl
AC_MSG_RESULT($library_path_setting)
if test "$library_path_setting" != "ok"; then
AC_MSG_ERROR([
*** LIBRARY_PATH shouldn't contain the current directory when
*** building egcs. Please change the environment variable
*** and run configure again.])
fi
# Test if GCC_EXEC_PREFIX contains the notation for the current directory
# since this would lead to problems installing/building glibc.
# GCC_EXEC_PREFIX contains the current directory if one of the following
# is true:
# - one of the terminals (":" and ";") is the first or last sign
# - two terminals occur directly after each other
# - the path contains an element with a dot in it
AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
changequote(,)dnl
case ${GCC_EXEC_PREFIX} in
[:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
gcc_exec_prefix_setting="contains current directory"
;;
*)
gcc_exec_prefix_setting="ok"
;;
esac
changequote([,])dnl
AC_MSG_RESULT($gcc_exec_prefix_setting)
if test "$gcc_exec_prefix_setting" != "ok"; then
AC_MSG_ERROR([
*** GCC_EXEC_PREFIX shouldn't contain the current directory when
*** building egcs. Please change the environment variable
*** and run configure again.])
fi
# Check for additional parameters # Check for additional parameters
# With GNU ld # With GNU ld
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment