3 # global environment variables you may set:
4 # CACHE: absolute path to a global autoconf cache
5 # QUIET: hush the configure script noise
8 echo "Building $1 module component $2..."
11 # Use "sh autogen.sh" since some scripts are not executable in CVS
12 sh autogen.sh
--prefix=${PREFIX} ${QUIET:+--quiet} \
13 ${CACHE:+--cache-file=}${CACHE}
23 # protocol headers have no build order dependencies
48 build proto XF86BigFont
53 build proto XF86VidMode
56 # All protocol modules must be installed before the libs (okay, that's an
57 # overstatement, but all protocol modules should be installed anyway)
59 # the libraries have a dependency order:
60 # xtrans, Xau, Xdmcp before anything else
61 # fontenc before Xfont
64 # (X11 and SM) before Xt
65 # Xt before Xmu and Xpm
66 # Xext before any other extension library
67 # Xp before XprintUtil before XprintAppUtil
99 build lib XprintAppUtil
112 # Most apps depend at least on libX11.
114 # bdftopcf depends on libXfont
115 # mkfontscale depends on libfontenc and libfreetype
116 # mkfontdir depends on mkfontscale
118 # TODO: detailed breakdown of which apps require which libs
121 build app mkfontscale
125 # The server requires at least the following libraries:
131 # The server must be built before the drivers
136 # All fonts require mkfontscale and mkfontdir to be available
138 # The following fonts require bdftopcf to be available:
139 # adobe-100dpi, adobe-75dpi, adobe-utopia-100dpi, adobe-utopia-75dpi,
140 # arabic-misc, bh-100dpi, bh-75dpi, bh-lucidatypewriter-100dpi,
141 # bh-lucidatypewriter-75dpi, bitstream-100dpi, bitstream-75dpi,
142 # cronyx-cyrillic, cursor-misc, daewoo-misc, dec-misc, isas-misc,
143 # jis-misc, micro-misc, misc-cyrillic, misc-misc, mutt-misc,
144 # schumacher-misc, screen-cyrillic, sony-misc, sun-misc and
147 # Within the font module, the util component must be built before the
149 # adobe-100dpi, adobe-75dpi, adobe-utopia-100dpi, adobe-utopia-75dpi,
150 # bh-100dpi, bh-75dpi, bh-lucidatypewriter-100dpi, bh-lucidatypewriter-75dpi,
151 # misc-misc and schumacher-misc
154 build font adobe-100dpi
155 build font adobe-75dpi
156 build font adobe-utopia-100dpi
157 build font adobe-utopia-75dpi
158 build font adobe-utopia-type1
159 build font arabic-misc
162 build font bh-lucidatypewriter-100dpi
163 build font bh-lucidatypewriter-75dpi
166 build font bitstream-100dpi
167 build font bitstream-75dpi
168 build font bitstream-type1
169 build font cronyx-cyrillic
170 build font cursor-misc
171 build font daewoo-misc
176 build font micro-misc
177 build font misc-cyrillic
180 build font schumacher-misc
181 build font screen-cyrillic
184 build font winitzki-cyrillic
185 build font xfree86-type1
195 if test "x${PREFIX}" = "x" ; then
196 echo "Usage: $0 prefix"
200 # Must create local aclocal dir or aclocal fails
201 ACLOCAL_LOCALDIR
="${PREFIX}/share/aclocal"
202 mkdir
-p ${ACLOCAL_LOCALDIR}
204 # The following is required to make aclocal find our .m4 macros
205 if [ x
"$ACLOCAL" = x
] ; then
206 ACLOCAL
="aclocal -I ${ACLOCAL_LOCALDIR}"
208 ACLOCAL
="${ACLOCAL} -I ${ACLOCAL_LOCALDIR}"
212 # The following is required to make pkg-config find our .pc metadata files
213 if [ x
"$PKG_CONFIG_PATH" = x
] ; then
214 PKG_CONFIG_PATH
=${PREFIX}/lib
/pkgconfig
216 PKG_CONFIG_PATH
=${PREFIX}/lib
/pkgconfig
:${PKG_CONFIG_PATH}
218 export PKG_CONFIG_PATH
220 # Set the library path so that locally built libs will be found by apps
221 if [ x
"$LD_LIBRARY_PATH" = x
] ; then
222 LD_LIBRARY_PATH
=${PREFIX}/lib
224 LD_LIBRARY_PATH
=${PREFIX}/lib
:${LD_LIBRARY_PATH}
226 export LD_LIBRARY_PATH
228 # Set the path so that locally built apps will be found and used
229 if [ x
"$PATH" = x
] ; then
232 PATH
=${PREFIX}/bin
:${PATH}