comparison libquadmath/configure.ac @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 # Process this file with autoconf to produce a configure script, like so: 1 # Process this file with autoconf to produce a configure script, like so:
2 # aclocal && autoconf && autoheader && automake 2 # aclocal && autoconf && autoheader && automake
3 3
4 AC_PREREQ(2.64)
5 AC_INIT([GCC Quad-precision Math Library], 0.1,,[libquadmath]) 4 AC_INIT([GCC Quad-precision Math Library], 0.1,,[libquadmath])
6 AC_CONFIG_HEADER(config.h) 5 AC_CONFIG_HEADER(config.h)
7 6
8 # Gets build, host, target, *_vendor, *_cpu, *_os, etc. 7 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
9 # 8 #
81 if test "x$GCC" != "xyes"; then 80 if test "x$GCC" != "xyes"; then
82 AC_MSG_ERROR([libquadmath must be built with GCC]) 81 AC_MSG_ERROR([libquadmath must be built with GCC])
83 fi 82 fi
84 AC_PROG_CPP 83 AC_PROG_CPP
85 84
85 GCC_WITH_TOOLEXECLIBDIR
86
86 # Calculate toolexeclibdir 87 # Calculate toolexeclibdir
87 # Also toolexecdir, though it's only used in toolexeclibdir 88 # Also toolexecdir, though it's only used in toolexeclibdir
88 case ${version_specific_libs} in 89 case ${version_specific_libs} in
89 yes) 90 yes)
90 # Need the gcc compiler version to know where to install libraries 91 # Need the gcc compiler version to know where to install libraries
96 no) 97 no)
97 if test -n "$with_cross_host" && 98 if test -n "$with_cross_host" &&
98 test x"$with_cross_host" != x"no"; then 99 test x"$with_cross_host" != x"no"; then
99 # Install a library built with a cross compiler in tooldir, not libdir. 100 # Install a library built with a cross compiler in tooldir, not libdir.
100 toolexecdir='$(exec_prefix)/$(target_alias)' 101 toolexecdir='$(exec_prefix)/$(target_alias)'
101 toolexeclibdir='$(toolexecdir)/lib' 102 case ${with_toolexeclibdir} in
103 no)
104 toolexeclibdir='$(toolexecdir)/lib'
105 ;;
106 *)
107 toolexeclibdir=${with_toolexeclibdir}
108 ;;
109 esac
102 else 110 else
103 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 111 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
104 toolexeclibdir='$(libdir)' 112 toolexeclibdir='$(libdir)'
105 fi 113 fi
106 multi_os_directory=`$CC -print-multi-os-directory` 114 multi_os_directory=`$CC -print-multi-os-directory`