- renamed bochs.nsi to bochs.nsi.in, added configure variables
- substitute version from configure script automatically Modified Files: configure.in configure Added Files: build/win32/nsis/bochs.nsi.in Removed Files: build/win32/nsis/bochs.nsi
This commit is contained in:
parent
562ec47c7e
commit
b2ec77815d
@ -1,5 +1,5 @@
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
; $Id: bochs.nsi,v 1.1 2002-11-21 03:08:35 bdenney Exp $
|
||||
; $Id: bochs.nsi.in,v 1.1 2002-11-21 03:43:04 bdenney Exp $
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;
|
||||
; Setup Script for NSIS Installer
|
||||
@ -10,11 +10,8 @@
|
||||
; also original BOCHS script by Robert (segra)
|
||||
;
|
||||
|
||||
!define VER_MAJOR 2
|
||||
!define VER_MINOR 0
|
||||
!define VER_REV pre2
|
||||
|
||||
!define NAME "Bochs ${VER_MAJOR}.${VER_MINOR}.${VER_REV}"
|
||||
!define VERSION @VERSION@
|
||||
!define NAME "Bochs ${VERSION}"
|
||||
|
||||
!verbose 3
|
||||
!include "WinMessages.nsh"
|
||||
@ -26,14 +23,14 @@
|
||||
!define TEMP1 $R0
|
||||
!define TEMP2 $R1
|
||||
|
||||
!define SRCDIR bochs-${VER_MAJOR}.${VER_MINOR}.${VER_REV}
|
||||
!define PGDIR "$SMPROGRAMS\Bochs ${VER_MAJOR}.${VER_MINOR}.${VER_REV}"
|
||||
!define SRCDIR bochs-${VERSION}
|
||||
!define PGDIR "$SMPROGRAMS\Bochs ${VERSION}"
|
||||
|
||||
;--------------------------------
|
||||
|
||||
;General
|
||||
Name "${NAME}"
|
||||
OutFile Bochs-${VER_MAJOR}.${VER_MINOR}.${VER_REV}.exe
|
||||
OutFile Bochs-${VERSION}.exe
|
||||
SetOverwrite on
|
||||
|
||||
;User interface
|
||||
@ -51,7 +48,7 @@
|
||||
InstType "Full (with DLX Linux demo)"
|
||||
|
||||
;Folder-select dialog
|
||||
InstallDir $PROGRAMFILES\Bochs-${VER_MAJOR}.${VER_MINOR}.${VER_REV}
|
||||
InstallDir $PROGRAMFILES\Bochs-${VERSION}
|
||||
DirText "Setup will install ${NAME} in the following folder.$\r$\n$\r$\nTo install in this folder, click Install. To install in a different folder, click Browse and select another folder." " "
|
||||
|
||||
;Uninstaller
|
263
bochs/configure
vendored
263
bochs/configure
vendored
@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.in Id: configure.in,v 1.171 2002/11/20 12:42:53 bdenney Exp .
|
||||
# From configure.in Id: configure.in,v 1.172 2002/11/20 20:42:39 bdenney Exp .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.53.
|
||||
#
|
||||
@ -1066,6 +1066,7 @@ Optional Packages:
|
||||
--with-rfb use RFB protocol, works with VNC viewer
|
||||
--with-amigaos use MorphOS (Amiga)
|
||||
--with-sdl use SDL libraries
|
||||
--with-svga use SVGALib libraries
|
||||
--with-wx use wxWindows libraries
|
||||
--with-all-libs compile all guis that Bochs supports
|
||||
|
||||
@ -1618,6 +1619,7 @@ echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
|
||||
echo "${ECHO_T}$ADD_FLAGS" >&6
|
||||
|
||||
if (test "$with_sdl" != yes) && \
|
||||
(test "$with_svga" != yes) && \
|
||||
(test "$with_x11" != yes) && \
|
||||
(test "$with_beos" != yes) && \
|
||||
(test "$with_win32" != yes) && \
|
||||
@ -4202,7 +4204,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
|
||||
case $host in
|
||||
*-*-irix6*)
|
||||
# Find out which ABI we are using.
|
||||
echo '#line 4205 "configure"' > conftest.$ac_ext
|
||||
echo '#line 4207 "configure"' > conftest.$ac_ext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
@ -4752,7 +4754,7 @@ chmod -w .
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
|
||||
compiler_c_o=no
|
||||
if { (eval echo configure:4755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
|
||||
if { (eval echo configure:4757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
if test -s out/conftest.err; then
|
||||
@ -6583,7 +6585,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 6586 "configure"
|
||||
#line 6588 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -6681,7 +6683,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 6684 "configure"
|
||||
#line 6686 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -8723,7 +8725,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 8726 "configure"
|
||||
#line 8728 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -16490,6 +16492,229 @@ fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$with_svga" != yes; then
|
||||
can_compile_svga=1
|
||||
if test "${ac_cv_header_vga_h+set}" = set; then
|
||||
echo "$as_me:$LINENO: checking for vga.h" >&5
|
||||
echo $ECHO_N "checking for vga.h... $ECHO_C" >&6
|
||||
if test "${ac_cv_header_vga_h+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_header_vga_h" >&6
|
||||
else
|
||||
# Is the header compilable?
|
||||
echo "$as_me:$LINENO: checking vga.h usability" >&5
|
||||
echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
$ac_includes_default
|
||||
#include <vga.h>
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_header_compiler=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_header_compiler=no
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
||||
echo "${ECHO_T}$ac_header_compiler" >&6
|
||||
|
||||
# Is the header present?
|
||||
echo "$as_me:$LINENO: checking vga.h presence" >&5
|
||||
echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
#include <vga.h>
|
||||
_ACEOF
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
||||
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
||||
ac_status=$?
|
||||
egrep -v '^ *\+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } >/dev/null; then
|
||||
if test -s conftest.err; then
|
||||
ac_cpp_err=$ac_c_preproc_warn_flag
|
||||
else
|
||||
ac_cpp_err=
|
||||
fi
|
||||
else
|
||||
ac_cpp_err=yes
|
||||
fi
|
||||
if test -z "$ac_cpp_err"; then
|
||||
ac_header_preproc=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_header_preproc=no
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
||||
echo "${ECHO_T}$ac_header_preproc" >&6
|
||||
|
||||
# So? What about this header?
|
||||
case $ac_header_compiler:$ac_header_preproc in
|
||||
yes:no )
|
||||
{ echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
||||
echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
|
||||
echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;};;
|
||||
no:yes )
|
||||
{ echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
|
||||
echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
|
||||
echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
|
||||
echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;};;
|
||||
esac
|
||||
echo "$as_me:$LINENO: checking for vga.h" >&5
|
||||
echo $ECHO_N "checking for vga.h... $ECHO_C" >&6
|
||||
if test "${ac_cv_header_vga_h+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_cv_header_vga_h=$ac_header_preproc
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_header_vga_h" >&6
|
||||
|
||||
fi
|
||||
if test $ac_cv_header_vga_h = yes; then
|
||||
:
|
||||
else
|
||||
can_compile_svga=0
|
||||
fi
|
||||
|
||||
|
||||
if test "${ac_cv_header_vgagl_h+set}" = set; then
|
||||
echo "$as_me:$LINENO: checking for vgagl.h" >&5
|
||||
echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6
|
||||
if test "${ac_cv_header_vgagl_h+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6
|
||||
else
|
||||
# Is the header compilable?
|
||||
echo "$as_me:$LINENO: checking vgagl.h usability" >&5
|
||||
echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
$ac_includes_default
|
||||
#include <vgagl.h>
|
||||
_ACEOF
|
||||
rm -f conftest.$ac_objext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } &&
|
||||
{ ac_try='test -s conftest.$ac_objext'
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||
(eval $ac_try) 2>&5
|
||||
ac_status=$?
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); }; }; then
|
||||
ac_header_compiler=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_header_compiler=no
|
||||
fi
|
||||
rm -f conftest.$ac_objext conftest.$ac_ext
|
||||
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
||||
echo "${ECHO_T}$ac_header_compiler" >&6
|
||||
|
||||
# Is the header present?
|
||||
echo "$as_me:$LINENO: checking vgagl.h presence" >&5
|
||||
echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
#line $LINENO "configure"
|
||||
#include "confdefs.h"
|
||||
#include <vgagl.h>
|
||||
_ACEOF
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
||||
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
||||
ac_status=$?
|
||||
egrep -v '^ *\+' conftest.er1 >conftest.err
|
||||
rm -f conftest.er1
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||
(exit $ac_status); } >/dev/null; then
|
||||
if test -s conftest.err; then
|
||||
ac_cpp_err=$ac_c_preproc_warn_flag
|
||||
else
|
||||
ac_cpp_err=
|
||||
fi
|
||||
else
|
||||
ac_cpp_err=yes
|
||||
fi
|
||||
if test -z "$ac_cpp_err"; then
|
||||
ac_header_preproc=yes
|
||||
else
|
||||
echo "$as_me: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
ac_header_preproc=no
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
||||
echo "${ECHO_T}$ac_header_preproc" >&6
|
||||
|
||||
# So? What about this header?
|
||||
case $ac_header_compiler:$ac_header_preproc in
|
||||
yes:no )
|
||||
{ echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
||||
echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
|
||||
echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;};;
|
||||
no:yes )
|
||||
{ echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
|
||||
echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
|
||||
echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
|
||||
echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;};;
|
||||
esac
|
||||
echo "$as_me:$LINENO: checking for vgagl.h" >&5
|
||||
echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6
|
||||
if test "${ac_cv_header_vgagl_h+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_cv_header_vgagl_h=$ac_header_preproc
|
||||
fi
|
||||
echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
|
||||
echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6
|
||||
|
||||
fi
|
||||
if test $ac_cv_header_vgagl_h = yes; then
|
||||
:
|
||||
else
|
||||
can_compile_svga=0
|
||||
fi
|
||||
|
||||
|
||||
if test $can_compile_svga = 1; then
|
||||
with_svga=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$with_x11" != yes; then
|
||||
can_compile_x11=1
|
||||
if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
|
||||
@ -20400,6 +20625,13 @@ if test "${with_sdl+set}" = set; then
|
||||
fi;
|
||||
|
||||
|
||||
# Check whether --with-svga or --without-svga was given.
|
||||
if test "${with_svga+set}" = set; then
|
||||
withval="$with_svga"
|
||||
|
||||
fi;
|
||||
|
||||
|
||||
# Check whether --with-wx or --without-wx was given.
|
||||
if test "${with_wx+set}" = set; then
|
||||
withval="$with_wx"
|
||||
@ -20560,6 +20792,20 @@ _ACEOF
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
|
||||
fi
|
||||
|
||||
if test "$with_svga" = yes; then
|
||||
display_libs="$display_libs svga"
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
#define BX_WITH_SVGA 1
|
||||
_ACEOF
|
||||
|
||||
SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
|
||||
# GUI_*FLAGS are added to the compilation of every bochs file, not just
|
||||
# the files in gui/*.cc.
|
||||
GUI_CFLAGS="$GUI_CFLAGS"
|
||||
GUI_CXXFLAGS="$GUI_CXXFLAGS"
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
|
||||
fi
|
||||
|
||||
if test "$with_rfb" = yes; then
|
||||
display_libs="$display_libs rfb"
|
||||
cat >>confdefs.h <<\_ACEOF
|
||||
@ -21881,6 +22127,8 @@ fi
|
||||
if test ! -d instrument; then mkdir instrument; fi
|
||||
if test ! -d build; then mkdir build; fi
|
||||
if test ! -d build/linux; then mkdir build/linux; fi
|
||||
if test ! -d build/win32; then mkdir build/win32; fi
|
||||
if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
|
||||
|
||||
|
||||
|
||||
@ -21996,7 +22244,7 @@ echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile iodev/Makefile debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile install-x11-fonts build/linux/bochs-dlx build/linux/bochs-docs bxversion.h build/linux/DOC-linux.html build/macosx/Info.plist"
|
||||
ac_config_files="$ac_config_files Makefile iodev/Makefile debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile install-x11-fonts build/linux/bochs-dlx build/linux/bochs-docs bxversion.h build/linux/DOC-linux.html build/macosx/Info.plist build/win32/nsis/bochs.nsi"
|
||||
cat >confcache <<\_ACEOF
|
||||
# This file is a shell script that caches the results of configure
|
||||
# tests run on this system so they can be shared between configure
|
||||
@ -22484,6 +22732,7 @@ do
|
||||
"bxversion.h" ) CONFIG_FILES="$CONFIG_FILES bxversion.h" ;;
|
||||
"build/linux/DOC-linux.html" ) CONFIG_FILES="$CONFIG_FILES build/linux/DOC-linux.html" ;;
|
||||
"build/macosx/Info.plist" ) CONFIG_FILES="$CONFIG_FILES build/macosx/Info.plist" ;;
|
||||
"build/win32/nsis/bochs.nsi" ) CONFIG_FILES="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
|
||||
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
||||
"ltdlconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ltdlconf.h" ;;
|
||||
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
||||
|
@ -2,7 +2,7 @@ dnl // Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.50)
|
||||
AC_INIT(bochs.h)
|
||||
AC_REVISION([[$Id: configure.in,v 1.172 2002-11-20 20:42:39 bdenney Exp $]])
|
||||
AC_REVISION([[$Id: configure.in,v 1.173 2002-11-21 03:43:03 bdenney Exp $]])
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
AC_CONFIG_HEADER(ltdlconf.h)
|
||||
|
||||
@ -84,6 +84,7 @@ AC_MSG_RESULT($ADD_FLAGS)
|
||||
|
||||
dnl // make sure X Windows is default if no other chosen
|
||||
if (test "$with_sdl" != yes) && \
|
||||
(test "$with_svga" != yes) && \
|
||||
(test "$with_x11" != yes) && \
|
||||
(test "$with_beos" != yes) && \
|
||||
(test "$with_win32" != yes) && \
|
||||
@ -269,6 +270,15 @@ if test "$with_all_libs" = yes; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$with_svga" != yes; then
|
||||
can_compile_svga=1
|
||||
AC_CHECK_HEADER([vga.h], [], [ can_compile_svga=0 ])
|
||||
AC_CHECK_HEADER([vgagl.h], [], [ can_compile_svga=0 ])
|
||||
if test $can_compile_svga = 1; then
|
||||
with_svga=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$with_x11" != yes; then
|
||||
can_compile_x11=1
|
||||
AC_CHECK_HEADER([X11/Xlib.h], [], [ can_compile_x11=0 ])
|
||||
@ -1548,6 +1558,10 @@ AC_ARG_WITH(sdl,
|
||||
[ --with-sdl use SDL libraries],
|
||||
)
|
||||
|
||||
AC_ARG_WITH(svga,
|
||||
[ --with-svga use SVGALib libraries],
|
||||
)
|
||||
|
||||
AC_ARG_WITH(wx,
|
||||
[ --with-wx use wxWindows libraries],
|
||||
)
|
||||
@ -1660,6 +1674,17 @@ if test "$with_sdl" = yes; then
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
|
||||
fi
|
||||
|
||||
if test "$with_svga" = yes; then
|
||||
display_libs="$display_libs svga"
|
||||
AC_DEFINE(BX_WITH_SVGA, 1)
|
||||
SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
|
||||
# GUI_*FLAGS are added to the compilation of every bochs file, not just
|
||||
# the files in gui/*.cc.
|
||||
GUI_CFLAGS="$GUI_CFLAGS"
|
||||
GUI_CXXFLAGS="$GUI_CXXFLAGS"
|
||||
GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
|
||||
fi
|
||||
|
||||
if test "$with_rfb" = yes; then
|
||||
display_libs="$display_libs rfb"
|
||||
AC_DEFINE(BX_WITH_RFB, 1)
|
||||
@ -2120,6 +2145,8 @@ fi
|
||||
if test ! -d instrument; then mkdir instrument; fi
|
||||
if test ! -d build; then mkdir build; fi
|
||||
if test ! -d build/linux; then mkdir build/linux; fi
|
||||
if test ! -d build/win32; then mkdir build/win32; fi
|
||||
if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
|
||||
|
||||
AC_SUBST(INSTALL_TARGET)
|
||||
AC_SUBST(INSTALL_LIST_FOR_PLATFORM)
|
||||
@ -2165,4 +2192,4 @@ AC_OUTPUT(Makefile iodev/Makefile debug/Makefile bios/Makefile \
|
||||
fpu/Makefile install-x11-fonts build/linux/bochs-dlx \
|
||||
build/linux/bochs-docs bxversion.h \
|
||||
build/linux/DOC-linux.html \
|
||||
build/macosx/Info.plist)
|
||||
build/macosx/Info.plist build/win32/nsis/bochs.nsi)
|
||||
|
Loading…
Reference in New Issue
Block a user