diff options
Diffstat (limited to 'sim/bfin')
-rw-r--r-- | sim/bfin/ChangeLog | 6 | ||||
-rwxr-xr-x | sim/bfin/configure | 106 | ||||
-rw-r--r-- | sim/bfin/configure.ac | 2 |
3 files changed, 78 insertions, 36 deletions
diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index 51d48b8..64c71f9 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,5 +1,11 @@ 2021-04-18 Mike Frysinger <vapier@gentoo.org> + * configure.ac: Change AC_CHECK_FUNCS to AC_CHECK_FUNCS_ONCE and + delete mmap & munmap. + * configure: Regenerate. + +2021-04-18 Mike Frysinger <vapier@gentoo.org> + * interp.c (bfin_syscall): Delete CB_SYS_getpid handling. 2021-04-12 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/bfin/configure b/sim/bfin/configure index fc432d0..e1692b1 100755 --- a/sim/bfin/configure +++ b/sim/bfin/configure @@ -629,6 +629,7 @@ ac_includes_default="\ # include <unistd.h> #endif" +ac_func_list= ac_subst_vars='LTLIBOBJS LIBOBJS sim_reserved_bits @@ -2311,6 +2312,24 @@ $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi +as_fn_append ac_func_list " __setfpucw" +as_fn_append ac_func_list " ftruncate" +as_fn_append ac_func_list " getrusage" +as_fn_append ac_func_list " lstat" +as_fn_append ac_func_list " mmap" +as_fn_append ac_func_list " munmap" +as_fn_append ac_func_list " posix_fallocate" +as_fn_append ac_func_list " sigaction" +as_fn_append ac_func_list " time" +as_fn_append ac_func_list " truncate" +as_fn_append ac_func_list " getuid" +as_fn_append ac_func_list " getgid" +as_fn_append ac_func_list " geteuid" +as_fn_append ac_func_list " getegid" +as_fn_append ac_func_list " setuid" +as_fn_append ac_func_list " setgid" +as_fn_append ac_func_list " kill" +as_fn_append ac_func_list " pread" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -3885,6 +3904,41 @@ rmdir .tst 2>/dev/null DEPDIR="${am__leading_dot}deps" + + + + for ac_func in $ac_func_list +do : + 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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 +_ACEOF + +fi +done + + + + + + + + + + + + + + + + + + + + + case `pwd` in *\ * | *\ *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 @@ -7331,29 +7385,6 @@ fi done -for ac_func in getrusage time sigaction __setfpucw -do : - 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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -for ac_func in mmap munmap lstat truncate ftruncate posix_fallocate -do : - 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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done ac_fn_c_check_member "$LINENO" "struct stat" "st_dev" "ac_cv_member_struct_stat_st_dev" "#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> @@ -11255,7 +11286,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11258 "configure" +#line 11289 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11361,7 +11392,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11364 "configure" +#line 11395 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12256,17 +12287,22 @@ fi fi -for ac_func in getuid getgid geteuid getegid setuid setgid mmap munmap kill pread -do : - 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 `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF -fi -done + + + + + + + + + + + + + + + for ac_header in \ linux/if_tun.h \ diff --git a/sim/bfin/configure.ac b/sim/bfin/configure.ac index 0ca02ba..6b15b77 100644 --- a/sim/bfin/configure.ac +++ b/sim/bfin/configure.ac @@ -42,7 +42,7 @@ SIM_AC_OPTION_HARDWARE(yes,,\ eth_phy \ ) -AC_CHECK_FUNCS([getuid getgid geteuid getegid setuid setgid mmap munmap kill pread]) +AC_CHECK_FUNCS_ONCE([getuid getgid geteuid getegid setuid setgid kill pread]) AC_CHECK_HEADERS([ \ linux/if_tun.h \ linux/mii.h \ |