Commit | Line | Data |
---|---|---|
9f1528a1 AB |
1 | dnl toolexeclibdir override support. |
2 | dnl Copyright (C) 2020 Free Software Foundation, Inc. | |
3 | dnl | |
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) | |
7 | dnl any later version. | |
8 | dnl | |
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. | |
13 | dnl | |
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/>. | |
17 | ||
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])], | |
22 | [dnl | |
23 | case ${with_toolexeclibdir} in | |
24 | /) | |
25 | ;; | |
26 | */) | |
27 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
28 | ;; | |
29 | esac], | |
30 | [with_toolexeclibdir=no]) | |
31 | ]) |