summaryrefslogtreecommitdiff
blob: 21eab45733fdc34282708de75c9e6ad5da1c2f00 (plain)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
diff -Nuar otcl-1.11.orig/conf/configure.in.audio otcl-1.11/conf/configure.in.audio
--- otcl-1.11.orig/conf/configure.in.audio	1998-07-16 23:07:29.000000000 -0700
+++ otcl-1.11/conf/configure.in.audio	2006-05-15 09:20:29.000000000 -0700
@@ -90,10 +90,10 @@
 	fi
 fi
 
-AC_TEST_CPP([#include <sys/audioio.h>], x=audio/audio-sun.o, x="")
+AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <sys/audioio.h>]])],[x=audio/audio-sun.o],[x=""])
 V_OBJ_AUDIO="$V_OBJ_AUDIO $x"
 
-AC_TEST_CPP([#include <sun/audioio.h>], x=audio/audio-sun.o, x="")
+AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <sun/audioio.h>]])],[x=audio/audio-sun.o],[x=""])
 V_OBJ_AUDIO="$V_OBJ_AUDIO $x"
 
 case "$target" in 
diff -Nuar otcl-1.11.orig/conf/configure.in.dynamic otcl-1.11/conf/configure.in.dynamic
--- otcl-1.11.orig/conf/configure.in.dynamic	1998-07-16 22:38:38.000000000 -0700
+++ otcl-1.11/conf/configure.in.dynamic	2006-05-15 09:36:26.632757055 -0700
@@ -59,7 +59,7 @@
 	# results, and the version is kept in special file).
     
 	if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
-	    system=MP-RAS-`awk '{print $3}' /etc/.relid'`
+	    system=MP-RAS-`awk '{print $3}' /etc/.relid`
 	fi
 	if test "`uname -s`" = "AIX" ; then
 	    system=AIX-`uname -v`.`uname -r`
@@ -311,7 +311,7 @@
 	hold_ldflags=$LDFLAGS
 	AC_MSG_CHECKING(for ld accepts -Bexport flag)
 	LDFLAGS="${LDFLAGS} -Wl,-Bexport"
-	AC_TRY_LINK(, [int i;], found=yes, found=no)
+	AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int i;]])],[found=yes],[found=no])
 	LDFLAGS=$hold_ldflags
 	AC_MSG_RESULT($found)
 	if test $found = yes; then
diff -Nuar otcl-1.11.orig/conf/configure.in.head otcl-1.11/conf/configure.in.head
--- otcl-1.11.orig/conf/configure.in.head	2001-04-11 16:49:06.000000000 -0700
+++ otcl-1.11/conf/configure.in.head	2006-05-15 09:24:21.510388584 -0700
@@ -32,12 +32,12 @@
 fi
 
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET([])
 
 AC_PROG_CC
 AC_PROG_CXX
-AC_STDC_HEADERS
-AC_HAVE_HEADERS(string.h)
+AC_HEADER_STDC([])
+AC_CHECK_HEADERS([string.h])
 
 V_INCLUDE=""
 V_LIB=""
@@ -76,8 +76,7 @@
 else
     if test "$CC" = gcc ; then
 	    AC_MSG_CHECKING(that $CXX can handle -O2)
-	    AC_TRY_COMPILE(,
-		#if __GNUC__ < 2  || __GNUC_MINOR__ < 8
+	    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[#if __GNUC__ < 2  || __GNUC_MINOR__ < 8
 		/* gcc */
 		error
 		#endif
@@ -85,9 +84,9 @@
 		/* egcs */
 		int error;
 		#endif
-	    ,AC_MSG_RESULT(yes)
-	    OonS="-O2",			# Optimize on Steroids
-	    AC_MSG_RESULT(no))
+	    ]])],[AC_MSG_RESULT(yes)
+	    OonS="-O2"],[# Optimize on Steroids
+	    AC_MSG_RESULT(no)])
     fi
 fi
 
@@ -152,19 +151,16 @@
 
 # Checking validity of STL
 AC_MSG_CHECKING(standard STL is available)
-AC_LANG_SAVE
-AC_LANG_CPLUSPLUS
+
+AC_LANG_PUSH([C++])
 enable_stl="no"
-AC_TRY_COMPILE(
-	#include <list>
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <list>
 	#include <hash_map>
 	template <class _T> class tlist : public list <_T> {};
-	,
-	return 0;
-	,AC_MSG_RESULT(yes)
-	enable_stl="yes",
-	AC_MSG_RESULT(no))
-AC_LANG_RESTORE
+	]], [[return 0;
+	]])],[AC_MSG_RESULT(yes)
+	enable_stl="yes"],[AC_MSG_RESULT(no)])
+AC_LANG_POP([C++])
 
 # This can be extended to support compilation-time module selection
 V_STLOBJ=""
diff -Nuar otcl-1.11.orig/conf/configure.in.int64_t otcl-1.11/conf/configure.in.int64_t
--- otcl-1.11.orig/conf/configure.in.int64_t	2005-08-31 18:54:05.000000000 -0700
+++ otcl-1.11/conf/configure.in.int64_t	2006-05-15 09:20:30.000000000 -0700
@@ -22,19 +22,17 @@
 fi
 
 AC_CACHE_CHECK([for __int64_t],int64_t_HAVE___INT64_T,[
-AC_TRY_RUN([
+AC_RUN_IFELSE([AC_LANG_SOURCE([[
 main() { __int64_t x; exit (sizeof(x) >= 8 ? 0 : 1); }
-],
-int64_t_HAVE___INT64_T=yes,int64_t_HAVE___INT64_T=no,int64_t_HAVE___INT64_T=cross)])
+]])],[int64_t_HAVE___INT64_T=yes],[int64_t_HAVE___INT64_T=no],[int64_t_HAVE___INT64_T=cross])])
 if test x"$int64_t_HAVE___INT64_T" = x"yes" -a "x$INT64_T_ALTERNATIVE" = xnone; then
 	INT64_T_ALTERNATIVE=__int64_t
 fi
 
 AC_CACHE_CHECK([for long long],int64_t_HAVE_LONG_LONG,[
-AC_TRY_RUN([
+AC_RUN_IFELSE([AC_LANG_SOURCE([[
 main() { long long x; exit (sizeof(x) >= 8 ? 0 : 1); }
-],
-int64_t_HAVE_LONG_LONG=yes,int64_t_HAVE_LONG_LONG=no,int64_t_HAVE_LONG_LONG=cross)])
+]])],[int64_t_HAVE_LONG_LONG=yes],[int64_t_HAVE_LONG_LONG=no],[int64_t_HAVE_LONG_LONG=cross])])
 if test x"$int64_t_HAVE_LONG_LONG" = x"yes" -a "x$INT64_T_ALTERNATIVE" = xnone; then
 	INT64_T_ALTERNATIVE="long long"
 fi
diff -Nuar otcl-1.11.orig/conf/configure.in.nse otcl-1.11/conf/configure.in.nse
--- otcl-1.11.orig/conf/configure.in.nse	2000-03-09 17:49:32.000000000 -0800
+++ otcl-1.11/conf/configure.in.nse	2006-05-15 09:20:30.000000000 -0700
@@ -9,20 +9,20 @@
 dnl
 
 AC_MSG_CHECKING([for struct ether_header])
-AC_TRY_COMPILE([
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include <stdio.h>
 #include <net/ethernet.h>
-], [
+]], [[
 int main()
 {
 	struct ether_header etherHdr;
 
 	return 1;
 }
-], [
+]])],[
 AC_DEFINE(HAVE_ETHER_HEADER_STRUCT)
 AC_MSG_RESULT(found)
-], [
+],[
 AC_MSG_RESULT(not found)
 ])
  
@@ -31,20 +31,20 @@
 dnl Look for ether_addr
 dnl
 AC_MSG_CHECKING([for struct ether_addr])
-AC_TRY_COMPILE([
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #include <stdio.h>
 #include <net/ethernet.h>
-], [
+]], [[
 int main()
 {
 	struct ether_addr etherAddr;
 
 	return 0;
 }
-], [
+]])],[
 AC_DEFINE(HAVE_ETHER_ADDRESS_STRUCT)
 AC_MSG_RESULT(found)
-], [
+],[
 AC_MSG_RESULT(not found)
 ])
 
@@ -57,14 +57,13 @@
 dnl
 dnl look for SIOCGIFHWADDR
 dnl
-AC_TRY_RUN(
-#include <stdio.h>
+AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
 #include <sys/ioctl.h>
 int main()
 {
 	int i = SIOCGIFHWADDR;
 	return 0;
 }
-, AC_DEFINE(HAVE_SIOCGIFHWADDR), , echo 1
-)
+]])],[AC_DEFINE(HAVE_SIOCGIFHWADDR)],[],[echo 1
+])
 
diff -Nuar otcl-1.11.orig/conf/configure.in.perl otcl-1.11/conf/configure.in.perl
--- otcl-1.11.orig/conf/configure.in.perl	1999-01-21 18:37:20.000000000 -0800
+++ otcl-1.11/conf/configure.in.perl	2006-05-15 09:20:30.000000000 -0700
@@ -19,8 +19,8 @@
 dnl
 AC_DEFUN(CHECK_PERL_VERSION,
 [
-echo $[$1] -e "require $[$2]" 1>&AC_FD_CC
-if $[$1] -e "require $[$2]" 2>&AC_FD_CC
+echo $[$1] -e "require $[$2]" 1>&AS_MESSAGE_LOG_FD()
+if $[$1] -e "require $[$2]" 2>&AS_MESSAGE_LOG_FD()
 then
     : good version
 else
diff -Nuar otcl-1.11.orig/conf/configure.in.tail otcl-1.11/conf/configure.in.tail
--- otcl-1.11.orig/conf/configure.in.tail	2000-11-13 18:15:01.000000000 -0800
+++ otcl-1.11/conf/configure.in.tail	2006-05-15 09:40:00.160276617 -0700
@@ -144,7 +144,8 @@
 
 dnl backwards compability---if nothing else, do Makefile
 define([AcOutputFiles],ifdef([AcOutputFiles],AcOutputFiles,Makefile))
-AC_OUTPUT(AcOutputFiles)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
 
 if test ! -d gen ; then 
 	echo "creating ./gen"
diff -Nuar otcl-1.11.orig/conf/configure.in.tcl otcl-1.11/conf/configure.in.tcl
--- otcl-1.11.orig/conf/configure.in.tcl	2005-09-26 21:58:15.000000000 -0700
+++ otcl-1.11/conf/configure.in.tcl	2006-05-15 09:15:02.499646361 -0700
@@ -84,6 +84,9 @@
 		$d/include/tcl$TCL_VERS \
 		$d/include/tcl$TCL_ALT_VERS \
 		$d/include \
+		$d/lib/tcl$TCL_HI_VERS/include \
+		$d/lib/tcl$TCL_VERS/include \
+		$d/lib/tcl$TCL_ALT_VERS/include \
 		"
 TCL_H_PLACES=" \
 		../include \
@@ -134,7 +137,14 @@
 		/usr/include/tcl$TCL_VERS \
 		/usr/include/tcl$TCL_HI_VERS \
 		/usr/include/tcl$TCL_ALT_VERS \
-		/usr/include/tcl"
+		/usr/include/tcl \
+		/usr/lib/tcl$TCL_VERS/include/unix \
+		/usr/lib/tcl$TCL_HI_VERS/include/unix \
+		/usr/lib/tcl$TCL_ALT_VERS/include/unix \
+		/usr/lib/tcl$TCL_VERS/include/generic \
+		/usr/lib/tcl$TCL_HI_VERS/include/generic \
+		/usr/lib/tcl$TCL_ALT_VERS/include/generic \
+		"
 dnl /usr/include/tcl is for Debian Linux
 dnl /usr/include/tcl-private/generic is for FC 4
 TCL_LIB_PLACES_D="$d \
diff -Nuar otcl-1.11.orig/conf/configure.in.x11 otcl-1.11/conf/configure.in.x11
--- otcl-1.11.orig/conf/configure.in.x11	1997-03-15 17:59:46.000000000 -0800
+++ otcl-1.11/conf/configure.in.x11	2006-05-15 09:20:31.000000000 -0700
@@ -33,7 +33,7 @@
 
 echo "checking for X11 header files"
 if test "$x_includes" = NONE ; then
-	AC_TEST_CPP([#include <X11/Intrinsic.h>],x_includes="",x_includes=NONE)
+	AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <X11/Intrinsic.h>]])],[x_includes=""],[x_includes=NONE])
 	if test "$x_includes" = NONE ; then
 	        for i in $xincdirs ; do
 			if test -r $i/X11/Intrinsic.h; then
diff -Nuar otcl-1.11.orig/configure.in otcl-1.11/configure.in
--- otcl-1.11.orig/configure.in	2005-10-13 23:45:28.000000000 -0700
+++ otcl-1.11/configure.in	2006-05-15 09:37:50.480568397 -0700
@@ -1,4 +1,5 @@
-AC_INIT(otcl.c)
+AC_INIT
+AC_CONFIG_SRCDIR([otcl.c])
 
 #XXX
 V_PROG="otclsh"
@@ -31,7 +32,7 @@
     # results, and the version is kept in special file).
 
     if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
-        system=MP-RAS-`awk '{print $3}' /etc/.relid'`
+        system=MP-RAS-`awk '{print $3}' /etc/.relid`
     fi
     AC_MSG_RESULT($system)
 fi