X-Git-Url: http://git.shiar.nl/netris.git/blobdiff_plain/ae37c04c146c531a475aafa0ec96ec011fe32e22..1e9c326b7848ac4b08a1fec5116c33125890a0a0:/configure diff --git a/configure b/configure index c3a63dc..6ae80bb 100755 --- a/configure +++ b/configure @@ -55,6 +55,10 @@ while [ $# -ge 1 ]; do --curses-hack) CURSES_HACK=true ;; + --lang) + lang="$1" + shift + ;; *) cat << "END" Usage: ./configure [options...] @@ -65,6 +69,7 @@ Usage: ./configure [options...] --cextra : Set extra C flags --lextra : Set extra linker flags --curses-hack: Disable scroll-optimization for broken curses + --lang : Preferred interface language (default "en") END exit 1 ;; @@ -135,6 +140,13 @@ fi rm -f test.c test.o a.out +test -z "$lang" && lang=en +MSG_FILE=msg.$lang.h +if [ ! -f $MSG_FILE ]; then + echo "Error: $MSG_FILE not found" + exit +fi + echo "Creating config.mak" cat > config.mak << END ### Automatically generated by ./configure ### @@ -145,6 +157,7 @@ CEXTRA = $CEXTRA LEXTRA = $LEXTRA LFLAGS = $LEXTRA $LFLAGS CFLAGS = \$(CEXTRA) \$(COPT) +MSG_FILE = $MSG_FILE END echo "Creating config.h"