1 |
|
dnl Process this file with autoconf to produce a configure script. |
2 |
< |
dnl Written in 1999 by Christian Bauer et al. |
2 |
> |
dnl Written in 2002 by Christian Bauer et al. |
3 |
|
|
4 |
|
AC_INIT(main_unix.cpp) |
5 |
|
AC_PREREQ(2.12) |
6 |
|
AC_CONFIG_HEADER(config.h) |
7 |
|
|
8 |
+ |
dnl These defines are necessary to get 64-bit file size support. |
9 |
+ |
AC_DEFINE(_USE_LARGEFILE_SOURCE, 1, [Get more functions for correct standard I/O]) |
10 |
+ |
AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support]) |
11 |
+ |
|
12 |
|
dnl Options. |
13 |
|
AC_ARG_ENABLE(xf86-dga, [ --enable-xf86-dga use the XFree86 DGA extension [default=yes]], [WANT_XF86_DGA=$enableval], [WANT_XF86_DGA=yes]) |
14 |
|
AC_ARG_ENABLE(xf86-vidmode, [ --enable-xf86-vidmode use the XFree86 VidMode extension [default=yes]], [WANT_XF86_VIDMODE=$enableval], [WANT_XF86_VIDMODE=yes]) |
91 |
|
if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then |
92 |
|
AC_MSG_RESULT(yes) |
93 |
|
AC_DEFINE(ENABLE_MON) |
94 |
< |
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c" |
94 |
> |
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c" |
95 |
|
CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass" |
96 |
|
AC_CHECK_LIB(readline, readline) |
97 |
|
AC_CHECK_LIB(termcap, tputs) |
172 |
|
if [[ "x$WANT_GTK" = "xyes" ]]; then |
173 |
|
AM_PATH_GTK(1.2.0, [ |
174 |
|
AC_DEFINE(ENABLE_GTK) |
171 |
– |
CFLAGS="$CFLAGS $GTK_CFLAGS" |
175 |
|
CXXFLAGS="$CXXFLAGS $GTK_CFLAGS" |
176 |
|
LIBS="$LIBS $GTK_LIBS" |
177 |
|
UISRCS=prefs_editor_gtk.cpp |
178 |
+ |
B2_PATH_GNOMEUI([ |
179 |
+ |
AC_DEFINE(HAVE_GNOMEUI) |
180 |
+ |
CXXFLAGS="$CXXFLAGS $GNOMEUI_CFLAGS" |
181 |
+ |
LIBS="$LIBS $GNOMEUI_LIBS" |
182 |
+ |
], []) |
183 |
|
], [ |
184 |
|
AC_MSG_WARN([Could not find GTK+, disabling user interface.]) |
185 |
|
WANT_GTK=no |