1 dnl Process this file with autoconf to produce a configure script.
2 dnl Original author: Michael Patra
3 dnl See ChangeLog file for detailed change history.
5 m4_define(WINE_VERSION,regexp(m4_include(VERSION),[version \([-.0-9A-Za-z]+\)],[\1]))
8 AC_INIT([Wine],WINE_VERSION)
9 AC_CONFIG_SRCDIR(server/atom.c)
10 AC_CONFIG_HEADERS(include/config.h)
11 AC_CONFIG_AUX_DIR(tools)
13 dnl **** Command-line arguments ****
15 AC_ARG_ENABLE(win16, AC_HELP_STRING([--disable-win16],[do not include Win16 support]))
16 AC_ARG_ENABLE(debug, AC_HELP_STRING([--disable-debug],[compile out all debugging messages]))
17 AC_ARG_ENABLE(trace, AC_HELP_STRING([--disable-trace],[compile out TRACE messages]))
19 AC_ARG_WITH(opengl, AC_HELP_STRING([--without-opengl],[do not use OpenGL]))
20 AC_ARG_WITH(curses, AC_HELP_STRING([--without-curses],[do not use curses]))
21 AC_ARG_WITH(nptl, AC_HELP_STRING([--with-nptl],[use glibc NPTL threading support]))
22 AC_ARG_WITH(wine-tools,AC_HELP_STRING([--with-wine-tools=<dir>],[use Wine tools from directory <dir>]))
24 AC_SUBST(WIN16_FILES,"\$(WIN16_FILES)")
25 AC_SUBST(WIN16_INSTALL,"\$(WIN16_INSTALL)")
26 if test "x$enable_win16" = "xno"
31 if test "x$enable_debug" = "xno"
33 AC_DEFINE(NO_DEBUG_MSGS,1,[Define to disable all debug messages.])
35 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
37 AC_DEFINE(NO_TRACE_MSGS,1,[Define to disable trace messages.])
39 if test "x$with_nptl" = "xyes"
41 AC_SUBST(MAIN_BINARY,"wine-pthread")
43 AC_SUBST(MAIN_BINARY,"wine-kthread")
46 dnl **** Check for some programs ****
53 AC_CACHE_CHECK([for the directory containing the Wine tools], wine_cv_toolsdir,
54 [if test -z "$with_wine_tools"; then
55 if test "$cross_compiling" = "yes"; then
56 AC_MSG_ERROR([you must use the --with-wine-tools option when cross-compiling.])
58 wine_cv_toolsdir="\$(TOPOBJDIR)"
60 elif test -d "$with_wine_tools/tools/winebuild"; then
61 case $with_wine_tools in
62 /*) wine_cv_toolsdir="$with_wine_tools" ;;
63 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
66 AC_MSG_ERROR([could not find Wine tools in $with_wine_tools.])
68 AC_SUBST(TOOLSDIR,$wine_cv_toolsdir)
74 dnl **** Just additional warning checks, since AC_PROG just sets 'yacc' even
75 dnl **** without one present.
76 AC_CHECK_PROGS(XYACC,$YACC bison yacc,none)
77 if test "$XYACC" = "none"
79 AC_MSG_ERROR([no suitable bison/yacc found. Please install the 'bison' package.])
81 AC_CHECK_PROGS(XLEX,$LEX flex lex,none)
82 if test "$XLEX" = "none"
84 AC_MSG_ERROR([no suitable lex found. Please install the 'flex' package.])
87 AC_CHECK_TOOLS(AS,[gas as],as)
88 AC_CHECK_TOOL(LD,ld,ld)
89 AC_CHECK_TOOL(AR,ar,ar)
91 AC_CHECK_TOOL(STRIP,strip,strip)
92 AC_CHECK_TOOL(WINDRES,windres,false)
95 AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH])
97 dnl Prepend src dir to install path dir if it's a relative path
99 [[\\/$]]* | ?:[[\\/]]* ) ;;
100 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
104 AC_CHECK_PROGS(LINT, lclint lint)
105 if test "$LINT" = "lint"
107 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
108 dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
113 dnl Check for db2html
114 AC_CHECK_PROGS(DB2HTML, docbook2html db2html, false)
118 AC_CHECK_PROGS(DB2PDF, docbook2pdf db2pdf, false)
122 AC_CHECK_PROGS(DB2PS, docbook2ps db2ps, false)
126 AC_CHECK_PROGS(DB2TXT, docbook2txt db2txt, false)
129 dnl **** Check for some libraries ****
133 dnl Check for -li386 for NetBSD and OpenBSD
134 AC_CHECK_LIB(i386,i386_set_ldt)
135 dnl Check for -lossaudio for NetBSD
136 AC_CHECK_LIB(ossaudio,_oss_ioctl)
137 dnl Check for -lw for Solaris
138 AC_CHECK_FUNCS(iswalnum,,AC_CHECK_LIB(w,iswalnum))
139 dnl Check for -lnsl for Solaris
140 AC_CHECK_FUNCS(gethostbyname,,AC_CHECK_LIB(nsl,gethostbyname))
141 dnl Check for -lsocket for Solaris
142 AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
143 dnl Check for -lresolv for Solaris
144 AC_CHECK_FUNCS(inet_aton,,AC_CHECK_LIB(resolv,inet_aton))
145 dnl Check for -lxpg4 for FreeBSD
146 AC_CHECK_LIB(xpg4,_xpg4_setrunelocale)
147 dnl Check for -lpthread
148 AC_CHECK_LIB(pthread,pthread_create,AC_SUBST(LIBPTHREAD,"-lpthread"))
152 AC_CHECK_HEADERS(jpeglib.h,
153 AC_CHECK_LIB(jpeg,jpeg_start_decompress,
154 AC_DEFINE(HAVE_LIBJPEG,1,[Define if you have libjpeg including devel headers])
160 AC_CHECK_HEADERS(gif_lib.h,
161 AC_CHECK_LIB(ungif,DGifOpen,
162 [AC_DEFINE(HAVE_LIBGIF,1,[Define if you have libgif/libungif including devel headers])
164 [AC_CHECK_LIB(gif,DGifOpen,
165 [AC_DEFINE(HAVE_LIBGIF,1)
171 AC_SUBST(OPENGLFILES)
175 AC_SUBST(OPENGL_LIBS)
177 if test "$have_x" = "yes"
180 ac_save_CPPFLAGS="$CPPFLAGS"
181 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
183 dnl *** All of the following tests require X11/Xlib.h
184 AC_CHECK_HEADERS(X11/Xlib.h,
186 AC_CHECK_HEADERS([X11/XKBlib.h \
188 X11/extensions/shape.h \
189 X11/extensions/XShm.h \
190 X11/extensions/Xrandr.h \
191 X11/extensions/Xrender.h \
192 X11/extensions/Xvlib.h \
193 X11/extensions/xf86dga.h \
194 X11/extensions/xf86vmode.h],,,
195 [#include <X11/Xlib.h>
196 #ifdef HAVE_X11_XUTIL_H
197 # include <X11/Xutil.h>
200 dnl *** Check for X keyboard extension
201 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
203 AC_CHECK_LIB(X11, XkbQueryExtension,
204 AC_DEFINE(HAVE_XKB, 1, [Define if you have the XKB extension]),,
205 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
208 dnl *** Check for X Shm extension
209 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
211 AC_CHECK_LIB(Xext, XShmQueryExtension,
212 AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),,
213 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
216 dnl *** Check for X shape extension
217 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
219 AC_CHECK_LIB(Xext,XShapeQueryExtension,
220 AC_DEFINE(HAVE_LIBXSHAPE, 1, [Define if you have the X Shape extension]),,
221 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
224 dnl *** Check for XFree86 DGA / DGA 2.0 extension
225 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
227 AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
228 [ dnl *** If found...
229 AC_DEFINE(HAVE_LIBXXF86DGA2, 1,
230 [Define if you have the Xxf86dga library version 2])
231 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
233 [ dnl *** If not found, look for XF86DGAQueryExtension()
234 dnl *** instead (DGA 2.0 not found)...
235 AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
236 [ AC_DEFINE(HAVE_LIBXXF86DGA, 1,
237 [Define if you have the Xxf86dga library version 1])
238 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
240 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
243 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
246 dnl *** Check for XFree86 VMODE extension
247 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
249 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
250 [ AC_DEFINE(HAVE_LIBXXF86VM, 1, [Define if you have the Xxf86vm library])
251 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
253 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
256 dnl *** Check for X RandR extension
257 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
259 AC_CHECK_LIB(Xrandr, XRRSetScreenConfigAndRate,
260 [ AC_DEFINE(HAVE_LIBXRANDR, 1, [Define if you have the Xrandr library])
261 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
263 $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS)
266 dnl *** Check for XVideo extension supporting XvImages
267 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
269 AC_CHECK_LIB(Xv, XvShmCreateImage,
270 [ AC_DEFINE(HAVE_XVIDEO, 1, [Define if the X libraries support XVideo])
271 X_PRE_LIBS="$X_PRE_LIBS -lXv"
273 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
276 ) dnl *** End of X11/Xlib.h check
278 dnl Check for the presence of OpenGL
279 if test "x$with_opengl" != "xno"
281 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
283 AC_MSG_ERROR([/usr/X11R6/lib/libGL.a is present on your system.
284 This prevents linking to OpenGL. Delete the file and restart configure.])
287 AC_CHECK_HEADERS(GL/gl.h GL/glx.h)
288 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
290 AC_CHECK_HEADERS(GL/glext.h,,,[#include <GL/glx.h>])
291 dnl Check for some problems due to old Mesa versions
292 AC_CACHE_CHECK([for up-to-date OpenGL version], wine_cv_opengl_version_OK,
294 [#include <GL/gl.h>],
295 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
296 [wine_cv_opengl_version_OK="yes"],
297 [wine_cv_opengl_version_OK="no"]
301 if test "$wine_cv_opengl_version_OK" = "yes"
303 dnl Check for the presence of the library
304 AC_CHECK_LIB(GL,glXCreateContext,
307 $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
309 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
311 OPENGLFILES='$(OPENGLFILES)'
312 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system])
314 AC_CHECK_LIB(GL,glXGetProcAddressARB,
315 AC_DEFINE(HAVE_GLX_GETPROCADDRESS, 1,
316 [Define if the OpenGL library supports the glXGetProcAddressARB call]),,
317 $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
319 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
321 AC_CACHE_CHECK([for OpenGL extension functions prototypes], wine_cv_extension_prototypes,
322 [AC_TRY_COMPILE([#include <GL/gl.h>
323 #ifdef HAVE_GL_GLEXT_H
324 # include <GL/glext.h>
327 [PFNGLCOLORTABLEEXTPROC test_proc;],
328 [wine_cv_extension_prototypes="yes"],
329 [wine_cv_extension_prototypes="no"]
332 if test "$wine_cv_extension_prototypes" = "yes"
334 AC_DEFINE(HAVE_GLEXT_PROTOTYPES, 1,
335 [Define if the OpenGL headers define extension typedefs])
340 dnl Check for GLU32 library.
341 AC_CHECK_LIB(GLU,gluLookAt,
342 [OPENGL_LIBS="$OPENGL_LIBS -lGLU"
343 GLU32FILES='$(GLU32FILES)']
345 $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
351 dnl **** Check for NAS ****
353 AC_CHECK_HEADERS(audio/audiolib.h,
354 [AC_CHECK_HEADERS(audio/soundlib.h,,,[#include <audio/audiolib.h>])
355 AC_CHECK_LIB(audio,AuCreateFlow,
356 [AC_DEFINE(HAVE_NAS,1,[Define if you have NAS including devel headers])
357 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],,
358 [-lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS])])
360 CPPFLAGS="$ac_save_CPPFLAGS"
368 dnl **** Check which curses lib to use ***
370 if test "x$with_curses" != "xno"
372 AC_CHECK_HEADERS(ncurses.h,
373 [AC_CHECK_LIB(ncurses,waddch,
374 [AC_DEFINE(HAVE_LIBNCURSES, 1, [Define if you have the ncurses library (-lncurses)])
375 CURSESLIBS="-lncurses"],
376 [AC_CHECK_HEADERS(curses.h,
377 [AC_CHECK_LIB(curses,waddch,
378 [AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have the curses library (-lcurses)])
379 CURSESLIBS="-lcurses"])])])])
381 LIBS="$CURSESLIBS $LIBS"
382 AC_CHECK_FUNCS(getbkgd resizeterm)
387 dnl **** Check for SANE ****
388 AC_CHECK_PROG(sane_devel,sane-config,sane-config,no)
389 if test "$sane_devel" = "no"
394 SANELIBS="`$sane_devel --libs`"
395 SANEINCL="`$sane_devel --cflags`"
396 ac_save_CPPFLAGS="$CPPFLAGS"
398 CPPFLAGS="$CPPFLAGS $SANEINCL"
399 LIBS="$LIBS $SANELIBS"
400 AC_CHECK_HEADER(sane/sane.h,
401 [AC_CHECK_LIB(sane,sane_open,
402 [AC_DEFINE(HAVE_SANE, 1, [Define if we have SANE development environment])],
408 CPPFLAGS="$ac_save_CPPFLAGS"
413 dnl **** Check for the ICU library ****
414 AC_CHECK_HEADERS(unicode/ubidi.h)
415 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
417 AC_CACHE_CHECK([whether we can statically link the ICU libraries], ac_cv_lib_icu,
419 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
420 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
421 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
422 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
423 AC_TRY_LINK([#include <unicode/ubidi.h>],[ubidi_open()],
424 [ac_cv_lib_icu="yes"],[ac_cv_lib_icu="no"])
426 if test "$ac_cv_lib_icu" = "yes"
428 AC_DEFINE(HAVE_ICU,1,[Define to 1 if the ICU libraries are installed])
429 AC_SUBST(ICULIBS,"$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s")
433 dnl **** Check for FreeType 2 ****
434 AC_CHECK_LIB(freetype,FT_Init_FreeType,ft_lib=yes,ft_lib=no,$X_LIBS)
435 if test "$ft_lib" = "no"
438 wine_cv_msg_freetype=no
440 AC_CHECK_PROG(ft_devel,freetype-config,freetype-config,no)
441 if test "$ft_devel" = "no"
443 AC_CHECK_PROG(ft_devel2,freetype2-config,freetype2-config,no)
444 if test "$ft_devel2" = "freetype2-config"
449 if test "$ft_devel" = "no"
452 wine_cv_msg_freetype=yes
454 FREETYPEINCL=`$ft_devel --cflags`
455 ac_save_CPPFLAGS="$CPPFLAGS"
456 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
457 AC_CHECK_HEADERS(freetype/freetype.h \
459 freetype/tttables.h \
461 freetype/ftsnames.h \
462 freetype/ttnameid.h \
464 freetype/internal/sfnt.h)
465 AC_TRY_CPP([#include <ft2build.h>
466 #include <freetype/fttrigon.h>],
467 [AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1,
468 [Define if you have the <freetype/fttrigon.h> header file.])
469 wine_cv_fttrigon=yes],
471 CPPFLAGS="$ac_save_CPPFLAGS"
472 dnl Check that we have at least freetype/freetype.h
473 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
475 AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
476 wine_cv_msg_freetype=no
479 wine_cv_msg_freetype=yes
483 AC_SUBST(FREETYPEINCL)
485 dnl **** Check for parport (currently Linux only) ****
486 AC_CACHE_CHECK([for parport header/ppdev.h], ac_cv_c_ppdev,
488 [#include <linux/ppdev.h>],
489 [ioctl (1,PPCLAIM,0)],
490 [ac_cv_c_ppdev="yes"],
491 [ac_cv_c_ppdev="no"])
493 if test "$ac_cv_c_ppdev" = "yes"
495 AC_DEFINE(HAVE_PPDEV, 1, [Define if we can use ppdev.h for parallel port access])
498 dnl **** Check for va_copy ****
499 AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy,
501 [#include <stdarg.h>],
505 [ac_cv_c_va_copy="yes"],
506 [ac_cv_c_va_copy="no"])
508 if test "$ac_cv_c_va_copy" = "yes"
510 AC_DEFINE(HAVE_VA_COPY, 1, [Define if we have va_copy])
512 AC_CACHE_CHECK([for __va_copy], ac_cv_c___va_copy,
514 [#include <stdarg.h>],
518 [ac_cv_c___va_copy="yes"],
519 [ac_cv_c___va_copy="no"])
521 if test "$ac_cv_c___va_copy" = "yes"
523 AC_DEFINE(HAVE___VA_COPY, 1, [Define if we have __va_copy])
526 dnl **** Check for pthread_rwlock_t ****
527 AC_CHECK_TYPES([pthread_rwlock_t, pthread_rwlockattr_t],,,[#define _GNU_SOURCE
528 #include <pthread.h>])
530 dnl **** Check for Open Sound System ****
531 AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break)
533 AC_CACHE_CHECK([for Open Sound System],
534 ac_cv_c_opensoundsystem,
536 #if defined(HAVE_SYS_SOUNDCARD_H)
537 #include <sys/soundcard.h>
538 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
539 #include <machine/soundcard.h>
540 #elif defined(HAVE_SOUNDCARD_H)
541 #include <soundcard.h>
545 /* check for one of the Open Sound System specific SNDCTL_ defines */
546 #if !defined(SNDCTL_DSP_STEREO)
547 #error No open sound system
549 ],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
551 if test "$ac_cv_c_opensoundsystem" = "yes"
553 AC_DEFINE(HAVE_OSS, 1, [Define if you have the Open Sound system])
556 AC_CACHE_CHECK([for Open Sound System/MIDI interface],
557 ac_cv_c_opensoundsystem_midi,
559 #if defined(HAVE_SYS_SOUNDCARD_H)
560 #include <sys/soundcard.h>
561 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
562 #include <machine/soundcard.h>
563 #elif defined(HAVE_SOUNDCARD_H)
564 #include <soundcard.h>
568 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
569 #if !defined(SNDCTL_SEQ_SYNC)
570 #error No open sound system MIDI interface
572 ],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
574 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
576 AC_DEFINE(HAVE_OSS_MIDI, 1, [Define if you have the Open Sound system (MIDI interface)])
579 dnl **** Check for aRts Sound Server ****
580 AC_PATH_PROG(ARTSCCONFIG, artsc-config)
581 AC_CACHE_CHECK([for aRts Sound server],
583 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
585 ac_cv_c_artsserver=no
587 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
588 ARTSC_LIBS=`$ARTSCCONFIG --libs`
589 ac_cv_c_artsserver=no
590 save_CFLAGS="$CFLAGS"
591 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
595 arts_stream_t stream;
597 ac_cv_c_artsserver=yes
599 CFLAGS="$save_CFLAGS"
602 if test "$ac_cv_c_artsserver" = "yes"
604 AC_SUBST(ARTSLIBS, $ARTSC_LIBS)
605 AC_SUBST(ARTSINCL, $ARTSC_CFLAGS)
607 AC_DEFINE(HAVE_ARTS, 1, [Define if you have ARTS sound server])
610 dnl **** Check for ALSA ****
611 AC_SUBST(ALSALIBS,"")
612 AC_CHECK_HEADERS(alsa/asoundlib.h sys/asoundlib.h, break)
613 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
615 AC_CHECK_LIB(asound,snd_pcm_open,
616 AC_DEFINE(HAVE_ALSA,1,[Define if you have ALSA including devel headers])
620 dnl **** Check for libaudioio (which can be used to get solaris audio support) ****
622 AC_SUBST(AUDIOIOLIBS,"")
623 AC_CHECK_HEADERS(libaudioio.h,
624 [AC_CHECK_LIB(audioio,AudioIOGetVersion,
625 [AUDIOIOLIBS="-laudioio"
626 AC_DEFINE(HAVE_LIBAUDIOIO, 1, [Define if you have libaudioIO])])])
628 dnl **** Check for capi4linux ****
630 AC_CHECK_HEADERS(capi20.h,[
631 AC_CHECK_HEADERS(linux/capi.h,[
632 AC_CHECK_LIB(capi20,capi20_register,[
633 AC_DEFINE(HAVE_CAPI4LINUX,1,[Define if you have capi4linux libs and headers])
634 AC_SUBST(CAPI4LINUXLIBS,"-lcapi20")
639 dnl **** Check for broken glibc mmap64 ****
641 AC_CACHE_CHECK( [whether mmap64 works defined as mmap], ac_cv_mmap64_works,
643 #define _FILE_OFFSET_BITS 64
647 #include <sys/mman.h>
650 int main(int argc,char **argv) {
651 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
652 if (fd == -1) exit(1);
654 unlink("conftest.map");
658 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
664 fprintf(stderr,"success!\n");
669 ac_cv_mmap64_works="yes",
670 ac_cv_mmap64_works="no",
671 ac_cv_mmap64_works="no") )
673 if test "$ac_cv_mmap64_works" = "yes"
675 AC_DEFINE(_FILE_OFFSET_BITS, 64, [Set this to 64 to enable 64-bit file support on Linux])
678 dnl **** Check for gcc specific options ****
680 AC_SUBST(EXTRACFLAGS,"")
681 if test "x${GCC}" = "xyes"
685 dnl Check for strength-reduce bug
686 AC_CACHE_CHECK( [for gcc strength-reduce bug], ac_cv_c_gcc_strength_bug,
688 int L[[4]] = {0,1,2,3};
690 static int Array[[3]];
693 for(i=0; i<B; i++) Array[[i]] = i - 3;
694 for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
697 exit( Array[[1]] != -2 || L[[2]] != 3);
699 ac_cv_c_gcc_strength_bug="no",
700 ac_cv_c_gcc_strength_bug="yes",
701 ac_cv_c_gcc_strength_bug="yes") )
702 if test "$ac_cv_c_gcc_strength_bug" = "yes"
704 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
707 dnl Check for -mpreferred-stack-boundary
708 AC_CACHE_CHECK([for gcc -mpreferred-stack-boundary=2 support], ac_cv_c_gcc_stack_boundary,
709 [WINE_TRY_CFLAGS([-mpreferred-stack-boundary=2],
710 ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")])
711 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
713 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
716 dnl Check for -fno-strict-aliasing
717 AC_CACHE_CHECK([for gcc -fno-strict-aliasing support], ac_cv_c_gcc_no_strict_aliasing,
718 [WINE_TRY_CFLAGS([-fno-strict-aliasing],
719 ac_cv_c_gcc_no_strict_aliasing="yes",ac_cv_c_gcc_no_strict_aliasing="no")])
720 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
722 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
725 dnl Check for -gstabs+ option
726 AC_CACHE_CHECK([for gcc -gstabs+ support], ac_cv_c_gcc_gstabs,
727 [WINE_TRY_CFLAGS([-gstabs+],ac_cv_c_gcc_gstabs="yes", ac_cv_c_gcc_gstabs="no")])
728 if test "$ac_cv_c_gcc_gstabs" = "yes"
730 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
733 dnl Check for noisy string.h
734 saved_CFLAGS="$CFLAGS"
735 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
736 AC_CACHE_CHECK([for broken string.h that generates warnings], ac_cv_c_string_h_warnings,
737 AC_TRY_COMPILE([#include <string.h>],[],
738 [ac_cv_c_string_h_warnings=no],[ac_cv_c_string_h_warnings=yes]))
739 CFLAGS="$saved_CFLAGS"
740 if test "$ac_cv_c_string_h_warnings" = "no"
742 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
746 dnl **** Check how to define a function in assembly code ****
748 AC_CACHE_CHECK([how to define a function in assembly code], ac_cv_asm_func_def,
750 ["\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"],,,
751 ac_cv_asm_func_def=".def",
752 [WINE_TRY_ASM_LINK(["\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"],,,
753 ac_cv_asm_func_def=".type @function",
754 [WINE_TRY_ASM_LINK(["\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"],,,
755 ac_cv_asm_func_def=".type 2",
756 ac_cv_asm_func_def="unknown")])]))
758 AH_TEMPLATE(__ASM_FUNC,[Define to a macro to generate an assembly function directive])
759 case "$ac_cv_asm_func_def" in
761 AC_DEFINE([__ASM_FUNC(name)], [".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"]) ;;
763 AC_DEFINE([__ASM_FUNC(name)], [".type " __ASM_NAME(name) ",@function"]) ;;
765 AC_DEFINE([__ASM_FUNC(name)], [".type " __ASM_NAME(name) ",2"]) ;;
767 AC_DEFINE([__ASM_FUNC(name)], [""]) ;;
770 dnl **** Check for underscore on external symbols ****
772 AC_CACHE_CHECK([whether external symbols need an underscore prefix], ac_cv_c_extern_prefix,
773 WINE_TRY_ASM_LINK([".globl _ac_test\n_ac_test:\t.long 0"],
774 [extern int ac_test;],
775 [if (ac_test) return 1],
776 ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no"))
778 AH_TEMPLATE(__ASM_NAME,[Define to a macro to generate an assembly name from a C symbol])
779 if test "$ac_cv_c_extern_prefix" = "yes"
781 AC_DEFINE([__ASM_NAME(name)], ["_" name])
783 AC_DEFINE([__ASM_NAME(name)], [name])
786 dnl **** Check how to do strings in assembler ****
788 AC_CACHE_CHECK([whether assembler accepts .string], ac_cv_c_asm_string,
789 WINE_TRY_ASM_LINK([".data\n\t.string \"test\"\n\t.text"],,,
790 ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no"))
791 if test "$ac_cv_c_asm_string" = "yes"
793 AC_DEFINE(__ASM_STRING, [".string"], [Define to the assembler keyword used to specify an ASCII string])
795 AC_CACHE_CHECK([whether assembler accepts .asciz], ac_cv_c_asm_asciz,
796 WINE_TRY_ASM_LINK([".data\n\t.asciz \"test\"\n\t.text"],,,
797 ac_cv_c_asm_asciz="yes",ac_cv_c_asm_asciz="no"))
798 if test "$ac_cv_c_asm_asciz" = "yes"
800 AC_DEFINE(__ASM_STRING, [".asciz"])
802 AC_DEFINE(__ASM_STRING, [".ascii"])
806 dnl **** Check for .short in assembler ****
808 AC_CACHE_CHECK([whether assembler accepts .short], ac_cv_c_asm_short,
809 WINE_TRY_ASM_LINK([".data\n\t.short 1\n\t.text"],,,
810 ac_cv_c_asm_short="yes",ac_cv_c_asm_short="no"))
811 if test "$ac_cv_c_asm_short" = "yes"
813 AC_DEFINE(__ASM_SHORT, [".short"], [Define to the assembler keyword used to specify a word value])
815 AC_DEFINE(__ASM_SHORT, [".half"])
818 dnl **** Check for working dll ****
821 AC_SUBST(DLLFLAGS,"-D_REENTRANT")
823 AC_SUBST(LDSHARED,"")
825 AC_SUBST(LIBEXT,"so")
826 AC_SUBST(IMPLIBEXT,"def")
830 AC_CHECK_TOOL(DLLTOOL,dlltool,false)
831 AC_CHECK_TOOL(DLLWRAP,dllwrap,false)
832 if test "$DLLWRAP" = "false"; then
835 dnl FIXME - check whether dllwrap works correctly...
841 AC_CHECK_HEADERS(dlfcn.h,
842 [AC_CHECK_FUNCS(dlopen,,
843 [AC_CHECK_LIB(dl,dlopen,
844 [AC_DEFINE(HAVE_DLOPEN,1,[Define if you have dlopen])
849 if test "$LIBEXT" = "so"
851 DLLFLAGS="$DLLFLAGS -fPIC"
853 AC_CACHE_CHECK([whether we can build a GNU style ELF dll], ac_cv_c_dll_gnuelf,
854 [WINE_TRY_CFLAGS([-fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic],
855 ac_cv_c_dll_gnuelf="yes",ac_cv_c_dll_gnuelf="no")])
856 if test "$ac_cv_c_dll_gnuelf" = "yes"
858 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
859 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
860 AC_CACHE_CHECK([whether the linker accepts -z defs], ac_cv_c_dll_zdefs,
861 [WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-z,defs],
862 ac_cv_c_dll_zdefs="yes",ac_cv_c_dll_zdefs="no")])
863 if test "$ac_cv_c_dll_zdefs" = "yes"
865 LDDLL="$LDDLL,-z,defs"
867 AC_CACHE_CHECK([whether we can relocate the executable to 0x3c000000], ac_cv_ld_reloc_exec,
868 [saved_CFLAGS="$CFLAGS"
869 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
870 AC_TRY_RUN([#include <unistd.h>
871 int main() { return (sbrk(32*1024*1024) == (void *)-1); }],
872 ac_cv_ld_reloc_exec="yes",
873 ac_cv_ld_reloc_exec="no",
874 ac_cv_ld_reloc_exec="no")
875 CFLAGS="$saved_CFLAGS"])
876 if test "$ac_cv_ld_reloc_exec" = "yes"
878 AC_SUBST(LDEXECFLAGS,["-Wl,--section-start,.interp=0x3c000100"])
881 AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll, ac_cv_c_dll_unixware,
882 [WINE_TRY_CFLAGS([-fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic],
883 ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")])
884 if test "$ac_cv_c_dll_unixware" = "yes"
886 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
887 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
892 dnl Check for cross compiler to build test programs
893 AC_SUBST(CROSSTEST,"")
894 if test "$cross_compiling" = "no"
896 AC_CHECK_PROGS(CROSSCC,i586-mingw32msvc-gcc i386-mingw32-gcc,false)
897 AC_CHECK_PROGS(DLLTOOL,i586-mingw32msvc-dlltool i386-mingw32-dlltool,false)
898 AC_CHECK_PROGS(CROSSWINDRES,i586-mingw32msvc-windres i386-mingw32-windres,false)
899 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
904 if test "$LIBEXT" = "a"; then
906 [could not find a way to build shared libraries.
907 It is currently not possible to build Wine without shared library
908 (.so) support to allow transparent switch between .so and .dll files.
909 If you are using Linux, you will need a newer binutils.]
915 AC_SUBST(LDPATH,"PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"") ;;
917 AC_SUBST(LDPATH,"LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"") ;;
920 dnl Mingw needs explicit msvcrt for linking libwine
924 CRTLIBS="-lmsvcrt" ;;
927 dnl **** Get the soname for libraries that we load dynamically ****
929 if test "$LIBEXT" = "so"
931 WINE_GET_SONAME(X11,XCreateWindow,[$X_LIBS $X_EXTRA_LIBS])
932 WINE_GET_SONAME(Xext,XextCreateExtension,[$X_LIBS -lX11 $X_EXTRA_LIBS])
933 WINE_GET_SONAME(Xrender,XRenderQueryExtension,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
934 WINE_GET_SONAME(freetype,FT_Init_FreeType,[$X_LIBS])
935 WINE_GET_SONAME(GL,glXQueryExtension,[$X_LIBS $X_EXTRA_LIBS])
936 WINE_GET_SONAME(cups,cupsGetDefault)
937 WINE_GET_SONAME(jack,jack_client_new)
938 WINE_GET_SONAME(ssl,SSL_library_init)
939 WINE_GET_SONAME(crypto,BIO_new_socket)
940 WINE_GET_SONAME(ncurses,waddch)
941 WINE_GET_SONAME(curses,waddch)
945 dnl **** Check for functions ****
1002 dnl **** Check for header files ****
1029 netinet/in_systm.h \
1087 dnl **** Checks for headers that depend on other ones ****
1089 AC_CHECK_HEADERS(sys/mount.h sys/user.h,,,
1090 [#include <sys/types.h>
1091 #if HAVE_SYS_PARAM_H
1092 # include <sys/param.h>
1095 AC_CHECK_HEADERS([net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h],,,
1096 [#include <sys/types.h>
1097 #if HAVE_SYS_SOCKET_H
1098 # include <sys/socket.h>
1101 AC_CHECK_HEADERS([resolv.h],,,
1102 [#include <sys/types.h>
1103 #if HAVE_SYS_SOCKET_H
1104 # include <sys/socket.h>
1106 #if HAVE_NETINET_IN_H
1107 # include <netinet/in.h>
1109 #if HAVE_ARPA_NAMESER_H
1110 # include <arpa/nameser.h>
1113 AC_CHECK_HEADERS(netinet/ip.h,,,
1114 [#include <sys/types.h>
1115 #if HAVE_SYS_SOCKET_H
1116 # include <sys/socket.h>
1118 #if HAVE_NETINET_IN_SYSTM_H
1119 # include <netinet/in_systm.h>
1122 AC_CHECK_HEADERS(ucontext.h,,,[#include <signal.h>])
1124 dnl **** Check for IPX headers (currently Linux only) ****
1126 AC_CACHE_CHECK([for GNU style IPX support], ac_cv_c_ipx_gnu,
1128 [#include <sys/types.h>
1129 #ifdef HAVE_SYS_SOCKET_H
1130 # include <sys/socket.h>
1132 #include <netipx/ipx.h>],
1133 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
1134 [ac_cv_c_ipx_gnu="yes"],
1135 [ac_cv_c_ipx_gnu="no"])
1137 if test "$ac_cv_c_ipx_gnu" = "yes"
1139 AC_DEFINE(HAVE_IPX_GNU, 1, [Define if IPX should use netipx/ipx.h from libc])
1142 if test "$ac_cv_c_ipx_gnu" = "no"
1144 AC_CACHE_CHECK([for linux style IPX support], ac_cv_c_ipx_linux,
1146 [#include <sys/types.h>
1147 #ifdef HAVE_SYS_SOCKET_H
1148 # include <sys/socket.h>
1150 #include <asm/types.h>
1151 #include <linux/ipx.h>],
1152 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
1153 [ac_cv_c_ipx_linux="yes"],
1154 [ac_cv_c_ipx_linux="no"])
1156 if test "$ac_cv_c_ipx_linux" = "yes"
1158 AC_DEFINE(HAVE_IPX_LINUX, 1, [Define if IPX includes are taken from Linux kernel])
1162 dnl **** Check for types ****
1166 AC_CHECK_TYPES([mode_t, off_t, pid_t, size_t, ssize_t])
1167 AC_CHECK_SIZEOF(long long,0)
1169 AC_CACHE_CHECK([whether linux/input.h is for real],
1170 wine_cv_linux_input_h,
1172 #include <linux/input.h>
1174 int foo = EVIOCGBIT(EV_ABS,42);
1175 int bar = BTN_PINKIE;
1178 wine_cv_linux_input_h=yes,
1179 wine_cv_linux_input_h=no,
1183 if test "$wine_cv_linux_input_h" = "yes"
1185 AC_DEFINE(HAVE_CORRECT_LINUXINPUT_H, 1,
1186 [Define if we have linux/input.h AND it contains the INPUT event API])
1190 AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style],
1191 wine_cv_linux_gethostbyname_r_6,
1197 struct hostent *result;
1204 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
1205 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
1207 wine_cv_linux_gethostbyname_r_6=yes,
1208 wine_cv_linux_gethostbyname_r_6=no
1211 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
1213 AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6, 1,
1214 [Define if Linux-style gethostbyname_r and gethostbyaddr_r are available])
1217 if test "$ac_cv_header_linux_joystick_h" = "yes"
1219 AC_CACHE_CHECK([whether linux/joystick.h uses the Linux 2.2+ API],
1220 wine_cv_linux_joystick_22_api,
1222 #include <sys/ioctl.h>
1223 #include <linux/joystick.h>
1225 struct js_event blub;
1226 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
1227 #error "no 2.2 header"
1230 wine_cv_linux_joystick_22_api=yes,
1231 wine_cv_linux_joystick_22_api=no,
1232 wine_cv_linux_joystick_22_api=no
1235 if test "$wine_cv_linux_joystick_22_api" = "yes"
1237 AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API, 1,
1238 [Define if <linux/joystick.h> defines the Linux 2.2 joystick API])
1242 dnl **** statfs checks ****
1244 if test "$ac_cv_header_sys_vfs_h" = "yes"
1246 AC_CACHE_CHECK( [whether sys/vfs.h defines statfs],
1247 wine_cv_sys_vfs_has_statfs,
1249 #include <sys/types.h>
1250 #ifdef HAVE_SYS_PARAM_H
1251 # include <sys/param.h>
1253 #include <sys/vfs.h>
1257 memset(&stfs,0,sizeof(stfs));
1258 ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
1261 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
1263 AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS, 1,
1264 [Define if the struct statfs is defined by <sys/vfs.h>])
1268 if test "$ac_cv_header_sys_statfs_h" = "yes"
1270 AC_CACHE_CHECK( [whether sys/statfs.h defines statfs],
1271 wine_cv_sys_statfs_has_statfs,
1273 #include <sys/types.h>
1274 #ifdef HAVE_SYS_PARAM_H
1275 # include <sys/param.h>
1277 #include <sys/statfs.h>
1280 ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
1283 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
1285 AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS, 1,
1286 [Define if the struct statfs is defined by <sys/statfs.h>])
1290 if test "$ac_cv_header_sys_mount_h" = "yes"
1292 AC_CACHE_CHECK( [whether sys/mount.h defines statfs],
1293 wine_cv_sys_mount_has_statfs,
1295 #include <sys/types.h>
1296 #ifdef HAVE_SYS_PARAM_H
1297 # include <sys/param.h>
1299 #include <sys/mount.h>
1302 ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
1305 if test "$wine_cv_sys_mount_has_statfs" = "yes"
1307 AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT, 1,
1308 [Define if the struct statfs is defined by <sys/mount.h>])
1312 dnl **** FIXME: what about mixed cases, where we need two of them? ***
1314 dnl Check for statfs members
1315 AC_CHECK_MEMBERS([struct statfs.f_bfree, struct statfs.f_bavail],,,
1316 [#include <sys/types.h>
1317 #ifdef HAVE_SYS_PARAM_H
1318 # include <sys/param.h>
1320 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
1321 # include <sys/mount.h>
1323 # ifdef STATFS_DEFINED_BY_SYS_VFS
1324 # include <sys/vfs.h>
1326 # ifdef STATFS_DEFINED_BY_SYS_STATFS
1327 # include <sys/statfs.h>
1332 dnl Check for socket structure members
1333 AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr.sa_len, struct sockaddr_un.sun_len],,,
1334 [#include <sys/types.h>
1335 #ifdef HAVE_SYS_SOCKET_H
1336 # include <sys/socket.h>
1338 #ifdef HAVE_SYS_UN_H
1339 # include <sys/un.h>
1342 dnl Check for siginfo_t members
1343 AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
1345 dnl Check for struct option
1346 AC_CHECK_MEMBERS([struct option.name],,,
1347 [#ifdef HAVE_GETOPT_H
1351 dnl Check for stat.st_blocks
1352 AC_CHECK_MEMBERS([struct stat.st_blocks])
1354 dnl *** check for the need to define platform-specific symbols
1357 *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
1358 *alpha*) WINE_CHECK_DEFINE([__ALPHA__]) ;;
1359 *sparc*) WINE_CHECK_DEFINE([__sparc__]) ;;
1360 *powerpc*) WINE_CHECK_DEFINE([__powerpc__]) ;;
1363 case $host_vendor in
1364 *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
1367 dnl **** Generate output files ****
1369 AH_TOP([#define __WINE_CONFIG_H])
1371 WINE_CONFIG_EXTRA_DIR(controls)
1372 WINE_CONFIG_EXTRA_DIR(dlls/ddraw/d3ddevice)
1373 WINE_CONFIG_EXTRA_DIR(dlls/ddraw/dclipper)
1374 WINE_CONFIG_EXTRA_DIR(dlls/ddraw/ddraw)
1375 WINE_CONFIG_EXTRA_DIR(dlls/ddraw/direct3d)
1376 WINE_CONFIG_EXTRA_DIR(dlls/ddraw/dpalette)
1377 WINE_CONFIG_EXTRA_DIR(dlls/ddraw/dsurface)
1378 WINE_CONFIG_EXTRA_DIR(dlls/dinput/joystick)
1379 WINE_CONFIG_EXTRA_DIR(dlls/dinput/keyboard)
1380 WINE_CONFIG_EXTRA_DIR(dlls/dinput/mouse)
1381 WINE_CONFIG_EXTRA_DIR(dlls/gdi/enhmfdrv)
1382 WINE_CONFIG_EXTRA_DIR(dlls/gdi/mfdrv)
1383 WINE_CONFIG_EXTRA_DIR(dlls/kernel/messages)
1384 WINE_CONFIG_EXTRA_DIR(dlls/user/dde)
1385 WINE_CONFIG_EXTRA_DIR(dlls/user/resources)
1386 WINE_CONFIG_EXTRA_DIR(dlls/wineps/data)
1387 WINE_CONFIG_EXTRA_DIR(files)
1388 WINE_CONFIG_EXTRA_DIR(graphics)
1389 WINE_CONFIG_EXTRA_DIR(graphics/x11drv)
1390 WINE_CONFIG_EXTRA_DIR(include/wine)
1391 WINE_CONFIG_EXTRA_DIR(memory)
1392 WINE_CONFIG_EXTRA_DIR(misc)
1393 WINE_CONFIG_EXTRA_DIR(msdos)
1394 WINE_CONFIG_EXTRA_DIR(objects)
1395 WINE_CONFIG_EXTRA_DIR(programs/regapi/tests)
1396 WINE_CONFIG_EXTRA_DIR(programs/regedit/tests)
1397 WINE_CONFIG_EXTRA_DIR(windows)
1399 MAKE_RULES=Make.rules
1400 AC_SUBST_FILE(MAKE_RULES)
1402 MAKE_DLL_RULES=dlls/Makedll.rules
1403 AC_SUBST_FILE(MAKE_DLL_RULES)
1405 MAKE_TEST_RULES=dlls/Maketest.rules
1406 AC_SUBST_FILE(MAKE_TEST_RULES)
1408 MAKE_LIB_RULES=libs/Makelib.rules
1409 AC_SUBST_FILE(MAKE_LIB_RULES)
1411 MAKE_PROG_RULES=programs/Makeprog.rules
1412 AC_SUBST_FILE(MAKE_PROG_RULES)
1419 programs/Makeprog.rules
1422 dlls/advapi32/Makefile
1423 dlls/advapi32/tests/Makefile
1424 dlls/avicap32/Makefile
1425 dlls/avifil32/Makefile
1426 dlls/cabinet/Makefile
1427 dlls/capi2032/Makefile
1428 dlls/cfgmgr32/Makefile
1429 dlls/comcat/Makefile
1430 dlls/comctl32/Makefile
1431 dlls/comctl32/tests/Makefile
1432 dlls/commdlg/Makefile
1433 dlls/crtdll/Makefile
1434 dlls/crypt32/Makefile
1440 dlls/dciman32/Makefile
1442 dlls/devenum/Makefile
1443 dlls/dinput/Makefile
1444 dlls/dinput8/Makefile
1445 dlls/dmband/Makefile
1446 dlls/dmcompos/Makefile
1448 dlls/dmloader/Makefile
1449 dlls/dmscript/Makefile
1450 dlls/dmstyle/Makefile
1451 dlls/dmsynth/Makefile
1452 dlls/dmusic/Makefile
1453 dlls/dmusic32/Makefile
1455 dlls/dplayx/Makefile
1456 dlls/dpnhpast/Makefile
1457 dlls/dsound/Makefile
1458 dlls/dsound/tests/Makefile
1460 dlls/gdi/tests/Makefile
1463 dlls/imagehlp/Makefile
1465 dlls/iphlpapi/Makefile
1466 dlls/kernel/Makefile
1467 dlls/kernel/tests/Makefile
1468 dlls/lzexpand/Makefile
1469 dlls/mapi32/Makefile
1472 dlls/msacm/imaadp32/Makefile
1473 dlls/msacm/msadp32/Makefile
1474 dlls/msacm/msg711/Makefile
1475 dlls/msacm/winemp3/Makefile
1477 dlls/mshtml/Makefile
1479 dlls/msimg32/Makefile
1480 dlls/msisys/Makefile
1481 dlls/msnet32/Makefile
1482 dlls/msvcrt/Makefile
1483 dlls/msvcrt/tests/Makefile
1484 dlls/msvcrt20/Makefile
1485 dlls/msvcrtd/Makefile
1486 dlls/msvideo/Makefile
1487 dlls/msvideo/msrle32/Makefile
1488 dlls/mswsock/Makefile
1489 dlls/netapi32/Makefile
1490 dlls/netapi32/tests/Makefile
1492 dlls/ntdll/tests/Makefile
1493 dlls/odbc32/Makefile
1495 dlls/oleacc/Makefile
1496 dlls/oleaut32/Makefile
1497 dlls/oleaut32/tests/Makefile
1498 dlls/olecli/Makefile
1499 dlls/oledlg/Makefile
1500 dlls/olepro32/Makefile
1501 dlls/olesvr/Makefile
1502 dlls/opengl32/Makefile
1505 dlls/quartz/Makefile
1506 dlls/rasapi32/Makefile
1507 dlls/richedit/Makefile
1508 dlls/rpcrt4/Makefile
1509 dlls/rpcrt4/tests/Makefile
1510 dlls/serialui/Makefile
1511 dlls/setupapi/Makefile
1512 dlls/shdocvw/Makefile
1513 dlls/shell32/Makefile
1514 dlls/shell32/tests/Makefile
1515 dlls/shfolder/Makefile
1516 dlls/shlwapi/Makefile
1517 dlls/shlwapi/tests/Makefile
1518 dlls/snmpapi/Makefile
1520 dlls/tapi32/Makefile
1521 dlls/ttydrv/Makefile
1524 dlls/urlmon/Makefile
1525 dlls/urlmon/tests/Makefile
1527 dlls/user/tests/Makefile
1528 dlls/uxtheme/Makefile
1529 dlls/version/Makefile
1530 dlls/win32s/Makefile
1531 dlls/winaspi/Makefile
1532 dlls/winedos/Makefile
1533 dlls/wineps/Makefile
1534 dlls/wininet/Makefile
1535 dlls/wininet/tests/Makefile
1537 dlls/winmm/joystick/Makefile
1538 dlls/winmm/mcianim/Makefile
1539 dlls/winmm/mciavi/Makefile
1540 dlls/winmm/mcicda/Makefile
1541 dlls/winmm/mciseq/Makefile
1542 dlls/winmm/mciwave/Makefile
1543 dlls/winmm/midimap/Makefile
1544 dlls/winmm/tests/Makefile
1545 dlls/winmm/wavemap/Makefile
1546 dlls/winmm/winealsa/Makefile
1547 dlls/winmm/winearts/Makefile
1548 dlls/winmm/wineaudioio/Makefile
1549 dlls/winmm/winenas/Makefile
1550 dlls/winmm/winejack/Makefile
1551 dlls/winmm/wineoss/Makefile
1552 dlls/winnls/Makefile
1553 dlls/winsock/Makefile
1554 dlls/winsock/tests/Makefile
1555 dlls/winspool/Makefile
1556 dlls/winspool/tests/Makefile
1557 dlls/wintab32/Makefile
1558 dlls/wintrust/Makefile
1560 dlls/wsock32/Makefile
1561 dlls/x11drv/Makefile
1562 documentation/Makefile
1566 libs/unicode/Makefile
1572 programs/avitools/Makefile
1573 programs/clock/Makefile
1574 programs/cmdlgtst/Makefile
1575 programs/control/Makefile
1576 programs/expand/Makefile
1577 programs/notepad/Makefile
1578 programs/osversioncheck/Makefile
1579 programs/progman/Makefile
1580 programs/regapi/Makefile
1581 programs/regedit/Makefile
1582 programs/regsvr32/Makefile
1583 programs/regtest/Makefile
1584 programs/rpcss/Makefile
1585 programs/rundll32/Makefile
1586 programs/start/Makefile
1587 programs/uninstaller/Makefile
1588 programs/view/Makefile
1589 programs/wcmd/Makefile
1590 programs/wineboot/Makefile
1591 programs/winecfg/Makefile
1592 programs/wineconsole/Makefile
1593 programs/winedbg/Makefile
1594 programs/winefile/Makefile
1595 programs/winemenubuilder/Makefile
1596 programs/winemine/Makefile
1597 programs/winepath/Makefile
1598 programs/winevdm/Makefile
1599 programs/winhelp/Makefile
1600 programs/winver/Makefile
1604 tools/winapi/Makefile
1605 tools/winebuild/Makefile
1606 tools/winedump/Makefile
1607 tools/winegcc/Makefile
1609 tools/wrc/Makefile])
1613 if test "$have_x" = "no"
1616 echo "*** Warning: X development files not found. Wine will be built without"
1617 echo "*** X support, which currently does not work, and would probably not be"
1618 echo "*** what you want anyway. You will need to install devel packages of"
1619 echo "*** Xlib/Xfree86 at the very least."
1622 if test "$wine_cv_opengl_version_OK" = "no"
1625 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
1626 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1629 if test "$wine_cv_msg_freetype" = "yes"
1632 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
1633 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
1634 echo "*** freetype-devel package (or its equivalent on your distribution) to"
1635 echo "*** enable Wine to use TrueType fonts."
1639 echo "Configure finished. Do 'make depend && make' to compile Wine."
1642 dnl Local Variables:
1643 dnl comment-start: "dnl "
1645 dnl comment-start-skip: "\\bdnl\\b\\s *"
1646 dnl compile-command: "autoconf"