detect MAC in configure

pull/3/head
rofl0r 2012-01-27 20:21:06 +01:00
parent 5b5cc604a6
commit 9c83402d37
1 changed files with 7 additions and 0 deletions

7
configure vendored
View File

@ -19,6 +19,10 @@ parsearg() {
esac
}
ismac() {
uname -s | grep Darwin
}
while true ; do
case $1 in
-*) parsearg "$1"; shift;;
@ -54,6 +58,9 @@ echo exec_prefix=$exec_prefix>>config.mak
echo bindir=$bindir>>config.mak
echo libdir=$libdir>>config.mak
echo includedir=$includedir>>config.mak
if ismac ; then
echo LDSO_SUFFIX=dylib>>config.mak
fi
echo done, now run make \&\& make install