aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/configure
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-10-24 12:44:18 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-10-24 12:44:19 -0400
commit92a048fd3b0a12ecdc03595b985251652ce81c6b (patch)
tree2570d72984a4d8b54cd69b4fbde74988c0469808 /gdbserver/configure
parent3c67532c05bbb163a66a5b10e3bea7da7faba2fe (diff)
downloadgdb-92a048fd3b0a12ecdc03595b985251652ce81c6b.zip
gdb-92a048fd3b0a12ecdc03595b985251652ce81c6b.tar.gz
gdb-92a048fd3b0a12ecdc03595b985251652ce81c6b.tar.bz2
gdbserver: re-generate configure
I get this diff when I re-generate the configure script in gdbserver, probably leftovers from e911c6663bb8 ("Require kinfo_get_file and kinfo_get_vmmap for FreeBSD hosts"). gdbserver/ChangeLog: * config.in: Re-generate. * configure: Re-generate. Change-Id: Id19a72ea9f3e7c7b4fdb0f319c9c0bbad0e39aeb
Diffstat (limited to 'gdbserver/configure')
-rwxr-xr-xgdbserver/configure16
1 files changed, 15 insertions, 1 deletions
diff --git a/gdbserver/configure b/gdbserver/configure
index 6e24cc4..95086d0 100755
--- a/gdbserver/configure
+++ b/gdbserver/configure
@@ -7236,6 +7236,9 @@ _ACEOF
fi
+ # On FreeBSD we need libutil for the kinfo_get* functions. On
+ # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
+ # Figure out which one to use.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
$as_echo_n "checking for library containing kinfo_getfile... " >&6; }
if ${ac_cv_search_kinfo_getfile+:} false; then :
@@ -7290,9 +7293,20 @@ ac_res=$ac_cv_search_kinfo_getfile
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
+fi
+
+
+ # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
+ for ac_func in kinfo_getfile
+do :
+ ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
+if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_KINFO_GETFILE 1
+_ACEOF
fi
+done
# Check for std::thread. This does not work on some platforms, like