summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-03-20 12:39:24 +0000
committerBenny Prijono <bennylp@teluu.com>2006-03-20 12:39:24 +0000
commit4c8c2a65ead2089c30c431ef34c31d4e0c7b9cb3 (patch)
tree6962fbb65104c67247593d23ba204a4570533924 /configure
parentb54b2fc579bb9d1faa95f01d6e211b7cfed0e1bb (diff)
Ported pjlib to PowerPC/MacOS
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@338 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index e2645ac3..caaca802 100755
--- a/configure
+++ b/configure
@@ -3,7 +3,7 @@
#
# Detect machine
#
-MACHINE=`uname -m`
+MACHINE=`uname -p`
if echo $MACHINE | grep sun4u > /dev/null; then
MACHINE_NAME=sparc
@@ -11,8 +11,10 @@ elif echo $MACHINE | grep i.86 > /dev/null; then
MACHINE_NAME=i386
elif echo $MACHINE | grep alpha > /dev/null; then
MACHINE_NAME=alpha
+elif echo $MACHINE | grep powerpc > /dev/null; then
+ MACHINE_NAME=powerpc
else
- echo "Unable to detect processor type ('uname -m' == '$MACHINE')"
+ echo "Unable to detect processor type ('uname -p' == '$MACHINE')"
exit 1
fi
@@ -44,6 +46,9 @@ elif echo $SYSTEM | grep -i mingw > /dev/null; then
elif echo $SYSTEM | grep -i cygwin > /dev/null; then
OS_NAME=win32
HOST_NAME=mingw
+elif echo $SYSTEM | grep -i darwin > /dev/null; then
+ OS_NAME=darwinos
+ HOST_NAME=unix
else
echo "Unable to detect system type ('uname -s' == '$SYSTEM')"
exit 1