forked from sasagawa888/eisl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in~
executable file
·171 lines (149 loc) · 4.81 KB
/
configure.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#
# configure.in - used by autoconf to generate the configure script.
#
# Copyright (c) 1997 Phil Maker
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Id: configure.in,v 1.9 1998/07/08 10:56:11 pjm Exp
#
AC_INIT(src/nana.h)
AC_CANONICAL_SYSTEM
PREV_VERSION=2.4
AM_INIT_AUTOMAKE(nana, 2.5)
AC_SUBST(PREV_VERSION)
##
#
# The nana_DEFINE macro is to use to generate the default values
# for various architecture/os specific macros which are then used
# by nana. These default values are based on the canonical
# system name ($target), e.g. i386-unknown-freesd2.2.2
#
# For example if the new m0086 has a assembler instruction
# called hcf (halt+catch fire) which we want to use for assert
# failures since it is efficient (1 byte) we would
# add an extra rule to I_DEFAULT_HANDLER.
#
# m0086-*-*)
# I_DEFAULT_HANDLER='asm("hcf")'
# ;;
#
# If no default is selected here, a mostly standard C one will be
# selected by the header files.
#
# Note: a few more values from different machine types would be
# useful. Submissions encouraged!
#
##
# default code to call when a I(..) failure occurs
#
# The I_DEFAULT variable is used to select between
# fast which does a core dump ASAP versus verbose
# which prints a nice message before core dumping.
nana_DEFINE(I_DEFAULT_HANDLER,(exprn,file,line,param),
[
case "$I_DEFAULT" in
fast)
case "$target" in
i?86-*-*)
I_DEFAULT_HANDLER='asm("hlt")'
;;
sparc-*-*)
# note the sparc handler used to be asm("stp")
I_DEFAULT_HANDLER='asm("unimp")'
;;
*)
I_DEFAULT_HANDLER='abort()'
;;
esac
;;
verbose)
;;
*)
;;
esac
])
# code to emit to ensure a breakpoint can be set at this location
#
# e.g. if(f>1) { f--; I(f>=0);} I(f>-1);
# needs to have a nop inserted so the first I(..) can be checked.
#
nana_DEFINE(DI_MAKE_VALID_BREAKPOINT,(exprn),
[
case "$target" in
sparc-*-*|i?86-*-*)
DI_MAKE_VALID_BREAKPOINT='asm("nop")'
;;
esac
])
# code to emit to ensure a DL breakpoint can be set at this location
nana_DEFINE(DL_MAKE_VALID_BREAKPOINT,(),
[
case "$target" in
sparc-*-*|i?86-*-*)
DL_MAKE_VALID_BREAKPOINT='asm("nop")'
;;
esac
])
# on some systems we need to generate a dummy reference to malloc
# since it isn't normally linked in and is required by gdb
nana_DEFINE(ALWAYS_INCLUDE_MALLOC, /* no arguments */,
[
case "$target" in
*-*-*BSD*)
ALWAYS_INCLUDE_MALLOC='0'
;;
i?86-*-linux*)
ALWAYS_INCLUDE_MALLOC='1'
;;
*)
ALWAYS_INCLUDE_MALLOC='0'
;;
esac
])
# support for cycle level counting for various machines
#
# Note: autodiscovery is a bit dubious for these things since they
# are machine version specific (ie not all i386s have them)
#
AC_ARG_ENABLE(rdtsc,--enable-rdtsc use pentium rdtsc cycle timing,HAVE_RDTSC=1,HAVE_RDTSC=0)
AC_SUBST(HAVE_RDTSC)
AC_PROG_CC
AC_PROG_AWK
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_CHECK_PROG(FMT, fmt, fmt, cat)
AC_ARG_PROGRAM
AC_PATH_PROG(TAR,gtar,tar)
AC_PATH_PROG(FIND,gfind,find)
AC_PATH_PROG(GDB,gdb)
AC_C_INLINE
AC_C_CONST
AC_CHECK_FUNCS(vsprintf vsnprintf gettimeofday)
AC_OUTPUT([Makefile doc/Makefile examples/Makefile man/Makefile src/Makefile test/Makefile gdb/Makefile tcl/Makefile emacs/Makefile perf/Makefile src/nana-config.h src/nana src/nana-run src/nana-clg gdb/nana-trace gdb/nana-libtrace src/nana-c++lg shortform/Makefile shortform/nana-sfg shortform/nana-sfdir gnuware test/gammon], [chmod +x src/nana src/nana-clg src/nana-c++lg src/nana-run test/gammon gnuware])
echo "* Displaying configure variables for C code"
make showconfig