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 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/base/misc/dosio.c)
AC_CONFIG_HEADER(src/include/config.h)
AC_CANONICAL_SYSTEM
dnl Checks for programs.
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
dnl AC_PROG_AWK
dnl AC_PROG_INSTALL
AC_PROG_LEX
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_YACC
AC_CHECK_PROG(AS86,as86,as86,none)
AC_CHECK_PROG(LD86,ld86,ld86,none)
dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_MAJOR
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
AC_CHECK_HEADERS(fcntl.h limits.h syslog.h sys/file.h sys/ioctl.h sys/time.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_TYPE_UID_T
AC_STRUCT_ST_RDEV
AC_STRUCT_TM
AC_CACHE_CHECK(if C compiler has \"__FILE__\" macro,
ac_cv_c_has_file_macro,
[AC_TRY_COMPILE([#include <stdio.h>],[printf("%s", __FILE__);],
ac_cv_c_has_file_macro=yes,
ac_cv_c_has_file_macro=no) ] )
if test "$ac_cv_c_has_file_macro" = "no" ; then
AC_DEFINE(__FILE__, "")
fi
AC_CACHE_CHECK(if C compiler has \"__LINE__\" macro,
ac_cv_c_has_line_macro,
[AC_TRY_COMPILE([#include <stdio.h>],[printf("%s", __LINE__);],
ac_cv_c_has_line_macro=yes,
ac_cv_c_has_line_macro=no) ] )
if test "$ac_cv_c_has_line_macro" = "no" ; then
AC_DEFINE(__LINE__, "")
fi
AC_CACHE_CHECK(if C compiler has \"__FUNCTION__\" macro,
ac_cv_c_has_function_macro,
[AC_TRY_COMPILE([#include <stdio.h>],[printf("%s", __FUNCTION__);],
ac_cv_c_has_function_macro=yes,
ac_cv_c_has_function_macro=no) ] )
if test "$ac_cv_c_has_function_macro" = "no" ; then
AC_DEFINE(__FUNCTION__, "")
fi
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_UTIME_NULL
AC_FUNC_VPRINTF
dnl we currently don't use the following ...
dnl ___AC_CHECK_FUNCS(getcwd gethostname gettimeofday mkdir mkfifo mktime rmdir select socket strdup strerror strstr strtol strtoul uname)
dnl ... except
AC_CHECK_FUNCS(gettimeofday)
dnl Here is where we do our stuff
CONFIG_HOST=`uname -s`
if test "$CONFIG_HOST" = "Linux"; then
CONFIG_HOST='linux'
if test ! -f /usr/include/linux/version.h ; then
echo ''
echo '*** error:'
echo '*** Your system has no complete /usr/include/linux,'
echo '*** (version.h missing) ... giving up'
echo ''
exit 1
fi
force_vm86plus="1"
else
force_vm86plus="0"
fi
AC_SUBST(CONFIG_HOST)
dnl Do ELF if possible
if ! $CC -v 2>&1|grep specs >/dev/null 2>&1; then
AC_MSG_WARN(Your GCC installation is incomplete: specs file is missing.)
AC_MSG_WARN(We assume your GCC compiles for ELF.)
AC_MSG_WARN( )
ELF="ELF=1"
else
if grep __ELF__ `$CC -v 2>&1|head -n1|cut -d' ' -f4` /dev/null 1>/dev/null 2>&1; then
ELF="ELF=1"
else
if test "$CONFIG_HOST" = "linux"; then
echo "------------------------------------------------------------"
echo "Sorry, a.out system detected, but we do no longer support it"
echo "------------------------------------------------------------"
exit 1
else
# DON'T CHANGE THIS: this makes libdosemu start high enough to be safe.
# should be okay at...0x20000000 for .5 GB mark.
LIBSTART="LIBSTART = 0x20000000"
fi
fi
fi
AC_SUBST(LIBSTART)
AC_SUBST(ELF)
dnl Do check wether we we shall force use of supplied Slanglib.
AC_ARG_ENABLE(force-slang,
[ --enable-force-slang force use of dosemu supplied Slang-lib],
[force_slang="yes"],[force_slang="no"])
dnl Check for slang and if not found use the supplied version
dnl I'm not really sure which slang function to choose
dnl So I picked one at random, perhaps there is a better one?
if test "$force_slang" = "no"; then
AC_CHECK_LIB(slang, SLkm_define_key, , force_slang="yes")
fi
if test "$force_slang" = "no"; then
if test -d "$oldincludedir/slang"; then
SLANGINC="-I$oldincludedir/slang"
else
if test -f "$oldincludedir/slang.h"; then
SLANGINC=""
else
if test -f "/usr/local/include/slang.h"; then
SLANGINC="-I/usr/local/include"
else
AC_CHECKING("no system supplied slang.h found -- forceing dosemu slang")
force_slang="yes"
fi
fi
fi
fi
if test "$force_slang" = "no"; then
SLANGLIB="-lslang -lm"
AC_CHECKING("using system supplied libslang.a")
else
if test "$ELF" = "ELF=1"; then
SLANGLIB="-larch_${CONFIG_HOST}_slang-elf -lm"
AC_CHECKING("using dosemu supplied libarch_${CONFIG_HOST}_slang-elf.a")
else
SLANGLIB="-larch_${CONFIG_HOST}_slang"
AC_CHECKING("using dosemu supplied libarch_${CONFIG_HOST}_slang.a")
fi
fi
AC_SUBST(SLANGLIB)
dnl check for X. This was reproduced from TKined
AC_CHECK_PROG(x_ok, xmkmf, 1, 0)
if test $x_ok = 1 -a "${with_x+set}" != set; then
AC_PATH_X
fi
if test "$XINCLUDE_DIR" != ""; then
x_includes="$XINCLUDE_DIR"
fi
if test "$x_includes" = /usr/include; then
XINCLUDES="# no special path needed"
elif test "$x_includes" != "NONE"; then
XINCLUDES="-I$x_includes"
else
AC_CHECKING(for X11 header files)
XINCLUDES="# no special path needed"
AC_TRY_CPP([#include <X11/Intrinsic.h>], , XINCLUDES="nope")
if test "$XINCLUDES" = nope; then
dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include"
for i in $dirs ; do
if test -r $i/X11/Intrinsic.h; then
XINCLUDES="-I$i"
fi
done
fi
fi
if test "$XINCLUDES" = nope; then
AC_WARN(Couldn't find any X11 include files)
XINCLUDES="# no include files found"
fi
if test "$XINCLUDES" = "-I"; then
XINCLUDES=""
fi
AC_SUBST(XINCLUDES)
if test "$XLIBRARY_DIR" != ""; then
x_libraries="$XLIBRARY_DIR"
fi
if test "$x_libraries" = /usr/lib; then
XLIBSWL=-lX11
elif test "$x_libraries" != "NONE"; then
XLIBSWL="-lX11"
XLIBSWD="-L$x_libraries"
else
AC_CHECKING(for X11 library archive)
AC_CHECK_LIB(X11, main, XLIBSWL="-lX11", XLIBSWL=nope)
if test "$XLIBSWL" = nope; then
dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib"
for i in $dirs ; do
if test -r $i/libX11.a; then
XLIBSWL="-lX11"
XLIBSWD="-L$i"
fi
done
fi
fi
if test "$XLIBSWL" = nope ; then
AC_CHECK_LIB(Xwindow, main, XLIBSWL=-lXwindow)
fi
if test "$with_x" = "no"; then
XLIBSWL=nope
fi
if test "$XLIBSWL" = nope ; then
AC_WARN(Couldn't find the X11 library archive.)
AC_CHECKING(Compiling without X support)
XLIBSWL=""
XLIBSWD=""
X_SUPPORT=""
AC_SUBST(X_SUPPORT)
X_GRAPHICS=""
AC_SUBST(X_GRAPHICS)
X2CFILES=""
AC_SUBST(X2CFILES)
X2CEXE=""
AC_SUBST(X2CEXE)
else
AC_CHECKING(Compiling with X support)
X_SUPPORT="X_SUPPORT=1"
AC_DEFINE_UNQUOTED(X_SUPPORT)
AC_SUBST(X_SUPPORT)
X_GRAPHICS="X_GRAPHICS=1"
AC_DEFINE_UNQUOTED(X_GRAPHICS)
AC_SUBST(X_GRAPHICS)
dnl All the X2 specs
AC_DEFINE_UNQUOTED(X2_SUPPORT)
X2CFILES="x2dos.c"
AC_SUBST(X2CFILES)
X2CEXE="x2dos ../etc/xtermdos ../etc/xinstallvgafont"
AC_SUBST(X2CEXE)
dnl the -u forces the X11 shared library to be linked into ./dos
x_libraries=`echo $XLIBSWD | sed 's/^-L//'`
if test "$ELF" != "" ; then
# XLIBSWL="-lX11"
XLIBSWD="-Wl,-rpath,$x_libraries -L$x_libraries"
else
# XLIBSWL="-lX11"
XLIBSWD="-L$x_libraries -u _XOpenDisplay"
fi
fi
dnl Check for the MITSHM extention to speed up VGAemu
AC_ARG_ENABLE(mitshm,
[ --enable-mitshm force use of MITSHM X extension],
[forced_mitshm="yes"],[forced_mitshm="no"])
AC_ARG_ENABLE(nomitshm,
[ --enable-nomitshm do NOT use the MITSHM X extension],
[forced_nomitshm="yes"],[forced_nomitshm="no"])
if test "$forced_mitshm" = "no" -a "$forced_nomitshm" = "no" ; then
AC_CHECK_HEADER(X11/extensions/XShm.h,have_mitshm="yes",have_mitshm="no")
else
if test "$forced_mitshm" = "yes" -a "$forced_nomitshm" = "no" ; then
have_mitshm="yes"
fi
if test "$forced_mitshm" = "no" -a "$forced_nomitshm" = "yes" ; then
have_mitshm="no"
fi
if test "$forced_mitshm" = "yes" -a "$forced_nomitshm" = "yes" ; then
AC_MSG_ERROR(Can't use --enable-mitshm and --enable-nomitshm at the same time)
fi
fi
if test "$have_mitshm" = "yes" -a "$X_SUPPORT" = "X_SUPPORT=1"; then
XLIBSWL="-lXext $XLIBSWL"
AC_DEFINE(HAVE_MITSHM,1)
fi
XLIBSW="$XLIBSWD $XLIBSWL"
AC_SUBST(XLIBSW)
AC_SUBST(x_libraries)
REALTOPDIR=`nolinks=1; pwd`
VERSION="`cut -d. -f1 VERSION`"
SUBLEVEL="`cut -d. -f2 VERSION`"
PATCHLEVEL="`cut -d. -f3 VERSION`"
PATCHLEVEL_="`cut -d. -f4 VERSION`"
if test "$VERSION" = "$PATCHLEVEL_" -o "`cat VERSION`" = "$PATCHLEVEL_"; then
dnl need to workaround old buggy textutils
echo "you should upgrade your textutils to atleast version 1.19"
PATCHLEVEL_=""
fi
if test "$PATCHLEVEL_" = ""; then
PATCHLEVEL_=0
fi
DOSEMU_VERSION_CODE=`echo "$(( ( $VERSION * 16777216 ) + ( $SUBLEVEL * 65536 ) + ( $PATCHLEVEL * 256 ) + $PATCHLEVEL_ ))"`
PATCHLEVEL="${PATCHLEVEL}.${PATCHLEVEL_}"
THISVERSION="$VERSION.$SUBLEVEL.$PATCHLEVEL"
EMUVER="VERSION.$SUBLEVEL"
RELEASE_DATE=`head -n1 $REALTOPDIR/ChangeLog | cut '-d ' -f1`
AC_DEFINE_UNQUOTED(EMUVER, "$EMUVER")
AC_SUBST(EMUVER)
CONFIG_TIME=`date`
AC_SUBST(REALTOPDIR)
AC_SUBST(SUBLEVEL)
AC_SUBST(PATCHLEVEL)
AC_SUBST(THISVERSION)
AC_SUBST(VERSION)
AC_SUBST(DOSEMU_VERSION_CODE)
BINPATH="$REALTOPDIR/$THISVERSION"
AC_SUBST(BINPATH)
SRCPATH="$REALTOPDIR/src"
AC_SUBST(SRCPATH)
AC_DEFINE_UNQUOTED(CONFIG_HOST, "$CONFIG_HOST")
AC_DEFINE_UNQUOTED(CONFIG_TIME, "$CONFIG_TIME")
AC_DEFINE_UNQUOTED(VERSION, $VERSION)
AC_DEFINE_UNQUOTED(DOSEMU_VERSION_CODE, $DOSEMU_VERSION_CODE)
AC_DEFINE_UNQUOTED(SUBLEVEL, $SUBLEVEL)
AC_DEFINE_UNQUOTED(PATCHLEVEL, $PATCHLEVEL)
AC_DEFINE_UNQUOTED(VERSTR, "$THISVERSION")
AC_DEFINE_UNQUOTED(VERDATE, "$RELEASE_DATE")
OPTIONALSUBDIRS="dosext/net/v-net"
REQUIRED="tools commands tools/periph"
dnl enable EXPERIMENTAL stuff
AC_ARG_ENABLE(experimental,
[ --enable-experimental enable configuration of EXPERIMENTAL stuff],
[experimental="yes"],[experimental="no"])
if test "$experimental" = "yes"; then
AC_CHECKING("allowing EXPERIMENTAL stuff to be configured");
else
AC_CHECKING("EXPERIMENTAL stuff disabled");
fi
if test "$CONFIG_HOST" = "linux"; then
AC_CHECKING("Linux Specific Stuff")
dnl Do vm86plus
AC_ARG_ENABLE(novm86plus,
[ --enable-novm86plus do NOT use VM86 enhancement],
[novm86plus="yes"],[novm86plus="no"])
vm86plus="yes"
if test "$novm86plus" = "yes"; then
vm86plus="no"
fi
if test "$vm86plus" = "yes"; then
AC_DEFINE_UNQUOTED(BUILTIN_VM86PLUS)
BUILTIN_VM86PLUS="-DBUILTIN_VM86PLUS"
AC_SUBST(BUILTIN_VM86PLUS)
AC_CHECKING("Compiling for vm86plus support");
AC_DEFINE_UNQUOTED(REQUIRES_VM86PLUS)
AC_DEFINE_UNQUOTED(USE_MHPDBG)
USE_MHPDBG="-DUSE_MHPDBG"
AC_SUBST(USE_MHPDBG)
DEBUGGER="arch/$CONFIG_HOST/debugger"
REQUIRES_VM86PLUS="YES"
OPTIONALSUBDIRS="dosext/net/v-net"
REQUIRED="tools commands tools/periph"
else
AC_CHECKING("Compiling without vm86plus support");
DEBUGGER=""
REQUIRED="tools commands tools/periph"
fi
fi
AC_SUBST(DEBUGGER)
dnl Do compilation for GDB
AC_ARG_ENABLE(dodebug,
[ --enable-dodebug do compile for with debug info],
[dodebug="yes"],[dodebug="no"])
if test "$dodebug" = "yes"; then
AC_CHECKING("Compiling with debug info");
else
AC_CHECKING("Compiling without debug info");
fi
dnl Do SB emulation
AC_ARG_ENABLE(nosbemu,
[ --enable-nosbemu do NOT use SoundBlaster emulator],
[AC_CHECKING("Compiling without SB Emulation")],
[AC_CHECKING("Compiling with SB Emulation")
AC_DEFINE(USE_SBEMU)
USE_SBEMU="USE_SBEMU=1"
AC_CHECK_LIB(gus, gus_close,
[AC_CHECKING("Compiling Midid with Ultra support")
USE_ULTRA="USE_ULTRA=1"
AC_DEFINE(USE_ULTRA)
AC_SUBST(USE_ULTRA)],)
AC_SUBST(USE_SBEMU)])
AC_ARG_ENABLE(monoton-timing,
[ --enable-monoton-timing use monoton micro timing, some games don't like that],
[AC_CHECKING("Compiling with monoton micro timing")
AC_DEFINE(MONOTON_MICRO_TIMING)
AC_SUBST(MONOTON_MICRO_TIMING)],
[AC_CHECKING("Compiling with normal timing code")])
AC_ARG_ENABLE(runasroot,
[ --enable-runasroot dosemu should run as root mostly],
[AC_CHECKING("Compiling for dosemu mostly running as root")
AC_DEFINE(RUN_AS_ROOT)
AC_SUBST(RUN_AS_ROOT)],
[AC_CHECKING("Compiling for dosemu mostly running as user")])
AC_ARG_ENABLE(new-intcode,
[ --enable-new-intcode use new interrupt handling code],
[AC_CHECKING("Compiling with new interrupt handling code")
AC_DEFINE(USE_NEW_INT)
AC_SUBST(USE_NEW_INT)],
[AC_CHECKING("Compiling with normal interrupt handling code")])
LNKOPTS="-Wl,-warn-common"
AC_ARG_ENABLE(linkstatic,
[ --enable-linkstatic make statically linked binaries],
[AC_CHECKING("Linking statically")
LNKOPTS="${LNKOPTS} -static"],
[AC_CHECKING("Linking for shared libraries")])
dnl DPMI requirements
if test "$vm86plus" = "yes"; then
AC_DEFINE_UNQUOTED(WANT_WINDOWS)
WANT_WINDOWS="WANT_WINDOWS=-DWANT_WINDOWS"
else
WANT_WINDOWS=""
fi
AC_SUBST(WANT_WINDOWS)
AC_SUBST(OPTIONALSUBDIRS)
AC_SUBST(REQUIRED)
AC_SUBST(REQUIRES_VM86PLUS)
dnl Now CFLAGS and INCLUDES
# does this work if you do make -C <some dir>
TOPDIR=`nolinks=1;pwd`
AC_SUBST(TOPDIR)
if test "$force_slang" != "no"; then
SLANGINC="-I\${SRCPATH}/include/slang"
fi
# BIG NOTE: XINCLUDES _must_ come last, because some joker did preset
# it with a comment line (such as: XINCLUDES="# no special path needed")
# We need to fix this, because this is a time bomb. --HL
INCDIR="-I\${SRCPATH}/include -I\${SRCPATH}/dosext/dpmi ${SLANGINC} ${XINCLUDES}"
AC_SUBST(INCDIR)
if test "$dodebug" = "yes"; then
COPTFLAGS=" -g -Wall"
OPT="-O"
else
COPTFLAGS=" -Wall"
OPT="-O2" # BIG NOTE: do _not_ use -O3,
# because in forces _inline_ at places where we don't want it !
# If we want _inline_, well then we 'code' it.
OPT="$OPT -fomit-frame-pointer" # never omit the frame pointer when debugging!
fi
# -m486 is usually in the specs for the compiler
case "$host_cpu" in
i[[456]]86)
OPT="$OPT -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2"
;;
i386)
OPT="$OPT -m386"
;;
*)
;;
esac
OPT="$OPT -MD" # this should give painless dependencies
# OPT=-fno-inline
if test "$CONFIG_HOST" = "linux"; then
AC_CHECKING("Linux Specific build options")
dnl Linux net code
AC_ARG_ENABLE(nonet,
[ --enable-nonet do NOT use Linux net code],
[nonet="yes"],[nonet="no"])
if test "$nonet" = "yes"; then
AC_CHECKING("Compiling without network support");
USING_NET=""
else
AC_CHECKING("Compiling with network support");
USING_NET="-DUSING_NET"
fi
PIPE=-pipe
fi
# try to catch glibc the secure way, works even on older autoconf
cat > conftest.c <<EOF
#include <features.h>
#if __GLIBC__ > 1
yes_yes_yes;
#endif
EOF
echo -n "checking for glibc..."
if ${CC-cc} -E conftest.c |grep yes_yes_yes >/dev/null 2>&1; then
GLIBCFLAGS="-D__USE_UNIX98 -D__USE_GNU"
echo "yes"
else
echo "no"
fi
rm -f conftest.c
CFLAGS="${OPT} ${GLIBCFLAGS} ${PIPE} ${USING_NET} ${CDEBUGOPTS} ${COPTFLAGS} ${INCDIR}"
# set for DPMI want windows
# ifdef REQUIRES_VM86PLUS
# LDTPATCH=2
#else
# LDTPATCH=`grep -c useable /usr/include/linux/ldt.h`
#endif
#ifeq ($(LDTPATCH),2)
# WIN31=1
#else
# WIN31=0
#endif
# set to use a simpler fork for unix command
# CFLAGS+=-DSIMPLE_FORK
# set to debug fork with environment
# CFLAGS+=-DFORK_DEBUG
# We need to use the C_RUN_IRQS with -fno-inline (TBD why)
# this is in pic/pic.c
#CFLAGS+=-DC_RUN_IRQS
# use fd3 for soft errors, stderr for hard error, don't ope
# stderr to /dev/null
# CFLAGS+=-DUSE_FD3_FOR_ERRORS
LDFLAGS="${LNKOPTS}" # exclude symbol information
AC_SUBST(LDFLAGS)
dnl Create output files. If you add new ones, please do it in order.
AC_OUTPUT([Makefile.conf])
dnl Print some warnings (if neccessary)
if test "$GCC" != "yes" ; then
AC_MSG_WARN( )
AC_MSG_WARN(Your system doesn't seem to have the GNU C compiler (gcc).)
AC_MSG_WARN(Trying to compile with $CC.)
AC_MSG_WARN(If you are sure you have gcc, set the environment variable)
AC_MSG_WARN(CC to the complete name of gcc. Examples:)
AC_MSG_WARN(csh/tcsh: setenv CC /usr/local/bin/gcc)
AC_MSG_WARN(sh/ksh/bash: CC=/usr/local/bin/gcc ; export CC)
AC_MSG_WARN(Of course you could also include the gcc bin directory in)
AC_MSG_WARN(your path.)
fi
dnl as86 and ld86
if test "$AS86" != "as86" -o "$LD86" != "ld86" ; then
AC_MSG_WARN( )
AC_MSG_WARN(Your system doesn't seem to have as86 and/or ld86.)
AC_MSG_WARN(These programs are required to assemble the Dosemu)
AC_MSG_WARN(BIOS. Please install them.)
AC_MSG_ERROR( )
fi
dnl The bison problem
if test -z "`echo $YACC | grep bison`" ; then
AC_MSG_WARN( )
AC_MSG_WARN(Your system doesn't seem to have bison available.)
AC_MSG_WARN(There have been reports that bison is really required to)
AC_MSG_WARN(compile Dosemu. You may try to use $YACC instead, your)
AC_MSG_WARN(mileage may vary. If you want to be sure, install bison.)
AC_MSG_WARN( )
fi
dnl Warn the user about SMP
if test "$SMPmodules" = "yes" ; then
if ! grep cpu_data /proc/ksyms >/dev/null 2>&1; then
AC_MSG_WARN( )
AC_MSG_WARN(You choose to compile for SMP, but your kernel is uniprocessor)
AC_MSG_WARN( )
fi
else
if grep cpu_data /proc/ksyms >/dev/null 2>&1; then
AC_MSG_WARN( )
AC_MSG_WARN(Your kernel is SMP, but you did not set --enable-SMPmodules)
AC_MSG_WARN( )
fi
fi
echo ""
echo "Configure finished. Do 'make' to compile Dosemu."
echo ""
|