-
Notifications
You must be signed in to change notification settings - Fork 1
/
Defaults.in
90 lines (78 loc) · 2.72 KB
/
Defaults.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# @configure_input@
# but you may want to hand-edit it anyway to cross-compile, etc.
#
# This file is included by the gen-makefile Perl script which creates the
# makefiles used to compile with d2c.
$target_name = '@d2c_target@';
$host_name = '@d2c_host@';
$version = "@version@";
$bootstrap_counter = @CURRENT_BOOTSTRAP_COUNTER@;
$lid_format_version= "@lid_format_version@";
$srcroot = "@srcdir@";
$buildroot = "@buildroot@";
$prefix = "@prefix@";
$destdir = $exec_prefix = "@exec_prefix@";
$bindir = "@bindir@";
$libdir = "@libdir@/dylan/@version@/@d2c_target@";
if("@with_site_dylan_prefix@" ne "no") {
$sitelibdirprefix = "@with_site_dylan_prefix@";
} else {
$sitelibdirprefix = "$prefix";
}
$sitelibdir = "$sitelibdirprefix/lib/dylan/@version@/@d2c_target@/dylan-user";
$mandir = "@mandir@";
$datadir = "@datadir@";
$sysconfdir = "@sysconfdir@";
$includedir = "@includedir@";
$gen_makefile = "$buildroot/gen-makefile";
$enable_debug = "@enable_debug@" eq "yes";
$enable_profiling = "@enable_debug@" =~ /^profil/;
$enable_mindy = "@enable_mindy@" eq "yes";
$cross_compiling = "@d2c_cross_compiling@" eq "yes";
$enable_bootstrap = "@enable_bootstrap@" eq "yes";
$recheck = "@recheck@";
$shared = "@enable_shared@" eq "yes";
$static = "@enable_static@" eq "yes";
$INSTALL = "@INSTALL@";
$LIBTOOL = '@LIBTOOL@';
$DTRACE = '@DTRACE@';
$enable_dtrace = "@enable_dtrace@" eq "yes";
$with_gc = "@WITH_GC@";
# INSTALL_DATA and INSTALL_PROGRAM don't do what I would expect. In
# particular, INSTALL_PROGRAM doesn't force executability.
$install_data = "@INSTALL@";
$install_program = "@LIBTOOL@ --mode=install @INSTALL@ -m oug+rx";
$install_library = "@LIBTOOL@ --mode=install @INSTALL@";
if ($cross_compiling) {
# Use cross-compilation flags if necessary.
$D2C = "@D2C@ -T$target_name --no-binaries";
} else {
# Try to build using the default d2c settings. This makes bootstrapping
# *much* easier.
$D2C = "@D2C@";
}
# Should this really go in D2CFLAGS?
if("@with_thread_count@" ne "no") {
$D2C = $D2C . " -j @with_thread_count@";
}
$CC = '@CC@';
$EXTRA_INCLUDE_DIR = '@EXTRA_INCLUDE_DIR@';
$PARSERGEN_DIR = "$buildroot/tools/parsergen";
$PARSERGEN = "$PARSERGEN_DIR/parsergen";
$MELANGE_DIR = "$buildroot/tools/melange";
$MELANGE = "$MELANGE_DIR/melange";
$PREVIOUS_MELANGE = '@MELANGE@';
if ($enable_bootstrap) {
$CPPFLAGS = '-I@LOCAL_RUNTIME@';
$d2c_runtime = '-L@LOCAL_RUNTIME@ ';
} else {
$CPPFLAGS = '-I'.$srcroot.'/d2c/runtime';
@runtime_directories = ('c-code', 'dylan', 'melange', 'transcendental');
foreach (@runtime_directories) {
$d2c_runtime .= "-L$buildroot/d2c/runtime/$_ ";
}
}
$GC_CFLAGS = '@GC_CFLAGS@';
$GC_LIBS = '@GC_LIBS@';
# Handle constants from common/system.
$machine_name = "@host_cpu@";