Quick Search:

View

Revision:
Expand:  
Changeset: MAIN:ragge:20120830174230

Diff

Diff from 1.17 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)
ragge
1.14
4 AC_INIT([pcc-libs], [1.1.0.DEVEL], <pcc-list@ludd.ltu.se>)
gmcgarry
1.1
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 ;;
gmcgarry
1.15
26             x86_64) targmach=amd64 ;;
gmcgarry
1.3
27         esac
gmcgarry
1.15
28         ;;
gmcgarry
1.3
29
30     dragonfly*)
31         targos=dragonfly
32         case "$target_cpu" in
33             i?86) targmach=i386 ;;
34         esac
35         ;;
36
37     freebsd*)
38         targos=freebsd
39         case "$target_cpu" in
40             i386) targmach=i386 ;;
ragge
1.12
41             x86_64) targmach=amd64 ;;
gmcgarry
1.3
42         esac
43         ;;
44
45     linux*)
46         targos=linux
47         case "$target_cpu" in
48             i?86) targmach=i386 ;;
49             powerpc*) targmach=powerpc endian=big ;;
gmcgarry
1.11
50             x86_64) targmach=amd64 ;;
gmcgarry
1.3
51         esac
52         ;;
53
54     midnightbsd*)
55         targos=midnightbsd
56         case "$target_cpu" in
57             i?86) targmach=i386 ;;
58             sparc64) targmach=sparc64 endian=big ;;
59         esac
60         ;;
61
gmcgarry
1.8
62     minix)
63         targos=minix
64         case "$target_cpu" in
65             m68k) targmach=m68k endian=big ;;
66         esac
67         ;;
68
gmcgarry
1.3
69     mirbsd*)
70         targos=mirbsd
71         case "$target_cpu" in
72             i?86) targmach=i386 ;;
73         esac
74         ;;
75
gmcgarry
1.7
76     netbsd*)
77         targos=netbsd
78         case "$target_cpu" in
79             armeb) targmach=arm endian=big ;;
80             arm*) targmach=arm ;;
81             i?86) targmach=i386 ;;
82             m68k*) targmach=m68k endian=big ;;
83             mipseb) targmach=mips endian=big ;;
84             mips*) targmach=mips ;;
gmcgarry
1.8
85             pdp10) targmach=pdp10 ;;
gmcgarry
1.7
86             powerpc) targmach=powerpc endian=big ;;
87             sparc64) targmach=sparc64 endian=big ;;
88             vax) targmach=vax ;;
89         esac
90         ;;
91
92     openbsd*)
93         targos=openbsd
94         case "$target_cpu" in
95             i?86) targmach=i386 ;;
96             vax) targmach=vax ;;
97             powerpc) targmach=powerpc endian=big ;;
98             sparc64) targmach=sparc64 endian=big ;;
99         esac
100         ;;
101
ragge
1.17
102     sysv4*|sunos*|solaris*)
gmcgarry
1.7
103         targos=sunos
104         case "$target_cpu" in
105             i?86) targmach=i386 ;;
106             sparc*) targmach=sparc64 endian=big ;;
107         esac
108         ;;
109
gmcgarry
1.3
110     windows*|pe*)
111         target_alias=i386-pe
112         targos=win32
113         targmach=i386
114         ;;
115
116     *)
gmcgarry
1.15
117         targos="$target_os"
gmcgarry
1.3
118         case "$target_cpu" in
119             m16c) targmach=m16c ;;
120             nova) targmach=nova ;;
121         esac
122         ;;
gmcgarry
1.1
123 esac
124
125 if test "X$targos" = X -o "X$targmach" = X; then
126         AC_MSG_ERROR(['$target' is not (yet) supported by pcc-libs.])
127 fi
128
gmcgarry
1.3
129 if test "X$endian" = "Xbig"; then
plunky
1.16
130         AC_SUBST([ENDIAN_FLAG],[-DTARGET_BIG_ENDIAN=1])
gmcgarry
1.3
131 else
plunky
1.16
132         AC_SUBST([ENDIAN_FLAG],[-DTARGET_LITTLE_ENDIAN=1])
gmcgarry
1.3
133 fi
134
gmcgarry
1.5
135 AC_CHECK_TOOLS([CC], [pcc gcc cc])
gmcgarry
1.4
136 AC_CHECK_TOOL([AR], [ar], [ar])
gmcgarry
1.1
137 AC_PROG_RANLIB
138
139 AC_SUBST(targos)
140 AC_SUBST(targmach)
141 AC_SUBST(version)
142 AC_SUBST(prefix)
143 AC_SUBST(libdir)
144 AC_SUBST(includedir)
gmcgarry
1.2
145 AC_SUBST(CPPFLAGS)
146 AC_SUBST(CFLAGS)
gmcgarry
1.1
147
148 AC_CONFIG_FILES([Makefile
gmcgarry
1.15
149         csu/Makefile
150         libsoftfloat/Makefile
151         libpcc/Makefile
gmcgarry
1.1
152 ])
153 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-09-02 18:42 +0200