-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
178 lines (155 loc) · 4.09 KB
/
configure.ac
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# Unfortunately we can't use PACKAGE_VERSION because the 32-bit and 64-bit
# documents will have different versions.
AC_INIT(powerabi, 0.0.0, [email protected])
AC_CONFIG_SRCDIR([PPC-elf32abi.sgml])
PPC32_ABI_VERSION=1.1
PPC64_ABI_VERSION=0.9
bitness=
AC_ARG_WITH([bitness],
AS_HELP_STRING([--with-bitness],
[Use this option to indicate the bitness of the ABI you will be building. The allowed options are '32' and '64'. The default is to generate a 32-bit document. @<:@Default=32@:>@.]),
[dnl
case "$with_bitness" in
64)
bitness="$with_bitness"
;;
32|*)
bitness="32"
esac
AC_MSG_NOTICE([configuring ${bitness}-bit document])],
[bitness=32])
AC_SUBST(bitness)
version=
if test "$bitness" = "32"; then
version=${PPC32_ABI_VERSION}
else
version=${PPC64_ABI_VERSION}
fi
AC_MSG_NOTICE([${bitness}-bit document will be ABI version ${version}.])
AC_SUBST(version)
release_msg=
AC_ARG_WITH([release],
AS_HELP_STRING([--with-release],
[Include if you want to build a RELEASE version of the document. It will not have 'DRAFT' on section titles. The default is to have 'DRAFT' appear throughout the document. @<:@Default=no@:>@.]),
[dnl
case "$with_release" in
yes)
release="yes"
release_msg="release"
;;
no|*)
release="no"
release_msg="DRAFT"
;;
esac],
[dnl
release="no"
release_msg="DRAFT"])
AC_MSG_NOTICE([configuring as a ${release_msg} document.])
AC_SUBST(release)
AC_ARG_WITH([attributes],
AS_HELP_STRING([--with-attributes],
[@<:@Default=yes@:>@.]),
[dnl
case "$with_attributes" in
no)
attributes="no"
;;
yes|*)
attributes="yes"
;;
esac],
[dnl
attributes=yes])
AC_MSG_NOTICE([configuring document to be generated with attribute wrappers.])
AC_SUBST(attributes)
AC_ARG_WITH([tags],
AS_HELP_STRING([--with-tags],
[Display element ID tags for use during document revision/writing.@<:@Default=no@:>@.]),
[dnl
case "$with_tags" in
yes)
tags="yes"
AC_MSG_NOTICE([configuring document to be generated with element ID tags.])
;;
no|*)
tags="no"
;;
esac],
[dnl
tags=no])
AC_SUBST(tags)
publish=
AC_ARG_WITH([publish],
AS_HELP_STRING([--with-publish],
[Use this option to indicate that the document is to have the publish date marked. The allowed options are 'yes' and 'no'. The default is 'no', which will leave the publish date blank.]),
[dnl
case "$with_publish" in
yes)
publish="yes"
;;
no|*)
publish="no"
;;
esac],
[publish=no])
if test "$publish" = "no"; then
AC_MSG_NOTICE([Excluding the publish date on the generated ABI documents.])
else
AC_MSG_NOTICE([Including the publish date on the generated ABI documents.])
fi
AC_SUBST(publish)
linuxabi=""
AC_ARG_WITH([linux],
AC_HELP_STRING([--with-linux],
[Generate the Linux ABI document.@<:@Default=no@:>@]),
[dnl
case "$with_linux" in
yes)
linuxabi="linux"
AC_MSG_NOTICE([Generating the Linux ABI document.])
;;
no|*)
linuxabi=""
;;
esac],
[linuxabi=""])
AC_SUBST(linuxabi)
embeddedabi=""
AC_ARG_WITH([embedded],
AC_HELP_STRING([--with-embedded],
[Generate the Embedded ABI document.@<:@Default=no@:>@]),
[dnl
case "$with_embedded" in
yes)
embeddedabi="embedded"
AC_MSG_NOTICE([Generating the Embedded ABI document.])
;;
no|*)
embeddedabi=""
;;
esac],
[embeddedabi=""])
AC_SUBST(embeddedabi)
unifiedabi=
AC_ARG_WITH([unified],
AC_HELP_STRING([--with-unified],
[Generate the Unified ABI document.@<:@Default=yes@:>@]),
[dnl
case "$with_unified" in
no)
unifiedabi=
;;
yes|*)
unifiedabi="unified"
;;
esac],
[unifiedabi="unified"])
AC_SUBST(unifiedabi)
if test "$unifiedabi" = "unified"; then
AC_MSG_NOTICE([Generating the Unified ABI document.])
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT