From 461664378a37ea2d87b3af772fc254b2b5412cbf Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Sun, 20 Oct 2002 10:30:53 +0000 Subject: Respect CC and fix build on -current (expr -> expr --) --- textproc/rotix/files/patch-configure | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 textproc/rotix/files/patch-configure (limited to 'textproc/rotix/files/patch-configure') diff --git a/textproc/rotix/files/patch-configure b/textproc/rotix/files/patch-configure new file mode 100644 index 000000000000..1acf4dcb6ed3 --- /dev/null +++ b/textproc/rotix/files/patch-configure @@ -0,0 +1,23 @@ +--- configure.orig Sun Jan 27 13:00:06 2002 ++++ configure Sun Oct 20 03:32:06 2002 +@@ -17,7 +17,7 @@ + arch=`uname -s` + + while [ -n "$1" ]; do +- e="`expr "$1" : '--\(.*=.*\)'`" ++ e="`expr -- "$1" : '--\(.*=.*\)'`" + if [ -z "$e" ]; then + cat< /dev/null 2> /dev/null; then +- echo "CC=gcc" >> Makefile.settings; ++ echo "CC?=gcc" >> Makefile.settings; + elif type cc > /dev/null 2> /dev/null; then +- echo "CC=cc" >> Makefile.settings; ++ echo "CC?=cc" >> Makefile.settings; + else + echo 'Cannot find a C compiler, aborting.' + exit 1; -- cgit v1.2.3