comparison liboffloadmic/configure.ac @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 # Process this file with autoconf to produce a configure script, like so: 28 # Process this file with autoconf to produce a configure script, like so:
29 # aclocal -I .. -I ../config && autoconf && automake 29 # aclocal -I .. -I ../config && autoconf && automake
30 30
31 AC_PREREQ([2.64])
32 AC_INIT([MIC Offload Runtime Library], [1.0], ,[liboffloadmic]) 31 AC_INIT([MIC Offload Runtime Library], [1.0], ,[liboffloadmic])
33 32
34 AC_CANONICAL_SYSTEM 33 AC_CANONICAL_SYSTEM
35 target_alias=${target_alias-$host_alias} 34 target_alias=${target_alias-$host_alias}
36 AC_SUBST(target_alias) 35 AC_SUBST(target_alias)
78 *) 77 *)
79 AC_MSG_ERROR([Liboffloadmic is disabled]) ;; 78 AC_MSG_ERROR([Liboffloadmic is disabled]) ;;
80 esac 79 esac
81 AM_CONDITIONAL(LIBOFFLOADMIC_HOST, [test x"$enable_liboffloadmic" = xhost]) 80 AM_CONDITIONAL(LIBOFFLOADMIC_HOST, [test x"$enable_liboffloadmic" = xhost])
82 81
82 GCC_WITH_TOOLEXECLIBDIR
83
83 # Calculate toolexeclibdir. 84 # Calculate toolexeclibdir.
84 # Also toolexecdir, though it's only used in toolexeclibdir. 85 # Also toolexecdir, though it's only used in toolexeclibdir.
85 case ${enable_version_specific_runtime_libs} in 86 case ${enable_version_specific_runtime_libs} in
86 yes) 87 yes)
87 # Need the gcc compiler version to know where to install libraries 88 # Need the gcc compiler version to know where to install libraries
93 no) 94 no)
94 if test -n "$with_cross_host" && 95 if test -n "$with_cross_host" &&
95 test x"$with_cross_host" != x"no"; then 96 test x"$with_cross_host" != x"no"; then
96 # Install a library built with a cross compiler in tooldir, not libdir. 97 # Install a library built with a cross compiler in tooldir, not libdir.
97 toolexecdir='$(exec_prefix)/$(target_alias)' 98 toolexecdir='$(exec_prefix)/$(target_alias)'
98 toolexeclibdir='$(toolexecdir)/lib' 99 case ${with_toolexeclibdir} in
100 no)
101 toolexeclibdir='$(toolexecdir)/lib'
102 ;;
103 *)
104 toolexeclibdir=${with_toolexeclibdir}
105 ;;
106 esac
99 else 107 else
100 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 108 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
101 toolexeclibdir='$(libdir)' 109 toolexeclibdir='$(libdir)'
102 fi 110 fi
103 multi_os_directory=`$CC -print-multi-os-directory` 111 multi_os_directory=`$CC -print-multi-os-directory`