summaryrefslogtreecommitdiff
path: root/data/ncftp/tools.diff
blob: b34de4787f860f03b2ad0d73cca3415448165488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ru ncftp-3.2.1/configure ncftp-3.2.1+iPhone/configure
--- ncftp-3.2.1/configure	2007-08-01 05:39:16.000000000 +0000
+++ ncftp-3.2.1+iPhone/configure	2008-03-24 09:22:22.000000000 +0000
@@ -8387,10 +8387,13 @@
 	case "$CC" in
 		*${machine}*)
 			f=`echo "$CC" | sed 's|/[^/]*$||'`
+			AR=$(which "${machine}-ar") ||
 			if [ -x "$f/${machine}-ar" ] ; then
 				AR="$f/${machine}-ar"
 			elif [ -x "$f/ar" ] ; then
 				AR="$f/ar"
+			else
+				AR="ar"
 			fi
 			;;
 	esac