This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch to make --enable-cpp the default
- To: egcs-patches at egcs dot cygnus dot com
- Subject: patch to make --enable-cpp the default
- From: Zack Weinberg <zack at rabi dot columbia dot edu>
- Date: Wed, 28 Apr 1999 09:34:03 -0400
This patch makes --enable-cpp the default, and places both it and
--with-cpp-install-dir into the configure --help text. I think this
patch should go into 1.2, because the internal `cpp' executable is no
longer suitable for direct use.
zw
1999-04-28 09:32 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
* configure.in: Add AC_ARG_ENABLE(cpp) and
AC_ARG_WITH(cpp_install_dir) [argument required]. Make
--enable-cpp the default. Set cpp_install_dir from
--with-cpp-install-dir.
===================================================================
Index: configure.in
--- configure.in 1999/04/26 01:01:37 1.243
+++ configure.in 1999/04/28 13:30:52
@@ -183,6 +183,20 @@
*) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
esac])
+AC_ARG_ENABLE(cpp,
+[ --disable-cpp don't provide a user-visible C preprocessor.],
+[], [enable_cpp=yes])
+
+AC_ARG_WITH(cpp_install_dir,
+[ --with-cpp-install-dir=DIR
+ install the user visible C preprocessor in DIR
+ (relative to PREFIX) as well as PREFIX/bin.],
+[if test x$withval = xyes; then
+ AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
+elif test x$withval != xno; then
+ cpp_install_dir=$withval
+fi])
+
# Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
cpp_main=cccp
AC_ARG_ENABLE(cpplib,
@@ -194,7 +208,7 @@
# Link cpplib into the compiler proper, for C/C++/ObjC.
AC_ARG_ENABLE(c-cpplib,
[ --enable-c-cpplib link cpplib directly into C and C++ compilers
- (implies --enable-cpplib).],
+ (EXPERIMENTAL) (implies --enable-cpplib).],
if test x$enable_c_cpplib != xno; then
extra_c_objs="${extra_c_objs} libcpp.a"
extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
@@ -422,9 +436,6 @@
host_truncate_target=
host_exeext=
-# It is relative to $prefix.
-cpp_install_dir=
-
# Decode the host machine, then the target machine.
# For the host machine, we save the xm_file variable as host_xm_file;
# then we decode the target machine and forget everything else
@@ -3525,7 +3536,7 @@
fi
# Handle cpp installation.
-if [[ x$enable_cpp != x ]]
+if test x$enable_cpp != xno
then
tmake_file="$tmake_file t-install-cpp"
fi