+++ /dev/null
---- dosemu-1.4.0/src/tools/periph/dexeconfig.c.orig 2008-10-10 16:01:05.802663404 +0200
-+++ dosemu-1.4.0/src/tools/periph/dexeconfig.c 2008-10-10 16:15:55.241534296 +0200
-@@ -238,7 +238,7 @@
- exit(1);
- }
- close(fd);
-- fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC);
-+ fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
- if (fc < 0) {
- perror("cannot open config file");
- exit(1);
+++ /dev/null
-diff -urN dosemu-1.1.5.org/configure.ac dosemu-1.1.5/configure.ac
---- dosemu-1.1.5.org/configure.ac 2003-09-01 23:10:03.000000000 +0200
-+++ dosemu-1.1.5/configure.ac 2003-09-01 23:10:53.000000000 +0200
-@@ -428,9 +428,9 @@
- if test "$enable_debug" = "yes"; then
- CFLAGS="$CFLAGS -g"
- AC_DEFINE(_DEBUG)
-- OPT="-O"
-+ OPT="$OPTFLAGS"
- else
-- OPT="-O2" # BIG NOTE: do _not_ use -O3,
-+ OPT="$OPTFLAGS" # 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!
-@@ -517,37 +517,6 @@
- fi
-
-
-- # -m486 is usually in the specs for the compiler
-- # but gcc-3.0 wants -mcpu=i486 instead
-- # and gcc-3.4 wants -mtune=i486 instead
-- # let the compiler options be dependent of the _target_
-- # where dosemu is compiled for, not the host
-- if test "$target_cpu" = "athlon" -a $GCC_VERSION_CODE -le 2095 ; then
-- target_cpu="i686"
-- fi
-- if test -z "$target_cpu" ; then
-- true
-- elif test "$GCC_VERSION_CODE" -ge 3004 ; then
-- OPT="$OPT -mtune=$target_cpu"
-- elif test "$GCC_VERSION_CODE" -ge 2095 ; then
-- OPT="$OPT -mcpu=$target_cpu"
-- else
-- case "$target_cpu" in
-- i486)
-- OPT="$OPT -m486"
-- ;;
-- i386)
-- OPT="$OPT -m386"
-- ;;
-- *)
-- ;;
-- esac
-- fi
-- if test "$target_cpu" = "athlon"; then
-- OPT="$OPT -malign-functions=4 -fexpensive-optimizations"
-- elif test "$target_cpu" = "i486"; then
-- OPT="$OPT -malign-loops=2 -malign-jumps=2 -malign-functions=2"
-- fi
-
- AC_MSG_CHECKING(for glibc...)
- set `printf '%b\n' '#include <features.h>\nXXAaZZ __GLIBC__ XXBbZZ __GLIBC_MINOR__'|${CC-cc} -E -|awk '/XXAaZZ/ {print $2 " " $4}'`