aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-03 17:38:46 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-04 13:50:37 +0700
commitc55c1f6e9d7bcc400bc23a0e29ac9e2681ed4c31 (patch)
tree4ce61fe9a67b0253830a3cd7093f075b6d3314fd /sim/configure
parent01d8ce742c257b697eed52de5520d0a4489e4e5b (diff)
downloadgdb-c55c1f6e9d7bcc400bc23a0e29ac9e2681ed4c31.zip
gdb-c55c1f6e9d7bcc400bc23a0e29ac9e2681ed4c31.tar.gz
gdb-c55c1f6e9d7bcc400bc23a0e29ac9e2681ed4c31.tar.bz2
sim: don't hardcode -ldl for SDL support
Since we use AC_SEARCH_LIBS to find dlopen, we don't need to hardcode -ldl when using SDL ourselves.
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure14
1 files changed, 9 insertions, 5 deletions
diff --git a/sim/configure b/sim/configure
index fdb7265..06c3012 100755
--- a/sim/configure
+++ b/sim/configure
@@ -13230,7 +13230,6 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
- SDL_LIBS="-ldl"
fi
@@ -13332,7 +13331,6 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=1"
- SDL_LIBS="-ldl"
fi
@@ -13342,14 +13340,20 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL=2"
- SDL_LIBS="-ldl"
+
+fi
+ if test -n "$SDL_CFLAGS"; then :
+ if test "$ac_cv_search_dlopen" = no; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SDL support requires dlopen support" >&5
+$as_echo "$as_me: WARNING: SDL support requires dlopen support" >&2;}
+
+fi
fi
else
SDL_CFLAGS=
- SDL_LIBS=
fi
-
+SDL_LIBS=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5