build-many-glibcs.py: Add openrisc hard float glibc variant
[glibc.git] / sysdeps / mips / preconfigure
blobdd1b25ce3b352162214739ec75c8001327ed2e8f
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/mips
4 case "$machine" in
5 mips*)
6         abiflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define _MIPS_SIM \(.*\)/\1/p'`
7         mips16flag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | sed -n 's/^#define __mips16 \(.*\)/\1/p'`
9         base_machine=mips
10         if test "$abiflag" = "_ABIO32" ; then
11                 if test "$mips16flag" = "1" ; then
12                         machine=mips/mips32/mips16
13                 else
14                         machine=mips/mips32
15                 fi
16         elif test "$abiflag" = "_ABIN32" ; then
17                 machine=mips/mips64/n32
18         elif test "$abiflag" = "_ABI64" ; then
19                 machine=mips/mips64/n64
20         else
21                 as_fn_error 1 "Unable to determine ABI." "$LINENO" 5
22         fi
23         # $config_machine is not really needed here but the slash after
24         # $machine is needed by the case statement in
25         # sysdeps/unix/sysv/linux/mips/configure.ac.
26         machine=$machine/$config_machine
28         if test "$abiflag" != "_ABIO32" -a "$mips16flag" = "1"; then
29                 as_fn_error 1 "MIPS16 is only supported with the o32 ABI." "$LINENO" 5
30         fi
32         with_fp_cond="defined __mips_hard_float"
33         ;;
34 esac