configure.in (--with-mpfr-dir, [...]): Remove flags.

* configure.in (--with-mpfr-dir, --with-gmp-dir): Remove flags.
	(--with-mpfr-include, --with-mpfr-lib, --with-gmp-include,
	--with-gmp-lib): New flags.

	* configure: Regenerate.

gcc:
	* doc/install.texi: Move GMP/MPFR configure options from Fortran
	section to general section.  Remove documentation for
	--with-mpfr-dir and --with-gmp-dir, add documentation for
	--with-mpfr-include, --with-mpfr-lib, --with-gmp-include and
	--with-gmp-lib.

From-SVN: r119232
This commit is contained in:
Kaveh Ghazi 2006-11-26 22:37:33 +00:00
parent ba4ac68280
commit 8a877c9cfa
3 changed files with 264 additions and 229 deletions

373
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1052,54 +1052,57 @@ ACX_PROG_GNAT
ACX_PROG_CMP_IGNORE_INITIAL ACX_PROG_CMP_IGNORE_INITIAL
# Check for GMP and MPFR # Check for GMP and MPFR
gmplibs= gmplibs="-lmpfr"
gmpinc= gmpinc=
have_gmp=yes have_gmp=yes
# Specify a location for mpfr # Specify a location for mpfr
# check for this first so it ends up on the link line before gmp. # check for this first so it ends up on the link line before gmp.
AC_ARG_WITH(mpfr-dir, [ --with-mpfr-dir=PATH Specify source directory for MPFR library]) AC_ARG_WITH(mpfr-dir, [ --with-mpfr-dir=PATH This option has been REMOVED],
AC_MSG_ERROR([The --with-mpfr-dir=PATH option has been removed.
Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH]))
if test "x$with_mpfr_dir" != x; then AC_ARG_WITH(mpfr, [ --with-mpfr=PATH Specify prefix directory for installed MPFR package
gmpinc="-I$with_mpfr_dir" Equivalent to --with-mpfr-include=PATH/include
if test -f "$with_mpfr_dir/.libs/libmpfr.a"; then plus --with-mpfr-lib=PATH/lib])
gmplibs="$with_mpfr_dir/.libs/libmpfr.a" AC_ARG_WITH(mpfr_include, [ --with-mpfr-include=PATH
elif test -f "$with_mpfr_dir/_libs/libmpfr.a"; then Specify directory for installed MPFR include files])
gmplibs="$with_mpfr_dir/_libs/libmpfr.a" AC_ARG_WITH(mpfr_lib, [ --with-mpfr-lib=PATH Specify the directory for the installed MPFR library])
else
gmplibs="$with_mpfr_dir/libmpfr.a"
fi
else
gmplibs="-lmpfr"
fi
AC_ARG_WITH(mpfr, [ --with-mpfr=PATH Specify directory for installed MPFR library])
if test "x$with_mpfr" != x; then if test "x$with_mpfr" != x; then
gmplibs="-L$with_mpfr/lib $gmplibs" gmplibs="-L$with_mpfr/lib $gmplibs"
gmpinc="-I$with_mpfr/include" gmpinc="-I$with_mpfr/include"
fi fi
if test "x$with_mpfr_include" != x; then
# Specify a location for gmp gmpinc="-I$with_mpfr_include"
AC_ARG_WITH(gmp-dir, [ --with-gmp-dir=PATH Specify source directory for GMP library]) fi
if test "x$with_mpfr_lib" != x; then
if test "x$with_gmp_dir" != x; then gmplibs="-L$with_mpfr_lib $gmplibs"
gmpinc="$gmpinc -I$with_gmp_dir"
if test -f "$with_gmp_dir/.libs/libgmp.a"; then
gmplibs="$gmplibs $with_gmp_dir/.libs/libgmp.a"
elif test -f "$with_gmp_dir/_libs/libgmp.a"; then
gmplibs="$gmplibs $with_gmp_dir/_libs/libgmp.a"
fi
# One of the later tests will catch the error if neither library is present.
else
gmplibs="$gmplibs -lgmp"
fi fi
AC_ARG_WITH(gmp, [ --with-gmp=PATH Specify directory for installed GMP library]) # Specify a location for gmp
AC_ARG_WITH(gmp-dir, [ --with-gmp-dir=PATH This option has been REMOVED],
AC_MSG_ERROR([The --with-gmp-dir=PATH option has been removed.
Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH]))
gmplibs="$gmplibs -lgmp"
AC_ARG_WITH(gmp, [ --with-gmp=PATH Specify prefix directory for the installed GMP package
Equivalent to --with-gmp-include=PATH/include
plus --with-gmp-lib=PATH/lib])
AC_ARG_WITH(gmp_include, [ --with-gmp-include=PATH Specify directory for installed GMP include files])
AC_ARG_WITH(gmp_lib, [ --with-gmp-lib=PATH Specify the directory for the installed GMP library])
if test "x$with_gmp" != x; then if test "x$with_gmp" != x; then
gmplibs="-L$with_gmp/lib $gmplibs" gmplibs="-L$with_gmp/lib $gmplibs"
gmpinc="-I$with_gmp/include $gmpinc" gmpinc="-I$with_gmp/include $gmpinc"
fi fi
if test "x$with_gmp_include" != x; then
gmpinc="-I$with_gmp_include $gmpinc"
fi
if test "x$with_gmp_lib" != x; then
gmplibs="-L$with_gmp_lib $gmplibs"
fi
saved_CFLAGS="$CFLAGS" saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $gmpinc" CFLAGS="$CFLAGS $gmpinc"

View File

@ -294,7 +294,8 @@ systems' @command{tar} programs will also work, only try GNU
Necessary to build GCC. If you do not have it installed in your Necessary to build GCC. If you do not have it installed in your
library search path, you will have to configure with the library search path, you will have to configure with the
@option{--with-gmp} or @option{--with-gmp-dir} configure option. @option{--with-gmp} configure option. See also
@option{--with-gmp-lib} and @option{--with-gmp-include}.
@item MPFR Library version 2.2 (or later) @item MPFR Library version 2.2 (or later)
@ -302,13 +303,14 @@ Necessary to build GCC. It can be downloaded from
@uref{http://www.mpfr.org/}. If you're using version 2.2.0, You @uref{http://www.mpfr.org/}. If you're using version 2.2.0, You
should also apply revision 16 (or later) of the cumulative patch from should also apply revision 16 (or later) of the cumulative patch from
@uref{http://www.mpfr.org/mpfr-current/}. The version of MPFR that is @uref{http://www.mpfr.org/mpfr-current/}. The version of MPFR that is
bundled with GMP 4.1.x contains numerous bugs. Although GNU Fortran bundled with GMP 4.1.x contains numerous bugs. Although GCC will
will appear to function with the buggy versions of MPFR, there are a appear to function with the buggy versions of MPFR, there are a few
few GNU Fortran bugs that will not be fixed when using this version. bugs that will not be fixed when using this version. It is strongly
It is strongly recommended to upgrade to at least MPFR version 2.2. recommended to upgrade to the recommended version of MPFR.
The @option{--with-mpfr} or @option{--with-mpfr-dir} configure option should The @option{--with-mpfr} configure option should be used if your MPFR
be used if your MPFR Library is not installed in your library search path. Library is not installed in your default library search path. See
also @option{--with-mpfr-lib} and @option{--with-mpfr-include}.
@item @command{jar}, or InfoZIP (@command{zip} and @command{unzip}) @item @command{jar}, or InfoZIP (@command{zip} and @command{unzip})
@ -1295,6 +1297,26 @@ When neither of these configure options are used, the default will be
128-bit @code{long double} when built against GNU C Library 2.4 and later, 128-bit @code{long double} when built against GNU C Library 2.4 and later,
64-bit @code{long double} otherwise. 64-bit @code{long double} otherwise.
@item --with-gmp=@var{pathname}
@itemx --with-gmp-include=@var{pathname}
@itemx --with-gmp-lib=@var{pathname}
@itemx --with-mpfr=@var{pathname}
@itemx --with-mpfr-include=@var{pathname}
@itemx --with-mpfr-lib=@var{pathname}
If you do not have GMP (the GNU Multiple Precision library) and the
MPFR Libraries installed in a standard location and you want to build
GCC, you can explicitly specify the directory where they are installed
(@samp{--with-gmp=@var{gmpinstalldir}},
@samp{--with-mpfr=@var{mpfrinstalldir}}). The
@option{--with-gmp=@var{gmpinstalldir}} option is shorthand for
@option{--with-gmp-lib=@var{gmpinstalldir}/lib} and
@option{--with-gmp-include=@var{gmpinstalldir}/include}. Likewise the
@option{--with-mpfr=@var{mpfrinstalldir}} option is shorthand for
@option{--with-mpfr-lib=@var{mpfrinstalldir}/lib} and
@option{--with-mpfr-include=@var{mpfrinstalldir}/include}. If these
shorthand assumptions are not correct, you can use the explicit
include and lib options directly.
@end table @end table
@subheading Cross-Compiler-Specific Options @subheading Cross-Compiler-Specific Options
@ -1376,25 +1398,6 @@ When you use this option, you should ensure that @var{dir} includes
tools. tools.
@end table @end table
@subheading Fortran-Specific Options
The following options apply to the build of the Fortran front end.
@table @code
@item --with-gmp=@var{pathname}
@itemx --with-mpfr=@var{pathname}
@itemx --with-gmp-dir=@var{pathname}
@itemx --with-mpfr-dir=@var{pathname}
If you don't have GMP (the GNU Multiple Precision library) and the MPFR
Libraries installed in a standard location and you want to build the Fortran
front-end, you can explicitly specify the directory where they are installed
(@samp{--with-gmp=gmpinstalldir}, @samp{--with-mpfr=mpfrinstalldir}) or where
you built them without installing (@samp{--with-gmp-dir=gmpbuilddir},
@samp{--with-mpfr-dir=gmpbuilddir}).
@end table
@subheading Java-Specific Options @subheading Java-Specific Options
The following option applies to the build of the Java front end. The following option applies to the build of the Java front end.