Commit 4e88d51b by Jason Merrill Committed by Jeff Law

configure.in: Fix --without/--disable cases for local-prefix, gxx-include-dir and checking.

        * configure.in: Fix --without/--disable cases for local-prefix,
        gxx-include-dir and checking.

From-SVN: r21464
parent 2e18cb32
Tue Jul 28 23:29:04 1998 Jason Merrill <jason@yorick.cygnus.com>
* configure.in: Fix --without/--disable cases for local-prefix,
gxx-include-dir and checking.
Tue Jul 28 22:01:23 1998 David S. Miller <davem@pierdol.cobaltmicro.com> Tue Jul 28 22:01:23 1998 David S. Miller <davem@pierdol.cobaltmicro.com>
* configure.in (enable_haifa): Set by default for sparc64 too. * configure.in (enable_haifa): Set by default for sparc64 too.
......
...@@ -56,30 +56,47 @@ elf="$with_elf", ...@@ -56,30 +56,47 @@ elf="$with_elf",
elf=no) elf=no)
# Specify the local prefix # Specify the local prefix
local_prefix=
AC_ARG_WITH(local-prefix, AC_ARG_WITH(local-prefix,
[ --with-local-prefix=DIR specifies directory to put local include.], [ --with-local-prefix=DIR specifies directory to put local include.],
local_prefix=$with_local_prefix, [case "${withval}" in
local_prefix=/usr/local) yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
no) ;;
*) local_prefix=$with_local_prefix ;;
esac])
# Default local prefix if it is empty # Default local prefix if it is empty
if [[ x$local_prefix = x ]]; then if [[ x$local_prefix = x ]]; then
local_prefix=/usr/local local_prefix=/usr/local
fi fi
gxx_include_dir=
# Specify the g++ header file directory # Specify the g++ header file directory
AC_ARG_WITH(gxx-include-dir, AC_ARG_WITH(gxx-include-dir,
[ --with-gxx-include-dir=DIR [ --with-gxx-include-dir=DIR
specifies directory to put g++ header files.], specifies directory to put g++ header files.],
gxx_include_dir=$with_gxx_include_dir, [case "${withval}" in
if test x${enable_version_specific_runtime_libs} = xyes; then yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
gxx_include_dir='${libsubdir}/include/g++' no) ;;
else gxx_include_dir='${prefix}/include/g++'; fi) *) gxx_include_dir=$with_gxx_include_dir ;;
esac])
if test x${gxx_include_dir} = x; then
if test x${enable_version_specific_runtime_libs} = xyes; then
gxx_include_dir='${libsubdir}/include/g++'
else
gxx_include_dir='${prefix}/include/g++'
fi
fi
# Enable expensive internal checks # Enable expensive internal checks
AC_ARG_ENABLE(checking, AC_ARG_ENABLE(checking,
[ --enable-checking enable expensive run-time checks.], [ --enable-checking enable expensive run-time checks.],
AC_DEFINE(ENABLE_CHECKING) [case "${enableval}" in
) yes) AC_DEFINE(ENABLE_CHECKING) ;;
no) ;;
*) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
esac])
# Enable use of cpplib for C. # Enable use of cpplib for C.
cpp_main=cccp cpp_main=cccp
......
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