[asterisk-commits] rizzo: trunk r85197 - /trunk/bootstrap.sh

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 10 01:48:51 CDT 2007


Author: rizzo
Date: Wed Oct 10 01:48:50 2007
New Revision: 85197

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85197
Log:
Adapt the autotools names to different versions of FreeBSD
(and open the way to better adaptation for other platforms as well).


Modified:
    trunk/bootstrap.sh

Modified: trunk/bootstrap.sh
URL: http://svn.digium.com/view/asterisk/trunk/bootstrap.sh?view=diff&rev=85197&r1=85196&r2=85197
==============================================================================
--- trunk/bootstrap.sh (original)
+++ trunk/bootstrap.sh Wed Oct 10 01:48:50 2007
@@ -14,16 +14,16 @@
 
 uname -s | grep -q BSD
 if [ $? = 0 ] ; then	# BSD case
-	uname -s | grep -q FreeBSD
-	if [ $? = 0 ] ; then # FreeBSD case
-		MY_AC_VER=259
-		MY_AM_VER=19
-	fi
-	uname -s | grep -q OpenBSD
-	if [ $? = 0 ] ; then # OpenBSD case
-		MY_AC_VER=-2.61
-		MY_AM_VER=-1.9
-	fi
+	case `uname -sr` in
+		'FreeBSD 4'*)	# FreeBSD 4.x has a different naming
+			MY_AC_VER=259
+			MY_AM_VER=19
+			;;
+		*)
+			MY_AC_VER=-2.61
+			MY_AM_VER=-1.9
+			;;
+	esac
 else	# linux case
 	MY_AC_VER=
 	MY_AM_VER=




More information about the asterisk-commits mailing list