6 |
|
AC_CONFIG_HEADER(config.h) |
7 |
|
|
8 |
|
dnl Options. |
9 |
< |
WANT_XF86_DGA=yes |
10 |
< |
WANT_FBDEV_DGA=yes |
11 |
< |
WANT_ESD=yes |
12 |
< |
WANT_UI=yes |
13 |
< |
AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], []) |
14 |
< |
AC_ARG_ENABLE(fbdev-dga, [ --enable-fbdev-dga use direct frame buffer access via /dev/fb [default=yes]], [WANT_FBDEV_DGA=$enableval], []) |
15 |
< |
AC_ARG_ENABLE(esd, [ --enable-esd Enlightened Sound Daemon support [default=yes]], [WANT_ESD=$enableval], []) |
16 |
< |
AC_ARG_ENABLE(ui, [ --enable-ui use GTK user interface [default=yes]], [WANT_UI=$enableval], []) |
9 |
> |
AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes]) |
10 |
> |
AC_ARG_ENABLE(fbdev-dga, [ --enable-fbdev-dga use direct frame buffer access via /dev/fb [default=yes]], [WANT_FBDEV_DGA=$enableval], [WANT_FBDEV_DGA=yes]) |
11 |
> |
AC_ARG_ENABLE(esd, [ --enable-esd Enlightened Sound Daemon support [default=yes]], [WANT_ESD=$enableval], [WANT_ESD=yes]) |
12 |
> |
AC_ARG_ENABLE(ui, [ --enable-ui use GTK user interface [default=yes]], [WANT_UI=$enableval], [WANT_UI=yes]) |
13 |
|
|
14 |
|
dnl Checks for programs. |
15 |
|
AC_PROG_CC |
18 |
|
AC_PROG_MAKE_SET |
19 |
|
AC_PROG_INSTALL |
20 |
|
|
21 |
+ |
dnl We use mon if possible. |
22 |
+ |
MONSRCS= |
23 |
+ |
AC_MSG_CHECKING(for mon) |
24 |
+ |
if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then |
25 |
+ |
AC_MSG_RESULT(yes) |
26 |
+ |
WANT_MON=yes |
27 |
+ |
DEFINES="$DEFINES -DENABLE_MON=1" |
28 |
+ |
MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp" |
29 |
+ |
CXXFLAGS="$CXXFLAGS -I../../../mon/src" |
30 |
+ |
else |
31 |
+ |
AC_MSG_RESULT(no) |
32 |
+ |
WANT_MON=no |
33 |
+ |
DEFINES="$DEFINES -DENABLE_MON=0" |
34 |
+ |
fi |
35 |
+ |
|
36 |
|
dnl Checks for libraries. |
37 |
|
AC_CHECK_LIB(posix4, sem_init) |
38 |
|
|
187 |
|
;; |
188 |
|
esac |
189 |
|
fi |
190 |
< |
SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS" |
190 |
> |
SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS" |
191 |
|
|
192 |
|
dnl Check for i386 CPU. |
193 |
|
HAVE_I386=no |
235 |
|
fi |
236 |
|
|
237 |
|
dnl Select appropriate CPU source and REGPARAM define. |
238 |
+ |
WANT_X86_ASSEMBLY=no |
239 |
+ |
WANT_SPARC_V8_ASSEMBLY=no |
240 |
+ |
WANT_SPARC_V9_ASSEMBLY=no |
241 |
|
CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp" |
242 |
|
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then |
243 |
|
dnl i386 CPU |
244 |
|
DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\"" |
245 |
|
if [[ "x$HAVE_GAS" = "xyes" ]]; then |
246 |
+ |
WANT_X86_ASSEMBLY=yes |
247 |
|
DEFINES="$DEFINES -DX86_ASSEMBLY" |
248 |
|
CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s" |
249 |
|
fi |
256 |
|
AC_MSG_RESULT($SPARC_TYPE) |
257 |
|
case "$SPARC_TYPE" in |
258 |
|
SPARC_V8) |
259 |
+ |
WANT_SPARC_V8_ASSEMBLY=yes |
260 |
|
DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY" |
261 |
|
CFLAGS="$CFLAGS -Wa,-Av8" |
262 |
|
CXXFLAGS="$CXXFLAGS -Wa,-Av8" |
263 |
|
;; |
264 |
|
SPARC_V9) |
265 |
+ |
WANT_SPARC_V9_ASSEMBLY=yes |
266 |
|
DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY" |
267 |
|
CFLAGS="$CFLAGS -Wa,-Av9" |
268 |
|
CXXFLAGS="$CXXFLAGS -Wa,-Av9" |
282 |
|
AC_SUBST(CPUINCLUDES) |
283 |
|
AC_SUBST(CPUSRCS) |
284 |
|
AC_OUTPUT(Makefile) |
285 |
+ |
|
286 |
+ |
dnl Print summary. |
287 |
+ |
echo |
288 |
+ |
echo Basilisk II configuration summary: |
289 |
+ |
echo |
290 |
+ |
echo XFree86 DGA support .............. : $WANT_XF86_DGA |
291 |
+ |
echo fbdev DGA support ................ : $WANT_FBDEV_DGA |
292 |
+ |
echo ESD sound support ................ : $WANT_ESD |
293 |
+ |
echo GTK user interface ............... : $WANT_UI |
294 |
+ |
echo mon debugger support ............. : $WANT_MON |
295 |
+ |
echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY |
296 |
+ |
echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY |
297 |
+ |
echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY |
298 |
+ |
echo |
299 |
|
echo "Configuration done. Now type \"make\"." |