Remove WINE_UNUSED checks.
[wine/multimedia.git] / configure.ac
blobf306111f5409ceb9bfdcf6ae6caad1c8035d6ee7
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]))
7 AC_PREREQ(2.53)
8 AC_INIT([Wine],WINE_VERSION,[wine-devel@winehq.org])
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]))
18 AC_ARG_ENABLE(win64, AC_HELP_STRING([--enable-win64], [build a Win64 emulator on AMD64 (won't run Win32 binaries)]))
20 AC_ARG_WITH(opengl,    AC_HELP_STRING([--without-opengl],[do not use OpenGL]))
21 AC_ARG_WITH(curses,    AC_HELP_STRING([--without-curses],[do not use curses]))
22 AC_ARG_WITH(wine-tools,AC_HELP_STRING([--with-wine-tools=<dir>],[use Wine tools from directory <dir>]))
24 AC_SUBST(DLLDEFS,"")
25 if test "x$enable_debug" = "xno"
26 then
27   DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
29 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
30 then
31   DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
34 AC_CANONICAL_HOST
35 case $host in
36   x86_64*linux*)
37     if test "x$enable_win64" != "xyes"
38     then
39       test -n "$CC" || CC="gcc -m32"
40       test -n "$LD" || LD="ld -m elf_i386"
41       test -n "$AS" || AS="as --32"
42       host_cpu="i386"
43     fi
44     ;;
45 esac
47 dnl enable_win16 defaults to yes on x86, to no on other CPUs
48 case $host_cpu in
49   *i[[3456789]]86*)
50     if test "x$enable_win16" != "xno" 
51     then
52       enable_win16="yes"
53     fi
54     ;;
55 esac
56    
57 AC_SUBST(WIN16_FILES,"\$(WIN16_FILES)")
58 AC_SUBST(WIN16_INSTALL,"\$(WIN16_INSTALL)")
59 if test "x$enable_win16" != "xyes"
60 then
61   WIN16_FILES=""
62   WIN16_INSTALL=""
65 dnl **** Check for some programs ****
67 AC_PROG_MAKE_SET
68 AC_PROG_CC
69 AC_PROG_CXX
70 dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E
71 AC_CHECK_TOOL(CPPBIN,cpp,cpp)
73 AC_CACHE_CHECK([for the directory containing the Wine tools], wine_cv_toolsdir,
74   [if test -z "$with_wine_tools"; then
75      if test "$cross_compiling" = "yes"; then
76        AC_MSG_ERROR([you must use the --with-wine-tools option when cross-compiling.])
77      else
78        wine_cv_toolsdir="\$(TOPOBJDIR)"
79      fi
80    elif test -d "$with_wine_tools/tools/winebuild"; then
81      case $with_wine_tools in
82        /*) wine_cv_toolsdir="$with_wine_tools" ;;
83        *)  wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
84      esac
85    else
86      AC_MSG_ERROR([could not find Wine tools in $with_wine_tools.])
87    fi])
88 AC_SUBST(TOOLSDIR,$wine_cv_toolsdir)
90 AC_PATH_XTRA
91 AC_PROG_LEX
93 dnl **** Just additional warning checks, since AC_PROG just sets 'lex' even
94 dnl **** without one present.
95 AC_CHECK_PROGS(XLEX,$LEX flex lex,none)
96 if test "$XLEX" = "none"
97 then
98   AC_MSG_ERROR([no suitable lex found. Please install the 'flex' package.])
101 dnl Check for bison
102 AC_CHECK_PROGS(BISON,bison,none)
103 if test "$BISON" = "none"
104 then
105   AC_MSG_ERROR([no suitable bison found. Please install the 'bison' package.])
108 AC_CHECK_TOOLS(AS,[gas as],as)
109 AC_CHECK_TOOL(LD,ld,ld)
110 AC_CHECK_TOOL(AR,ar,ar)
111 AC_PROG_RANLIB
112 AC_CHECK_TOOL(STRIP,strip,strip)
113 AC_CHECK_TOOL(WINDRES,windres,false)
114 AC_PROG_LN_S
115 WINE_PROG_LN
116 AC_PROG_EGREP
117 AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH])
118 AC_PROG_INSTALL
119 dnl Prepend src dir to install path dir if it's a relative path
120 case "$INSTALL" in
121   [[\\/$]]* | ?:[[\\/]]* ) ;;
122   *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
123 esac
125 dnl Check for lint
126 AC_CHECK_PROGS(LINT, lclint lint)
127 if test "$LINT" = "lint"
128 then
129   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
130   dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
132 AC_SUBST(LINT)
133 AC_SUBST(LINTFLAGS)
135 dnl Check for various programs
136 AC_CHECK_PROGS(FONTFORGE, fontforge, false)
138 dnl **** Check for some libraries ****
140 dnl Check for -li386 for NetBSD and OpenBSD
141 AC_CHECK_LIB(i386,i386_set_ldt)
142 dnl Check for -lossaudio for NetBSD
143 AC_CHECK_LIB(ossaudio,_oss_ioctl)
144 dnl Check for -lw for Solaris
145 AC_CHECK_FUNCS(iswalnum,,AC_CHECK_LIB(w,iswalnum))
146 dnl Check for -lnsl for Solaris
147 AC_CHECK_FUNCS(gethostbyname,,AC_CHECK_LIB(nsl,gethostbyname))
148 dnl Check for -lsocket for Solaris
149 AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
150 dnl Check for -lresolv for Solaris
151 AC_CHECK_FUNCS(inet_aton,,AC_CHECK_LIB(resolv,inet_aton))
152 dnl Check for -lxpg4 for FreeBSD
153 AC_CHECK_LIB(xpg4,_xpg4_setrunelocale)
154 dnl Check for -lpoll for Mac OS X/Darwin
155 AC_CHECK_LIB(poll,poll)
156 dnl Check for -lresolv for Mac OS X/Darwin
157 AC_CHECK_LIB(resolv,res_9_init)
158 dnl Check for -lpthread
159 AC_CHECK_LIB(pthread,pthread_create,AC_SUBST(LIBPTHREAD,"-lpthread"))
161 AC_SUBST(XLIB)
162 AC_SUBST(XFILES)
163 XFILES=""
164 AC_SUBST(OPENGLFILES)
165 OPENGLFILES=""
166 AC_SUBST(GLU32FILES)
167 GLU32FILES=""
168 AC_SUBST(OPENGL_LIBS)
169 OPENGL_LIBS=""
171 dnl **** Check for header files ****
173 AC_CHECK_HEADERS(\
174         IOKit/IOKitLib.h \
175         alsa/asoundlib.h \
176         arpa/inet.h \
177         arpa/nameser.h \
178         asm/types.h \
179         capi20.h \
180         cups/cups.h \
181         curses.h \
182         direct.h \
183         dlfcn.h \
184         elf.h \
185         float.h \
186         fontconfig/fontconfig.h \
187         getopt.h \
188         gif_lib.h \
189         ieeefp.h \
190         io.h \
191         jack/jack.h \
192         jpeglib.h \
193         lber.h \
194         lcms.h \
195         lcms/lcms.h \
196         ldap.h \
197         libaudioio.h \
198         link.h \
199         linux/capi.h \
200         linux/cdrom.h \
201         linux/compiler.h \
202         linux/hdreg.h \
203         linux/input.h \
204         linux/ioctl.h \
205         linux/joystick.h \
206         linux/major.h \
207         linux/param.h \
208         linux/serial.h \
209         linux/ucdrom.h \
210         mach/machine.h \
211         machine/cpu.h \
212         machine/limits.h \
213         machine/soundcard.h \
214         mntent.h \
215         ncurses.h \
216         netdb.h \
217         netinet/in.h \
218         netinet/in_systm.h \
219         netinet/tcp.h \
220         netinet/tcp_fsm.h \
221         openssl/ssl.h \
222         poll.h \
223         process.h \
224         pthread.h \
225         pwd.h \
226         regex.h \
227         sched.h \
228         scsi/scsi.h \
229         scsi/scsi_ioctl.h \
230         scsi/sg.h \
231         soundcard.h \
232         stdint.h \
233         strings.h \
234         sys/asoundlib.h \
235         sys/cdio.h \
236         sys/elf32.h \
237         sys/epoll.h \
238         sys/errno.h \
239         sys/exec_elf.h \
240         sys/filio.h \
241         sys/ioctl.h \
242         sys/ipc.h \
243         sys/link.h \
244         sys/lwp.h \
245         sys/mman.h \
246         sys/modem.h \
247         sys/msg.h \
248         sys/param.h \
249         sys/poll.h \
250         sys/ptrace.h \
251         sys/reg.h \
252         sys/scsiio.h \
253         sys/shm.h \
254         sys/signal.h \
255         sys/socket.h \
256         sys/sockio.h \
257         sys/soundcard.h \
258         sys/statvfs.h \
259         sys/strtio.h \
260         sys/syscall.h \
261         sys/sysctl.h \
262         sys/time.h \
263         sys/times.h \
264         sys/uio.h \
265         sys/un.h \
266         sys/vm86.h \
267         sys/wait.h \
268         syscall.h \
269         termios.h \
270         unicode/ubidi.h \
271         unistd.h \
272         utime.h \
273         valgrind/memcheck.h
275 AC_HEADER_STAT()
277 dnl **** Check for X11 ****
279 if test "$have_x" = "yes"
280 then
281     XLIB="-lXext -lX11"
282     ac_save_CPPFLAGS="$CPPFLAGS"
283     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
285     dnl *** All of the following tests require X11/Xlib.h
286     AC_CHECK_HEADERS([X11/Xlib.h \
287                       X11/XKBlib.h \
288                       X11/Xutil.h \
289                       X11/extensions/shape.h \
290                       X11/extensions/XInput.h \
291                       X11/extensions/XShm.h \
292                       X11/extensions/Xrandr.h \
293                       X11/extensions/Xrender.h \
294                       X11/extensions/xf86dga.h \
295                       X11/extensions/xf86vmode.h],,,
296 [#ifdef HAVE_X11_XLIB_H
297 # include <X11/Xlib.h>
298 #endif
299 #ifdef HAVE_X11_XUTIL_H
300 # include <X11/Xutil.h>
301 #endif])
303         dnl *** Check for X keyboard extension
304         if test "$ac_cv_header_X11_XKBlib_h" = "yes"
305         then
306               AC_CHECK_LIB(X11, XkbQueryExtension,
307               AC_DEFINE(HAVE_XKB, 1, [Define if you have the XKB extension]),,
308               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
309         fi
311         dnl *** Check for X Shm extension
312         if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
313         then
314               AC_CHECK_LIB(Xext, XShmQueryExtension,
315               AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),,
316               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
317         fi
319         dnl *** Check for X shape extension
320         if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
321         then
322               AC_CHECK_LIB(Xext,XShapeQueryExtension,
323               AC_DEFINE(HAVE_LIBXSHAPE, 1, [Define if you have the X Shape extension]),,
324               $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
325         fi
327         dnl *** Check for XFree86 DGA / DGA 2.0 extension
328         if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
329         then
330               AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
331                 [ AC_DEFINE(HAVE_LIBXXF86DGA2, 1,
332                             [Define if you have the Xxf86dga library version 2])
333                   X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
334                 ],,
335                 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
336         fi
338         dnl *** Check for XFree86 VMODE extension
339         if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
340         then
341                 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
342                   [ AC_DEFINE(HAVE_LIBXXF86VM, 1, [Define if you have the Xxf86vm library])
343                      X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
344                   ],,
345                   $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
346         fi
348         dnl *** Check for X RandR extension
349         if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
350         then
351                 AC_TRY_COMPILE([#include <X11/Xlib.h>
352 #include <X11/extensions/Xrandr.h>],[static typeof(XRRSetScreenConfigAndRate) * func;],
353                   [AC_DEFINE(HAVE_LIBXRANDR, 1, [Define if you have the Xrandr library])])
354         fi
356         dnl *** Check for Transform functions in Xrender
357         if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
358         then
359               AC_CHECK_LIB(Xrender, XRenderSetPictureTransform,
360                 [AC_DEFINE(HAVE_XRENDERSETPICTURETRANSFORM, 1,
361                  [Define if Xrender has the XRenderSetPictureTransform function])],,
362                 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
363         fi
364     dnl *** End of X11/Xlib.h check
366     dnl Check for the presence of OpenGL
367     if test "x$with_opengl" != "xno"
368     then
369         AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h,,,
370 [#ifdef HAVE_GL_GLX_H
371 # include <GL/glx.h>
372 #endif])
373         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
374         then
375             dnl Check for some problems due to old Mesa versions
376             AC_CACHE_CHECK([for up-to-date OpenGL version], wine_cv_opengl_version_OK,
377               AC_TRY_COMPILE(
378                 [#include <GL/gl.h>],
379                 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
380                 [wine_cv_opengl_version_OK="yes"],
381                 [wine_cv_opengl_version_OK="no"]
382               )
383             )
385             if test "$wine_cv_opengl_version_OK" = "yes"
386             then
387                 dnl Check for the presence of the library
388                 AC_CHECK_LIB(GL,glXCreateContext,
389                              OPENGL_LIBS="-lGL"
390                              ,,
391                              $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
393                 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
394                 then
395                         OPENGLFILES='$(OPENGLFILES)'
396                         AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system])
397                 else
398                     if test -f /usr/X11R6/lib/libGL.a
399                     then 
400                        AC_MSG_ERROR([/usr/X11R6/lib/libGL.a is present on your system.
401 This prevents linking to OpenGL. Delete the file and restart configure.])
402                     fi
403                 fi
405                 dnl Check for GLU32 library.
406                 AC_CHECK_LIB(GLU,gluLookAt,
407                              [OPENGL_LIBS="$OPENGL_LIBS -lGLU"
408                              GLU32FILES='$(GLU32FILES)']
409                              ,,
410                              $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
411                 )
412              fi
414              dnl Check for glut32 library.
415              AC_CHECK_LIB(glut,glutMainLoop,
416                        [AC_SUBST(GLUT_LIBS,"-lglut -lXmu -lXi")
417                         AC_SUBST(GLUT32FILES,'$(GLUT32FILES)')],,
418                         $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS)
419          fi
420     fi
422     dnl **** Check for NAS ****
423     AC_SUBST(NASLIBS,"")
424     AC_CHECK_HEADERS(audio/audiolib.h,
425          [AC_CHECK_HEADERS(audio/soundlib.h,,,[#include <audio/audiolib.h>])
426           AC_CHECK_LIB(audio,AuCreateFlow,
427                        [AC_DEFINE(HAVE_NAS,1,[Define if you have NAS including devel headers])
428                         NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"],,
429                        [-lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS])])
431     CPPFLAGS="$ac_save_CPPFLAGS"
432     XFILES='$(XFILES)'
433 else
434     XLIB=""
435     X_CFLAGS=""
436     X_LIBS=""
439 dnl **** Check for libxml2 ****
441 AC_SUBST(XML2LIBS,"")
442 AC_SUBST(XML2INCL,"")
443 ac_save_CPPFLAGS="$CPPFLAGS"
444 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
445 AC_CHECK_HEADERS(libxml/parser.h,
446     [AC_CHECK_LIB(xml2, xmlReadIO,
447         [AC_DEFINE(HAVE_LIBXML2, 1, [Define if you have the libxml2 library])
448          XML2LIBS="-lxml2"
449          XML2INCL="-I/usr/include/libxml2"])])
450 CPPFLAGS="$ac_save_CPPFLAGS"
452 dnl **** Check which curses lib to use ***
453 CURSESLIBS=""
454 if test "x$with_curses" != "xno"
455 then
456     if test "$ac_cv_header_ncurses_h" = "yes"
457     then
458         AC_CHECK_LIB(ncurses,waddch,
459             [AC_DEFINE(HAVE_LIBNCURSES, 1, [Define if you have the ncurses library (-lncurses)])
460              CURSESLIBS="-lncurses"])
461     elif test "$ac_cv_header_curses_h" = "yes"
462     then
463         AC_CHECK_LIB(curses,waddch,
464             [AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have the curses library (-lcurses)])
465              CURSESLIBS="-lcurses"])
466     fi
468 AC_SUBST(CURSESLIBS)
470 dnl **** Check for SANE ****
471 AC_CHECK_PROG(sane_devel,sane-config,sane-config,no)
472 if test "$sane_devel" = "no"
473 then
474     SANELIBS=""
475     SANEINCL=""
476 else
477     SANELIBS="`$sane_devel --libs`"
478     SANEINCL="`$sane_devel --cflags`"
479     ac_save_CPPFLAGS="$CPPFLAGS"
480     ac_save_LIBS="$LIBS"
481     CPPFLAGS="$CPPFLAGS $SANEINCL"
482     LIBS="$LIBS $SANELIBS"
483     AC_CHECK_HEADER(sane/sane.h,
484                     [AC_CHECK_LIB(sane,sane_open,
485                                   [AC_DEFINE(HAVE_SANE, 1, [Define if we have SANE development environment])],
486                                   [SANELIBS=""
487                                   SANEINCL=""])],
488                     [SANELIBS=""
489                     SANEINCL=""])
490     LIBS="$ac_save_LIBS"
491     CPPFLAGS="$ac_save_CPPFLAGS"
493 AC_SUBST(SANELIBS)
494 AC_SUBST(SANEINCL)
496 dnl **** Check for the ICU library ****
497 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
498 then
499     saved_libs="$LIBS"
500     ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
501     ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
502     ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
503     AC_MSG_CHECKING(whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB)
504     LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
505     AC_TRY_LINK([#include <unicode/ubidi.h>],[ubidi_open()],
506                 [AC_DEFINE(HAVE_ICU,1,[Define to 1 if the ICU libraries are installed])
507                  AC_SUBST(ICULIBS,"$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s")
508                  AC_MSG_RESULT(yes)],
509                 [AC_MSG_RESULT(no)])
510     LIBS="$saved_libs"
513 dnl **** Check for LittleCMS ***
514 AC_SUBST(LCMSLIBS,"")
515 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
516 then
517     AC_CHECK_LIB(lcms, cmsOpenProfileFromFile,
518         [AC_DEFINE(HAVE_LCMS, 1, [Define if you have the LittleCMS development environment])
519          LCMSLIBS="-llcms"])
522 dnl **** Check for OpenLDAP ***
523 AC_SUBST(LDAPLIBS,"")
524 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
525 then
526     AC_CHECK_LIB(ldap, ldap_init,
527         [AC_CHECK_LIB(lber, ber_init,
528             [AC_DEFINE(HAVE_LDAP, 1, [Define if you have the OpenLDAP development environment])
529              LDAPLIBS="-lldap -llber"])])
532 dnl **** Check for FreeType 2 ****
533 AC_CHECK_LIB(freetype,FT_Init_FreeType,ft_lib=yes,ft_lib=no,$X_LIBS)
534 if test "$ft_lib" = "no"
535 then
536     FREETYPELIBS=""
537     FREETYPEINCL=""
538     wine_cv_msg_freetype=no
539 else
540     AC_CHECK_PROG(ft_devel,freetype-config,freetype-config,no)
541     if test "$ft_devel" = "no"
542     then
543         AC_CHECK_PROG(ft_devel2,freetype2-config,freetype2-config,no)
544         if test "$ft_devel2" = "freetype2-config"
545         then
546                 ft_devel=$ft_devel2
547         fi
548     fi
549     if test "$ft_devel" = "no"
550     then
551         FREETYPELIBS=""
552         FREETYPEINCL=""
553         wine_cv_msg_freetype=yes
554     else
555         FREETYPELIBS=`$ft_devel --libs`
556         FREETYPEINCL=`$ft_devel --cflags`
557         ac_save_CPPFLAGS="$CPPFLAGS"
558         CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
559         AC_CHECK_HEADERS(ft2build.h \
560                          freetype/freetype.h \
561                          freetype/ftglyph.h \
562                          freetype/tttables.h \
563                          freetype/ftnames.h \
564                          freetype/ftsnames.h \
565                          freetype/ttnameid.h \
566                          freetype/ftoutln.h \
567                          freetype/ftwinfnt.h \
568                          freetype/internal/sfnt.h,,,
569                          [#if HAVE_FT2BUILD_H
570                           #include <ft2build.h>
571                           #endif])
572         AC_TRY_CPP([#include <ft2build.h>
573                     #include <freetype/fttrigon.h>],
574                     [AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1,
575           [Define if you have the <freetype/fttrigon.h> header file.])
576                     wine_cv_fttrigon=yes],
577                     wine_cv_fttrigon=no)
578         CPPFLAGS="$ac_save_CPPFLAGS"
579         dnl Check that we have at least freetype/freetype.h
580         if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
581         then
582             AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
583             wine_cv_msg_freetype=no
584         else
585             FREETYPELIBS=""
586             FREETYPEINCL=""
587             wine_cv_msg_freetype=yes
588         fi
589     fi
591 AC_SUBST(FREETYPELIBS)
592 AC_SUBST(FREETYPEINCL)
594 dnl Only build the fonts dir if we have both freetype and fontforge
595 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
596 then
597   AC_SUBST(FONTSSUBDIRS,"fonts")
600 dnl **** Check for parport (currently Linux only) ****
601 AC_CACHE_CHECK([for parport header/ppdev.h], ac_cv_c_ppdev,
602  AC_TRY_COMPILE(
603    [#include <linux/ppdev.h>],
604    [ioctl (1,PPCLAIM,0)],
605    [ac_cv_c_ppdev="yes"],
606    [ac_cv_c_ppdev="no"])
608 if test "$ac_cv_c_ppdev" = "yes"
609 then
610     AC_DEFINE(HAVE_PPDEV, 1, [Define if we can use ppdev.h for parallel port access])
613 dnl **** Check for va_copy ****
614 AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy,
615  AC_TRY_LINK(
616    [#include <stdarg.h>],
617    [va_list ap1, ap2;
618     va_copy(ap1,ap2);
619    ],
620    [ac_cv_c_va_copy="yes"],
621    [ac_cv_c_va_copy="no"])
623 if test "$ac_cv_c_va_copy" = "yes"
624 then
625     AC_DEFINE(HAVE_VA_COPY, 1, [Define if we have va_copy])
627 AC_CACHE_CHECK([for __va_copy], ac_cv_c___va_copy,
628  AC_TRY_LINK(
629    [#include <stdarg.h>],
630    [va_list ap1, ap2;
631     __va_copy(ap1,ap2);
632    ],
633    [ac_cv_c___va_copy="yes"],
634    [ac_cv_c___va_copy="no"])
636 if test "$ac_cv_c___va_copy" = "yes"
637 then
638     AC_DEFINE(HAVE___VA_COPY, 1, [Define if we have __va_copy])
641 dnl **** Check for sigsetjmp ****
642 AC_CACHE_CHECK([for sigsetjmp], ac_cv_c_sigsetjmp,
643  AC_TRY_LINK(
644    [#include <setjmp.h>],
645    [sigjmp_buf buf;
646     sigsetjmp( buf, 1 );
647     siglongjmp( buf, 1 );],
648    [ac_cv_c_sigsetjmp="yes"],
649    [ac_cv_c_sigsetjmp="no"])
651 if test "$ac_cv_c_sigsetjmp" = "yes"
652 then
653     AC_DEFINE(HAVE_SIGSETJMP, 1, [Define to 1 if you have the sigsetjmp (and siglongjmp) function])
656 dnl **** Check for pthread_rwlock_t ****
657 AC_CHECK_TYPES([pthread_rwlock_t, pthread_rwlockattr_t],,,[#define _GNU_SOURCE
658 #include <pthread.h>])
660 dnl **** Check for pthread functions ****
661 ac_save_LIBS="$LIBS"
662 LIBS="$LIBS $LIBPTHREAD"
663 AC_CHECK_FUNCS(\
664         pthread_getattr_np \
665         pthread_get_stackaddr_np \
666         pthread_get_stacksize_np \
668 LIBS="$ac_save_LIBS"
670 dnl **** Check for Open Sound System ****
671 AC_CACHE_CHECK([for Open Sound System],
672         ac_cv_c_opensoundsystem,
673         AC_TRY_COMPILE([
674         #if defined(HAVE_SYS_SOUNDCARD_H)
675                 #include <sys/soundcard.h>
676         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
677                 #include <machine/soundcard.h>
678         #elif defined(HAVE_SOUNDCARD_H)
679                 #include <soundcard.h>
680         #endif
681         ],[
683 /* check for one of the Open Sound System specific SNDCTL_ defines */
684 #if !defined(SNDCTL_DSP_STEREO)
685 #error No open sound system
686 #endif
687 ],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
689 if test "$ac_cv_c_opensoundsystem" = "yes"
690 then
691     AC_DEFINE(HAVE_OSS, 1, [Define if you have the Open Sound system])
694 AC_CACHE_CHECK([for Open Sound System/MIDI interface],
695         ac_cv_c_opensoundsystem_midi,
696         AC_TRY_COMPILE([
697         #if defined(HAVE_SYS_SOUNDCARD_H)
698                 #include <sys/soundcard.h>
699         #elif defined(HAVE_MACHINE_SOUNDCARD_H)
700                 #include <machine/soundcard.h>
701         #elif defined(HAVE_SOUNDCARD_H)
702                 #include <soundcard.h>
703         #endif
704         ],[
706 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
707 #if !defined(SNDCTL_SEQ_SYNC)
708 #error No open sound system MIDI interface
709 #endif
710 ],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
712 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
713 then
714     AC_DEFINE(HAVE_OSS_MIDI, 1, [Define if you have the Open Sound system (MIDI interface)])
717 dnl **** Check for aRts Sound Server ****
718 AC_PATH_PROG(ARTSCCONFIG, artsc-config)
719 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
720 then
721     ARTSC_CFLAGS=""
722     for i in `$ARTSCCONFIG --cflags`
723     do
724       case "$i" in
725         -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
726       esac
727     done
728     ARTSC_LIBS=`$ARTSCCONFIG --libs`
729     save_CFLAGS="$CFLAGS"
730     CFLAGS="$CFLAGS $ARTSC_CFLAGS"
731     AC_CHECK_LIB(artsc,arts_init,
732         [AC_TRY_COMPILE([#include <artsc.h>],[arts_stream_t stream;],
733             [AC_SUBST(ARTSLIBS, $ARTSC_LIBS)
734             AC_SUBST(ARTSINCL, $ARTSC_CFLAGS)
735             AC_DEFINE(HAVE_ARTS, 1, [Define if you have ARTS sound server])])],,
736             $ARTSC_LIBS)
737     CFLAGS="$save_CFLAGS"
740 dnl **** Check for EsounD ****
741 AC_PATH_PROG(ESDCONFIG, esd-config)
742 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
743 then
744     ESD_CFLAGS=""
745     for i in `$ESDCONFIG --cflags`
746     do
747       case "$i" in
748         -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
749       esac
750     done
751     ESD_LIBS=`$ESDCONFIG --libs`
752     save_CFLAGS="$CFLAGS"
753     CFLAGS="$CFLAGS $ESD_CFLAGS"
754     AC_CHECK_LIB(esd,esd_open_sound,
755         [AC_SUBST(ESDLIBS, $ESD_LIBS)
756          AC_SUBST(ESDINCL, $ESD_CFLAGS)
757          AC_DEFINE(HAVE_ESD, 1, [Define if you have EsounD sound server])])
758     CFLAGS="$save_CFLAGS"
761 dnl **** Check for ALSA 1.x ****
762 AC_SUBST(ALSALIBS,"")
763 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
764 then
765     AC_CHECK_LIB(asound,snd_pcm_hw_params_get_access,
766         [AC_TRY_COMPILE([#ifdef HAVE_ALSA_ASOUNDLIB_H
767 #include <alsa/asoundlib.h>
768 #elif defined(HAVE_SYS_ASOUNDLIB_H)
769 #include <sys/asoundlib.h>
770 #endif],
771                         [int ret = snd_pcm_hw_params_get_access(NULL, NULL)],
772                         [AC_DEFINE(HAVE_ALSA,1,[Define if you have ALSA 1.x including devel headers])
773                          ALSALIBS="-lasound"])])
776 dnl **** Check for libaudioio (which can be used to get solaris audio support) ****
778 AC_SUBST(AUDIOIOLIBS,"")
779 if test "$ac_cv_header_libaudioio_h" = "yes"
780 then
781     AC_CHECK_LIB(audioio,AudioIOGetVersion,
782                   [AUDIOIOLIBS="-laudioio"
783                    AC_DEFINE(HAVE_LIBAUDIOIO, 1, [Define if you have libaudioIO])])
786 dnl **** Check for capi4linux ****
788 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
789 then
790     AC_CHECK_LIB(capi20,capi20_register,[AC_DEFINE(HAVE_CAPI4LINUX,1,[Define if you have capi4linux libs and headers])])
793 dnl **** Check for gcc specific options ****
795 AC_SUBST(EXTRACFLAGS,"")
796 if test "x${GCC}" = "xyes"
797 then
798   EXTRACFLAGS="-Wall -pipe"
800   dnl Check for strength-reduce bug
801   AC_CACHE_CHECK( [for gcc strength-reduce bug], ac_cv_c_gcc_strength_bug,
802                   AC_TRY_RUN([
803 int     L[[4]] = {0,1,2,3};
804 int main(void) {
805   static int Array[[3]];
806   unsigned int B = 3;
807   int i;
808   for(i=0; i<B; i++) Array[[i]] = i - 3;
809   for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
810   L[[i]] = 4;
812   exit( Array[[1]] != -2 || L[[2]] != 3);
814     ac_cv_c_gcc_strength_bug="no",
815     ac_cv_c_gcc_strength_bug="yes",
816     ac_cv_c_gcc_strength_bug="yes") )
817   if test "$ac_cv_c_gcc_strength_bug" = "yes"
818   then
819     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
820   fi
822   dnl Check for -fshort-wchar
823   AC_CACHE_CHECK([for gcc -fshort-wchar support], ac_cv_c_gcc_fshort_wchar,
824       [WINE_TRY_CFLAGS([-fshort-wchar],
825                       ac_cv_c_gcc_fshort_wchar="yes",ac_cv_c_gcc_fshort_wchar="no")])
826   if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
827   then
828       AC_DEFINE(CC_FLAG_SHORT_WCHAR, "-fshort-wchar", [Specifies the compiler flag that forces a short wchar_t])
829   fi
831   dnl Check for -mpreferred-stack-boundary
832   AC_CACHE_CHECK([for gcc -mpreferred-stack-boundary=2 support], ac_cv_c_gcc_stack_boundary,
833       [WINE_TRY_CFLAGS([-mpreferred-stack-boundary=2],
834                       ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")])
835   if test "$ac_cv_c_gcc_stack_boundary" = "yes"
836   then
837     EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
838   fi
840   dnl Check for -fno-strict-aliasing
841   AC_CACHE_CHECK([for gcc -fno-strict-aliasing support], ac_cv_c_gcc_no_strict_aliasing,
842       [WINE_TRY_CFLAGS([-fno-strict-aliasing],
843                       ac_cv_c_gcc_no_strict_aliasing="yes",ac_cv_c_gcc_no_strict_aliasing="no")])
844   if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
845   then
846     EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
847   fi
849   dnl Check for -gstabs+ option
850   AC_CACHE_CHECK([for gcc -gstabs+ support], ac_cv_c_gcc_gstabs,
851       [WINE_TRY_CFLAGS([-gstabs+],ac_cv_c_gcc_gstabs="yes", ac_cv_c_gcc_gstabs="no")])
852   if test "$ac_cv_c_gcc_gstabs" = "yes"
853   then
854     EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
855   fi
857   dnl Check for noisy string.h
858   saved_CFLAGS="$CFLAGS"
859   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
860   AC_CACHE_CHECK([for broken string.h that generates warnings], ac_cv_c_string_h_warnings,
861       AC_TRY_COMPILE([#include <string.h>],[],
862                      [ac_cv_c_string_h_warnings=no],[ac_cv_c_string_h_warnings=yes]))
863   CFLAGS="$saved_CFLAGS"
864   if test "$ac_cv_c_string_h_warnings" = "no"
865   then
866     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
867   fi
870 dnl **** Check how to define a function in assembly code ****
872 AC_CACHE_CHECK([how to define a function in assembly code], ac_cv_asm_func_def,
873   WINE_TRY_ASM_LINK(
874       ["\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"],,,
875       ac_cv_asm_func_def=".def",
876     [WINE_TRY_ASM_LINK(["\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"],,,
877       ac_cv_asm_func_def=".type @function",
878     [WINE_TRY_ASM_LINK(["\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"],,,
879       ac_cv_asm_func_def=".type 2",
880       ac_cv_asm_func_def="unknown")])]))
882 AH_TEMPLATE(__ASM_FUNC,[Define to a macro to generate an assembly function directive])
883 case "$ac_cv_asm_func_def" in
884   ".def")
885      AC_DEFINE([__ASM_FUNC(name)], [".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"]) ;;
886   ".type @function")
887      AC_DEFINE([__ASM_FUNC(name)], [".type " __ASM_NAME(name) ",@function"]) ;;
888   ".type 2")
889      AC_DEFINE([__ASM_FUNC(name)], [".type " __ASM_NAME(name) ",2"]) ;;
890   *)
891      AC_DEFINE([__ASM_FUNC(name)], [""]) ;;
892 esac
894 dnl **** Check for underscore on external symbols ****
896 AC_CACHE_CHECK([whether external symbols need an underscore prefix], ac_cv_c_extern_prefix,
897     WINE_TRY_ASM_LINK([".globl _ac_test\n_ac_test:\t.long 0"],
898                       [extern int ac_test;],
899                       [if (ac_test) return 1],
900                       ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no"))
902 AH_TEMPLATE(__ASM_NAME,[Define to a macro to generate an assembly name from a C symbol])
903 if test "$ac_cv_c_extern_prefix" = "yes"
904 then
905   AC_DEFINE([__ASM_NAME(name)], ["_" name])
906 else
907   AC_DEFINE([__ASM_NAME(name)], [name])
910 dnl **** Check for working dll ****
912 AC_SUBST(DLLEXT,"")
913 AC_SUBST(DLLFLAGS,"-D_REENTRANT")
914 AC_SUBST(DLLIBS,"")
915 AC_SUBST(LDSHARED,"")
916 AC_SUBST(LDDLLFLAGS,"")
917 AC_SUBST(LIBEXT,"so")
918 AC_SUBST(IMPLIBEXT,"def")
920 case $host_os in
921   cygwin*|mingw32*)
922     AC_CHECK_TOOL(DLLTOOL,dlltool,false)
923     AC_CHECK_TOOL(DLLWRAP,dllwrap,false)
924     if test "$DLLWRAP" = "false"; then
925       LIBEXT="a"
926     else
927       dnl FIXME - check whether dllwrap works correctly...
928       LIBEXT="dll"
929     fi
930     IMPLIBEXT="a"
931     dnl We can't build 16-bit NE dlls
932     WIN16_FILES=""
933     WIN16_INSTALL=""
934     ;;
935   *)
936     if test "$ac_cv_header_dlfcn_h" = "yes"
937     then
938         AC_CHECK_FUNCS(dlopen,,
939             [AC_CHECK_LIB(dl,dlopen,
940                          [AC_DEFINE(HAVE_DLOPEN,1,[Define if you have dlopen])
941                           DLLIBS="-ldl"],
942                          [LIBEXT="a"])])
943     else
944         LIBEXT="a"
945     fi
947     if test "$LIBEXT" = "so"
948     then
949       DLLFLAGS="$DLLFLAGS -fPIC"
950       DLLEXT=".so"
951       AC_CACHE_CHECK([whether we can build a GNU style ELF dll], ac_cv_c_dll_gnuelf,
952           [WINE_TRY_SHLIB_FLAGS([-fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic],
953                                 ac_cv_c_dll_gnuelf="yes",ac_cv_c_dll_gnuelf="no")])
954       if test "$ac_cv_c_dll_gnuelf" = "yes"
955       then
956         LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
957         LDDLLFLAGS="-shared -Wl,-Bsymbolic"
958         AC_CACHE_CHECK([whether the linker accepts -z defs], ac_cv_c_dll_zdefs,
959           [WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-z,defs],
960                            ac_cv_c_dll_zdefs="yes",ac_cv_c_dll_zdefs="no")])
961         if test "$ac_cv_c_dll_zdefs" = "yes"
962         then
963           LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
964         fi
966         AC_CACHE_CHECK([whether the linker accepts -init and -fini], ac_cv_c_dll_init_fini,
967           [WINE_TRY_CFLAGS([-fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini],
968                            ac_cv_c_dll_init_fini="yes",ac_cv_c_dll_init_fini="no")])
969         if test "$ac_cv_c_dll_init_fini" = "yes"
970         then
971           LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
972         fi
974         AC_CACHE_CHECK([whether the linker accepts version scripts], ac_cv_c_ld_version_scripts,
975           [echo '{ global: *; };' >conftest.map
976            WINE_TRY_CFLAGS([-fPIC -shared -Wl,--version-script=conftest.map],
977                            ac_cv_c_ld_version_scripts="yes",ac_cv_c_ld_version_scripts="no")
978            rm -f conftest.map])
979         if test "$ac_cv_c_ld_version_scripts" = "yes"
980         then
981           LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
982         fi
984         AC_CACHE_CHECK([whether the linker accepts --export-dynamic], ac_cv_c_export_dynamic,
985           [WINE_TRY_CFLAGS([-fPIC -Wl,--export-dynamic],
986                            ac_cv_c_export_dynamic="yes",ac_cv_c_export_dynamic="no")])
987         if test "$ac_cv_c_export_dynamic" = "yes"
988         then
989           AC_SUBST(LDEXECFLAGS,["-Wl,--export-dynamic"])
990         fi
992         case $host_cpu in
993           *i[[3456789]]86*)
994             AC_CACHE_CHECK([whether we can relocate the executable to 0x7bf00000], ac_cv_ld_reloc_exec,
995               [WINE_TRY_CFLAGS([-Wl,--section-start,.interp=0x7bf00400],
996                                ac_cv_ld_reloc_exec="yes", ac_cv_ld_reloc_exec="no")])
997             if test "$ac_cv_ld_reloc_exec" = "yes"
998             then
999               LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
1000             fi
1001             ;;
1002         esac
1004       else
1005         AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll, ac_cv_c_dll_unixware,
1006             [WINE_TRY_SHLIB_FLAGS([-fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic],
1007                                   ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")])
1008         if test "$ac_cv_c_dll_unixware" = "yes"
1009         then
1010           LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
1011           LDDLLFLAGS="-Wl,-G,-B,symbolic"
1013         else
1014           AC_CACHE_CHECK(whether we can build a Mach-O (Mac OS X/Darwin) dll, ac_cv_c_dll_macho,
1015             [WINE_TRY_SHLIB_FLAGS([-bundle], ac_cv_c_dll_macho="yes", ac_cv_c_dll_macho="no")])
1016           if test "$ac_cv_c_dll_macho" = "yes"
1017           then
1018             LIBEXT="dylib"
1019             LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
1020             LDSHARED="\$(CC) -dynamiclib"
1021             CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
1022             STRIP="$STRIP -u -r"
1023             dnl Relocate wine executable
1024             AC_SUBST(LDEXECFLAGS,"-seg1addr 0x120000")
1025             dnl Relocate libwine.dyld too
1026             AC_SUBST(LDLIBWINEFLAGS,"-seg1addr 0x140000")
1027             dnl declare needed frameworks
1028             AC_SUBST(COREFOUNDATIONLIB,"-framework CoreFoundation")
1029             AC_SUBST(IOKITLIB,"-framework IOKit")
1030             dnl using IOKit imply we use CoreFoundation too
1031             IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
1032           else
1033             AC_CACHE_CHECK(whether we can build an HP-UX dll, ac_cv_c_dll_hpux,
1034               [WINE_TRY_SHLIB_FLAGS([-shared], ac_cv_c_dll_hpux="yes", ac_cv_c_dll_hpux="no")])
1035             if test "$ac_cv_c_dll_hpux" = "yes"
1036             then
1037               LIBEXT="sl"
1038               DLLEXT=".sl"
1039               LDDLLFLAGS="-shared -fPIC"
1040               LDSHARED="\$(CC) -shared"
1041             fi
1042           fi
1043         fi
1044       fi
1045     fi
1047     dnl Check for cross compiler to build test programs
1048     AC_SUBST(CROSSTEST,"")
1049     if test "$cross_compiling" = "no"
1050     then
1051       AC_CHECK_PROGS(CROSSCC,i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc,false)
1052       AC_CHECK_PROGS(DLLTOOL,i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool,false)
1053       AC_CHECK_PROGS(CROSSWINDRES,i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres,false)
1054       if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
1055     fi
1056     ;;
1057 esac
1059 if test "$LIBEXT" = "a"; then
1060   AC_MSG_ERROR(
1061 [could not find a way to build shared libraries.
1062 It is currently not possible to build Wine without shared library
1063 (.so) support to allow transparent switch between .so and .dll files.
1064 If you are using Linux, you will need a newer binutils.]
1068 case $build_os in
1069   cygwin*|mingw32*)
1070     AC_SUBST(LDPATH,"PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"") ;;
1071   darwin*|macosx*)
1072     AC_SUBST(LDPATH,"DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\"") ;;
1073   *)
1074     AC_SUBST(LDPATH,"LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"") ;;
1075 esac
1077 dnl Mingw needs explicit msvcrt for linking libwine and winsock for wininet
1078 case $host_os in
1079   mingw32*)
1080     AC_SUBST(CRTLIBS,"-lmsvcrt")
1081     AC_SUBST(SOCKETLIBS,"-lws2_32")
1082     ;;
1083 esac
1085 case $host_os in
1086   linux*)
1087     case $host_cpu in
1088       *i[[3456789]]86*) AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread wine-preloader") ;;
1089       *) AC_SUBST(WINE_BINARIES,"wine-glibc wine-kthread wine-pthread") ;;
1090     esac
1091     AC_SUBST(MAIN_BINARY,"wine-glibc")
1092     ;;
1093   darwin*)
1094     AC_SUBST(WINE_BINARIES,"wine-pthread")
1095     AC_SUBST(MAIN_BINARY,"wine-pthread")
1096     ;;
1097   *)
1098     AC_SUBST(WINE_BINARIES,"wine-kthread")
1099     AC_SUBST(MAIN_BINARY,"wine-kthread")
1100     ;;
1101 esac
1103 dnl **** Get the soname for libraries that we load dynamically ****
1105 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
1106 then
1107   WINE_GET_SONAME(X11,XCreateWindow,[$X_LIBS $X_EXTRA_LIBS])
1108   WINE_GET_SONAME(Xext,XextCreateExtension,[$X_LIBS -lX11 $X_EXTRA_LIBS])
1109   WINE_GET_SONAME(Xi,XOpenDevice,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
1110   WINE_GET_SONAME(Xrender,XRenderQueryExtension,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
1111   WINE_GET_SONAME(Xrandr,XRRQueryExtension,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
1112   WINE_GET_SONAME(freetype,FT_Init_FreeType,[$X_LIBS])
1113   WINE_GET_SONAME(GL,glXQueryExtension,[$X_LIBS $X_EXTRA_LIBS])
1114   WINE_GET_SONAME(txc_dxtn,fetch_2d_texel_rgba_dxt1)
1115   WINE_GET_SONAME(cups,cupsGetDefault)
1116   WINE_GET_SONAME(jack,jack_client_new)
1117   WINE_GET_SONAME(fontconfig,FcInit)
1118   WINE_GET_SONAME(ssl,SSL_library_init)
1119   WINE_GET_SONAME(crypto,BIO_new_socket)
1120   WINE_GET_SONAME(ncurses,waddch)
1121   WINE_GET_SONAME(curses,waddch)
1122   WINE_GET_SONAME(jpeg,jpeg_start_decompress)
1123   WINE_GET_SONAME(ungif,DGifOpen)
1124   WINE_GET_SONAME(gif,DGifOpen)
1125   WINE_GET_SONAME(capi20,capi20_isinstalled)
1129 dnl **** Check for functions ****
1131 AC_FUNC_ALLOCA()
1132 AC_CHECK_FUNCS(\
1133         _lwp_create \
1134         _lwp_self \
1135         _pclose \
1136         _popen \
1137         _snprintf \
1138         _spawnvp \
1139         _stricmp \
1140         _strnicmp \
1141         _vsnprintf \
1142         chsize \
1143         clone \
1144         epoll_create \
1145         ffs \
1146         finite \
1147         fork \
1148         fpclass \
1149         fstatfs \
1150         fstatvfs \
1151         ftruncate \
1152         futimes \
1153         futimesat \
1154         getnetbyname \
1155         getopt_long \
1156         getpagesize \
1157         getprotobyname \
1158         getprotobynumber \
1159         getpwuid \
1160         getservbyport \
1161         gettid \
1162         gettimeofday \
1163         getuid \
1164         inet_network \
1165         lstat \
1166         memmove \
1167         mmap \
1168         pclose \
1169         popen \
1170         pread \
1171         pwrite \
1172         readlink \
1173         rfork \
1174         sched_yield \
1175         select \
1176         sendmsg \
1177         settimeofday \
1178         sigaltstack \
1179         sigprocmask \
1180         snprintf \
1181         spawnvp \
1182         statfs \
1183         statvfs \
1184         strcasecmp \
1185         strerror \
1186         strncasecmp \
1187         tcgetattr \
1188         timegm \
1189         usleep \
1190         vsnprintf \
1191         wait4 \
1192         waitpid \
1195 dnl **** Checks for headers that depend on other ones ****
1197 AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,
1198     [#include <sys/types.h>
1199      #if HAVE_SYS_PARAM_H
1200      # include <sys/param.h>
1201      #endif])
1203 AC_CHECK_HEADERS([net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h],,,
1204     [#include <sys/types.h>
1205      #if HAVE_SYS_SOCKET_H
1206      # include <sys/socket.h>
1207      #endif])
1209 AC_CHECK_HEADERS([resolv.h],,,
1210     [#include <sys/types.h>
1211      #if HAVE_SYS_SOCKET_H
1212      # include <sys/socket.h>
1213      #endif
1214      #if HAVE_NETINET_IN_H
1215      # include <netinet/in.h>
1216      #endif
1217      #if HAVE_ARPA_NAMESER_H
1218      # include <arpa/nameser.h>
1219      #endif])
1221 AC_CHECK_HEADERS(ucontext.h,,,[#include <signal.h>])
1223 AC_CHECK_HEADERS([linux/ipx.h linux/videodev.h],,,
1224 [#ifdef HAVE_SYS_TIME_H
1225 #include <sys/time.h>
1226 #endif
1227 #include <sys/types.h>
1228 #ifdef HAVE_ASM_TYPES_H
1229 #include <asm/types.h>
1230 #endif])
1232 dnl **** Check for types ****
1234 AC_C_CONST
1235 AC_C_INLINE
1236 AC_CHECK_TYPES([mode_t, off_t, pid_t, size_t, ssize_t, long long, fsblkcnt_t, fsfilcnt_t])
1237 AC_CHECK_TYPES([sigset_t],,,[#include <signal.h>])
1238 AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
1240 AC_CACHE_CHECK([whether linux/input.h is for real],
1241         wine_cv_linux_input_h,
1242         AC_TRY_COMPILE([
1243             #include <linux/input.h>
1244         ] , [
1245             int foo = EVIOCGBIT(EV_ABS,42);
1246             int bar = BTN_PINKIE;
1247             int fortytwo = 42;
1248         ],
1249         wine_cv_linux_input_h=yes,
1250         wine_cv_linux_input_h=no,
1251         no
1252         )
1253     )
1254     if test "$wine_cv_linux_input_h" = "yes"
1255     then
1256         AC_DEFINE(HAVE_CORRECT_LINUXINPUT_H, 1,
1257                   [Define if we have linux/input.h AND it contains the INPUT event API])
1258     fi
1260 AC_CHECK_MEMBERS([struct ff_effect.direction],,,
1261 [#ifdef HAVE_LINUX_INPUT_H
1262 #include <linux/input.h>
1263 #endif])
1265 AC_CACHE_CHECK([for sigaddset],wine_cv_have_sigaddset,
1266                AC_TRY_LINK([#include <signal.h>],[sigset_t set; sigaddset(&set,SIGTERM);],
1267                            wine_cv_have_sigaddset=yes,wine_cv_have_sigaddset=no))
1268 if test "$wine_cv_have_sigaddset" = "yes"
1269 then
1270   AC_DEFINE(HAVE_SIGADDSET, 1, [Define if sigaddset is supported])
1274 AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style],
1275         wine_cv_linux_gethostbyname_r_6,
1276         AC_TRY_LINK([
1277 #include <netdb.h>
1278         ], [
1279     char *name=NULL;
1280     struct hostent he;
1281     struct hostent *result;
1282     char *buf=NULL;
1283     int bufsize=0;
1284     int res,errnr;
1285     char *addr=NULL;
1286     int addrlen=0;
1287     int addrtype=0;
1288     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
1289     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
1290     ],
1291         wine_cv_linux_gethostbyname_r_6=yes,
1292         wine_cv_linux_gethostbyname_r_6=no
1293         )
1294    )
1295    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
1296    then
1297       AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6, 1,
1298                 [Define if Linux-style gethostbyname_r and gethostbyaddr_r are available])
1299    fi
1301 if test "$ac_cv_header_linux_joystick_h" = "yes"
1302 then
1303    AC_CACHE_CHECK([whether linux/joystick.h uses the Linux 2.2+ API],
1304         wine_cv_linux_joystick_22_api,
1305         AC_TRY_COMPILE([
1306         #include <sys/ioctl.h>
1307         #include <linux/joystick.h>
1309         struct js_event blub;
1310         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
1311         #error "no 2.2 header"
1312         #endif
1313         ],/*empty*/,
1314         wine_cv_linux_joystick_22_api=yes,
1315         wine_cv_linux_joystick_22_api=no,
1316         wine_cv_linux_joystick_22_api=no
1317         )
1318    )
1319    if test "$wine_cv_linux_joystick_22_api" = "yes"
1320    then
1321       AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API, 1,
1322                 [Define if <linux/joystick.h> defines the Linux 2.2 joystick API])
1323    fi
1326 dnl **** statfs checks ****
1328 if test "$ac_cv_header_sys_vfs_h" = "yes"
1329 then
1330     AC_CACHE_CHECK( [whether sys/vfs.h defines statfs],
1331                     wine_cv_sys_vfs_has_statfs,
1332         AC_TRY_COMPILE([
1333         #include <sys/types.h>
1334         #ifdef HAVE_SYS_PARAM_H
1335         # include <sys/param.h>
1336         #endif
1337         #include <sys/vfs.h>
1338         ],[
1339                 struct statfs stfs;
1341                 memset(&stfs,0,sizeof(stfs));
1342         ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
1343         )
1344     )
1345     if test "$wine_cv_sys_vfs_has_statfs" = "yes"
1346     then
1347       AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS, 1,
1348                 [Define if the struct statfs is defined by <sys/vfs.h>])
1349     fi
1352 if test "$ac_cv_header_sys_statfs_h" = "yes"
1353 then
1354     AC_CACHE_CHECK( [whether sys/statfs.h defines statfs],
1355                     wine_cv_sys_statfs_has_statfs,
1356         AC_TRY_COMPILE([
1357         #include <sys/types.h>
1358         #ifdef HAVE_SYS_PARAM_H
1359         # include <sys/param.h>
1360         #endif
1361         #include <sys/statfs.h>
1362         ],[
1363                 struct statfs stfs;
1364         ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
1365         )
1366     )
1367     if test "$wine_cv_sys_statfs_has_statfs" = "yes"
1368     then
1369       AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS, 1,
1370                 [Define if the struct statfs is defined by <sys/statfs.h>])
1371     fi
1374 if test "$ac_cv_header_sys_mount_h" = "yes"
1375 then
1376     AC_CACHE_CHECK( [whether sys/mount.h defines statfs],
1377                     wine_cv_sys_mount_has_statfs,
1378         AC_TRY_COMPILE([
1379         #include <sys/types.h>
1380         #ifdef HAVE_SYS_PARAM_H
1381         # include <sys/param.h>
1382         #endif
1383         #include <sys/mount.h>
1384         ],[
1385                 struct statfs stfs;
1386         ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
1387         )
1388     )
1389     if test "$wine_cv_sys_mount_has_statfs" = "yes"
1390     then
1391       AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT, 1,
1392                 [Define if the struct statfs is defined by <sys/mount.h>])
1393     fi
1396 dnl **** FIXME: what about mixed cases, where we need two of them? ***
1398 dnl Check for statfs members
1399 AC_CHECK_MEMBERS([struct statfs.f_bfree, struct statfs.f_bavail, struct statfs.f_frsize, struct statfs.f_ffree, struct statfs.f_favail, struct statfs.f_namelen],,,
1400 [#include <sys/types.h>
1401 #ifdef HAVE_SYS_PARAM_H
1402 # include <sys/param.h>
1403 #endif
1404 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
1405 # include <sys/mount.h>
1406 #else
1407 # ifdef STATFS_DEFINED_BY_SYS_VFS
1408 #  include <sys/vfs.h>
1409 # else
1410 #  ifdef STATFS_DEFINED_BY_SYS_STATFS
1411 #   include <sys/statfs.h>
1412 #  endif
1413 # endif
1414 #endif])
1416 AC_CHECK_MEMBERS([struct statvfs.f_blocks],,,
1417 [#ifdef HAVE_SYS_STATVFS_H
1418 #include <sys/statvfs.h>
1419 #endif])
1421 dnl Check for socket structure members
1422 AC_CHECK_MEMBERS([struct msghdr.msg_accrights, struct sockaddr.sa_len, struct sockaddr_un.sun_len],,,
1423 [#include <sys/types.h>
1424 #ifdef HAVE_SYS_SOCKET_H
1425 # include <sys/socket.h>
1426 #endif
1427 #ifdef HAVE_SYS_UN_H
1428 # include <sys/un.h>
1429 #endif])
1431 dnl Check for scsireq_t and sg_io_hdr_t members
1432 AC_CHECK_MEMBERS([scsireq_t.cmd, sg_io_hdr_t.interface_id],,,
1433 [#include <sys/types.h>
1434 #ifdef HAVE_SCSI_SG_H
1435 #include <scsi/sg.h>
1436 #endif])
1438 dnl Check for siginfo_t members
1439 AC_CHECK_MEMBERS([siginfo_t.si_fd],,,[#include <signal.h>])
1441 dnl Check for struct option
1442 AC_CHECK_MEMBERS([struct option.name],,,
1443 [#ifdef HAVE_GETOPT_H
1444 #include <getopt.h>
1445 #endif])
1447 dnl Check for stat.st_blocks
1448 AC_CHECK_MEMBERS([struct stat.st_blocks])
1450 dnl Check for the external timezone variables timezone and daylight
1451 AC_CACHE_CHECK([for timezone variable], ac_cv_have_timezone,
1452                AC_TRY_LINK([#include <time.h>],[timezone;],
1453                            ac_cv_have_timezone="yes", ac_cv_have_timezone="no"))
1454 if test "$ac_cv_have_timezone" = "yes"
1455 then
1456     AC_DEFINE(HAVE_TIMEZONE, 1, [Define if you have the timezone variable])
1458 AC_CACHE_CHECK([for daylight variable], ac_cv_have_daylight,
1459                AC_TRY_LINK([#include <time.h>],[daylight;],
1460                            ac_cv_have_daylight="yes", ac_cv_have_daylight="no"))
1461 if test "$ac_cv_have_daylight" = "yes"
1462 then
1463     AC_DEFINE(HAVE_DAYLIGHT, 1, [Define if you have the daylight variable])
1466 dnl *** check for the need to define platform-specific symbols
1468 case $host_cpu in
1469   *i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
1470   *alpha*)          WINE_CHECK_DEFINE([__ALPHA__]) ;;
1471   *sparc*)          WINE_CHECK_DEFINE([__sparc__]) ;;
1472   *powerpc*)        WINE_CHECK_DEFINE([__powerpc__]) ;;
1473 esac
1475 case $host_vendor in
1476   *sun*) WINE_CHECK_DEFINE([__sun__]) ;;
1477 esac
1479 dnl **** Generate output files ****
1481 AH_TOP([#define __WINE_CONFIG_H])
1483 WINE_CONFIG_EXTRA_DIR(dlls/gdi/enhmfdrv)
1484 WINE_CONFIG_EXTRA_DIR(dlls/gdi/mfdrv)
1485 WINE_CONFIG_EXTRA_DIR(dlls/kernel/messages)
1486 WINE_CONFIG_EXTRA_DIR(dlls/user/resources)
1487 WINE_CONFIG_EXTRA_DIR(dlls/wineps/data)
1488 WINE_CONFIG_EXTRA_DIR(include/wine)
1490 MAKE_RULES=Make.rules
1491 AC_SUBST_FILE(MAKE_RULES)
1493 MAKE_DLL_RULES=dlls/Makedll.rules
1494 AC_SUBST_FILE(MAKE_DLL_RULES)
1496 MAKE_TEST_RULES=dlls/Maketest.rules
1497 AC_SUBST_FILE(MAKE_TEST_RULES)
1499 MAKE_LIB_RULES=libs/Makelib.rules
1500 AC_SUBST_FILE(MAKE_LIB_RULES)
1502 MAKE_PROG_RULES=programs/Makeprog.rules
1503 AC_SUBST_FILE(MAKE_PROG_RULES)
1505 AC_CONFIG_FILES([
1506 Make.rules
1507 dlls/Makedll.rules
1508 dlls/Maketest.rules
1509 libs/Makelib.rules
1510 programs/Makeprog.rules
1511 Makefile
1512 dlls/Makefile
1513 dlls/activeds/Makefile
1514 dlls/advapi32/Makefile
1515 dlls/advapi32/tests/Makefile
1516 dlls/advpack/Makefile
1517 dlls/advpack/tests/Makefile
1518 dlls/amstream/Makefile
1519 dlls/atl/Makefile
1520 dlls/avicap32/Makefile
1521 dlls/avifil32/Makefile
1522 dlls/cabinet/Makefile
1523 dlls/capi2032/Makefile
1524 dlls/cards/Makefile
1525 dlls/cfgmgr32/Makefile
1526 dlls/comcat/Makefile
1527 dlls/comctl32/Makefile
1528 dlls/comctl32/tests/Makefile
1529 dlls/commdlg/Makefile
1530 dlls/crtdll/Makefile
1531 dlls/crypt32/Makefile
1532 dlls/crypt32/tests/Makefile
1533 dlls/cryptdll/Makefile
1534 dlls/ctl3d/Makefile
1535 dlls/d3d8/Makefile
1536 dlls/d3d9/Makefile
1537 dlls/d3dim/Makefile
1538 dlls/d3drm/Makefile
1539 dlls/d3dx8/Makefile
1540 dlls/d3dxof/Makefile
1541 dlls/dbghelp/Makefile
1542 dlls/dciman32/Makefile
1543 dlls/ddraw/Makefile
1544 dlls/ddraw/tests/Makefile
1545 dlls/devenum/Makefile
1546 dlls/dinput/Makefile
1547 dlls/dinput/tests/Makefile
1548 dlls/dinput8/Makefile
1549 dlls/dmband/Makefile
1550 dlls/dmcompos/Makefile
1551 dlls/dmime/Makefile
1552 dlls/dmloader/Makefile
1553 dlls/dmscript/Makefile
1554 dlls/dmstyle/Makefile
1555 dlls/dmsynth/Makefile
1556 dlls/dmusic/Makefile
1557 dlls/dmusic32/Makefile
1558 dlls/dplay/Makefile
1559 dlls/dplayx/Makefile
1560 dlls/dpnet/Makefile
1561 dlls/dpnhpast/Makefile
1562 dlls/dsound/Makefile
1563 dlls/dsound/tests/Makefile
1564 dlls/dswave/Makefile
1565 dlls/dxdiagn/Makefile
1566 dlls/dxerr8/Makefile
1567 dlls/dxerr9/Makefile
1568 dlls/dxguid/Makefile
1569 dlls/gdi/Makefile
1570 dlls/gdi/tests/Makefile
1571 dlls/glu32/Makefile
1572 dlls/glut32/Makefile
1573 dlls/hhctrl.ocx/Makefile
1574 dlls/iccvid/Makefile
1575 dlls/icmp/Makefile
1576 dlls/ifsmgr.vxd/Makefile
1577 dlls/imagehlp/Makefile
1578 dlls/imm32/Makefile
1579 dlls/iphlpapi/Makefile
1580 dlls/iphlpapi/tests/Makefile
1581 dlls/itss/Makefile
1582 dlls/kernel/Makefile
1583 dlls/kernel/tests/Makefile
1584 dlls/lzexpand/Makefile
1585 dlls/lzexpand/tests/Makefile
1586 dlls/mapi32/Makefile
1587 dlls/mapi32/tests/Makefile
1588 dlls/midimap/Makefile
1589 dlls/mlang/Makefile
1590 dlls/mlang/tests/Makefile
1591 dlls/mmdevldr.vxd/Makefile
1592 dlls/monodebg.vxd/Makefile
1593 dlls/mpr/Makefile
1594 dlls/msacm/Makefile
1595 dlls/msacm/imaadp32/Makefile
1596 dlls/msacm/msadp32/Makefile
1597 dlls/msacm/msg711/Makefile
1598 dlls/msacm/winemp3/Makefile
1599 dlls/msacm/tests/Makefile
1600 dlls/mscms/Makefile
1601 dlls/mscms/tests/Makefile
1602 dlls/msdmo/Makefile
1603 dlls/mshtml/Makefile
1604 dlls/mshtml/tests/Makefile
1605 dlls/msi/Makefile
1606 dlls/msi/tests/Makefile
1607 dlls/msimg32/Makefile
1608 dlls/msisys/Makefile
1609 dlls/msnet32/Makefile
1610 dlls/msrle32/Makefile
1611 dlls/msvcrt/Makefile
1612 dlls/msvcrt/tests/Makefile
1613 dlls/msvcrt20/Makefile
1614 dlls/msvcrt40/Makefile
1615 dlls/msvcrtd/Makefile
1616 dlls/msvcrtd/tests/Makefile
1617 dlls/msvidc32/Makefile
1618 dlls/msvideo/Makefile
1619 dlls/mswsock/Makefile
1620 dlls/msxml3/Makefile
1621 dlls/netapi32/Makefile
1622 dlls/netapi32/tests/Makefile
1623 dlls/newdev/Makefile
1624 dlls/ntdll/Makefile
1625 dlls/ntdll/tests/Makefile
1626 dlls/objsel/Makefile
1627 dlls/odbc32/Makefile
1628 dlls/odbccp32/Makefile
1629 dlls/ole32/Makefile
1630 dlls/ole32/tests/Makefile
1631 dlls/oleacc/Makefile
1632 dlls/oleaut32/Makefile
1633 dlls/oleaut32/tests/Makefile
1634 dlls/olecli/Makefile
1635 dlls/oledlg/Makefile
1636 dlls/olepro32/Makefile
1637 dlls/olesvr/Makefile
1638 dlls/opengl32/Makefile
1639 dlls/powrprof/Makefile
1640 dlls/psapi/Makefile
1641 dlls/psapi/tests/Makefile
1642 dlls/qcap/Makefile
1643 dlls/quartz/Makefile
1644 dlls/quartz/tests/Makefile
1645 dlls/rasapi32/Makefile
1646 dlls/riched20/Makefile
1647 dlls/richedit/Makefile
1648 dlls/rpcrt4/Makefile
1649 dlls/rpcrt4/tests/Makefile
1650 dlls/rsabase/Makefile
1651 dlls/rsabase/tests/Makefile
1652 dlls/rsaenh/Makefile
1653 dlls/rsaenh/tests/Makefile
1654 dlls/secur32/Makefile
1655 dlls/secur32/tests/Makefile
1656 dlls/sensapi/Makefile
1657 dlls/serialui/Makefile
1658 dlls/setupapi/Makefile
1659 dlls/shdocvw/Makefile
1660 dlls/shell32/Makefile
1661 dlls/shell32/tests/Makefile
1662 dlls/shfolder/Makefile
1663 dlls/shlwapi/Makefile
1664 dlls/shlwapi/tests/Makefile
1665 dlls/snmpapi/Makefile
1666 dlls/stdole2.tlb/Makefile
1667 dlls/stdole32.tlb/Makefile
1668 dlls/sti/Makefile
1669 dlls/strmiids/Makefile
1670 dlls/tapi32/Makefile
1671 dlls/ttydrv/Makefile
1672 dlls/twain/Makefile
1673 dlls/unicows/Makefile
1674 dlls/url/Makefile
1675 dlls/urlmon/Makefile
1676 dlls/urlmon/tests/Makefile
1677 dlls/user/Makefile
1678 dlls/user/tests/Makefile
1679 dlls/usp10/Makefile
1680 dlls/uuid/Makefile
1681 dlls/uxtheme/Makefile
1682 dlls/vdhcp.vxd/Makefile
1683 dlls/vdmdbg/Makefile
1684 dlls/version/Makefile
1685 dlls/version/tests/Makefile
1686 dlls/vmm.vxd/Makefile
1687 dlls/vnbt.vxd/Makefile
1688 dlls/vnetbios.vxd/Makefile
1689 dlls/vtdapi.vxd/Makefile
1690 dlls/vwin32.vxd/Makefile
1691 dlls/win32s/Makefile
1692 dlls/winaspi/Makefile
1693 dlls/wined3d/Makefile
1694 dlls/winedos/Makefile
1695 dlls/wineps/Makefile
1696 dlls/wininet/Makefile
1697 dlls/wininet/tests/Makefile
1698 dlls/winmm/Makefile
1699 dlls/winmm/joystick/Makefile
1700 dlls/winmm/mcianim/Makefile
1701 dlls/winmm/mciavi/Makefile
1702 dlls/mcicda/Makefile
1703 dlls/winmm/mciseq/Makefile
1704 dlls/winmm/mciwave/Makefile
1705 dlls/winmm/tests/Makefile
1706 dlls/winmm/wavemap/Makefile
1707 dlls/winmm/winealsa/Makefile
1708 dlls/winmm/winearts/Makefile
1709 dlls/winmm/wineaudioio/Makefile
1710 dlls/winmm/wineesd/Makefile
1711 dlls/winmm/winejack/Makefile
1712 dlls/winmm/winenas/Makefile
1713 dlls/winmm/wineoss/Makefile
1714 dlls/winnls/Makefile
1715 dlls/winsock/Makefile
1716 dlls/winsock/tests/Makefile
1717 dlls/winspool/Makefile
1718 dlls/winspool/tests/Makefile
1719 dlls/wintab32/Makefile
1720 dlls/wintrust/Makefile
1721 dlls/wldap32/Makefile
1722 dlls/wow32/Makefile
1723 dlls/wsock32/Makefile
1724 dlls/wtsapi32/Makefile
1725 dlls/x11drv/Makefile
1726 documentation/Makefile
1727 fonts/Makefile
1728 include/Makefile
1729 libs/Makefile
1730 libs/port/Makefile
1731 libs/unicode/Makefile
1732 libs/wine/Makefile
1733 libs/wpp/Makefile
1734 loader/Makefile
1735 programs/Makefile
1736 programs/avitools/Makefile
1737 programs/clock/Makefile
1738 programs/cmdlgtst/Makefile
1739 programs/control/Makefile
1740 programs/expand/Makefile
1741 programs/hh/Makefile
1742 programs/msiexec/Makefile
1743 programs/notepad/Makefile
1744 programs/progman/Makefile
1745 programs/regedit/Makefile
1746 programs/regsvr32/Makefile
1747 programs/rpcss/Makefile
1748 programs/rundll32/Makefile
1749 programs/start/Makefile
1750 programs/taskmgr/Makefile
1751 programs/uninstaller/Makefile
1752 programs/view/Makefile
1753 programs/wcmd/Makefile
1754 programs/wineboot/Makefile
1755 programs/winebrowser/Makefile
1756 programs/winecfg/Makefile
1757 programs/wineconsole/Makefile
1758 programs/winedbg/Makefile
1759 programs/winefile/Makefile
1760 programs/winemenubuilder/Makefile
1761 programs/winemine/Makefile
1762 programs/winepath/Makefile
1763 programs/winetest/Makefile
1764 programs/winevdm/Makefile
1765 programs/winhelp/Makefile
1766 programs/winver/Makefile
1767 server/Makefile
1768 tools/Makefile
1769 tools/widl/Makefile
1770 tools/winapi/Makefile
1771 tools/winebuild/Makefile
1772 tools/winedump/Makefile
1773 tools/winegcc/Makefile
1774 tools/wmc/Makefile
1775 tools/wrc/Makefile])
1777 AC_OUTPUT
1779 if test "$have_x" = "no"
1780 then
1781   echo
1782   echo "*** Warning: X development files not found. Wine will be built without"
1783   echo "*** X support, which currently does not work, and would probably not be"
1784   echo "*** what you want anyway. You will need to install devel packages of"
1785   echo "*** Xlib/Xfree86 at the very least."
1788 if test "$wine_cv_opengl_version_OK" = "no"
1789 then
1790   echo
1791   echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
1792   echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1795 if test "$wine_cv_msg_freetype" = "yes"
1796 then
1797   echo
1798   echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
1799   echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
1800   echo "*** freetype-devel package (or its equivalent on your distribution) to"
1801   echo "*** enable Wine to use TrueType fonts."
1804 if test -z "$ALSALIBS" -a -z "$ARTSC_LIBS" -a -z "$AUDIOIOLIBS" -a \
1805         -z "$ac_cv_lib_soname_jack" -a -z "$NASLIBS" -a \
1806         "$ac_cv_c_opensoundsystem" = "no" -a -z "$ESD_LIBS"
1807 then
1808     echo "*** No sound system was found. Windows applications will be silent."
1809     echo "*** The currently supported sound systems are:"
1810     echo "*** ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS"
1813 echo
1814 echo "Configure finished.  Do '${ac_make} depend && ${ac_make}' to compile Wine."
1815 echo
1817 dnl Local Variables:
1818 dnl comment-start: "dnl "
1819 dnl comment-end: ""
1820 dnl comment-start-skip: "\\bdnl\\b\\s *"
1821 dnl compile-command: "autoconf"
1822 dnl End: