aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-01 23:57:12 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-02 00:34:15 -0500
commit6bf212a8ac97a844db0ed8213eeb6deee723d453 (patch)
tree3398b4d3815d04bc83b72ea9620e6eb9ff48593f /sim/ppc/configure
parent0168f1aedf7e797bb6cca302ea4f683e38850bb6 (diff)
downloadbinutils-6bf212a8ac97a844db0ed8213eeb6deee723d453.zip
binutils-6bf212a8ac97a844db0ed8213eeb6deee723d453.tar.gz
binutils-6bf212a8ac97a844db0ed8213eeb6deee723d453.tar.bz2
sim: ppc: move termios probes to top-level
This is the last compile-time logic in the ppc subdir.
Diffstat (limited to 'sim/ppc/configure')
-rwxr-xr-xsim/ppc/configure192
1 files changed, 0 insertions, 192 deletions
diff --git a/sim/ppc/configure b/sim/ppc/configure
index b64e4c4..4644439 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -1451,63 +1451,6 @@ fi
as_fn_set_status $ac_retval
} # ac_fn_c_try_compile
-
-# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
-# ----------------------------------------------------
-# Tries to find if the field MEMBER exists in type AGGR, after including
-# INCLUDES, setting cache variable VAR accordingly.
-ac_fn_c_check_member ()
-{
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
-$as_echo_n "checking for $2.$3... " >&6; }
-if eval \${$4+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$5
-int
-main ()
-{
-static $2 ac_aggr;
-if (ac_aggr.$3)
-return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-$5
-int
-main ()
-{
-static $2 ac_aggr;
-if (sizeof ac_aggr.$3)
-return 0;
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
-else
- eval "$4=no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-eval ac_res=\$$4
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
-$as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
-
-} # ac_fn_c_check_member
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
@@ -3221,141 +3164,6 @@ ac_config_headers="$ac_config_headers config.h:config.in"
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
-$as_echo_n "checking for struct termios... " >&6; }
-if ${sim_cv_termios_struct+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/termios.h>
-int
-main ()
-{
-
- static struct termios x;
- x.c_iflag = 0;
- x.c_oflag = 0;
- x.c_cflag = 0;
- x.c_lflag = 0;
- x.c_cc[NCCS] = 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- sim_cv_termios_struct="yes"
-else
- sim_cv_termios_struct="no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termios_struct" >&5
-$as_echo "$sim_cv_termios_struct" >&6; }
-if test $sim_cv_termios_struct = yes; then
-
-$as_echo "#define HAVE_TERMIOS_STRUCTURE 1" >>confdefs.h
-
-fi
-
-if test "$sim_cv_termios_struct" = "yes"; then
- if ${sim_cv_termios_cline+:} false; then :
- $as_echo_n "(cached) " >&6
-fi
-
- ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "
-#include <sys/types.h>
-#include <sys/termios.h>
-
-"
-if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
- sim_cv_termios_cline="yes"
-else
- sim_cv_termios_cline="no"
-fi
-
- if test $sim_cv_termios_cline = yes; then
-
-$as_echo "#define HAVE_TERMIOS_CLINE 1" >>confdefs.h
-
- fi
-else
- sim_cv_termios_cline=no
-fi
-
-if test "$sim_cv_termios_struct" != "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
-$as_echo_n "checking for struct termio... " >&6; }
-if ${sim_cv_termio_struct+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-#include <sys/types.h>
-#include <sys/termio.h>
-int
-main ()
-{
-
- static struct termio x;
- x.c_iflag = 0;
- x.c_oflag = 0;
- x.c_cflag = 0;
- x.c_lflag = 0;
- x.c_cc[NCC] = 0;
-
- ;
- return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
- sim_cv_termio_struct="yes"
-else
- sim_cv_termio_struct="no"
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_termio_struct" >&5
-$as_echo "$sim_cv_termio_struct" >&6; }
- if test $sim_cv_termio_struct = yes; then
-
-$as_echo "#define HAVE_TERMIO_STRUCTURE 1" >>confdefs.h
-
- fi
-else
- sim_cv_termio_struct=no
-fi
-
-if test "$sim_cv_termio_struct" = "yes"; then
- if ${sim_cv_termio_cline+:} false; then :
- $as_echo_n "(cached) " >&6
-fi
-
- ac_fn_c_check_member "$LINENO" "struct termio" "c_line" "ac_cv_member_struct_termio_c_line" "
-#include <sys/types.h>
-#include <sys/termio.h>
-
-"
-if test "x$ac_cv_member_struct_termio_c_line" = xyes; then :
- sim_cv_termio_cline="yes"
-else
- sim_cv_termio_cline="no"
-fi
-
- if test $sim_cv_termio_cline = yes; then
-
-$as_echo "#define HAVE_TERMIO_CLINE 1" >>confdefs.h
-
- fi
-else
- sim_cv_termio_cline=no
-fi
-
-