summaryrefslogtreecommitdiff
path: root/textproc/rotix/files/patch-configure
blob: 1acf4dcb6ed383645402094455e399b6c61314c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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<<EOF
 Rotix configure
@@ -83,9 +83,9 @@
 fi
 
 if type gcc > /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;