diff options
author | Nick Clifton <nickc@redhat.com> | 2022-03-15 15:21:56 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-03-15 15:21:56 +0000 |
commit | 4ec39c4bca9ac7ac62019e6de9e6519cc77570ec (patch) | |
tree | e147dc58ae6f11ec52c7f16e657a38bf4815a187 /gprofng/configure | |
parent | a4eb1b3cf6d12ff997f37eb9272cbe9251efae27 (diff) | |
download | binutils-gdb-4ec39c4bca9ac7ac62019e6de9e6519cc77570ec.tar.gz |
gprofng: Add a configure test for clock_gettime and a use of the test in getthrtime.c
Diffstat (limited to 'gprofng/configure')
-rwxr-xr-x | gprofng/configure | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gprofng/configure b/gprofng/configure index 3cf4dc768ce..9a4a334854b 100755 --- a/gprofng/configure +++ b/gprofng/configure @@ -16523,12 +16523,13 @@ cat >>confdefs.h <<_ACEOF #define HAVE_DECL_BASENAME $ac_have_decl _ACEOF -for ac_func in strsignal +for ac_func in clock_gettime strsignal do : - ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" -if test "x$ac_cv_func_strsignal" = xyes; then : + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STRSIGNAL 1 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi |