43380d354cebaeef199e73ea5e31e82c616e35e5
[mono.git] / configure.in
1 AC_INIT(README)
2 AC_CANONICAL_SYSTEM
3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(mono,0.94)
5 AM_MAINTAINER_MODE
6
7 dnl
8 dnl libgc checks
9 dnl
10
11 gc_headers=no
12 gc=included
13 use_included_gc=no
14
15 if test -d $srcdir/libgc ; then
16   gc_default=included
17 else
18   gc_default=boehm
19 fi
20
21 #
22 # These are the flags that need to be stored in the mono.pc file for 
23 # compiling code that will embed Mono
24 #
25 libmono_cflags=""
26 libmono_ldflags=""
27 AC_SUBST(libmono_cflags)
28 AC_SUBST(libmono_ldflags)
29
30 dnl if linker handles the version script
31 no_version_script=no
32
33 # Set to yes if Unix sockets cannot be created in an anonymous namespace
34 need_link_unlink=no
35
36 # Thread configuration inspired by sleepycat's db
37 AC_MSG_CHECKING([host platform characteristics])
38 libgc_threads=no
39 case "$host" in
40         *-*-mingw*|*-*-cygwin*)
41                 platform_win32=yes
42                 AC_DEFINE(PLATFORM_WIN32,1,[Platform is Win32])
43                 CC="gcc -mno-cygwin"
44                 HOST_CC="gcc"
45                 # So libgc configure gets -mno-cygwin
46                 export CC
47 # latest libgc already defines GC_WIN32_THREADS
48 #               CPPFLAGS="$CPPFLAGS -DGC_WIN32_THREADS -DWIN32_THREADS"
49                 CPPFLAGS="$CPPFLAGS -DWIN32_THREADS"
50                 libdl=
51                 libgc_threads=win32
52                 gc_default=boehm 
53                 ;;
54         *-*-*netbsd*)
55                 platform_win32=no
56                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
57                 libmono_cflags="-D_REENTRANT"
58                 LDFLAGS="$LDFLAGS -pthread"
59                 libmono_ldflags="-pthread"
60                 need_link_unlink=yes
61                 libdl=
62                 libgc_threads=no
63                 ;;
64         *-*-*freebsd*|*-*-*openbsd*)
65                 platform_win32=no
66                 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -DGC_FREEBSD_THREADS"
67                 libmono_cflags="-D_THREAD_SAFE"
68                 LDFLAGS="$LDFLAGS -pthread"
69                 libmono_ldflags="-pthread"
70                 need_link_unlink=yes
71                 AC_DEFINE(PTHREAD_POINTER_ID)
72                 libdl=
73                 libgc_threads=pthreads
74                 ;;
75         *-*-linux*)
76                 platform_win32=no
77                 CPPFLAGS="$CPPFLAGS -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT"
78                 libmono_cflags="-D_REENTRANT"
79                 libmono_ldflags="-lpthread"
80                 libdl="-ldl"
81                 libgc_threads=pthreads
82                 ;;
83         *-*-hpux*)
84                 platform_win32=no
85                 CPPFLAGS="$CPPFLAGS -DGC_HPUX_THREADS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
86                 CFLAGS="$CFLAGS +ESdbgasm"
87                 LDFLAGS="$LDFLAGS -z"
88                 libmono_cflags="-D_REENTRANT"
89                 libmono_ldflags="-lpthread"
90                 libgc_threads=pthreads
91                 need_link_unlink=yes
92                 ;;
93         *-*-solaris*)
94                 platform_win32=no
95                 CPPFLAGS="$CPPFLAGS -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT"
96                 need_link_unlink=yes
97                 libmono_cflags="-D_REENTRANT"
98                 libgc_threads=pthreads
99                 ;;
100         *-*-darwin*)
101                 platform_win32=no
102                 CPPFLAGS="$CPPFLAGS -no-cpp-precomp -D_THREAD_SAFE -DGC_MACOSX_THREADS"
103                 libmono_cflags="-D_THREAD_SAFE"
104                 LDFLAGS="$LDFLAGS -pthread"
105                 libmono_ldflags="-pthread"
106                 need_link_unlink=yes
107                 AC_DEFINE(PTHREAD_POINTER_ID)
108                 AC_DEFINE(USE_MACH_SEMA)
109                 no_version_script=yes
110                 libdl=
111                 libgc_threads=pthreads
112                 ;;
113         *)
114                 AC_MSG_WARN([*** Please add $host to configure.in checks!])
115                 platform_win32=no
116                 libdl="-ldl"
117                 ;;
118 esac
119 AC_MSG_RESULT(ok)
120
121 if test x$need_link_unlink = xyes; then
122    AC_DEFINE(NEED_LINK_UNLINK, 1, [Define if Unix sockets cannot be created in an anonymous namespace])
123 fi
124
125 AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
126
127 AC_CHECK_TOOL(CC, gcc, gcc)
128 AC_PROG_CC
129 AM_PROG_CC_STDC
130 AC_PROG_INSTALL
131 dnl We should use AM_PROG_AS, but it's not available on automake/aclocal 1.4
132 : ${CCAS='$(CC)'}
133 # Set ASFLAGS if not already set.
134 : ${CCASFLAGS='$(CFLAGS)'}
135 AC_SUBST(CCAS)
136 AC_SUBST(CCASFLAGS)
137
138 AC_CHECK_PROG(BISON, bison,yes,no)
139 if test "x$BISON" = "xno";
140 then
141         AC_MSG_ERROR([You need to install bison])
142 fi
143
144 dnl may require a specific autoconf version
145 dnl AC_PROG_CC_FOR_BUILD
146 dnl CC_FOR_BUILD not automatically detected
147 CC_FOR_BUILD=$CC
148 BUILD_EXEEXT=
149 if test "x$cross_compiling" = "xyes"; then
150         CC_FOR_BUILD=cc
151         BUILD_EXEEXT=""
152 fi
153 AC_SUBST(CC_FOR_BUILD)
154 AC_SUBST(HOST_CC)
155 AC_SUBST(BUILD_EXEEXT)
156
157 # Set STDC_HEADERS
158 AC_HEADER_STDC
159 AC_LIBTOOL_WIN32_DLL
160 AM_PROG_LIBTOOL
161
162 # Test whenever ld supports -version-script
163 AC_PROG_LD
164 AC_PROG_LD_GNU
165 if test "x$lt_cv_prog_gnu_ld" = "xno"; then
166    no_version_script=yes
167 fi
168
169 AM_CONDITIONAL(NO_VERSION_SCRIPT, test x$no_version_script = xyes)
170
171 AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h semaphore.h sys/un.h)
172
173 # for mono/mini/tramp-x86.c
174 AC_CHECK_HEADERS(valgrind/memcheck.h)
175
176 # for mono/metadata/debug-symfile.c
177 AC_CHECK_HEADERS(elf.h)
178
179 # for mono/dis
180 AC_CHECK_HEADERS(wchar.h)
181
182 # not 64 bit clean in cross-compile
183 AC_CHECK_SIZEOF(void *, 4)
184
185 WARN=''
186 if test x"$GCC" = xyes; then
187         WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings'
188                 # The runtime code does not respect ANSI C strict aliasing rules
189                 CFLAGS="$CFLAGS -fno-strict-aliasing"
190 else
191         # The Sun Forte compiler complains about inline functions that access static variables
192         # so disable all inlining.
193         case "$host" in
194         *-*-solaris*)
195                 CFLAGS="$CFLAGS -Dinline="
196                 ;;
197         esac
198 fi
199 CFLAGS="$CFLAGS -g $WARN"
200
201 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
202 if test "x$PKG_CONFIG" = "xno"; then
203         AC_MSG_ERROR([You need to install pkg-config])
204 fi
205
206 dnl for use on the build system
207 dnl pkg-config is stupid
208 BUILD_GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
209 BUILD_GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
210 AC_SUBST(BUILD_GLIB_CFLAGS)
211 AC_SUBST(BUILD_GLIB_LIBS)
212
213 PKG_PATH=
214 AC_ARG_WITH(crosspkgdir, [  --with-crosspkgdir=/path/to/pkg-config/dir],
215         if test x$with_crosspkgdir = "x"; then
216                 if test -s $PKG_CONFIG_PATH; then
217                         PKG_PATH=$PKG_CONFIG_PATH
218                 fi
219         else
220                 PKG_PATH=$with_crosspkgdir
221                 PKG_CONFIG_PATH=$PKG_PATH
222                 export PKG_CONFIG_PATH
223         fi
224 )
225
226 ## Versions of dependencies
227 GLIB_REQUIRED_VERSION=1.3.11
228
229 PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION)
230
231 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0`
232 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0 gthread-2.0`
233 GMODULE_CFLAGS=`$PKG_CONFIG --cflags gmodule-2.0`
234 GMODULE_LIBS=`$PKG_CONFIG --libs gmodule-2.0`
235
236 AC_SUBST(GLIB_CFLAGS)
237 AC_SUBST(GLIB_LIBS)
238 AC_SUBST(GMODULE_CFLAGS)
239 AC_SUBST(GMODULE_LIBS)
240
241 AC_ARG_WITH(gc, [  --with-gc=boehm,included,none],[gc=$with_gc],[gc=$gc_default])
242
243 # Enable support for NPTL only features like fast thread-local storage
244 # We can't reliably detect nptl at compile & run time
245 # so this option will stay until nptl becomes more widespread
246 AC_ARG_WITH(nptl, [  --with-nptl=yes,no      enable/disable support for NPTL],[],[with_nptl=yes])
247
248 # Enable support for using sigaltstack for SIGSEGV and stack overflow handling
249 # This does not work on some platforms (bug #55253)
250 AC_ARG_WITH(sigaltstack, [  --with-sigaltstack=yes,no      enable/disable support for sigaltstack],[],[with_sigaltstack=yes])
251
252 # assembly bundle support, see metadata/make-bundle.pl for more info
253 AC_ARG_WITH(bundle, [  --with-bundle=bundle_template],[
254         BUNDLE_FILE=$with_bundle
255         AC_SUBST(BUNDLE_FILE)
256         AC_DEFINE(WITH_BUNDLE)
257 ],[with_bundle=no])
258 AM_CONDITIONAL(WITH_BUNDLE, test x$with_bundle != xno)
259
260 LIBGC_CFLAGS=
261 LIBGC_LIBS=
262 libgc_dir=
263 case "x$gc" in
264         xboehm|xbohem|xyes)
265                 AC_CHECK_HEADERS(gc.h gc/gc.h, gc_headers=yes)
266                 AC_CHECK_LIB(gc, GC_malloc, found_boehm="yes",,$libdl)
267
268                 if test "x$found_boehm" != "xyes"; then
269                         AC_MSG_ERROR("GC requested but libgc not found! Install libgc or run configure with --with-gc=none.")
270                 fi
271                 if test "x$gc_headers" != "xyes"; then
272                         AC_MSG_ERROR("GC requested but header files not found! You may need to install them by hand.")
273                 fi
274
275                 AC_DEFINE(HAVE_BOEHM_GC)
276                 AC_SUBST(HAVE_BOEHM_GC)
277                 LIBGC_LIBS="-lgc $libdl"
278
279                 # AC_CHECK_FUNCS does not work for some reason...
280                 AC_CHECK_LIB(gc, GC_gcj_malloc, found_gcj_malloc="yes",,$libdl)
281                 if test "x$found_gcj_malloc" = "xyes"; then
282                         AC_DEFINE(HAVE_GC_GCJ_MALLOC)
283                 fi
284                 AC_CHECK_LIB(gc, GC_enable, found_gc_enable="yes",,$libdl)
285                 if test "x$found_gc_enable" = "xyes"; then
286                         AC_DEFINE(HAVE_GC_ENABLE)
287                 fi
288                 ;;
289
290         xincluded)
291                 AC_CONFIG_SUBDIRS(libgc)
292
293                 found_boehm=yes
294                 gc_headers=yes
295                 use_included_gc=yes
296                 libgc_dir=libgc
297
298                 LIBGC_CFLAGS='-I$(top_srcdir)/libgc/include'
299                 LIBGC_LIBS='$(top_builddir)/libgc/libmonogc.la'
300
301                 AC_DEFINE(HAVE_BOEHM_GC)
302                 AC_SUBST(HAVE_BOEHM_GC)
303
304                 AC_DEFINE(HAVE_GC_H)
305                 AC_DEFINE(USE_INCLUDED_LIBGC)
306
307                 # The included libgc contains GCJ support
308                 AC_DEFINE(HAVE_GC_GCJ_MALLOC)
309                 AC_DEFINE(HAVE_GC_ENABLE)
310                 ;;
311
312         xnone)
313                 AC_MSG_WARN("Compiling mono without GC.")
314                 ;;
315         *)
316                 AC_MSG_ERROR([Invalid argument to --with-gc.])
317                 ;;
318 esac
319
320
321 # tell libgc/configure about what we want
322 ac_configure_args="$ac_configure_args --disable-embed-check --with-libgc-threads=$libgc_threads"
323
324 AM_CONDITIONAL(INCLUDED_LIBGC, test x$use_included_gc = xyes)
325 AC_SUBST(LIBGC_CFLAGS)
326 AC_SUBST(LIBGC_LIBS)
327 AC_SUBST(libgc_dir)
328
329 dnl
330 dnl End of libgc checks
331 dnl
332
333 if test x$platform_win32 = xno; then
334
335         dnl ******************************************************************
336         dnl *** Checks for the IKVM JNI interface library                  ***
337         dnl ******************************************************************
338         AC_ARG_WITH(ikvm-jni, [  --with-ikvm-jni=yes,no  build the IKVM JNI interface library],[with_ikvm_jni=$withval],[with_ikvm_jni=yes])
339         AC_ARG_WITH(jdk, [  --with-jdk=DIRECTORY    Use JDK from DIRECTORY],[with_jdk_dir=$withval],[with_jdk_dir=])
340
341         ikvm_jni_dir=
342         if test x$with_ikvm_jni = xyes; then
343                 AC_MSG_CHECKING([JDK headers])
344
345                 if test x$with_jdk_dir = x; then
346                         # Try JAVA_HOME variable
347                         if test x$JAVA_HOME != x; then
348                                 with_jdk_dir=$JAVA_HOME
349                         fi
350                 fi
351         
352                 jdk_platform=
353                 if test -d $with_jdk_dir/include; then
354                         jdk_headers_found=yes
355
356                         if test -d $with_jdk_dir/include/linux; then
357                                 jdk_platform=linux
358                         else
359                         if test -d $with_jdk_dir/include/solaris; then
360                                 jdk_platform=solaris
361                         else
362                         if test -f $with_jdk_dir/include/jni_md.h; then
363                                 # GNU Classpath sources
364                                 jdk_platform=
365                         else
366                                 jdk_headers_found=no
367                         fi
368                         fi
369                         fi
370                 else
371                         jdk_headers_found=no
372                 fi
373
374                 if test x$jdk_headers_found = xyes; then
375                         AC_MSG_RESULT($with_jdk_dir/include $with_jdk_dir/include/$jdk_platform)
376                 else
377                         AC_MSG_RESULT(not found)
378                 fi
379
380                 if test x$jdk_headers_found = xyes; then
381                         ikvm_jni_dir=ikvm-jni
382                         IKVM_JNI_CFLAGS="-I$with_jdk_dir/include -I$with_jdk_dir/include/$jdk_platform"
383                 fi
384         fi
385
386         AC_SUBST(ikvm_jni_dir)
387         AC_SUBST(IKVM_JNI_CFLAGS)
388
389         AC_CHECK_FUNCS(getgrgid_r)
390         AC_CHECK_FUNCS(getgrnam_r)
391         AC_CHECK_FUNCS(getpwnam_r)
392         AC_CHECK_FUNCS(getpwuid_r)
393         AC_CHECK_FUNCS(getresuid)
394         AC_CHECK_FUNCS(setresuid)
395
396         dnl ******************************************************************
397         dnl *** Check for large file support                               ***
398         dnl *** (If we were using autoconf 2.50 we'd use AC_SYS_LARGEFILE) ***
399         dnl ******************************************************************
400         
401         # Check that off_t can represent 2**63 - 1 correctly, working around
402         # potential compiler bugs.  Defines LARGE_FILE_SUPPORT, adds $1 to
403         # CPPFLAGS and sets $large_offt to yes if the test succeeds
404         large_offt=no
405         AC_DEFUN(LARGE_FILES, [
406                 large_CPPFLAGS=$CPPFLAGS
407                 CPPFLAGS="$CPPFLAGS $1"
408                 AC_TRY_RUN([
409                         #include <sys/types.h>
410
411                         #define BIG_OFF_T (((off_t)1<<62)-1+((off_t)1<<62))
412
413                         int main(void) {
414                                 int big_off_t=((BIG_OFF_T%2147483629==721) &&
415                                                (BIG_OFF_T%2147483647==1));
416                                 if(big_off_t) {
417                                         exit(0);
418                                 } else {
419                                         exit(1);
420                                 }
421                         }
422                 ], [
423                         AC_MSG_RESULT(ok)
424                         AC_DEFINE(HAVE_LARGE_FILE_SUPPORT)
425                         large_CPPFLAGS="$large_CPPFLAGS $1"
426                         large_offt=yes
427                 ], [
428                         AC_MSG_RESULT(no)
429                 ], "")
430                 CPPFLAGS=$large_CPPFLAGS
431         ])
432
433         AC_MSG_CHECKING(if off_t is 64 bits wide)
434         LARGE_FILES("")
435         if test $large_offt = no; then
436                 AC_MSG_CHECKING(if _FILE_OFFSET_BITS=64 gives 64 bit off_t)
437                 LARGE_FILES("-D_FILE_OFFSET_BITS=64")
438         fi
439         if test $large_offt = no; then
440                 AC_MSG_WARN([No 64 bit file size support available])
441         fi
442         
443         dnl *****************************
444         dnl *** Checks for libsocket  ***
445         dnl *****************************
446         AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
447
448         dnl *******************************
449         dnl *** Checks for MSG_NOSIGNAL ***
450         dnl *******************************
451         AC_MSG_CHECKING(for MSG_NOSIGNAL)
452         AC_TRY_COMPILE([#include <sys/socket.h>], [
453                 int f = MSG_NOSIGNAL;
454         ], [
455                 # Yes, we have it...
456                 AC_MSG_RESULT(yes)
457                 AC_DEFINE(HAVE_MSG_NOSIGNAL)
458         ], [
459                 # We'll have to use signals
460                 AC_MSG_RESULT(no)
461         ])
462
463         dnl *****************************
464         dnl *** Checks for SOL_IP     ***
465         dnl *****************************
466         AC_MSG_CHECKING(for SOL_IP)
467         AC_TRY_COMPILE([#include <netdb.h>], [
468                 int level = SOL_IP;
469         ], [
470                 # Yes, we have it...
471                 AC_MSG_RESULT(yes)
472                 AC_DEFINE(HAVE_SOL_IP)
473         ], [
474                 # We'll have to use getprotobyname
475                 AC_MSG_RESULT(no)
476         ])
477
478         dnl *****************************
479         dnl *** Checks for SOL_IPV6     ***
480         dnl *****************************
481         AC_MSG_CHECKING(for SOL_IPV6)
482         AC_TRY_COMPILE([#include <netdb.h>], [
483                 int level = SOL_IPV6;
484         ], [
485                 # Yes, we have it...
486                 AC_MSG_RESULT(yes)
487                 AC_DEFINE(HAVE_SOL_IPV6)
488         ], [
489                 # We'll have to use getprotobyname
490                 AC_MSG_RESULT(no)
491         ])
492
493         dnl *****************************
494         dnl *** Checks for SOL_TCP    ***
495         dnl *****************************
496         AC_MSG_CHECKING(for SOL_TCP)
497         AC_TRY_COMPILE([#include <netdb.h>], [
498                 int level = SOL_TCP;
499         ], [
500                 # Yes, we have it...
501                 AC_MSG_RESULT(yes)
502                 AC_DEFINE(HAVE_SOL_TCP)
503         ], [
504                 # We'll have to use getprotobyname
505                 AC_MSG_RESULT(no)
506         ])
507
508         dnl *****************************
509         dnl *** Checks for IP_PKTINFO ***
510         dnl *****************************
511         AC_MSG_CHECKING(for IP_PKTINFO)
512         AC_TRY_COMPILE([#include <netdb.h>], [
513                 int level = IP_PKTINFO;
514         ], [
515                 # Yes, we have it...
516                 AC_MSG_RESULT(yes)
517                 AC_DEFINE(HAVE_IP_PKTINFO)
518         ], [
519                 AC_MSG_RESULT(no)
520         ])
521
522         dnl *********************************
523         dnl *** Check for struct ip_mreqn ***
524         dnl *********************************
525         AC_MSG_CHECKING(for struct ip_mreqn)
526         AC_TRY_COMPILE([#include <netinet/in.h>], [
527                 struct ip_mreqn mreq;
528                 mreq.imr_address.s_addr = 0;
529         ], [
530                 # Yes, we have it...
531                 AC_MSG_RESULT(yes)
532                 AC_DEFINE(HAVE_STRUCT_IP_MREQN)
533         ], [
534                 # We'll just have to try and use struct ip_mreq
535                 AC_MSG_RESULT(no)
536                 AC_MSG_CHECKING(for struct ip_mreq)
537                 AC_TRY_COMPILE([#include <netinet/in.h>], [
538                         struct ip_mreq mreq;
539                         mreq.imr_interface.s_addr = 0;
540                 ], [
541                         # Yes, we have it...
542                         AC_MSG_RESULT(yes)
543                         AC_DEFINE(HAVE_STRUCT_IP_MREQ)
544                 ], [
545                         # No multicast support
546                         AC_MSG_RESULT(no)
547                 ])
548         ])
549         
550         dnl **********************************
551         dnl *** Check for gethostbyname2_r ***
552         dnl **********************************
553         AC_MSG_CHECKING(for gethostbyname2_r)
554                 AC_TRY_LINK([#include <netdb.h>], [
555                 gethostbyname2_r(NULL,0,NULL,NULL,0,NULL,NULL);
556         ], [
557                 # Yes, we have it...
558                 AC_MSG_RESULT(yes)
559                 AC_DEFINE(HAVE_GETHOSTBYNAME2_R)
560         ], [
561                 AC_MSG_RESULT(no)
562         ])
563
564         dnl *****************************
565         dnl *** Checks for libnsl     ***
566         dnl *****************************
567         AC_CHECK_LIB(nsl, gethostbyaddr, LIBS="$LIBS -lnsl")
568
569         AC_CHECK_FUNCS(inet_pton inet_aton)
570
571         dnl ***********************************************
572         dnl *** Checks for size of sockaddr_un.sun_path ***
573         dnl ***********************************************
574         # AC_CHECK_SIZEOF can't cope with struct members :-(
575         AC_MSG_CHECKING(size of sockaddr_un.sun_path)
576         AC_CACHE_VAL(cv_mono_sizeof_sunpath,
577                 [AC_TRY_RUN([
578                         #include <sys/types.h>
579                         #include <stdio.h>
580                         #include <sys/un.h>
581
582                         int main(void) {
583                                 struct sockaddr_un sock_un;
584                                 FILE *f=fopen("conftestval", "w");
585                                 if(!f) exit(1);
586                                 fprintf(f, "%d\n", sizeof(sock_un.sun_path));
587                                 exit(0);
588                         }
589                 ], cv_mono_sizeof_sunpath=`cat conftestval`,
590                    cv_mono_sizeof_sunpath=0,
591                    cv_mono_sizeof_sunpath=0)])dnl
592         AC_MSG_RESULT($cv_mono_sizeof_sunpath)
593         AC_DEFINE_UNQUOTED(MONO_SIZEOF_SUNPATH, $cv_mono_sizeof_sunpath)
594
595         dnl *************************************
596         dnl *** Checks for zero length arrays ***
597         dnl *************************************
598         AC_MSG_CHECKING(whether $CC supports zero length arrays)
599         AC_TRY_COMPILE([
600                 struct s {
601                         int  length;
602                         char data [0];
603                 };
604         ], [], [
605                 AC_MSG_RESULT(yes)
606                 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 0)
607         ], [
608                 AC_MSG_RESULT(no)
609                 AC_DEFINE_UNQUOTED(MONO_ZERO_ARRAY_LENGTH, 1)
610         ])
611
612         dnl *****************************
613         dnl *** Checks for libxnet    ***
614         dnl *****************************
615         case "${host}" in
616                 *solaris* )
617                         AC_MSG_CHECKING(for Solaris XPG4 support)
618                         if test -f /usr/lib/libxnet.so; then
619                                 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
620                                 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
621                                 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
622                                 LIBS="$LIBS -lxnet"
623                                 AC_MSG_RESULT(yes)
624                         else
625                                 AC_MSG_RESULT(no)
626                         fi
627
628                         if test "$GCC" = "yes"; then
629                                 CFLAGS="$CFLAGS -Wno-char-subscripts"
630                         fi
631                 ;;
632         esac
633
634         dnl *****************************
635         dnl *** Checks for libpthread ***
636         dnl *****************************
637         AC_CHECK_LIB(pthread, main, LIBS="$LIBS -lpthread")
638         AC_CHECK_HEADERS(pthread.h)
639         AC_CHECK_FUNCS(pthread_mutex_timedlock)
640         AC_CHECK_FUNCS(pthread_getattr_np pthread_attr_get_np)
641         AC_MSG_CHECKING(for PTHREAD_MUTEX_RECURSIVE)
642         AC_TRY_COMPILE([ #include <pthread.h>], [
643                 pthread_mutexattr_t attr;
644                 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
645         ], [
646                 AC_MSG_RESULT(ok)
647         ], [
648                 AC_MSG_RESULT(no)
649                 AC_MSG_WARN(Using mono_mutex_t for recursive mutexes)
650                 AC_DEFINE(USE_MONO_MUTEX)
651         ])
652         AC_CHECK_FUNCS(pthread_attr_setstacksize)
653
654         dnl ***********************************
655         dnl *** Checks for working __thread ***
656         dnl ***********************************
657         AC_MSG_CHECKING(for working __thread)
658         if test "x$with_nptl" != "xyes"; then
659                 AC_MSG_RESULT(disabled)
660         else
661                 AC_TRY_RUN([
662                         #include <pthread.h>
663
664                         __thread int i;
665                         static int res1, res2;
666
667                         void thread_main (void *arg)
668                         {
669                                 i = arg;
670                                 sleep (1);
671                                 if (arg == 1)
672                                         res1 = (i == arg);
673                                 else
674                                         res2 = (i == arg);
675                         }
676
677                         int main () {
678                                 pthread_t t1, t2;
679
680                                 i = 5;
681
682                                 pthread_create (&t1, NULL, thread_main, 1);
683                                 pthread_create (&t2, NULL, thread_main, 2);
684
685                                 pthread_join (t1, NULL);
686                                 pthread_join (t2, NULL);
687
688                                 return !(res1 + res2 == 2);
689                         }
690                 ], [
691                                 AC_MSG_RESULT(yes)
692                                 AC_DEFINE(HAVE_KW_THREAD)
693                 ], [
694                                 AC_MSG_RESULT(no)
695                 ])
696         fi
697
698         dnl **************************************
699         dnl *** Checks for working sigaltstack ***
700         dnl **************************************
701         AC_MSG_CHECKING(for working sigaltstack)
702         if test "x$with_sigaltstack" != "xyes"; then
703                 AC_MSG_RESULT(disabled)
704         else
705                 AC_TRY_RUN([
706                         #include <stdio.h>
707                         #include <stdlib.h>
708                         #include <unistd.h>
709                         #include <signal.h>
710                         #include <pthread.h>
711                         #include <sys/wait.h>
712
713                         static void
714                         sigsegv_signal_handler (int _dummy, siginfo_t *info, void *context)
715                         {
716                                 exit (0);
717                         }
718
719                         static void *
720                         loop (void *ignored)
721                         {
722                                 char *ptr = NULL;
723
724                                 *ptr = 0;
725                                 return NULL;
726                         }
727
728                         static void
729                         child ()
730                         {
731                                 struct sigaction sa;
732                                 struct sigaltstack sas;
733                                 pthread_t id;
734                                 pthread_attr_t attr;
735
736                                 sa.sa_sigaction = sigsegv_signal_handler;
737                                 sigemptyset (&sa.sa_mask);
738                                 sa.sa_flags = SA_SIGINFO | SA_STACK;
739                                 if (sigaction (SIGSEGV, &sa, NULL) == -1) {
740                                         perror ("lala");
741                                         return;
742                                 }
743
744                                 sas.ss_sp = malloc (SIGSTKSZ);
745                                 sas.ss_size = SIGSTKSZ;
746                                 sas.ss_flags = SS_ONSTACK;
747                                 if (sigaltstack (&sas, NULL) == -1) {
748                                         perror ("lala");
749                                         return;
750                                 }
751
752                                 pthread_attr_init (&attr);
753                                 if (pthread_create(&id, &attr, loop, &attr) != 0) {
754                                         printf ("failed\n");
755                                         return;
756                                 }
757
758                                 sleep (100);
759                         }
760
761                         int
762                         main ()
763                         {
764                                 pid_t son;
765                                 int status;
766                                 int i;
767
768                                 son = fork ();
769                                 if (son == -1) {
770                                         return 1;
771                                 }
772
773                                 if (son == 0) {
774                                         child ();
775                                         return 0;
776                                 }
777
778                                 for (i = 0; i < 3; ++i) {
779                                         sleep (1);
780                                         waitpid (son, &status, WNOHANG);
781                                         if (WIFEXITED (status) && WEXITSTATUS (status) == 0)
782                                                 return 0;
783                                 }
784
785                                 kill (son, SIGKILL);
786                                 return 1;
787                         }
788
789                 ], [
790                                 AC_MSG_RESULT(yes)
791                                 AC_DEFINE(HAVE_WORKING_SIGALTSTACK)
792                 ], [
793                                 with_sigaltstack=no
794                                 AC_MSG_RESULT(no)
795                 ])
796         fi
797
798         dnl ********************************
799         dnl *** Checks for semaphore lib ***
800         dnl ********************************
801         # 'Real Time' functions on Solaris
802         # posix4 on Solaris 2.6
803         # pthread (first!) on Linux
804         AC_SEARCH_LIBS(sem_init, pthread rt posix4) 
805
806         dnl ********************************
807         dnl *** Checks for timezone stuff **
808         dnl ********************************
809         AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
810                 AC_TRY_COMPILE([
811                         #include <time.h>
812                         ], [
813                         struct tm tm;
814                         tm.tm_gmtoff = 1;
815                         ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
816         if test $ac_cv_struct_tm_gmtoff = yes; then
817                 AC_DEFINE(HAVE_TM_GMTOFF)
818         else
819                 AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
820                         AC_TRY_COMPILE([
821                                 #include <time.h>
822                         ], [
823                                 timezone = 1;
824                         ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
825                 if test $ac_cv_var_timezone = yes; then
826                         AC_DEFINE(HAVE_TIMEZONE)
827                 else
828                         AC_ERROR(unable to find a way to determine timezone)
829                 fi
830         fi
831
832         dnl *********************************
833         dnl *** Checks for math functions ***
834         dnl *********************************
835         LIBS="$LIBS -lm";
836         AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite in math.h)
837                 AC_TRY_LINK([#include <math.h>], 
838                 [ finite(0.0); ], 
839                 AC_DEFINE(HAVE_FINITE) AC_MSG_RESULT(yes),
840                 AC_MSG_RESULT(no)))
841         AC_CHECK_FUNCS(isfinite, , AC_MSG_CHECKING(for isfinite in math.h)
842                 AC_TRY_LINK([#include <math.h>], 
843                 [ isfinite(0.0); ], 
844                 AC_DEFINE(HAVE_ISFINITE) AC_MSG_RESULT(yes),
845                 AC_MSG_RESULT(no)))
846
847         dnl ****************************************************************
848         dnl *** Checks for working poll() (macosx defines it but doesn't ***
849         dnl *** have it in the library (duh))                            ***
850         dnl ****************************************************************
851         AC_CHECK_FUNCS(poll)
852
853         dnl *************************
854         dnl *** Check for signbit ***
855         dnl *************************
856         AC_MSG_CHECKING(for signbit)
857         AC_TRY_LINK([#include <math.h>], [
858                 int s = signbit(1.0);
859         ], [
860                 AC_MSG_RESULT(yes)
861                 AC_DEFINE(HAVE_SIGNBIT)
862         ], [
863                 AC_MSG_RESULT(no)
864         ]) 
865
866         dnl *********************
867         dnl *** Check for AIO ***
868         dnl *********************
869         AC_MSG_CHECKING([for SIGEV_THREAD definition])
870         dnl Some systems (FreeBSD at least) may have aio_read
871         dnl but don't support/define SIGEV_THREAD.
872         AC_TRY_COMPILE([
873         #include <sys/signal.h>
874         ],[
875         int x = SIGEV_THREAD;
876         ],[
877                 ac_cv_c_sigev_thread=yes
878                 AC_MSG_RESULT(yes)
879         ],[
880                 AC_MSG_RESULT(no)
881         ])
882
883         if test "$ac_cv_c_sigev_thread" = "yes" ; then
884                 AC_CHECK_HEADERS(aio.h sys/aio.h)
885                 AC_CHECK_LIB(rt, aio_read, [ LIBS="$LIBS -lrt" ],)
886                 SIGVAL_PTR="undefined"
887                 if test "$ac_cv_header_aio_h" = "yes" -o "$ac_cv_header_sys_aio_h" = "yes" ; then
888                         AC_CHECK_MEMBER(union sigval.sigval_ptr,SIGVAL_PTR="sigval_ptr",, [
889                                         #include <sys/signal.h>
890                                         ])
891                         AC_CHECK_MEMBER(union sigval.sival_ptr,SIGVAL_PTR="sival_ptr",, [
892                                         #include <sys/signal.h>
893                                         ])
894                         if test "$SIGVAL_PTR" = "undefined" ; then
895                                 AC_MSG_ERROR([Unable to detect field name in 'union sigval'])
896                         fi
897                 fi
898                 AC_DEFINE_UNQUOTED(SIGVAL_PTR,$SIGVAL_PTR,[Pointer field name in 'union sigval'])
899         fi
900 else
901         AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))
902         AC_CHECK_LIB(psapi, main, LIBS="$LIBS -lpsapi", AC_ERROR(bad mingw install?))
903 fi
904
905 dnl socklen_t check
906 AC_MSG_CHECKING(for socklen_t)
907 AC_TRY_COMPILE([
908 #include <sys/types.h>
909 #include <sys/socket.h>
910 ],[
911   socklen_t foo;
912 ],[
913 ac_cv_c_socklen_t=yes
914         AC_DEFINE(HAVE_SOCKLEN_T)
915         AC_MSG_RESULT(yes)
916 ],[
917         AC_MSG_RESULT(no)
918 ])
919
920 AC_CHECK_FUNCS(trunc, , AC_MSG_CHECKING(for trunc in math.h)
921         AC_TRY_LINK([#include <math.h>], 
922         [ trunc(0.0); ], 
923         [
924                 AC_DEFINE(HAVE_TRUNC) 
925                 AC_MSG_RESULT(yes)
926                 ac_cv_trunc=yes
927         ],
928         AC_MSG_RESULT(no)))
929
930 if test "x$ac_cv_truncl" != "xyes"; then
931    AC_CHECK_LIB(sunmath, aintl, [ AC_DEFINE(HAVE_AINTL) LIBS="$LIBS -lsunmath"])
932 fi
933
934 dnl ****************************
935 dnl *** Look for /dev/random ***
936 dnl ****************************
937
938 AC_MSG_CHECKING([if usage of random device is requested])
939 AC_ARG_ENABLE(dev-random,
940 [  --disable-dev-random    disable the use of the random device],
941 try_dev_random=$enableval, try_dev_random=yes)
942 AC_MSG_RESULT($try_dev_random)
943
944 case "{$target}" in
945     *-openbsd*)
946     NAME_DEV_RANDOM="/dev/srandom"
947     ;;
948
949 dnl Win32 does not have /dev/random, they have their own method...
950
951     *-*-mingw*|*-*-cygwin*)
952     ac_cv_have_dev_random = no
953     ;;
954
955 dnl Everywhere else, it's /dev/random
956
957     *)
958     NAME_DEV_RANDOM="/dev/random"
959     ;;
960 esac
961
962 AC_DEFINE_UNQUOTED(NAME_DEV_RANDOM, "$NAME_DEV_RANDOM")
963
964 dnl Now check if the device actually exists
965
966 if test "x$try_dev_random" = "xyes"; then
967     AC_CACHE_CHECK(for random device, ac_cv_have_dev_random,
968     [if test -r "$NAME_DEV_RANDOM" ; then
969         ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi])
970     if test "x$ac_cv_have_dev_random" = "xyes"; then
971         AC_DEFINE(HAVE_CRYPT_RNG)
972     fi
973 else
974     AC_MSG_CHECKING(for random device)
975     ac_cv_have_dev_random=no
976     AC_MSG_RESULT(has been disabled)
977 fi
978
979 if test "x$platform_win32" = "xyes"; then
980     AC_DEFINE(HAVE_CRYPT_RNG)
981 fi
982
983 if test "x$ac_cv_have_dev_random" = "xno" \
984     && test "x$platform_win32" = "xno"; then
985     AC_MSG_WARN([[
986 ***
987 *** A system-provided entropy source was not found on this system.
988 *** Because of this, the System.Security.Cryptography random number generator
989 *** will throw a NotImplemented exception.
990 ***
991 *** If you are seeing this message, and you know your system DOES have an
992 *** entropy collection in place, please contact <crichton@gimp.org> and
993 *** provide information about the system and how to access the random device.
994 ***
995 *** Otherwise you can install either egd or prngd and set the environment
996 *** variable MONO_EGD_SOCKET to point to the daemon's socket to use that.
997 ***]])
998 fi
999  
1000 AC_MSG_CHECKING([if inter-process shared handles are requested])
1001 AC_ARG_ENABLE(shared-handles, [  --disable-shared-handles disable inter-process shared handles], try_shared_handles=$enableval, try_shared_handles=yes)
1002 AC_MSG_RESULT($try_shared_handles)
1003 if test "x$try_shared_handles" != "xyes"; then
1004         AC_DEFINE(DISABLE_SHARED_HANDLES)
1005         AC_SUBST(DISABLE_SHARED_HANDLES)
1006 fi
1007
1008 #
1009 # ICU 
1010 #
1011 ICU_CFLAGS=""
1012 ICU_LIBS=""
1013 enable_icu=no
1014
1015 probe_icu=true
1016 AC_ARG_WITH(icu, [  --with-icu=yes/no],
1017         if test x$with_icu = xno; then
1018            probe_icu=false;
1019            AC_MSG_RESULT(Will not probe for ICU)
1020         fi
1021 )
1022
1023 if $probe_icu; then
1024         AC_PATH_PROG(ICU_CONFIG, icu-config, no)
1025         if test "x$ICU_CONFIG" = "xno" -o ! -x "$ICU_CONFIG"; then
1026                 AC_MSG_WARN([Only invariant locale available; install ICU for I18N support])
1027                 enable_icu="no, if you want full i18n support download it from: http://oss.software.ibm.com/icu/index.html"
1028         else
1029                 enable_icu="yes. Version: `$ICU_CONFIG --version`"
1030                 AC_DEFINE(HAVE_ICU)
1031                 ICU_CFLAGS=`$ICU_CONFIG --cppflags`
1032                 ICU_LIBS=`$ICU_CONFIG --ldflags`
1033         fi
1034 fi
1035 AC_SUBST(ICU_CFLAGS)
1036 AC_SUBST(ICU_LIBS)
1037
1038 TARGET="unknown"
1039 ACCESS_UNALIGNED="yes"
1040
1041 JIT_SUPPORTED=no
1042 LIBC="libc.so.6"
1043
1044 jit_wanted=false
1045 case "$host" in
1046 #       mips-sgi-irix5.* | mips-sgi-irix6.*)
1047 #               TARGET=MIPS;
1048 #               ACCESS_UNALIGNED="no"
1049 #               ;;
1050         i*86-*-*)
1051                 TARGET=X86;
1052                 arch_target=x86;
1053                 JIT_SUPPORTED=yes
1054                 jit_wanted=true
1055                 ;;
1056         x86_64-*-* | amd64-*-*)
1057                 TARGET=AMD64;
1058                 arch_target=amd64;
1059                 JIT_SUPPORTED=no
1060                 ;;
1061         sparc*-*-*)
1062                 TARGET=SPARC;
1063                 arch_target=sparc;
1064                 JIT_SUPPORTED=yes
1065                 ACCESS_UNALIGNED="no"
1066                 LIBC="libc.so"
1067                 jit_wanted=true
1068                 ;;
1069 #       alpha*-*-linux* | alpha*-*-osf*)
1070 #               TARGET=ALPHA;
1071 #               ACCESS_UNALIGNED="no"
1072 #              ;;
1073 #       ia64-*-linux* | ia64-*-hpux*)
1074 #               TARGET=IA64;
1075 #               arch_target=ia64;
1076 #               JIT_SUPPORTED=no;
1077 #               ACCESS_UNALIGNED="no";
1078 #               case "$host_os" in
1079 #                       linux*) LIBC="libc.so.6.1";;
1080 #                       hpux*)  LIBC="libc.so.1";;
1081 #               esac
1082 #               ;;
1083 #       m68k-*-linux*)
1084 #               TARGET=M68K
1085 #               ;;
1086         hppa2.0w-hp-hpux11.00 | hppa64-hp-hpux11.00)
1087                 TARGET=HPPA;
1088                 arch_target=hppa; 
1089                 LIBC="libc.sl"
1090                 ACCESS_UNALIGNED="no"
1091                 ;;
1092         macppc-*-openbsd* | powerpc-*-linux* | powerpc-*-openbsd* | \
1093         powerpc-*-sysv* | powerpc-*-darwin*)
1094                 TARGET=POWERPC;
1095                 arch_target=ppc;
1096                 JIT_SUPPORTED=yes
1097                 jit_wanted=true
1098                 ;;
1099         arm-*-linux-* | armv4l-*-linux-*)
1100                 TARGET=ARM;
1101                 arch_target=arm;
1102                 ACCESS_UNALIGNED="no"
1103                 ;;
1104         s390-*-linux*)
1105                 TARGET=S390;
1106                 arch_target=s390;
1107                 ACCESS_UNALIGNED="no"
1108                 JIT_SUPPORTED=yes
1109                 ;;
1110 esac
1111
1112 AC_ARG_WITH(jit, [  --with-jit=yes,no       If you want to build scripts that default to the JIT],[
1113         jit_wanted=true
1114 ])
1115
1116 USEJIT=false
1117 if test x$JIT_SUPPORTED = xyes; then
1118    if $jit_wanted; then
1119       USEJIT=true
1120       jit_status="Building and using the JIT"
1121    else
1122       jit_status="Building the JIT, defaulting to the interpreter"
1123    fi
1124 else
1125    jit_status="interpreter"
1126 fi
1127
1128 AM_CONDITIONAL(USE_JIT, test x$USEJIT = xtrue)
1129
1130 libsuffix=".so"
1131
1132 case "$host" in
1133      powerpc-*-darwin*)
1134         libsuffix=".dylib"
1135         LIBC="libc.dylib"
1136         ;;
1137 esac
1138 AC_SUBST(libsuffix)
1139
1140 if test ${TARGET} = ARM; then
1141         dnl ******************************************
1142         dnl *** Check to see what FPU is available ***
1143         dnl ******************************************
1144         AC_MSG_CHECKING(which FPU to use)
1145
1146         AC_TRY_COMPILE([], [
1147                 __asm__ ("ldfd f0, [r0]");
1148                 ], fpu=FPA, [
1149                         AC_TRY_COMPILE([], [
1150                                 __asm__ ("fldd d0, [r0]");
1151                         ], fpu=VFP, fpu=NONE)
1152                 ])
1153
1154         AC_MSG_RESULT($fpu)
1155         CPPFLAGS="$CPPFLAGS -DARM_FPU_$fpu"
1156         unset fpu
1157 fi
1158
1159 if test ${TARGET} = unknown; then
1160         CPPFLAGS="$CPPFLAGS -DNO_PORT"
1161         AC_MSG_WARN("mono has not been ported to $host: some things may not work.")
1162 fi
1163
1164 if test ${ACCESS_UNALIGNED} = no; then
1165         CPPFLAGS="$CPPFLAGS -DNO_UNALIGNED_ACCESS"
1166 fi
1167
1168 PREVIEW=no
1169 AC_ARG_WITH(preview, [ --with-preview=yes,no     If you want to install the 2.0 FX preview],[
1170         if test x$with_preview = xyes; then
1171               PREVIEW=yes
1172         fi
1173 ])
1174
1175 AM_CONDITIONAL(INSTALL_2_0, test x$PREVIEW = xyes)
1176
1177 AM_CONDITIONAL(MIPS_GCC, test ${TARGET}${ac_cv_prog_gcc} = MIPSyes)
1178 AM_CONDITIONAL(MIPS_SGI, test ${TARGET}${ac_cv_prog_gcc} = MIPSno)
1179 AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
1180 AM_CONDITIONAL(X86, test x$TARGET = xX86)
1181 AM_CONDITIONAL(AMD64, test x$TARGET = xAMD64)
1182 AM_CONDITIONAL(ALPHA, test x$TARGET = xALPHA)
1183 AM_CONDITIONAL(IA64, test x$TARGET = xIA64)
1184 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
1185 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
1186 AM_CONDITIONAL(ARM, test x$TARGET = xARM)
1187 AM_CONDITIONAL(S390, test x$TARGET = xS390)
1188 AM_CONDITIONAL(HPPA, test x$TARGET = xHPPA)
1189
1190 AM_CONDITIONAL(JIT_SUPPORTED, test x$JIT_SUPPORTED = xyes)
1191
1192 AC_SUBST(LIBC)
1193
1194 AC_SUBST(arch_target)
1195 AC_SUBST(CFLAGS)
1196 AC_SUBST(CPPFLAGS)
1197 AC_SUBST(LDFLAGS)
1198
1199 AC_OUTPUT([
1200 Makefile
1201 mint.pc
1202 mono.pc
1203 mono/Makefile
1204 mono/utils/Makefile
1205 mono/metadata/Makefile
1206 mono/dis/Makefile
1207 mono/cil/Makefile
1208 mono/arch/Makefile
1209 mono/os/Makefile
1210 mono/os/win32/Makefile
1211 mono/os/unix/Makefile
1212 mono/arch/x86/Makefile
1213 mono/arch/amd64/Makefile
1214 mono/arch/hppa/Makefile
1215 mono/arch/ppc/Makefile
1216 mono/arch/sparc/Makefile
1217 mono/arch/s390/Makefile
1218 mono/arch/arm/Makefile
1219 mono/arch/alpha/Makefile
1220 mono/interpreter/Makefile
1221 mono/tests/Makefile
1222 mono/tests/tests-config
1223 mono/benchmark/Makefile
1224 mono/monoburg/Makefile
1225 mono/monograph/Makefile
1226 mono/io-layer/Makefile
1227 mono/handles/Makefile
1228 mono/mini/Makefile
1229 mono/profiler/Makefile
1230 ikvm-jni/Makefile
1231 runtime/Makefile
1232 runtime/net_1_1/Makefile
1233 runtime/net_2_0/Makefile
1234 scripts/Makefile
1235 man/Makefile
1236 web/Makefile
1237 docs/Makefile
1238 data/Makefile
1239 samples/Makefile
1240 support/Makefile
1241 data/config
1242 mono.spec
1243 tools/Makefile
1244 tools/locale-builder/Makefile
1245 ])
1246
1247 echo "
1248
1249         GC:          $gc
1250         ICU:         $enable_icu
1251         NPTL:        $with_nptl
1252         SIGALTSTACK: $with_sigaltstack
1253         Engine:      $jit_status
1254         2.0 Alpha:   $PREVIEW
1255         JNI support: $jdk_headers_found
1256
1257 "