Fixed libraries directory name handling.

git-svn-id: http://voip.null.ro/svn/yate@1544 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-12-13 14:34:42 +00:00
parent 7003e84fdb
commit cbecedd5bd
1 changed files with 10 additions and 1 deletions

View File

@ -23,6 +23,7 @@ test -x "$uname_os" && uname_os=Unknown
AC_MSG_RESULT([$uname_os])
# Check if we should look for alternate library names
AC_ARG_WITH(archlib,AC_HELP_STRING([--with-archlib=NAME],[use NAME as library directory name]),[ac_cv_use_archlib=$withval])
AC_MSG_CHECKING([for libraries directory name])
archname=`uname -m` 2>/dev/null
test -z "$archname" && archname=`arch -k`
@ -32,7 +33,15 @@ case "x$archname" in
ARCHLIB=lib64
;;
esac
AC_ARG_WITH(archlib,AC_HELP_STRING([--with-archlib=NAME],[use NAME as library directory name]),[ARCHLIB=$withwal])
case "x$ac_cv_use_archlib" in
x|xyes)
;;
xno)
ARCHLIB="lib"
;;
*)
ARCHLIB="$ac_cv_use_archlib"
esac
test -d "/usr/$ARCHLIB" || ARCHLIB="lib"
AC_MSG_RESULT([$ARCHLIB])
AC_SUBST(ARCHLIB)