A socket becomes readable after connect in Linux 2.4 (even for
[wine.git] / configure.in
blob3776d8ae2c4793c508c173ce57f6b2b3afc8bc78
1 dnl Process this file with autoconf to produce a configure script.
2 dnl Author: Michael Patra   <micky@marie.physik.tu-berlin.de>
3 dnl                         <patra@itp1.physik.tu-berlin.de>
4 AC_REVISION([configure.in 1.00])
5 AC_INIT(controls/edit.c)                
6 AC_CONFIG_HEADER(include/config.h)
7 AC_CONFIG_AUX_DIR(tools)
9 dnl **** Command-line arguments ****
11 dnl Default values
12 LIBEXT=so       # library type .so or .a
13 TRACE_MSGS=yes  # the TRACE() macro
14 DEBUG_MSGS=yes  # the TRACE(), WARN(), and FIXME() macros.
15 CURSES=yes
16 OPENGL=normal
18 AC_ARG_ENABLE(debug,
19 [  --disable-debug         compile out all debugging messages],
20 [if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi])
22 AC_ARG_ENABLE(opengl,
23 [  --enable-opengl         force usage of OpenGL even if the latter is thread-safe],
24 [if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi])
26 AC_ARG_ENABLE(trace,
27 [  --disable-trace         compile out TRACE messages],
28 [if test "$enableval" = "no"; then TRACE_MSGS="no"; fi])
30 AC_ARG_WITH(curses,
31 [  --without-curses        do not use curses],
32 [if test "$withval" = "no"; then CURSES="no"; fi])
34 AC_ARG_WITH(reentrant-x,
35 [  --without-reentrant-x   compile for use with non-reentrant X libraries])
37 AC_SUBST(OPTIONS)
39 if test "$DEBUG_MSGS" = "no"
40 then
41     AC_DEFINE(NO_DEBUG_MSGS)
42     AC_DEFINE(NO_TRACE_MSGS)
43 else
44     if test "$TRACE_MSGS" = "no"
45     then
46         AC_DEFINE(NO_TRACE_MSGS)
47     fi
50 dnl **** Check for some programs ****
52 AC_PROG_MAKE_SET
53 AC_PROG_CC
54 AC_PROG_CPP
55 AC_PATH_XTRA
56 AC_PROG_YACC
57 AC_PROG_LEX
58 AC_CHECK_PROGS(XLEX,$LEX flex lex,none)
59 if test "$XLEX" = "none"
60 then
61         echo "*** Error: No suitable lex found. ***"
62         echo "    Please install the 'flex' package."
63         exit 1
65 AC_DECL_YYTEXT
66 AC_PROG_RANLIB
67 AC_PROG_INSTALL
68 AC_PROG_LN_S
69 AC_CHECK_PROG(C2MAN,c2man,c2man,\$(TOPSRCDIR)/tools/c2man.pl)
70 AC_PATH_PROG(LDCONFIG, ldconfig, true, /sbin:/usr/sbin:$PATH)
71 AC_CYGWIN
72 AC_CHECK_PROG(DLLWRAP,dllwrap,dllwrap,false)
74 dnl Check for lint
75 AC_CHECK_PROGS(LINT, lclint lint)
76 if test "$LINT" = "lint"
77 then
78   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
79   dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
81 AC_SUBST(LINT)
82 AC_SUBST(LINTFLAGS)
84 if test "$CYGWIN" = "yes"
85 then
86     LDCOMBINE="ld -r --enable-stdcall-fixup"
87 else
88     LDCOMBINE="ld -r"
90 AC_SUBST(LDCOMBINE)
92 dnl **** Check for some libraries ****
94 dnl Check for -lm for BeOS
95 AC_CHECK_LIB(m,sqrt)
96 dnl Check for -li386 for NetBSD and OpenBSD
97 AC_CHECK_LIB(i386,i386_set_ldt)
98 dnl Check for -lossaudio for NetBSD
99 AC_CHECK_LIB(ossaudio,_oss_ioctl)
100 dnl Check for -lw for Solaris
101 AC_CHECK_FUNCS(iswalnum,,AC_CHECK_LIB(w,iswalnum))
102 dnl Check for -lnsl for Solaris
103 AC_CHECK_FUNCS(gethostbyname,,AC_CHECK_LIB(nsl,gethostbyname))
104 dnl Check for -lsocket for Solaris
105 AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
106 dnl Check for -lxpg4 for FreeBSD
107 AC_CHECK_LIB(xpg4,setrunelocale)
108 dnl Check for -lmmap for OS/2
109 AC_CHECK_LIB(mmap,mmap)
110 dnl Check for openpty
111 AC_CHECK_FUNCS(openpty,,
112         AC_CHECK_LIB(util,openpty,
113                 AC_DEFINE(HAVE_OPENPTY)
114                 LIBS="$LIBS -lutil"
115         ))
117 AC_CHECK_HEADERS(dlfcn.h,
118         AC_CHECK_FUNCS(dlopen,
119                 AC_DEFINE(HAVE_DL_API),
120                 AC_CHECK_LIB(dl,dlopen,
121                         AC_DEFINE(HAVE_DL_API)
122                         LIBS="$LIBS -ldl",
123                         LIBEXT="a"
124                 )
125         ),
126         LIBEXT="a"
128 AC_SUBST(XLIB)
129 AC_SUBST(X_DLLS)
130 X_DLLS=""
131 AC_SUBST(XFILES)
132 XFILES=""
133 AC_SUBST(OPENGLFILES)
134 OPENGLFILES=""
135 AC_SUBST(OPENGL32_DLL)
136 OPENGL32_DLL=""
137 AC_SUBST(DGA_SRCS)
138 DGA_SRCS=""
139 AC_SUBST(DGA2_SRCS)
140 DGA2_SRCS=""
141 AC_SUBST(MESA_SRCS)
142 MESA_SRCS=""
143 if test "$have_x" = "yes"
144 then
145     XLIB="-lXext -lX11"
146     ac_save_CPPFLAGS="$CPPFLAGS"
147     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
149     dnl *** Check for -lXpm
150     AC_CHECK_HEADERS(X11/xpm.h,
151       [ dnl *** If X11/xpm.h exists...
152         AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,
153           [ AC_DEFINE(HAVE_LIBXXPM) X_PRE_LIBS="$X_PRE_LIBS -lXpm"],,
154           $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
155         )
156       ],
157       [ dnl *** If X11/xpm.h does not exist...
158         dnl NOTE: autoconf does not allow commas inside the third 
159         dnl       parameter to AC_CHECK_HEADERS, due to some quoting
160         dnl       magic it does.
161         echo "Redhat            :       xpm xpm-devel"
162         echo "Caldera OpenLinux :       xpm xpm-devel xpm-devel-static"
163         echo "SuSE              :       xpm"
164         echo "Debian/Corel Linux:       xpm4g xpm4g-dev"
165         echo
166         echo "Or get the sources from ftp.x.org and all its mirror sites from "
167         echo "the directory /contrib/libraries."
168         echo
169         exit 1
170       ]
171     )
173     dnl *** All three of the following tests require X11/Xlib.h
174     AC_CHECK_HEADERS(X11/Xlib.h,
175       [
176         dnl *** Check for X Shm extension
177         AC_CHECK_HEADERS(X11/extensions/XShm.h,
178             [ dnl *** If X11/extensions/XShm.h exists...
179               AC_CHECK_LIB(Xext, XShmQueryExtension,
180               AC_DEFINE(HAVE_LIBXXSHM),,
181               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
182             ],
183             AC_MSG_WARN([Xshm extension not found!!])
184         )
186         dnl *** Check for X shape extension
187         AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/shape.h,
188             [ dnl *** If X11/extensions/shape.h exists...
189               AC_CHECK_LIB(Xext,XShapeQueryExtension,
190               AC_DEFINE(HAVE_LIBXSHAPE),,
191               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
192             ],
193             AC_MSG_WARN([XShape extension found!!])
194         )
195         
196         dnl *** Check for XFree86 DGA / DGA 2.0 extension
197         AC_CHECK_HEADERS(X11/extensions/xf86dga.h,
198             [ dnl *** If X11/extensions/xf86dga.h exists, check 
199               dnl *** for XDGAQueryExtension()...
200               AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
201                 [ dnl *** If found...
202                   AC_DEFINE(HAVE_LIBXXF86DGA2)
203                   AC_DEFINE(HAVE_LIBXXF86DGA)
204                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
205                   DGA_SRCS='$(DGA_SRCS)'
206                   DGA2_SRCS='$(DGA2_SRCS)'
207                ],
208                 [ dnl *** If not found, look for XF86DGAQueryExtension()
209                   dnl *** instead (DGA 2.0 not found)...
210                   AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
211                     [ AC_DEFINE(HAVE_LIBXXF86DGA)
212                       X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
213                       DGA_SRCS='$(DGA_SRCS)'
214                     ],,
215                     $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
216                   )
217                 ],
218                 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
219               )
220             ],
221             AC_MSG_WARN([DGA extension not found!!])
222         )
224         dnl *** Check for XFree86 VMODE extension
225         AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,
226             [ dnl *** If X11/extensions/xf86vmode.h exists...
227                 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
228                   [ AC_DEFINE(HAVE_LIBXXF86VM)
229                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
230                   ],,
231                   $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
232                 )
233             ],
234             AC_MSG_WARN([XFree86 VMODE extension not found!!])
235         )
237         dnl *** Check for XVideo extension supporting XvImages
238         AC_CHECK_HEADERS(X11/extensions/Xvlib.h,
239             [ dnl *** If X11/extensions/Xvlib.h exists...
240                 AC_CHECK_LIB(Xv, XvShmCreateImage,
241                   [ AC_DEFINE(HAVE_XVIDEO)
242                      X_PRE_LIBS="$X_PRE_LIBS -lXv"
243                   ],,
244                   $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
245                 )
246             ],
247             AC_MSG_WARN([XVideo extension not found !!])
248         )
250       ]
251     ) dnl *** End of X11/Xlib.h check
253     dnl Check for the presence of OpenGL
254     if test $OPENGL = "yes" -o $OPENGL = "normal"
255     then
256         AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
257         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
258         then
259             dnl Check for some problems due to old Mesa versions
260             AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
261               AC_TRY_COMPILE(
262                 [#include <GL/gl.h>],
263                 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
264                 [wine_cv_opengl_version_OK="yes"],
265                 [wine_cv_opengl_version_OK="no"]
266               )
267             )
269             dnl Check for the thread-safety of the OpenGL library
270             AC_CACHE_CHECK("for thread-safe OpenGL version", 
271                            wine_cv_opengl_version_threadsafe,
272               [saved_libs=$LIBS
273                LIBS="$X_LIBS -lGL"
274                AC_TRY_LINK([],[pthread_getspecific();],
275                               [wine_cv_opengl_version_threadsafe="yes"],
276                               [wine_cv_opengl_version_threadsafe="no"])
277                LIBS=$saved_libs]
278             )
280             if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
281             then
282                 dnl Check for the presence of the library
283                 AC_CHECK_LIB(GL,glXCreateContext,
284                              X_PRE_LIBS="$X_PRE_LIBS -lGL"
285                              MESA_SRCS='$(MESA_SRCS)'
286                              ,,
287                              $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
289                 if test $ac_cv_lib_GL_glXCreateContext = "yes"
290                 then
292                         OPENGLFILES='$(OPENGLFILES)'
293                         AC_DEFINE(HAVE_OPENGL)
295                         AC_CHECK_LIB(GL,glXGetProcAddressARB,AC_DEFINE(HAVE_GLX_GETPROCADDRESS),,$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
297                         if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
298                         then
299                                AC_CACHE_CHECK("for OpenGL extension functions prototypes", wine_cv_extension_prototypes,
300                                   AC_TRY_COMPILE([#include <GL/gl.h>
301                                                   #ifdef HAVE_GL_GLEXT_H
302                                                   # include <GL/glext.h>
303                                                   #endif
304                                                   ],
305                                                  [PFNGLCOLORTABLEEXTPROC test_proc;],
306                                                  [wine_cv_extension_prototypes="yes"],
307                                                  [wine_cv_extension_prototypes="no"]
308                                   )
309                                 )
310                                 if test $wine_cv_extension_prototypes = "yes"
311                                 then
312                                         AC_DEFINE(HAVE_GLEXT_PROTOTYPES)
313                                 fi
315                                 OPENGL32_DLL=opengl32
316                         fi
317                 fi
318              fi
319          fi
320     fi
322     CPPFLAGS="$ac_save_CPPFLAGS"
323     X_DLLS='$(X_DLLS)'
324     XFILES='$(XFILES)'
325 else
326     XLIB=""
327     X_CFLAGS=""
328     X_LIBS=""
331 dnl **** Check which curses lib to use ***
332 if test "$CURSES" = "yes"
333 then
334     AC_CHECK_HEADERS(ncurses.h)
335     if test "$ac_cv_header_ncurses_h" = "yes"
336     then 
337         AC_CHECK_LIB(ncurses,waddch)
338     fi
339     if test "$ac_cv_lib_ncurses_waddch" = "yes"
340     then
341         AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
342         AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
343     else
344         AC_CHECK_HEADERS(curses.h)
345         if test "$ac_cv_header_curses_h" = "yes"
346         then    
347             AC_CHECK_LIB(curses,waddch)
348             if test "$ac_cv_lib_curses_waddch" = "yes"
349             then
350                 AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
351                 AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
352             fi
353         fi
354     fi
357 dnl **** Check for IPX (currently Linux only) ****
358 AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu,
359  AC_TRY_COMPILE(
360    [#include <sys/socket.h>
361     #include <netipx/ipx.h>],
362    [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
363    [ac_cv_c_ipx_gnu="yes"],
364    [ac_cv_c_ipx_gnu="no"])
366 if test "$ac_cv_c_ipx_gnu" = "yes"
367 then
368     AC_DEFINE(HAVE_IPX_GNU)
371 if test "$ac_cv_c_ipx_gnu" = "no"
372 then
373  AC_CACHE_CHECK("for linux style IPX support", ac_cv_c_ipx_linux,
374   AC_TRY_COMPILE(
375     [#include <sys/socket.h>
376      #include <asm/types.h>
377      #include <linux/ipx.h>],
378     [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
379     [ac_cv_c_ipx_linux="yes"],
380     [ac_cv_c_ipx_linux="no"])
381   )
382   if test "$ac_cv_c_ipx_linux" = "yes"
383   then
384       AC_DEFINE(HAVE_IPX_LINUX)
385   fi
388 dnl **** Check for Open Sound System ****
389 AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break)
391 AC_CACHE_CHECK("for Open Sound System",
392         ac_cv_c_opensoundsystem,
393         AC_TRY_COMPILE([
394         #if defined(HAVE_SYS_SOUNDCARD_H)
395                 #include <sys/soundcard.h>
396         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
397                 #include <machine/soundcard.h>
398         #elif defined(HAVE_SOUNDCARD_H)
399                 #include <soundcard.h>
400         #endif
401         ],[
403 /* check for one of the Open Sound System specific SNDCTL_ defines */
404 #if !defined(SNDCTL_DSP_STEREO)
405 #error No open sound system
406 #endif
407 ],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
409 if test "$ac_cv_c_opensoundsystem" = "yes"
410 then
411     AC_DEFINE(HAVE_OSS)
414 AC_CACHE_CHECK("for Open Sound System/MIDI interface",
415         ac_cv_c_opensoundsystem_midi,
416         AC_TRY_COMPILE([
417         #if defined(HAVE_SYS_SOUNDCARD_H)
418                 #include <sys/soundcard.h>
419         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
420                 #include <machine/soundcard.h>
421         #elif defined(HAVE_SOUNDCARD_H)
422                 #include <soundcard.h>
423         #endif
424         ],[
426 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
427 #if !defined(SNDCTL_SEQ_SYNC)
428 #error No open sound system MIDI interface
429 #endif
430 ],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
432 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
433 then
434     AC_DEFINE(HAVE_OSS_MIDI)
437 dnl **** If ln -s doesn't work, use cp instead ****
438 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
440 dnl **** Check for gcc strength-reduce bug ****
442 if test "x${GCC}" = "xyes"
443 then
444   CFLAGS="$CFLAGS -Wall"
445   AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug,
446                   AC_TRY_RUN([
447 int     L[[4]] = {0,1,2,3};
448 int main(void) {
449   static int Array[[3]];
450   unsigned int B = 3;
451   int i;
452   for(i=0; i<B; i++) Array[[i]] = i - 3;
453   for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
454   L[[i]] = 4;
455   
456   exit( Array[[1]] != -2 || L[[2]] != 3);
458     ac_cv_c_gcc_strength_bug="no",
459     ac_cv_c_gcc_strength_bug="yes",
460     ac_cv_c_gcc_strength_bug="yes") )
461   if test "$ac_cv_c_gcc_strength_bug" = "yes"
462   then
463     CFLAGS="$CFLAGS -fno-strength-reduce"
464   fi
466   dnl Check for -mpreferred-stack-boundary
467   AC_CACHE_CHECK("for gcc -mpreferred-stack-boundary=2 support",
468                  ac_cv_c_gcc_stack_boundary,
469   [saved_cflags=$CFLAGS
470   CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
471   AC_TRY_COMPILE(,[return 0],ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")
472   CFLAGS=$saved_cflags
473   ])
474   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
475   then
476     CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
477   fi
480 dnl **** Check if we need to place .type inside a .def directive ****
482 AC_CACHE_CHECK("whether .type must sit inside a .def directive",
483                ac_cv_c_type_in_def,
484 [saved_libs=$LIBS
485 LIBS="conftest_asm.s $LIBS"
486 cat > conftest_asm.s <<EOF
487         .globl _ac_test
488         .def _ac_test; .scl 2; .type 32; .endef
489 _ac_test:
490         .long 0
492 AC_TRY_LINK(,,ac_cv_c_type_in_def="yes",ac_cv_c_type_in_def="no")
493 LIBS=$saved_libs])
494 if test "$ac_cv_c_type_in_def" = "yes"
495 then
496   AC_DEFINE(NEED_TYPE_IN_DEF)
499 dnl **** Check for underscore on external symbols ****
501 AC_CACHE_CHECK("whether external symbols need an underscore prefix",
502                ac_cv_c_extern_prefix,
503 [saved_libs=$LIBS
504 LIBS="conftest_asm.s $LIBS"
505 cat > conftest_asm.s <<EOF
506         .globl _ac_test
507 _ac_test:
508         .long 0
510 AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1],
511             ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no")
512 LIBS=$saved_libs])
513 if test "$ac_cv_c_extern_prefix" = "yes"
514 then
515   AC_DEFINE(NEED_UNDERSCORE_PREFIX)
518 dnl **** Check for .string in assembler ****
520 AC_CACHE_CHECK("whether assembler accepts .string",
521                ac_cv_c_asm_string,
522 [saved_libs=$LIBS
523 LIBS="conftest_asm.s $LIBS"
524 cat > conftest_asm.s <<EOF
525         .string "test"
527 AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no")
528 LIBS=$saved_libs])
529 if test "$ac_cv_c_asm_string" = "yes"
530 then
531   AC_DEFINE(HAVE_ASM_STRING)
534 dnl **** Check for working dll ****
536 LDSHARED=""
537 LDDLLFLAGS=""
538 if test "$LIBEXT" = "so"
539 then
540   AC_CACHE_CHECK("whether we can build a Linux dll",
541                  ac_cv_c_dll_linux,
542   [saved_cflags=$CFLAGS
543   CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
544   AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no")
545   CFLAGS=$saved_cflags
546   ])
547   if test "$ac_cv_c_dll_linux" = "yes"
548   then
549     LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
550     LDDLLFLAGS="-Wl,-Bsymbolic"
551   else
552     AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll,
553                  ac_cv_c_dll_unixware,
554     [saved_cflags=$CFLAGS
555     CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
556     AC_TRY_LINK(,[return 1],ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")
557     CFLAGS=$saved_cflags
558     ])
559     if test "$ac_cv_c_dll_unixware" = "yes"
560     then
561       LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
562       LDDLLFLAGS="-Wl,-B,symbolic"
563     else
564       AC_CACHE_CHECK("whether we can build a NetBSD dll",
565                    ac_cv_c_dll_netbsd,
566       [saved_cflags=$CFLAGS
567       CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
568       AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
569       CFLAGS=$saved_cflags
570       ])
571       if test "$ac_cv_c_dll_netbsd" = "yes"
572       then
573         LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
574         LDDLLFLAGS="" #FIXME
575       fi
576     fi
577   fi
578   if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
579   then
580     LIBEXT="a"
581     if test "$DLLWRAP" = "dllwrap"; then
582       dnl FIXME - check whether dllwrap works correctly...
583       if test "$CYGWIN" = "yes"; then
584         echo "*** use dllwrap for building shared library."
585         LIBEXT="dll"
586       fi
587     fi
588   fi
591 if test "$LIBEXT" = "a"; then
592   echo "*** It is currently not possible to build WINE without shared"
593   echo "*** library (.so) support to allow transparent switch between .so"
594   echo "*** and .dll files."
595   echo "*** If you are using Linux, you will need a newer binutils."
596   exit 1
599 DLLFLAGS=""
600 LDPATH=""
602 if test "$LIBEXT" = "so"; then
603     DLLFLAGS="-fPIC"
604     DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
605     LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\""
606 elif test "$LIBEXT" = "dll"; then
607     #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
608     DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) \$(LIBWINE) \$(LIBUNICODE)"
609     LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\""
610 else
611     DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) \$(LIBWINE) \$(LIBUNICODE) \$(X_LIBS) \$(XLIB)"
612     AC_CACHE_CHECK([whether the linker supports --[[no]]-whole-archive (Linux)],
613                    ac_cv_c_whole_archive,
614             [saved_cflags=$CFLAGS
615             CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
616             AC_TRY_LINK(,[return 1],ac_cv_c_whole_archive="yes",ac_cv_c_whole_archive="no")
617             CFLAGS=$saved_cflags
618             ])
619     if test "$ac_cv_c_whole_archive" = "yes"
620     then
621         DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
622     else
623         AC_CACHE_CHECK([whether the linker supports -z {all,default}extract (Linux)],
624                        ac_cv_c_allextract,
625                 [saved_cflags=$CFLAGS
626                 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
627                 AC_TRY_LINK(,[return 1],ac_cv_c_allextract="yes",ac_cv_c_allextract="no")
628                 CFLAGS=$saved_cflags
629                 ])
630         if test "$ac_cv_c_allextract" = "yes"
631         then
632             DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
633         fi
634     fi
637 AC_SUBST(DLL_LINK)
638 AC_SUBST(DLLFLAGS)
639 AC_SUBST(LDSHARED)
640 AC_SUBST(LDDLLFLAGS)
641 AC_SUBST(LIBEXT)
642 AC_SUBST(LDPATH)
644 dnl **** Check for reentrant libc ****
646 dnl For cross-compiling we blindly assume that libc is reentrant. This is
647 dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions).
649 wine_cv_libc_reentrant=no 
650 dnl 
651 dnl Linux style errno location
652 dnl 
653 AC_CACHE_CHECK("for reentrant libc: __errno_location", wine_cv_libc_r__errno_location,
654   [AC_TRY_RUN([int myerrno = 0;
655 char buf[256];
656 int *__errno_location(){return &myerrno;}
657 main(){connect(0,buf,255); exit(!myerrno);}],
658   wine_cv_libc_r__errno_location=yes, wine_cv_libc_r__errno_location=no,
659   wine_cv_libc_r__errno_location=yes )
661 if test "$wine_cv_libc_r__errno_location" = "yes"
662 then
663     AC_DEFINE(HAVE__ERRNO_LOCATION)
664     wine_cv_libc_reentrant=__errno_location 
667 dnl FreeBSD style errno location
668 dnl 
669 AC_CACHE_CHECK("for reentrant libc: __error", wine_cv_libc_r__error,
670   [AC_TRY_RUN([int myerrno = 0;
671 char buf[256];
672 int *__error(){return &myerrno;}
673 main(){connect(0,buf,255); exit(!myerrno);}],
674     wine_cv_libc_r__error=yes, wine_cv_libc_r__error=no,
675     wine_cv_libc_r__error=yes )
677 if test "$wine_cv_libc_r__error" = "yes"
678 then
679     AC_DEFINE(HAVE__ERROR)
680     wine_cv_libc_reentrant=__error 
683 dnl Solaris style errno location
684 dnl 
685 AC_CACHE_CHECK("for reentrant libc: ___errno", wine_cv_libc_r___errno,
686   [AC_TRY_RUN([int myerrno = 0;
687 char buf[256];
688 int *___errno(){return &myerrno;}
689 main(){connect(0,buf,255); exit(!myerrno);}],
690     wine_cv_libc_r___errno=yes, wine_cv_libc_r___errno=no,
691     wine_cv_libc_r___errno=yes )
693 if test "$wine_cv_libc_r___errno" = "yes"
694 then
695     AC_DEFINE(HAVE___ERRNO)
696     wine_cv_libc_reentrant=___errno 
699 dnl UnixWare style errno location
700 dnl 
701 AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno,
702   [AC_TRY_RUN([int myerrno = 0;
703 char buf[256];
704 int *__thr_errno(){return &myerrno;}
705 main(){connect(0,buf,255); exit(!myerrno);}],
706     wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no,
707     wine_cv_libc_r__thr_errno=yes )
709 if test "$wine_cv_libc_r__thr_errno" = "yes"
710 then
711     AC_DEFINE(HAVE__THR_ERRNO)
712     wine_cv_libc_reentrant=__thr_errno 
714 if test "$wine_cv_libc_reentrant" = "no" 
715 then
716   AC_DEFINE(NO_REENTRANT_LIBC)
719 dnl **** Check for reentrant X libraries ****
721 dnl This may fail to determine whether X libraries are reentrant if
722 dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration
723 dnl is possible with the --without-reentrant-x option.
725 if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
726 then
727 AC_CACHE_CHECK( "for reentrant X libraries", wine_cv_x_reentrant,
728   [ if test "x$with_reentrant_x" = "xno" 
729     then
730         wine_cv_x_reentrant=no
731     else
732         libX11_check=none
733         for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
734             if test -r $dir/libX11.so; then
735                 libX11_check="-D $dir/libX11.so"
736                 break 1
737             fi
738             if test -r $dir/libX11.a; then
739                 libX11_check="$dir/libX11.a"
740                 break 1
741             fi
742         done
743         if test "$libX11_check" != "none"; then
744             if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
745             then
746                 wine_cv_x_reentrant=yes
747             else
748                 wine_cv_x_reentrant=no
749             fi
750         else
751             wine_cv_x_reentrant=unknown
752         fi
753     fi ] )
754 else
755     wine_cv_x_reentrant=no
757 if test "$wine_cv_x_reentrant" = "no"
758 then
759   AC_DEFINE(NO_REENTRANT_X11)
762 dnl **** Check for endianness ****
764 AC_C_BIGENDIAN
766 AC_CACHE_CHECK( "whether bitfields are bigendian", wine_cv_bitfields_bigendian,
767   [AC_TRY_RUN([
768 union
770   int word;
771   struct
772   {
773       int bit0 : 1;
774       int rest : sizeof(int)*8 - 1;
775   } bitfield;
776 } u;
777 main() { u.word = 0; u.bitfield.bit0 = 1; exit( u.word == 1 ); } ], 
778     wine_cv_bitfields_bigendian=yes, wine_cv_bitfields_bigendian=no,
779     wine_cv_bitfields_bigendian=no ) ])
780 if test "$wine_cv_bitfields_bigendian" = "yes"
781 then
782   AC_DEFINE(BITFIELDS_BIGENDIAN)
785 AC_CACHE_CHECK( "whether unaligned memory access is allowed", wine_cv_allow_unaligned_access,
786   [AC_TRY_RUN([
787 long volatile test[2];
788 main()
790     long volatile *ua = (long volatile *)((char *)test + 1);
791     *ua = 0;
792     exit(0);
793 } ], wine_cv_allow_unaligned_access=yes, wine_cv_allow_unaligned_access=no,
794      wine_cv_allow_unaligned_access=no ) ])
795 if test "$wine_cv_allow_unaligned_access" = "yes"
796 then
797   AC_DEFINE(ALLOW_UNALIGNED_ACCESS)
801 dnl **** Check for functions ****
803 AC_FUNC_ALLOCA()
804 AC_CHECK_FUNCS(\
805         __libc_fork \
806         _lwp_create \
807         clone \
808         finite \
809         fpclass \
810         getnetbyaddr \
811         getnetbyname \
812         getpagesize \
813         getprotobyname \
814         getprotobynumber \
815         getrlimit \
816         getservbyport \
817         getsockopt \
818         inet_network \
819         lstat \
820         memmove \
821         mmap \
822         rfork \
823         select \
824         sendmsg \
825         settimeofday \
826         sigaltstack \
827         statfs \
828         strcasecmp \
829         strerror \
830         strncasecmp \
831         tcgetattr \
832         timegm \
833         usleep \
834         vfscanf \
835         wait4 \
836         waitpid \
839 dnl **** Check for header files ****
841 AC_CHECK_HEADERS(\
842         arpa/inet.h \
843         arpa/nameser.h \
844         elf.h \
845         float.h \
846         ieeefp.h \
847         libio.h \
848         libutil.h \
849         link.h \
850         linux/cdrom.h \
851         linux/input.h \
852         linux/joystick.h \
853         linux/ucdrom.h \
854         net/if.h \
855         netdb.h \
856         netinet/in.h \
857         netinet/in_systm.h \
858         netinet/ip.h \
859         netinet/tcp.h \
860         pty.h \
861         resolv.h \
862         sched.h \
863         socket.h \
864         strings.h \
865         sys/cdio.h \
866         sys/errno.h \
867         sys/file.h \
868         sys/filio.h \
869         sys/ipc.h \
870         sys/lwp.h \
871         sys/mman.h \
872         sys/modem.h \
873         sys/mount.h \
874         sys/msg.h \
875         sys/param.h \
876         sys/ptrace.h \
877         sys/reg.h \
878         sys/signal.h \
879         sys/shm.h \
880         sys/socket.h \
881         sys/sockio.h \
882         sys/statfs.h \
883         sys/strtio.h \
884         sys/syscall.h \
885         sys/user.h \
886         sys/wait.h \
887         sys/v86.h \
888         sys/v86intr.h \
889         sys/vfs.h \
890         sys/vm86.h \
891         syscall.h \
892         ucontext.h \
894 AC_HEADER_STAT()
896 dnl **** Check for types ****
898 AC_C_CONST()
899 AC_C_INLINE()
900 AC_TYPE_SIZE_T()
901 AC_CHECK_SIZEOF(long long,0)
903    
904 AC_CACHE_CHECK("whether we can use re-entrant gethostbyname_r Linux style",
905         wine_cv_linux_gethostbyname_r_6,
906         AC_TRY_COMPILE([
907 #include <netdb.h>
908         ], [
909     char *name=NULL;
910     struct hostent he;
911     struct hostent *result;
912     char *buf=NULL;
913     int bufsize=0;
914     int res,errnr;
915     char *addr=NULL;
916     int addrlen=0;
917     int addrtype=0;
918     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
919     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
920     ],
921         wine_cv_linux_gethostbyname_r_6=yes,
922         wine_cv_linux_gethostbyname_r_6=no
923         )
924    )
925    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
926    then
927       AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6)
928    fi
930 if test "$ac_cv_header_linux_joystick_h" = "yes"
931 then
932    AC_CACHE_CHECK("whether linux/joystick.h uses the Linux 2.2+ API",
933         wine_cv_linux_joystick_22_api,
934         AC_TRY_COMPILE([
935         #include <sys/ioctl.h>
936         #include <linux/joystick.h>
938         struct js_event blub;
939         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
940         #error "no 2.2 header"
941         #endif
942         ],/*empty*/,
943         wine_cv_linux_joystick_22_api=yes,
944         wine_cv_linux_joystick_22_api=no,
945         wine_cv_linux_joystick_22_api=no
946         )
947    )
948    if test "$wine_cv_linux_joystick_22_api" = "yes"
949    then
950       AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API)
951    fi
954 dnl **** statfs checks ****
956 if test "$ac_cv_header_sys_vfs_h" = "yes"
957 then
958     AC_CACHE_CHECK( "whether sys/vfs.h defines statfs",
959                     wine_cv_sys_vfs_has_statfs,
960         AC_TRY_COMPILE([
961         #include <sys/types.h>
962         #ifdef HAVE_SYS_PARAM_H
963         # include <sys/param.h>
964         #endif
965         #include <sys/vfs.h>
966         ],[
967                 struct statfs stfs;
969                 memset(&stfs,0,sizeof(stfs));
970         ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
971         )
972     )
973     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
974     then
975       AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS)
976     fi
979 if test "$ac_cv_header_sys_statfs_h" = "yes"
980 then
981     AC_CACHE_CHECK( "whether sys/statfs.h defines statfs",
982                     wine_cv_sys_statfs_has_statfs,
983         AC_TRY_COMPILE([
984         #include <sys/types.h>
985         #ifdef HAVE_SYS_PARAM_H
986         # include <sys/param.h>
987         #endif
988         #include <sys/statfs.h>
989         ],[
990                 struct statfs stfs;
991         ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
992         )
993     )
994     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
995     then
996       AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS)
997     fi
1000 if test "$ac_cv_header_sys_mount_h" = "yes"
1001 then
1002     AC_CACHE_CHECK( "whether sys/mount.h defines statfs",
1003                     wine_cv_sys_mount_has_statfs,
1004         AC_TRY_COMPILE([
1005         #include <sys/types.h>
1006         #ifdef HAVE_SYS_PARAM_H
1007         # include <sys/param.h>
1008         #endif
1009         #include <sys/mount.h>
1010         ],[
1011                 struct statfs stfs;
1012         ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
1013         )
1014     )
1015     if test "$wine_cv_sys_mount_has_statfs" = "yes"
1016     then
1017       AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT)
1018     fi
1021 dnl **** FIXME: what about mixed cases, where we need two of them? ***
1023 AC_CACHE_CHECK( "for statfs.f_bfree", wine_cv_statfs_bfree,
1024   [ if test "x$statfs_bfree" = "xno"
1025     then
1026         wine_cv_statfs_bfree=no
1027     else
1028         AC_TRY_COMPILE([
1029         #include <sys/types.h>
1030         #ifdef HAVE_SYS_PARAM_H
1031         # include <sys/param.h>
1032         #endif
1033         #ifdef STATFS_DEFINED_BY_SYS_MOUNT
1034         # include <sys/mount.h>
1035         #else
1036         # ifdef STATFS_DEFINED_BY_SYS_VFS
1037         #  include <sys/vfs.h>
1038         # else
1039         #  ifdef STATFS_DEFINED_BY_SYS_STATFS
1040         #   include <sys/statfs.h>
1041         #  endif
1042         # endif
1043         #endif
1044         ],[
1045                 struct statfs stfs;
1047                 stfs.f_bfree++;
1048         ],wine_cv_statfs_bfree=yes,wine_cv_statfs_bfree=no
1049         )
1050     fi ] )
1051 if test "$wine_cv_statfs_bfree" = "yes"
1052 then
1053   AC_DEFINE(STATFS_HAS_BFREE)
1056 AC_CACHE_CHECK( "for statfs.f_bavail", wine_cv_statfs_bavail,
1057   [ if test "x$statfs_bavail" = "xno"
1058     then
1059         wine_cv_statfs_bavail=no
1060     else
1061         AC_TRY_COMPILE([
1062         #include <sys/types.h>
1063         #ifdef HAVE_SYS_PARAM_H
1064         # include <sys/param.h>
1065         #endif
1066         #ifdef STATFS_DEFINED_BY_SYS_MOUNT
1067         # include <sys/mount.h>
1068         #else
1069         # ifdef STATFS_DEFINED_BY_SYS_VFS
1070         #  include <sys/vfs.h>
1071         # else
1072         #  ifdef STATFS_DEFINED_BY_SYS_STATFS
1073         #   include <sys/statfs.h>
1074         #  endif
1075         # endif
1076         #endif
1077         ],[
1078                 struct statfs stfs;
1080                 stfs.f_bavail++;
1081         ],wine_cv_statfs_bavail=yes,wine_cv_statfs_bavail=no
1082         )
1083     fi ] )
1084 if test "$wine_cv_statfs_bavail" = "yes"
1085 then
1086   AC_DEFINE(STATFS_HAS_BAVAIL)
1089 dnl *** check for file descriptor passing with msg_accrights
1091 AC_CACHE_CHECK("for msg_accrights in struct msghdr", ac_cv_c_msg_accrights,
1092  AC_TRY_COMPILE([#include <sys/types.h>
1093 #include <sys/socket.h>],[struct msghdr hdr; hdr.msg_accrights=0],
1094                 ac_cv_c_msg_accrights="yes", ac_cv_c_msg_accrights="no"))
1095 if test "$ac_cv_c_msg_accrights" = "yes"
1096 then
1097     AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS)
1100 dnl *** Check for the sun_len member in struct sockaddr_un
1102 AC_CACHE_CHECK("for sun_len in struct sockaddr_un", ac_cv_c_sun_len,
1103  AC_TRY_COMPILE([#include <sys/types.h>
1104 #include <sys/socket.h>
1105 #include <sys/un.h>], [static struct sockaddr_un addr; addr.sun_len = 1],
1106                 ac_cv_c_sun_len="yes", ac_cv_c_sun_len="no"))
1107 if test "$ac_cv_c_sun_len" = "yes"
1108 then
1109     AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)
1112 dnl *** check for the need to define __i386__
1114 AC_CACHE_CHECK("whether we need to define __i386__",ac_cv_cpp_def_i386,
1115  AC_EGREP_CPP(yes,[#if (defined(i386) || defined(__i386)) && !defined(__i386__)
1117 #endif],
1118  ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no"))
1119 if test "$ac_cv_cpp_def_i386" = "yes"
1120 then
1121     CFLAGS="$CFLAGS -D__i386__"
1122     LINTFLAGS="$LINTFLAGS -D__i386__"
1125 dnl $GCC is set by autoconf
1126 GCC_NO_BUILTIN=""
1127 if test "$GCC" = "yes"
1128 then
1129     GCC_NO_BUILTIN="-fno-builtin"
1131 AC_SUBST(GCC_NO_BUILTIN)
1133 dnl **** Generate output files ****
1135 AC_OUTPUT_COMMANDS([
1136 extra_subdirs="\
1137 dlls/ddraw/d3ddevice \
1138 dlls/ddraw/dclipper \
1139 dlls/ddraw/ddraw \
1140 dlls/ddraw/direct3d \
1141 dlls/ddraw/dpalette \
1142 dlls/ddraw/dsurface \
1143 dlls/dinput/joystick \
1144 dlls/dinput/keyboard \
1145 dlls/dinput/mouse \
1146 dlls/kernel/messages \
1147 dlls/user/resources \
1149 for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done ])
1151 MAKE_RULES=Make.rules
1152 AC_SUBST_FILE(MAKE_RULES)
1154 MAKE_DLL_RULES=dlls/Makedll.rules
1155 AC_SUBST_FILE(MAKE_DLL_RULES)
1157 MAKE_PROG_RULES=programs/Makeprog.rules
1158 AC_SUBST_FILE(MAKE_PROG_RULES)
1160 AC_OUTPUT([
1161 Make.rules
1162 dlls/Makedll.rules
1163 programs/Makeprog.rules
1164 Makefile
1165 console/Makefile
1166 controls/Makefile
1167 debugger/Makefile
1168 dlls/Makefile
1169 dlls/advapi32/Makefile
1170 dlls/avifil32/Makefile
1171 dlls/comctl32/Makefile
1172 dlls/commdlg/Makefile
1173 dlls/crtdll/Makefile
1174 dlls/dciman32/Makefile
1175 dlls/ddraw/Makefile
1176 dlls/dinput/Makefile
1177 dlls/dplay/Makefile
1178 dlls/dplayx/Makefile
1179 dlls/dsound/Makefile
1180 dlls/gdi/Makefile
1181 dlls/icmp/Makefile
1182 dlls/imagehlp/Makefile
1183 dlls/imm32/Makefile
1184 dlls/kernel/Makefile
1185 dlls/lzexpand/Makefile
1186 dlls/mpr/Makefile
1187 dlls/msacm/Makefile
1188 dlls/msnet32/Makefile
1189 dlls/msvideo/Makefile
1190 dlls/ntdll/Makefile
1191 dlls/odbc32/Makefile
1192 dlls/ole32/Makefile
1193 dlls/oleaut32/Makefile
1194 dlls/olecli/Makefile
1195 dlls/oledlg/Makefile
1196 dlls/olepro32/Makefile
1197 dlls/olesvr/Makefile
1198 dlls/opengl32/Makefile
1199 dlls/psapi/Makefile
1200 dlls/rasapi32/Makefile
1201 dlls/richedit/Makefile
1202 dlls/rpcrt4/Makefile
1203 dlls/serialui/Makefile
1204 dlls/setupapi/Makefile
1205 dlls/shell32/Makefile
1206 dlls/shfolder/Makefile
1207 dlls/shlwapi/Makefile
1208 dlls/tapi32/Makefile
1209 dlls/ttydrv/Makefile
1210 dlls/urlmon/Makefile
1211 dlls/user/Makefile
1212 dlls/version/Makefile
1213 dlls/win32s/Makefile
1214 dlls/winaspi/Makefile
1215 dlls/winedos/Makefile
1216 dlls/wineps/Makefile
1217 dlls/wininet/Makefile
1218 dlls/winmm/Makefile
1219 dlls/winmm/joystick/Makefile
1220 dlls/winmm/mcianim/Makefile
1221 dlls/winmm/mciavi/Makefile
1222 dlls/winmm/mcicda/Makefile
1223 dlls/winmm/mciseq/Makefile
1224 dlls/winmm/mciwave/Makefile
1225 dlls/winmm/midimap/Makefile
1226 dlls/winmm/wavemap/Makefile
1227 dlls/winmm/wineoss/Makefile
1228 dlls/winnls/Makefile
1229 dlls/winsock/Makefile
1230 dlls/winspool/Makefile
1231 dlls/wow32/Makefile
1232 dlls/wsock32/Makefile
1233 dlls/x11drv/Makefile
1234 documentation/Makefile
1235 documentation/wine.conf.man
1236 documentation/wine.man
1237 files/Makefile
1238 graphics/Makefile
1239 graphics/enhmetafiledrv/Makefile
1240 graphics/metafiledrv/Makefile
1241 graphics/win16drv/Makefile
1242 graphics/x11drv/Makefile
1243 if1632/Makefile
1244 include/Makefile
1245 library/Makefile
1246 libtest/Makefile
1247 loader/Makefile
1248 loader/dos/Makefile
1249 loader/ne/Makefile
1250 memory/Makefile
1251 misc/Makefile
1252 miscemu/Makefile
1253 msdos/Makefile
1254 objects/Makefile
1255 ole/Makefile
1256 programs/Makefile
1257 programs/avitools/Makefile
1258 programs/clock/Makefile
1259 programs/cmdlgtst/Makefile
1260 programs/control/Makefile
1261 programs/notepad/Makefile
1262 programs/osversioncheck/Makefile
1263 programs/progman/Makefile
1264 programs/regapi/Makefile
1265 programs/regtest/Makefile
1266 programs/uninstaller/Makefile
1267 programs/view/Makefile
1268 programs/wcmd/Makefile
1269 programs/winemine/Makefile
1270 programs/winhelp/Makefile
1271 programs/winver/Makefile
1272 relay32/Makefile
1273 scheduler/Makefile
1274 server/Makefile
1275 tools/Makefile
1276 tools/cvdump/Makefile
1277 tools/winebuild/Makefile
1278 tools/winelauncher
1279 tools/wmc/Makefile
1280 tools/wrc/Makefile
1281 tsx11/Makefile
1282 unicode/Makefile
1283 win32/Makefile
1284 windows/Makefile
1285 windows/x11drv/Makefile ])
1287 if test "$have_x" = "no"
1288 then
1289   echo
1290   echo "*** Warning: X development files not found. Wine will be built without"
1291   echo "*** X support, which currently does not work, and would probably not be"
1292   echo "*** what you want anyway. You will need to install devel packages of"
1293   echo "*** Xlib/Xfree86 and Xpm at the very least."
1294 elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
1295 then
1296   echo
1297   echo "*** Warning: Xpm development files not found. Wine will be built without"
1298   echo "*** Xpm support, which currently does not work. You will need to install"
1299   echo "*** devel packages of Xpm."
1302 if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
1303 then
1304   echo
1305   echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
1306   echo "*** terminal resize support. Consider upgrading ncurses."
1309 if test "$wine_cv_libc_reentrant" = "no" 
1310 then
1311   echo
1312   echo "*** Warning: non-reentrant libc detected. Wine will be build without"
1313   echo "*** thread support. Consider upgrading libc to a more recent"
1314   echo "*** reentrant version of libc."
1317 if test "$wine_cv_opengl_version_OK" = "no"
1318 then
1319   echo
1320   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
1321   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1324 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
1325 then
1326   echo
1327   echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
1328   echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
1329   echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
1330   echo "*** start configure with '--enable-opengl' to force OpenGL support."
1333 if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
1334 then
1335   echo
1336   echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
1337   echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
1338   echo "*** support before reporting bugs."
1342 echo
1343 echo "Configure finished.  Do 'make depend && make' to compile Wine."
1344 echo
1346 dnl Local Variables:
1347 dnl comment-start: "dnl "
1348 dnl comment-end: ""
1349 dnl comment-start-skip: "\\bdnl\\b\\s *"
1350 dnl compile-command: "autoconf"
1351 dnl End: