summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2019-01-07 17:33:11 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-03-13 11:03:28 +0100
commit9cf62704104d60574d4da33a6a3c9ac4277af715 (patch)
treeb6f530c07fe3074b8600c2286e84234c2a623a0e
parent7ab8e6953ac1e0ece4132bb6684e8c8e46caae0b (diff)
gdb: Regenerate configure for --with-mpfr changes.gdb-9.1-ampgdb-9.1-amp-branch
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rwxr-xr-xconfigure14
-rwxr-xr-xgdb/configure99
2 files changed, 103 insertions, 10 deletions
diff --git a/configure b/configure
index 276f33fee3..6cfbecb2d1 100755
--- a/configure
+++ b/configure
@@ -750,6 +750,7 @@ infodir
docdir
oldincludedir
includedir
+runstatedir
localstatedir
sharedstatedir
sysconfdir
@@ -913,6 +914,7 @@ datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE}'
@@ -1165,6 +1167,15 @@ do
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
+ -runstatedir | --runstatedir | --runstatedi | --runstated \
+ | --runstate | --runstat | --runsta | --runst | --runs \
+ | --run | --ru | --r)
+ ac_prev=runstatedir ;;
+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+ | --run=* | --ru=* | --r=*)
+ runstatedir=$ac_optarg ;;
+
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1302,7 +1313,7 @@ fi
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
datadir sysconfdir sharedstatedir localstatedir includedir \
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
+ libdir localedir mandir runstatedir
do
eval ac_val=\$$ac_var
# Remove trailing slashes.
@@ -1462,6 +1473,7 @@ Fine tuning of the installation directories:
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
diff --git a/gdb/configure b/gdb/configure
index b572d414ca..2129f2a266 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -885,7 +885,12 @@ with_jit_reader_dir
with_expat
with_libexpat_prefix
with_mpfr
+with_mpfr_include
+with_mpfr_lib
with_libmpfr_prefix
+with_gmp
+with_gmp_include
+with_gmp_lib
with_python
with_guile
enable_source_highlight
@@ -1614,9 +1619,20 @@ Optional Packages:
--with-expat include expat support (auto/yes/no)
--with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
--without-libexpat-prefix don't search for libexpat in includedir and libdir
- --with-mpfr include MPFR support (auto/yes/no)
+ --with-mpfr=PATH specify prefix directory for installed MPFR package.
+ Equivalent to --with-mpfr-include=PATH/include plus
+ --with-mpfr-lib=PATH/lib
+ --with-mpfr-include=PATH
+ specify directory for installed MPFR include files
+ --with-mpfr-lib=PATH specify directory for the installed MPFR library
--with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
--without-libmpfr-prefix don't search for libmpfr in includedir and libdir
+ --with-gmp=PATH specify prefix directory for the installed GMP
+ package. Equivalent to
+ --with-gmp-include=PATH/include plus
+ --with-gmp-lib=PATH/lib
+ --with-gmp-include=PATH specify directory for installed GMP include files
+ --with-gmp-lib=PATH specify directory for the installed GMP library
--with-python[=PYTHON] include python support
(auto/yes/no/<python-program>)
--with-guile[=GUILE] include guile support
@@ -9810,23 +9826,35 @@ done
fi
+# Check for MPFR (and its dependency GMP)
+mpfrlibs=
+mpfrinc=
+
+
# Check whether --with-mpfr was given.
if test "${with_mpfr+set}" = set; then :
withval=$with_mpfr;
-else
- with_mpfr=auto
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
-$as_echo_n "checking whether to use MPFR... " >&6; }
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
-$as_echo "$with_mpfr" >&6; }
-if test "${with_mpfr}" = no; then
+# Check whether --with-mpfr-include was given.
+if test "${with_mpfr_include+set}" = set; then :
+ withval=$with_mpfr_include;
+fi
+
+
+# Check whether --with-mpfr-lib was given.
+if test "${with_mpfr_lib+set}" = set; then :
+ withval=$with_mpfr_lib;
+fi
+
+
+#For backwards-compatiblity we also support --with-mpfr={no|yes|auto}
+if test "x$with_mpfr" = xno; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
$as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
HAVE_LIBMPFR=no
-else
+elif test "x$with_mpfr" = xyes -o "x$with_mpfr" = xauto -o "x$with_mpfr" = x -o "x$with_mpfr" = x; then
@@ -10298,6 +10326,59 @@ $as_echo "$LIBMPFR" >&6; }
$as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
fi
fi
+elif test "x$with_mpfr" != x; then
+ mpfrlib="-L$with_mpfr/lib -lmpfr"
+ mpfrinc="-I$with_mpfr/include"
+fi
+
+if test "x$with_mpfr_include" != x; then
+ mpfrlib="-lmpfr"
+ mpfrinc="-I$with_mpfr_include"
+fi
+if test "x$with_mpfr_lib" != x; then
+ mpfrlib="-L$with_mpfr_lib -lmpfr"
+fi
+
+
+# Check whether --with-gmp was given.
+if test "${with_gmp+set}" = set; then :
+ withval=$with_gmp;
+fi
+
+
+# Check whether --with-gmp-include was given.
+if test "${with_gmp_include+set}" = set; then :
+ withval=$with_gmp_include;
+fi
+
+
+# Check whether --with-gmp-lib was given.
+if test "${with_gmp_lib+set}" = set; then :
+ withval=$with_gmp_lib;
+fi
+
+
+
+if test "x$with_gmp" != x; then
+ mpfrlib="$mpfrlib -L$with_gmp/lib -lgmp"
+ mpfrinc="$mpfrinc -I$with_gmp/include"
+fi
+if test "x$with_gmp_include" != x; then
+ mpfrlib="$mpfrlib -lgmp"
+ mpfrinc="$mpfrinc -I$with_gmp_include"
+fi
+if test "x$with_gmp_lib" != x; then
+ mpfrlib="$mpfrlib -L$with_gmp_lib -lgmp"
+fi
+
+if test "x$mpfrlib" != x; then
+ HAVE_LIBMPFR=yes
+
+ $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
+
+ LIBMPFR="$mpfrlib"
+
+ CPPFLAGS="$CPPFLAGS $mpfrinc"
fi
# --------------------- #