Update copyright notices with scripts/update-copyrights.
[glibc.git] / ports / sysdeps / unix / sysv / linux / mips / configure
blobcecfc9d84c7366a0a04c942792b934181780fb03
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/unix/sysv/linux/mips.
5 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6 /* end confdefs.h.  */
8     #if (_MIPS_SIM != _ABIO32)
9     #error Not O32 ABI
10     #endif
11 int
12 main ()
15   ;
16   return 0;
18 _ACEOF
19 if ac_fn_c_try_compile "$LINENO"; then :
20   libc_mips_abi=o32
21 else
22   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23 /* end confdefs.h.  */
25       #if (_MIPS_SIM != _ABIN32)
26       #error Not N32 ABI
27       #endif
28 int
29 main ()
32   ;
33   return 0;
35 _ACEOF
36 if ac_fn_c_try_compile "$LINENO"; then :
37   libc_mips_abi=n32
38 else
39   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40 /* end confdefs.h.  */
42         #if (_MIPS_SIM != _ABI64)
43         #error Not 64 ABI
44         #endif
45 int
46 main ()
49   ;
50   return 0;
52 _ACEOF
53 if ac_fn_c_try_compile "$LINENO"; then :
54   libc_mips_abi=n64
56 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62 if test -z "$libc_mips_abi"; then
63   as_fn_error $? "could not determine what ABI the compiler is using" "$LINENO" 5
66 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67 /* end confdefs.h.  */
69     #if !defined(__mips_soft_float)
70     #error Not soft ABI
71     #endif
72 int
73 main ()
76   ;
77   return 0;
79 _ACEOF
80 if ac_fn_c_try_compile "$LINENO"; then :
81   libc_mips_float=soft
82 else
83   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84 /* end confdefs.h.  */
86       #if !defined(__mips_hard_float)
87       #error Not hard ABI
88       #endif
89 int
90 main ()
93   ;
94   return 0;
96 _ACEOF
97 if ac_fn_c_try_compile "$LINENO"; then :
98   libc_mips_float=hard
100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104 if test -z "$libc_mips_float"; then
105   as_fn_error $? "could not determine if compiler is using hard or soft floating point ABI" "$LINENO" 5
108 echo "default-abi := ${libc_mips_abi}_${libc_mips_float}" > default-abi.make
110 case "$prefix" in
111 /usr | /usr/)
112   # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
113   # Allow earlier configure scripts to handle libc_cv_slibdir, libdir,
114   # and libc_cv_localedir.
115   test -n "$libc_cv_slibdir" || \
116   case $machine in
117   mips/mips64/n64/* )
118     libc_cv_slibdir="/lib64"
119     if test "$libdir" = '${exec_prefix}/lib'; then
120       libdir='${exec_prefix}/lib64';
121       # Locale data can be shared between 32bit and 64bit libraries
122       libc_cv_localedir='${exec_prefix}/lib/locale'
123     fi
124     ;;
125   mips/mips64/n32/* )
126     libc_cv_slibdir="/lib32"
127     if test "$libdir" = '${exec_prefix}/lib'; then
128       libdir='${exec_prefix}/lib32';
129       # Locale data can be shared between 32bit and 64bit libraries
130       libc_cv_localedir='${exec_prefix}/lib/locale'
131     fi
132     ;;
133   *)
134     libc_cv_slibdir="/lib"
135     ;;
136   esac
137 esac
139 libc_cv_gcc_unwind_find_fde=yes