File: configure.in

package info (click to toggle)
eglibc 2.13-38%2Bdeb7u6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 148,144 kB
  • sloc: ansic: 916,251; asm: 203,086; sh: 9,197; makefile: 7,792; perl: 2,252; awk: 1,728; cpp: 1,279; pascal: 723; yacc: 317; sed: 131
file content (112 lines) | stat: -rw-r--r-- 3,183 bytes parent folder | download | duplicates (3)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
sinclude(./aclocal.m4)dnl Autoconf lossage
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/unix/sysv/linux/mips.

case $machine in
mips*64*)
  rm -f asm-unistd.h
  asm_unistd_h=$sysheaders/asm/unistd.h
  if test ! -f $asm_unistd_h; then
    # Try to find asm/unistd.h in compiler header search path.
    try_asm_unistd_h=`echo '#include <asm/unistd.h>' | $CPP - |
			sed -n '/^# 1 "\(\/[^"]*\)".*/{s,,\1,p;q;}'`
    if test -n "$try_asm_unistd_h" &&
       test -f "$try_asm_unistd_h"; then
      asm_unistd_h=$try_asm_unistd_h
    fi
  fi
  if test ! -f "$asm_unistd_h"; then
    AC_MSG_WARN([*** asm/unistd.h not found, it will not be pre-processed])
    echo '#include <asm/unistd.h>' > asm-unistd.h
  elif grep __NR_N32_open "$asm_unistd_h" > /dev/null; then
    # The point of this preprocessing is to turn __NR_<syscall> into
    # __NR_N64_<syscall>, as well as to define __NR_<syscall> to
    # __NR_<abi>_<syscall>, if __NR_<abi>_<syscall> is defined
    # and <abi> is the compiler-enabled ABI.
    cat "$asm_unistd_h" |
    sed -e 's,__NR_,__NR_N64_,g' \
        -e 's,__NR_N64_##,__NR_##,g' \
	-e 's,__NR_N64_O32_,__NR_O32_,g' \
	-e 's,__NR_N64_N32_,__NR_N32_,g' \
	-e 's,__NR_N64_N64_,__NR_N64_,g' \
    | awk > asm-unistd.h '
BEGIN { print "#include <sgidefs.h>"; }
/^#define __NR.*unused/ { print; next; }
/^#define __NR_N64__exit __NR_N64_exit/ {
	print "#define __NR__exit __NR_exit";
	print "#define __NR_O32__exit __NR_O32_exit";
	print "#define __NR_N32__exit __NR_N32_exit";
	print; next;
}
/^#define __NR_O32_/ {
	name = $2;
	sub (/_O32_/, "_", name);
	print;
	print "#if _MIPS_SIM == _ABIO32";
	print "# define " name " " $2;
	print "#endif";
	next;
}
/^#define __NR_N32_/ {
	name = $2;
	sub (/_N32_/, "_", name);
	print;
	print "#if _MIPS_SIM == _ABIN32";
	print "# define " name " " $2;
	print "#endif";
	next;
}
/^#define __NR_N64_/ {
	name = $2;
	sub (/_N64_/, "_", name);
	print;
	print "#if _MIPS_SIM == _ABI64";
	print "# define " name " " $2;
	print "#endif";
	next;
}
{
	print;
}'
  else
    echo '#include <asm/unistd.h>' > asm-unistd.h
  fi ;;
mips*)
  rm -f asm-unistd.h
  echo '#include <asm/unistd.h>' > asm-unistd.h
  ;;
esac

case "$prefix" in
/usr | /usr/)
  # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
  # Allow earlier configure scripts to handle libc_cv_slibdir, libdir,
  # and libc_cv_localedir.
  test -n "$libc_cv_slibdir" || \
  case $machine in
  mips/mips64/n64/* )
    libc_cv_slibdir="/lib64"
    if test "$libdir" = '${exec_prefix}/lib'; then
      libdir='${exec_prefix}/lib64';
      # Locale data can be shared between 32bit and 64bit libraries
      libc_cv_localedir='${exec_prefix}/lib/locale'
    fi
    ;;
  mips/mips64/n32/* )
    libc_cv_slibdir="/lib32"
    if test "$libdir" = '${exec_prefix}/lib'; then
      libdir='${exec_prefix}/lib32';
      # Locale data can be shared between 32bit and 64bit libraries
      libc_cv_localedir='${exec_prefix}/lib/locale'
    fi
    ;;
  *)
    libc_cv_slibdir="/lib"
    ;;
  esac
esac

if test -z "$arch_minimum_kernel"; then
  arch_minimum_kernel=2.4.1
  libc_cv_gcc_unwind_find_fde=yes
fi