1 dnl toolexeclibdir override support.
2 dnl Copyright (C) 2020 Free Software Foundation, Inc.
4 dnl This program is free software; you can redistribute it and/or modify
5 dnl it under the terms of the GNU General Public License as published by
6 dnl the Free Software Foundation; either version 3, or (at your option)
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 dnl GNU General Public License for more details.
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program; see the file COPYING3. If not see
16 dnl <http://www.gnu.org/licenses/>.
18 AC_DEFUN([GCC_WITH_TOOLEXECLIBDIR],
19 [AC_ARG_WITH(toolexeclibdir,
20 [AS_HELP_STRING([--with-toolexeclibdir=DIR],
21 [install libraries built with a cross compiler within DIR])],
23 case ${with_toolexeclibdir} in
27 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
30 [with_toolexeclibdir=no])