1627f7eb2Smrg# config-lang.in -- Top level configure fragment for gcc D frontend. 2*4c3eb207Smrg# Copyright (C) 2006-2020 Free Software Foundation, Inc. 3627f7eb2Smrg 4627f7eb2Smrg# GCC is free software; you can redistribute it and/or modify 5627f7eb2Smrg# it under the terms of the GNU General Public License as published by 6627f7eb2Smrg# the Free Software Foundation; either version 3, or (at your option) 7627f7eb2Smrg# any later version. 8627f7eb2Smrg 9627f7eb2Smrg# GCC is distributed in the hope that it will be useful, 10627f7eb2Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 11627f7eb2Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12627f7eb2Smrg# GNU General Public License for more details. 13627f7eb2Smrg 14627f7eb2Smrg# You should have received a copy of the GNU General Public License 15627f7eb2Smrg# along with GCC; see the file COPYING3. If not see 16627f7eb2Smrg# <http://www.gnu.org/licenses/>. 17627f7eb2Smrg 18627f7eb2Smrg# Configure looks for the existence of this file to auto-config each language. 19627f7eb2Smrg# We define several parameters used by configure: 20627f7eb2Smrg# 21627f7eb2Smrg# language - name of language as it would appear in $(LANGUAGES) 22627f7eb2Smrg# compilers - value to add to $(COMPILERS) 23627f7eb2Smrg 24627f7eb2Smrglanguage="d" 25627f7eb2Smrg 26627f7eb2Smrgcompilers="d21\$(exeext)" 27627f7eb2Smrg 28627f7eb2Smrgphobos_target_deps="target-zlib target-libbacktrace" 29627f7eb2Smrgphobos_target_libs="target-libphobos $phobos_target_deps" 30627f7eb2Smrg 31627f7eb2Smrgcase "${noconfigdirs}" in 32627f7eb2Smrg # Check if phobos was disabled as unsupported 33627f7eb2Smrg *target-libphobos*) 34627f7eb2Smrg disabled_target_libs="$disabled_target_libs $phobos_target_deps" 35627f7eb2Smrg ;; 36627f7eb2Smrg *) 37627f7eb2Smrg # The --disable-<component> handler in configure.ac is called after 38627f7eb2Smrg # config-lang.in. So when using --disable-libphobos, it has not been 39627f7eb2Smrg # added to noconfigdirs here yet 40627f7eb2Smrg if test x${enable_libphobos} != xno; then 41627f7eb2Smrg target_libs="$phobos_target_libs" 42627f7eb2Smrg else 43627f7eb2Smrg disabled_target_libs="$disabled_target_libs $phobos_target_libs" 44627f7eb2Smrg fi 45627f7eb2Smrg ;; 46627f7eb2Smrgesac 47627f7eb2Smrg 48627f7eb2Smrggtfiles="\$(srcdir)/d/d-tree.h \$(srcdir)/d/d-builtins.cc \$(srcdir)/d/d-lang.cc \$(srcdir)/d/modules.cc \$(srcdir)/d/typeinfo.cc" 49627f7eb2Smrg 50627f7eb2Smrg# Do not build by default. 51627f7eb2Smrgbuild_by_default="no" 52