diff --git a/build-aux/check-mescc.sh b/build-aux/check-mescc.sh index 347e7c1f..bc1a33c9 100755 --- a/build-aux/check-mescc.sh +++ b/build-aux/check-mescc.sh @@ -228,6 +228,16 @@ scaffold/tests/stdio/70-printf-simple scaffold/tests/stdio/70-printf lib/tests/setjmp/80-setjmp scaffold/tests/a1-global-no-align +" + # Debian: debugme itoa is broken + broken="$broken +scaffold/tests/47-function-expression +scaffold/tests/62-array +scaffold/tests/65-read +scaffold/tests/85-sizeof +lib/tests/mes/90-abtod +lib/tests/mes/90-dtoab +lib/tests/posix/90-execlp " fi diff --git a/build-aux/check.sh.in b/build-aux/check.sh.in index cd8d476c..67247238 100644 --- a/build-aux/check.sh.in +++ b/build-aux/check.sh.in @@ -26,7 +26,7 @@ set -e ./pre-inst-env bash ${srcdest}build-aux/check-boot.sh ./pre-inst-env sh ${srcdest}build-aux/check-mes.sh -./pre-inst-env sh ${srcdest}build-aux/check-mescc.sh +./pre-inst-env bash ${srcdest}build-aux/check-mescc.sh if [ -d $TINYCC_PREFIX/tests/tests2 ] ;then ./pre-inst-env sh ${srcdest}build-aux/check-tcc.sh fi diff --git a/build-aux/config.sh b/build-aux/config.sh index de59582b..d49e5d85 100644 --- a/build-aux/config.sh +++ b/build-aux/config.sh @@ -37,6 +37,12 @@ if [ ! "$CC" ]; then CC="./pre-inst-env mescc" fi +unset CFLAGS +unset CPPFLAGS +unset HEX2FLAGS +unset LDFLAGS +unset M1FLAGS + export AR export CC export CFLAGS diff --git a/build-aux/install.sh.in b/build-aux/install.sh.in index 64cc693c..36106f87 100644 --- a/build-aux/install.sh.in +++ b/build-aux/install.sh.in @@ -25,23 +25,23 @@ set -e mes_prefix=@prefix@/share/mes # use bash or lose if pipes fail -if [ "$(basename $SHELL)" = bash ]; then +if [ -n "$BASHOPTS" ]; then set -o pipefail fi -mkdir -p $DESTDIR@bindir@ +mkdir -p ${DESTDIR}@bindir@ if [ -f src/x86-mes-mes ]; then - cp src/x86-mes-mes $DESTDIR@bindir@/mes + cp src/x86-mes-mes ${DESTDIR}@bindir@/mes fi -cp scripts/mescc.scm $DESTDIR@bindir@/mescc.scm -cp scripts/mescc $DESTDIR@bindir@/mescc +cp scripts/mescc.scm ${DESTDIR}@bindir@/mescc.scm +cp scripts/mescc ${DESTDIR}@bindir@/mescc sed \ -e "s,^#! /bin/sh,#! @SHELL@," \ - scripts/diff.scm > $DESTDIR@bindir@/diff.scm -chmod +x $DESTDIR@bindir@/diff.scm + scripts/diff.scm > ${DESTDIR}@bindir@/diff.scm +chmod +x ${DESTDIR}@bindir@/diff.scm -mkdir -p $DESTDIR@docdir@ +mkdir -p ${DESTDIR}@docdir@ if [ -n "@PERL@" ]\ && [ -n "@GIT@" ]\ @@ -58,18 +58,12 @@ cp\ INSTALL\ NEWS\ README\ - $DESTDIR@docdir@ + ${DESTDIR}@docdir@ if [ -f ChangeLog ]; then - cp ChangeLog $DESTDIR@docdir@ + cp ChangeLog ${DESTDIR}@docdir@ else - cp ChangeLog $DESTDIR@docdir@ -fi - -if [ -f ChangeLog ]; then - cp ChangeLog @docdir@ -else - cp ChangeLog @docdir@ + cp ChangeLog ${DESTDIR}@docdir@ fi mkdir -p $DESTDIR$mes_prefix diff --git a/configure b/configure index 520007d1..4f81c7ac 100755 --- a/configure +++ b/configure @@ -370,7 +370,7 @@ Some influential environment variables: (program-prefix (option-ref options 'program-prefix "")) (program-suffix (option-ref options 'program-suffix "")) (infodir (option-ref options 'infodir "${prefix}/share/info")) - (mandir (option-ref options 'infodir "${prefix}/share/man")) + (mandir (option-ref options 'mandir "${prefix}/share/man")) (sysconfdir (option-ref options 'sysconfdir "${prefix}/etc")) (bindir (option-ref options 'bindir "${prefix}/bin"))