mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Create a link from $BUILD_OBJ_ROOT/lib/System/platform to
$BUILD_SRC_ROOT/lib/System/$build which gives us the ability to configure the lib/System for the current type of operating system. Also cleaned up some indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16082 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2f0781a10
commit
59ee43662a
@ -102,31 +102,47 @@ dnl We will use the build machine information to set some variables.
|
||||
case $build in
|
||||
*-*-linux*)
|
||||
AC_SUBST(OS,[Linux])
|
||||
if test -d /home/vadve/lattner/local/x86/llvm-gcc
|
||||
then
|
||||
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/x86/llvm-gcc/])
|
||||
fi
|
||||
;;
|
||||
platform_type="Linux"
|
||||
if test -d /home/vadve/lattner/local/x86/llvm-gcc
|
||||
then
|
||||
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/x86/llvm-gcc/])
|
||||
fi
|
||||
;;
|
||||
*-*-solaris*)
|
||||
AC_SUBST(OS,[SunOS])
|
||||
if test -d /home/vadve/lattner/local/sparc/llvm-gcc
|
||||
then
|
||||
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/sparc/llvm-gcc/])
|
||||
fi
|
||||
;;
|
||||
platform_type="SunOS"
|
||||
if test -d /home/vadve/lattner/local/sparc/llvm-gcc
|
||||
then
|
||||
AC_SUBST(LLVMGCCDIR,[/home/vadve/lattner/local/sparc/llvm-gcc/])
|
||||
fi
|
||||
;;
|
||||
*-*-cygwin*)
|
||||
AC_SUBST(OS,[Cygwin])
|
||||
;;
|
||||
platform_type="Cygwin"
|
||||
;;
|
||||
*-*-darwin*)
|
||||
AC_SUBST(OS,[Darwin])
|
||||
;;
|
||||
platform_type="Darwin"
|
||||
;;
|
||||
*-*-aix*)
|
||||
AC_SUBST(OS,[AIX])
|
||||
;;
|
||||
*) AC_SUBST(OS,[Unknown])
|
||||
;;
|
||||
platform_type="AIX"
|
||||
;;
|
||||
*-*-win32*)
|
||||
AC_SUBST(OS,[Win32])
|
||||
platform_type="Win32"
|
||||
;;
|
||||
*)
|
||||
AC_SUBST(OS,[Unknown])
|
||||
platform_type="Unknown"
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Make a link from lib/System/platform to lib/System/$platform_type
|
||||
dnl This helps the #inclusion of the system specific include files
|
||||
dnl for the operating system abstraction library
|
||||
AC_CONFIG_LINKS(lib/System/platform:lib/System/$platform_type)
|
||||
|
||||
dnl If we are targetting a Sparc machine running Solaris, pretend that it is
|
||||
dnl V9, since that is all that we support at the moment, and autoconf will only
|
||||
dnl tell us we're a sparc.
|
||||
|
Loading…
x
Reference in New Issue
Block a user