Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20101018174533

Diff

Diff from 1.12 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/pcc/pcc-libs/configure.ac

Annotated File View

gmcgarry
1.1
1 # Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT([pcc-libs], [0.9.9], <pcc-list@ludd.ltu.se>)
5
6 AC_PROG_MAKE_SET
7 AC_PROG_INSTALL
8 AC_CANONICAL_TARGET
9
10 version=$PACKAGE_VERSION
11
12 case "$target_os" in
gmcgarry
1.7
13
14     apple)
15         targos=apple
gmcgarry
1.3
16         case "$target_cpu" in
gmcgarry
1.7
17             m68k) targmach=m68k endian=big ;;
gmcgarry
1.3
18         esac
19         ;;
20
gmcgarry
1.7
21     darwin*)
22         targos=darwin
gmcgarry
1.3
23         case "$target_cpu" in
24             i?86) targmach=i386 ;;
25             powerpc) targmach=powerpc endian=big ;;
26         esac
gmcgarry
1.7
27         ;;
gmcgarry
1.3
28
29     dragonfly*)
30         targos=dragonfly
31         case "$target_cpu" in
32             i?86) targmach=i386 ;;
33         esac
34         ;;
35
36     freebsd*)
37         targos=freebsd
38         case "$target_cpu" in
39             i386) targmach=i386 ;;
ragge
1.12
40             x86_64) targmach=amd64 ;;
gmcgarry
1.3
41         esac
42         ;;
43
44     linux*)
45         targos=linux
46         case "$target_cpu" in
47             i?86) targmach=i386 ;;
48             powerpc*) targmach=powerpc endian=big ;;
gmcgarry
1.11
49             x86_64) targmach=amd64 ;;
gmcgarry
1.3
50         esac
51         ;;
52
53     midnightbsd*)
54         targos=midnightbsd
55         case "$target_cpu" in
56             i?86) targmach=i386 ;;
57             sparc64) targmach=sparc64 endian=big ;;
58         esac
59         ;;
60
gmcgarry
1.8
61     minix)
62         targos=minix
63         case "$target_cpu" in
64             m68k) targmach=m68k endian=big ;;
65         esac
66         ;;
67
gmcgarry
1.3
68     mirbsd*)
69         targos=mirbsd
70         case "$target_cpu" in
71             i?86) targmach=i386 ;;
72         esac
73         ;;
74
gmcgarry
1.7
75     netbsd*)
76         targos=netbsd
77         case "$target_cpu" in
78             armeb) targmach=arm endian=big ;;
79             arm*) targmach=arm ;;
80             i?86) targmach=i386 ;;
81             m68k*) targmach=m68k endian=big ;;
82             mipseb) targmach=mips endian=big ;;
83             mips*) targmach=mips ;;
gmcgarry
1.8
84             pdp10) targmach=pdp10 ;;
gmcgarry
1.7
85             powerpc) targmach=powerpc endian=big ;;
86             sparc64) targmach=sparc64 endian=big ;;
87             vax) targmach=vax ;;
88         esac
89         ;;
90
91     openbsd*)
92         targos=openbsd
93         case "$target_cpu" in
94             i?86) targmach=i386 ;;
95             vax) targmach=vax ;;
96             powerpc) targmach=powerpc endian=big ;;
97             sparc64) targmach=sparc64 endian=big ;;
98         esac
99         ;;
100
101     sunos*|solaris*)
102         targos=sunos
103         case "$target_cpu" in
104             i?86) targmach=i386 ;;
105             sparc*) targmach=sparc64 endian=big ;;
106         esac
107         ;;
108
gmcgarry
1.3
109     windows*|pe*)
110         target_alias=i386-pe
111         targos=win32
112         targmach=i386
113         ;;
114
115     *)
116         targos="$target_os"
117         case "$target_cpu" in
118             m16c) targmach=m16c ;;
119             nova) targmach=nova ;;
120         esac
121         ;;
gmcgarry
1.1
122 esac
123
124 if test "X$targos" = X -o "X$targmach" = X; then
125         AC_MSG_ERROR(['$target' is not (yet) supported by pcc-libs.])
126 fi
127
gmcgarry
1.3
128 if test "X$endian" = "Xbig"; then
129         AC_SUBST([ENDIAN_FLAG],[-D__BIG_ENDIAN__=1])
130 else
gmcgarry
1.6
131         AC_SUBST([ENDIAN_FLAG],[-D__LITTLE_ENDIAN__=1])
gmcgarry
1.3
132 fi
133
gmcgarry
1.5
134 AC_CHECK_TOOLS([CC], [pcc gcc cc])
gmcgarry
1.4
135 AC_CHECK_TOOL([AR], [ar], [ar])
gmcgarry
1.1
136 AC_PROG_RANLIB
137
138 AC_SUBST(targos)
139 AC_SUBST(targmach)
140 AC_SUBST(version)
141 AC_SUBST(prefix)
142 AC_SUBST(libdir)
143 AC_SUBST(includedir)
gmcgarry
1.2
144 AC_SUBST(CPPFLAGS)
145 AC_SUBST(CFLAGS)
gmcgarry
1.1
146
147 AC_CONFIG_FILES([Makefile
gmcgarry
1.5
148                 csu/Makefile
gmcgarry
1.1
149                 libsoftfloat/Makefile
150                 libpcc/Makefile
151 ])
152 AC_OUTPUT
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-11-01 12:57 +0100