llvm.org GIT mirror llvm / 7659545
Added the ARCH variable so that some of the Makefiles can perform actions based upon the target hardware architecture (as opposed to always checking the OS). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7050 91177308-0d34-0410-b5e6-96231b3b80d8 John Criswell 16 years ago
3 changed file(s) with 34 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
77 # Target operating system for which LLVM will be compiled.
88 #
99 OS=@OS@
10
11 #
12 # Target hardware architecture
13 #
14 ARCH=@ARCH@
1015
1116 # Path to the C++ compiler to use. This is an optional setting, which defaults
1217 # to whatever your gmake defaults to.
16091609 ;;
16101610 esac
16111611
1612 case $target in
1613 *i*86*) ARCH=x86
1614
1615 ;;
1616 *sparc*solaris*) ARCH=Sparc
1617
1618 ;;
1619 esac
1620
16121621
16131622 ac_ext=cc
16141623 ac_cpp='$CXXCPP $CPPFLAGS'
42954304 case $host in
42964305 *-*-irix6*)
42974306 # Find out which ABI we are using.
4298 echo '#line 4299 "configure"' > conftest.$ac_ext
4307 echo '#line 4308 "configure"' > conftest.$ac_ext
42994308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43004309 (eval $ac_compile) 2>&5
43014310 ac_status=$?
48454854 save_CFLAGS="$CFLAGS"
48464855 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
48474856 compiler_c_o=no
4848 if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4857 if { (eval echo configure:4858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
48494858 # The compiler can only warn and ignore the option if not recognized
48504859 # So say no if there are warnings
48514860 if test -s out/conftest.err; then
66766685 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
66776686 lt_status=$lt_dlunknown
66786687 cat > conftest.$ac_ext <
6679 #line 6680 "configure"
6688 #line 6689 "configure"
66806689 #include "confdefs.h"
66816690
66826691 #if HAVE_DLFCN_H
67746783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
67756784 lt_status=$lt_dlunknown
67766785 cat > conftest.$ac_ext <
6777 #line 6778 "configure"
6786 #line 6787 "configure"
67786787 #include "confdefs.h"
67796788
67806789 #if HAVE_DLFCN_H
1212512134 s,@OS@,$OS,;t t
1212612135 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
1212712136 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
12137 s,@ARCH@,$ARCH,;t t
1212812138 s,@CXX@,$CXX,;t t
1212912139 s,@CXXFLAGS@,$CXXFLAGS,;t t
1213012140 s,@LDFLAGS@,$LDFLAGS,;t t
4949 esac
5050
5151 dnl
52 dnl If we are on a Solaris machine, pretend that it is V9, since that is all
53 dnl that we support at the moment, and autoconf will only tell us we're a
54 dnl sparc.
52 dnl If we are targetting a Sparc machine running Solaris, pretend that it is
53 dnl V9, since that is all that we support at the moment, and autoconf will only
54 dnl tell us we're a sparc.
5555 dnl
5656 case $target in
5757 *sparc*solaris*) AC_SUBST(target,[[sparcv9-sun-solaris2.8]])
58 ;;
59 esac
60
61 dnl
62 dnl Determine what our target architecture is and configure accordingly.
63 dnl This will allow Makefiles to make a distinction between the hardware and
64 dnl the OS.
65 dnl
66 case $target in
67 *i*86*) AC_SUBST(ARCH,[x86])
68 ;;
69 *sparc*solaris*) AC_SUBST(ARCH,[Sparc])
5870 ;;
5971 esac
6072