| 1 |
# config-lang.in -- Top level configure fragment for gcc D frontend. |
| 2 |
# Copyright (C) 2006-2025 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
# GCC is free software; you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU General Public License as published by |
| 6 |
# the Free Software Foundation; either version 3, or (at your option) |
| 7 |
# any later version. |
| 8 |
|
| 9 |
# GCC is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU General Public License for more details. |
| 13 |
|
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with GCC; see the file COPYING3. If not see |
| 16 |
# <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
# Configure looks for the existence of this file to auto-config each language. |
| 19 |
# We define several parameters used by configure: |
| 20 |
# |
| 21 |
# language - name of language as it would appear in $(LANGUAGES) |
| 22 |
# boot_language - "yes" if we need to build this language in stage1 |
| 23 |
# compilers - value to add to $(COMPILERS) |
| 24 |
|
| 25 |
language="d" |
| 26 |
|
| 27 |
boot_language=yes |
| 28 |
compilers="d21\$(exeext)" |
| 29 |
|
| 30 |
phobos_target_deps="target-zlib target-libbacktrace" |
| 31 |
phobos_target_libs="target-libphobos $phobos_target_deps" |
| 32 |
|
| 33 |
case "${noconfigdirs}" in |
| 34 |
# Check if phobos was disabled as unsupported |
| 35 |
*target-libphobos*) |
| 36 |
disabled_target_libs="$disabled_target_libs $phobos_target_deps" |
| 37 |
;; |
| 38 |
*) |
| 39 |
# The --disable-<component> handler in configure.ac is called after |
| 40 |
# config-lang.in. So when using --disable-libphobos, it has not been |
| 41 |
# added to noconfigdirs here yet |
| 42 |
if test x${enable_libphobos} != xno; then |
| 43 |
target_libs="$phobos_target_libs" |
| 44 |
else |
| 45 |
disabled_target_libs="$disabled_target_libs $phobos_target_libs" |
| 46 |
fi |
| 47 |
;; |
| 48 |
esac |
| 49 |
|
| 50 |
gtfiles="\$(srcdir)/d/d-tree.h \$(srcdir)/d/d-builtins.cc \$(srcdir)/d/d-lang.cc \$(srcdir)/d/typeinfo.cc" |
| 51 |
|
| 52 |
# Do not build by default. |
| 53 |
build_by_default="no" |