From 852b7d11925e764c941874eaac3cbd5b87467926 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Fri, 11 Dec 1998 18:47:33 +0000 Subject: [PATCH] 1998-12-11 Jeff Law (law@cygnus.com) * configure.in (with-sim-gpu2): Do not emit a -L argument without an associated pathname. Link in the math library after the gpu2 library. Assumes that libm is around (and doesn't take advantage of the AC_CHECK_LIB(m) that is already in configure.in), but this is a minor point and unlikely to cause problems. --- gdb/ChangeLog | 8 ++++++++ gdb/configure | 23 ++++++++++++++--------- gdb/configure.in | 7 ++++++- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e604a7ec335..26176ff514e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +start-sanitize-sky +1998-12-11 Jeff Law (law@cygnus.com) + + * configure.in (with-sim-gpu2): Do not emit a -L argument without + an associated pathname. Link in the math library after the gpu2 + library. + +end-sanitize-sky Fri Dec 11 09:07:05 1998 Andrew Cagney * i386b-nat.c: Include "expression.h". diff --git a/gdb/configure b/gdb/configure index 3843e38ce21..3f1d2c8e2e6 100755 --- a/gdb/configure +++ b/gdb/configure @@ -5778,7 +5778,12 @@ if test "${with_sim_gpu2+set}" = set; then mips*-sky*-*) if test -d "${withval}" then - LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext" + if test x${x_libraries} != x + then + LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext -lm" + else + LIBS="${LIBS} -L${withval}/lib -lgpu2 -lX11 -lXext -lm" + fi else echo "configure: warning: Directory ${withval} does not exist." 1>&2 fi ;; @@ -5946,7 +5951,7 @@ links="${links} nm.h" fi # start-sanitize-gdbtk echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:5950: checking whether ln -s works" >&5 +echo "configure:5955: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5981,19 +5986,19 @@ fi echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:5985: checking for Cygwin environment" >&5 +echo "configure:5990: checking for Cygwin environment" >&5 if eval "test \"`echo '$''{'am_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_cygwin=yes else @@ -6010,19 +6015,19 @@ echo "$ac_t""$am_cv_cygwin" 1>&6 CYGWIN= test "$am_cv_cygwin" = yes && CYGWIN=yes echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:6014: checking for Mingw32 environment" >&5 +echo "configure:6019: checking for Mingw32 environment" >&5 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_mingw32=yes else @@ -6041,7 +6046,7 @@ test "$am_cv_mingw32" = yes && MINGW32=yes echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:6045: checking for executable suffix" >&5 +echo "configure:6050: checking for executable suffix" >&5 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/gdb/configure.in b/gdb/configure.in index b3b9298592a..9bb69ced96f 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -667,7 +667,12 @@ AC_ARG_WITH(sim-gpu2, mips*-sky*-*) if test -d "${withval}" then - LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext" + if test x${x_libraries} != x + then + LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext -lm" + else + LIBS="${LIBS} -L${withval}/lib -lgpu2 -lX11 -lXext -lm" + fi else AC_MSG_WARN([Directory ${withval} does not exist.]) fi ;; -- 2.30.2