File: preconfigure

package info (click to toggle)
glibc 2.31-13%2Bdeb11u11
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 279,908 kB
  • sloc: ansic: 1,026,869; asm: 260,545; makefile: 12,196; sh: 10,548; python: 9,618; cpp: 5,233; awk: 1,956; perl: 514; yacc: 290; pascal: 182; sed: 73
file content (37 lines) | stat: -rw-r--r-- 762 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
case "$machine" in
csky*)
    abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
      sed -n 's/^#define __CSKYABI__ \(.*\)/\1/p'`
    float_abi=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
      sed -n 's/^#define __CSKY_HARD_FLOAT__ \(.*\)/\1/p'`

    case "$abi" in
    1)
        echo "glibc does not support abiv1 yet" >&2
        exit 1
        ;;
    2)
        machine=abiv2
        ;;
    *)
        echo "Unknown abi" >&2
        exit 1
        ;;
    esac

    case "$float_abi" in
    1)
        with_fp_cond=1
        ;;
    *)
        with_fp_cond=0
        ;;
    esac

    base_machine=csky
    machine=csky/$machine

    $as_echo "#define CSKYABI $abi" >>confdefs.h
    $as_echo "#define CSKY_HARD_FLOAT $with_fp_cond" >>confdefs.h
    ;;
esac