4.11
Last change
on this file since 80cf137 was
76d4899,
checked in by Chris Johns <chrisj@…>, on 08/14/13 at 03:56:24
|
config: Control languages from the command line --with/--without options.
Allow a user to include languages by --with-objc or --without-cxx.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # |
---|
2 | # Standard checks. |
---|
3 | # |
---|
4 | |
---|
5 | %if %{_target} == %{nil} |
---|
6 | %error No 'target' defined |
---|
7 | %endif |
---|
8 | |
---|
9 | %ifn %{defined release} |
---|
10 | %error No 'release' defined |
---|
11 | %endif |
---|
12 | |
---|
13 | # |
---|
14 | # Process the command line --with-/--without- options. |
---|
15 | # |
---|
16 | %{?with_cxx:%define enable_cxx 1} |
---|
17 | %{?without_cxx:%define enable_cxx 0} |
---|
18 | %{?with_ada:%define enable_ada 1} |
---|
19 | %{?without_ada:%define enable_ada 0} |
---|
20 | %{?with_fortran:%define enable_fortran 1} |
---|
21 | %{?without_fortran:%define enable_fortran 0} |
---|
22 | %{?with_java:%define enable_java 1} |
---|
23 | %{?without_java:%define enable_java 0} |
---|
24 | %{?with_objc:%define enable_objc 1} |
---|
25 | %{?without_objc:%define enable_objc 0} |
---|
26 | |
---|
27 | # |
---|
28 | # Default to C++ on. |
---|
29 | # |
---|
30 | %ifn %{defined enable_cxx} |
---|
31 | %define enable_cxx 1 |
---|
32 | %endif |
---|
33 | |
---|
34 | # |
---|
35 | # Default to Ada off. |
---|
36 | # |
---|
37 | %ifn %{defined enable_ada} |
---|
38 | %define enable_ada 0 |
---|
39 | %endif |
---|
40 | |
---|
41 | # |
---|
42 | # Default to Go off. |
---|
43 | # |
---|
44 | %ifn %{defined enable_go} |
---|
45 | %define enable_go 0 |
---|
46 | %endif |
---|
47 | |
---|
48 | # |
---|
49 | # Default to Fortran off. |
---|
50 | # |
---|
51 | %ifn %{defined enable_fortran} |
---|
52 | %define enable_fortran 0 |
---|
53 | %endif |
---|
54 | |
---|
55 | # |
---|
56 | # Default to Java off. |
---|
57 | # |
---|
58 | %ifn %{defined enable_java} |
---|
59 | %define enable_java 0 |
---|
60 | %endif |
---|
61 | |
---|
62 | # |
---|
63 | # Default to ObjC off. |
---|
64 | # |
---|
65 | %ifn %{defined enable_objc} |
---|
66 | %define enable_objc 0 |
---|
67 | %endif |
---|
68 | |
---|
69 | # |
---|
70 | # Hack to get around the ARM EABBI mess. |
---|
71 | # |
---|
72 | %ifn %{defined enable_obsolete} |
---|
73 | %define enable_obsolete 0 |
---|
74 | %endif |
---|
Note: See
TracBrowser
for help on using the repository browser.