blob: 228457613c8b75dd06e58fb4c0415c7ee985bbc4 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001dnl Process this file with autoconf to produce a configure script.
2dnl Author: Michael Patra <micky@marie.physik.tu-berlin.de>
3dnl <patra@itp1.physik.tu-berlin.de>
4AC_REVISION([configure.in 1.00])
5AC_INIT(controls/edit.c)
Alexandre Julliard18f92e71996-07-17 20:02:21 +00006AC_CONFIG_HEADER(include/config.h)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00007AC_CONFIG_AUX_DIR(tools)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008
Alexandre Julliardff8331e1995-09-18 11:19:54 +00009dnl **** Command-line arguments ****
10
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +000011dnl Default values
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000012LIBEXT=so # library type .so or .a
Alexandre Julliardf90efa91998-06-14 15:24:15 +000013TRACE_MSGS=yes # the TRACE() macro
14DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000015CURSES=yes
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000016OPENGL=normal
Alexandre Julliard7e56f681996-01-31 19:02:28 +000017
Alexandre Julliardf90efa91998-06-14 15:24:15 +000018AC_ARG_ENABLE(debug,
19[ --disable-debug compile out all debugging messages],
20[if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi])
21
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000022AC_ARG_ENABLE(opengl,
23[ --enable-opengl force usage of OpenGL even if the latter is thread-safe],
24[if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi])
25
Alexandre Julliardf90efa91998-06-14 15:24:15 +000026AC_ARG_ENABLE(trace,
27[ --disable-trace compile out TRACE messages],
28[if test "$enableval" = "no"; then TRACE_MSGS="no"; fi])
29
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000030AC_ARG_WITH(curses,
31[ --without-curses do not use curses],
32[if test "$withval" = "no"; then CURSES="no"; fi])
33
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000034AC_ARG_WITH(reentrant-x,
Joseph Pranevich791cd6a1998-12-02 19:58:08 +000035[ --without-reentrant-x compile for use with non-reentrant X libraries])
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000036
Alexandre Julliard18f92e71996-07-17 20:02:21 +000037AC_SUBST(OPTIONS)
Alexandre Julliardb7258be1995-09-01 15:57:28 +000038
Alexandre Julliardf90efa91998-06-14 15:24:15 +000039if test "$DEBUG_MSGS" = "no"
40then
41 AC_DEFINE(NO_DEBUG_MSGS)
42 AC_DEFINE(NO_TRACE_MSGS)
43else
44 if test "$TRACE_MSGS" = "no"
45 then
46 AC_DEFINE(NO_TRACE_MSGS)
47 fi
48fi
49
Alexandre Julliard02e90081998-01-04 17:49:09 +000050dnl **** Check for some programs ****
Alexandre Julliardff8331e1995-09-18 11:19:54 +000051
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000052AC_PROG_MAKE_SET
53AC_PROG_CC
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000054AC_PROG_CPP
Alexandre Julliardff8331e1995-09-18 11:19:54 +000055AC_PATH_XTRA
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000056AC_PROG_YACC
57AC_PROG_LEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +000058AC_CHECK_PROGS(XLEX,$LEX flex lex,none)
59if test "$XLEX" = "none"
60then
61 echo "*** Error: No suitable lex found. ***"
62 echo " Please install the 'flex' package."
63 exit 1
64fi
65AC_DECL_YYTEXT
Alexandre Julliardff8331e1995-09-18 11:19:54 +000066AC_PROG_RANLIB
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000067AC_PROG_INSTALL
Alexandre Julliard641ee761997-08-04 16:34:36 +000068AC_PROG_LN_S
Mike McCormacke0df32f2000-08-11 21:15:21 +000069AC_CHECK_PROG(C2MAN,c2man,c2man,\$(TOPSRCDIR)/tools/c2man.pl)
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000070AC_PATH_PROG(LDCONFIG, ldconfig, true, /sbin:/usr/sbin:$PATH)
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +000071AC_CYGWIN
Alexandre Julliard02e90081998-01-04 17:49:09 +000072
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000073dnl Check for lint
74AC_CHECK_PROGS(LINT, lclint lint)
75if test "$LINT" = "lint"
76then
77 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
78 dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
79fi
80AC_SUBST(LINT)
81AC_SUBST(LINTFLAGS)
82
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +000083if test "$CYGWIN" = "yes"
84then
85 LDCOMBINE="ld -r --enable-stdcall-fixup"
86else
87 LDCOMBINE="ld -r"
88fi
89AC_SUBST(LDCOMBINE)
90
Alexandre Julliard02e90081998-01-04 17:49:09 +000091dnl **** Check for some libraries ****
92
Howard Abrams13277481999-07-10 13:16:29 +000093dnl Check for -lm for BeOS
94AC_CHECK_LIB(m,sqrt)
Alexandre Julliardd37eb361997-07-20 16:23:21 +000095dnl Check for -li386 for NetBSD and OpenBSD
Alexandre Julliard02e90081998-01-04 17:49:09 +000096AC_CHECK_LIB(i386,i386_set_ldt)
Todd Vierlingecc76691998-12-15 17:49:02 +000097dnl Check for -lossaudio for NetBSD
98AC_CHECK_LIB(ossaudio,_oss_ioctl)
Alexandre Julliard02e90081998-01-04 17:49:09 +000099dnl Check for -lw for Solaris
100AC_CHECK_LIB(w,iswalnum)
Patrik Stridvallea584721998-11-01 16:22:07 +0000101dnl Check for -lnsl for Solaris
Ron Recorde977d6c1999-09-05 12:32:05 +0000102AC_CHECK_FUNCS(gethostbyname,, AC_CHECK_LIB(nsl, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl", AC_CHECK_LIB(socket, gethostbyname, X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl", , -lnsl), -lsocket))
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000103dnl Check for -lsocket for Solaris
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000104AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000105dnl Check for -lxpg4 for FreeBSD
106AC_CHECK_LIB(xpg4,setrunelocale)
Alexandre Julliard0e7bd081999-05-02 11:46:02 +0000107dnl Check for -lmmap for OS/2
108AC_CHECK_LIB(mmap,mmap)
Marcus Meissner2d7be871999-12-05 23:06:40 +0000109dnl Check for openpty
110AC_CHECK_FUNCS(openpty,,
111 AC_CHECK_LIB(util,openpty,
112 AC_DEFINE(HAVE_OPENPTY)
113 LIBS="$LIBS -lutil"
114 ))
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000115
116AC_CHECK_HEADERS(dlfcn.h,
117 AC_CHECK_FUNCS(dlopen,
118 AC_DEFINE(HAVE_DL_API),
119 AC_CHECK_LIB(dl,dlopen,
120 AC_DEFINE(HAVE_DL_API)
Alexandre Julliarde1e75372000-04-24 17:17:49 +0000121 LIBS="$LIBS -ldl",
122 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000123 )
Alexandre Julliarde1e75372000-04-24 17:17:49 +0000124 ),
125 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000126)
Patrik Stridvallea584721998-11-01 16:22:07 +0000127AC_SUBST(XLIB)
Patrik Stridvall2941a212000-04-25 20:34:22 +0000128AC_SUBST(X_DLLS)
129X_DLLS=""
130AC_SUBST(XFILES)
131XFILES=""
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000132AC_SUBST(OPENGLFILES)
133OPENGLFILES=""
Hidenori Takeshima4615e292000-05-23 23:36:41 +0000134AC_SUBST(OPENGL32_DLL)
135OPENGL32_DLL=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +0000136AC_SUBST(DGA_SRCS)
137DGA_SRCS=""
Lionel Ulmer51177f92000-05-01 14:25:49 +0000138AC_SUBST(DGA2_SRCS)
139DGA2_SRCS=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +0000140AC_SUBST(MESA_SRCS)
141MESA_SRCS=""
Patrik Stridvallea584721998-11-01 16:22:07 +0000142if test "$have_x" = "yes"
143then
Patrik Stridvall24110281999-02-04 10:09:54 +0000144 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +0000145 ac_save_CPPFLAGS="$CPPFLAGS"
146 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvall24110281999-02-04 10:09:54 +0000147
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000148 dnl *** Check for -lXpm
149 AC_CHECK_HEADERS(X11/xpm.h,
150 [ dnl *** If X11/xpm.h exists...
151 AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,
152 [ AC_DEFINE(HAVE_LIBXXPM) X_PRE_LIBS="$X_PRE_LIBS -lXpm"],,
153 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
154 )
155 ],
156 [ dnl *** If X11/xpm.h does not exist...
157 dnl NOTE: autoconf does not allow commas inside the third
158 dnl parameter to AC_CHECK_HEADERS, due to some quoting
159 dnl magic it does.
160 echo "Redhat : xpm xpm-devel"
161 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +0000162 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000163 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +0000164 echo
165 echo "Or get the sources from ftp.x.org and all its mirror sites from "
166 echo "the directory /contrib/libraries."
167 echo
168 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000169 ]
170 )
Patrik Stridvall24110281999-02-04 10:09:54 +0000171
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000172 dnl *** All three of the following tests require X11/Xlib.h
173 AC_CHECK_HEADERS(X11/Xlib.h,
174 [
175 dnl *** Check for X Shm extension
176 AC_CHECK_HEADERS(X11/extensions/XShm.h,
177 [ dnl *** If X11/extensions/XShm.h exists...
178 AC_CHECK_LIB(Xext, XShmQueryExtension,
179 AC_DEFINE(HAVE_LIBXXSHM),,
180 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
181 ],
182 AC_MSG_WARN([Xshm extension not found!!])
183 )
Marcus Meissnercb99b0e1999-12-20 04:10:06 +0000184
Francois Jacques5b6879c2000-07-28 23:04:54 +0000185 dnl *** Check for X shape extension
186 AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/shape.h,
187 [ dnl *** If X11/extensions/shape.h exists...
188 AC_CHECK_LIB(Xext,XShapeQueryExtension,
189 AC_DEFINE(HAVE_LIBXSHAPE),,
190 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
191 ],
192 AC_MSG_WARN([XShape extension found!!])
193 )
194
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000195 dnl *** Check for XFree86 DGA / DGA 2.0 extension
196 AC_CHECK_HEADERS(X11/extensions/xf86dga.h,
197 [ dnl *** If X11/extensions/xf86dga.h exists, check
198 dnl *** for XDGAQueryExtension()...
199 AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
200 [ dnl *** If found...
201 AC_DEFINE(HAVE_LIBXXF86DGA2)
202 AC_DEFINE(HAVE_LIBXXF86DGA)
203 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
204 DGA_SRCS='$(DGA_SRCS)'
205 DGA2_SRCS='$(DGA2_SRCS)'
206 ],
207 [ dnl *** If not found, look for XF86DGAQueryExtension()
208 dnl *** instead (DGA 2.0 not found)...
209 AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
210 [ AC_DEFINE(HAVE_LIBXXF86DGA)
211 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
212 DGA_SRCS='$(DGA_SRCS)'
213 ],,
214 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
215 )
216 ],
217 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
218 )
219 ],
220 AC_MSG_WARN([DGA extension not found!!])
221 )
Patrik Stridvall24110281999-02-04 10:09:54 +0000222
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000223 dnl *** Check for XFree86 VMODE extension
224 AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,
225 [ dnl *** If X11/extensions/xf86vmode.h exists...
226 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
227 [ AC_DEFINE(HAVE_LIBXXF86VM)
228 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
229 ],,
230 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
231 )
232 ],
233 AC_MSG_WARN([XFree86 VMODE extension not found!!])
234 )
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +0000235
236 dnl *** Check for XVideo extension supporting XvImages
237 AC_CHECK_HEADERS(X11/extensions/Xvlib.h,
238 [ dnl *** If X11/extensions/Xvlib.h exists...
239 AC_CHECK_LIB(Xv, XvShmCreateImage,
240 [ AC_DEFINE(HAVE_XVIDEO)
241 X_PRE_LIBS="$X_PRE_LIBS -lXv"
242 ],,
243 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
244 )
245 ],
246 AC_MSG_WARN([XVideo extension not found !!])
247 )
248
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000249 ]
250 ) dnl *** End of X11/Xlib.h check
Lionel Ulmer5c085701999-02-28 19:48:53 +0000251
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000252 dnl Check for the presence of OpenGL
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000253 if test $OPENGL = "yes" -o $OPENGL = "normal"
Patrik Stridvall24110281999-02-04 10:09:54 +0000254 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000255 AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
Marcus Meissner22a969b2000-08-08 20:46:50 +0000256 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000257 then
258 dnl Check for some problems due to old Mesa versions
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000259 AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000260 AC_TRY_COMPILE(
Lionel Ulmer48c08162000-01-05 01:51:02 +0000261 [#include <GL/gl.h>],
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000262 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000263 [wine_cv_opengl_version_OK="yes"],
264 [wine_cv_opengl_version_OK="no"]
Lionel Ulmer48c08162000-01-05 01:51:02 +0000265 )
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000266 )
267
268 dnl Check for the thread-safety of the OpenGL library
269 AC_CACHE_CHECK("for thread-safe OpenGL version",
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000270 wine_cv_opengl_version_threadsafe,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000271 [saved_libs=$LIBS
272 LIBS="$X_LIBS -lGL"
273 AC_TRY_LINK([],[pthread_getspecific();],
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000274 [wine_cv_opengl_version_threadsafe="yes"],
275 [wine_cv_opengl_version_threadsafe="no"])
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000276 LIBS=$saved_libs]
Lionel Ulmer48c08162000-01-05 01:51:02 +0000277 )
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000278
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000279 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o $OPENGL = "yes" \)
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000280 then
Andreas Mohr4eefb962000-08-01 00:27:35 +0000281 dnl Check for the presence of the library
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000282 AC_CHECK_LIB(GL,glXCreateContext,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000283 X_PRE_LIBS="$X_PRE_LIBS -lGL"
284 MESA_SRCS='$(MESA_SRCS)'
285 ,,
286 $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
287
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000288 if test $ac_cv_lib_GL_glXCreateContext = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000289 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +0000290
291 OPENGLFILES='$(OPENGLFILES)'
292 AC_DEFINE(HAVE_OPENGL)
293
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000294 AC_CHECK_LIB(GL,glXGetProcAddressARB,AC_DEFINE(HAVE_GLX_GETPROCADDRESS),,$X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000295
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000296 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
297 then
Lionel Ulmer1434d872000-07-23 14:23:31 +0000298 AC_CACHE_CHECK("for OpenGL extension functions prototypes", wine_cv_extension_prototypes,
299 AC_TRY_COMPILE([#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +0000300 #ifdef HAVE_GL_GLEXT_H
301 # include <GL/glext.h>
302 #endif
303 ],
Lionel Ulmer1434d872000-07-23 14:23:31 +0000304 [PFNGLCOLORTABLEEXTPROC test_proc;],
Lionel Ulmerfe210ef2000-07-29 11:30:56 +0000305 [wine_cv_extension_prototypes="yes"],
Lionel Ulmer1434d872000-07-23 14:23:31 +0000306 [wine_cv_extension_prototypes="no"]
307 )
308 )
Lionel Ulmerfe210ef2000-07-29 11:30:56 +0000309 if test $wine_cv_extension_prototypes = "yes"
310 then
311 AC_DEFINE(HAVE_GLEXT_PROTOTYPES)
312 fi
Lionel Ulmer1434d872000-07-23 14:23:31 +0000313
Hidenori Takeshima4615e292000-05-23 23:36:41 +0000314 OPENGL32_DLL=opengl32
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000315 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000316 fi
317 fi
318 fi
Patrik Stridvall24110281999-02-04 10:09:54 +0000319 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +0000320
321 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +0000322 X_DLLS='$(X_DLLS)'
323 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +0000324else
325 XLIB=""
326 X_CFLAGS=""
327 X_LIBS=""
328fi
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000329
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000330dnl **** Check which curses lib to use ***
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000331if test "$CURSES" = "yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +0000332then
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000333 AC_CHECK_HEADERS(ncurses.h)
334 if test "$ac_cv_header_ncurses_h" = "yes"
335 then
336 AC_CHECK_LIB(ncurses,waddch)
337 fi
338 if test "$ac_cv_lib_ncurses_waddch" = "yes"
339 then
340 AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
341 AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
342 else
343 AC_CHECK_HEADERS(curses.h)
344 if test "$ac_cv_header_curses_h" = "yes"
345 then
346 AC_CHECK_LIB(curses,waddch)
347 if test "$ac_cv_lib_curses_waddch" = "yes"
348 then
349 AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
350 AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
351 fi
352 fi
Patrik Stridvall24110281999-02-04 10:09:54 +0000353 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000354fi
355
Pavel Roskin94d99641998-12-26 11:52:51 +0000356dnl **** Check for IPX (currently Linux only) ****
357AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu,
358 AC_TRY_COMPILE(
359 [#include <sys/socket.h>
360 #include <netipx/ipx.h>],
361 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
Aaron Hopec23872d2000-01-15 23:43:21 +0000362 [ac_cv_c_ipx_gnu="yes"],
Pavel Roskin94d99641998-12-26 11:52:51 +0000363 [ac_cv_c_ipx_gnu="no"])
364 )
Aaron Hopec23872d2000-01-15 23:43:21 +0000365if test "$ac_cv_c_ipx_gnu" = "yes"
366then
367 AC_DEFINE(HAVE_IPX_GNU)
368fi
Pavel Roskin94d99641998-12-26 11:52:51 +0000369
370if test "$ac_cv_c_ipx_gnu" = "no"
371then
372 AC_CACHE_CHECK("for linux style IPX support", ac_cv_c_ipx_linux,
373 AC_TRY_COMPILE(
374 [#include <sys/socket.h>
375 #include <asm/types.h>
376 #include <linux/ipx.h>],
377 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
Aaron Hopec23872d2000-01-15 23:43:21 +0000378 [ac_cv_c_ipx_linux="yes"],
Pavel Roskin94d99641998-12-26 11:52:51 +0000379 [ac_cv_c_ipx_linux="no"])
380 )
Aaron Hopec23872d2000-01-15 23:43:21 +0000381 if test "$ac_cv_c_ipx_linux" = "yes"
382 then
383 AC_DEFINE(HAVE_IPX_LINUX)
384 fi
Pavel Roskin94d99641998-12-26 11:52:51 +0000385fi
386
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000387dnl **** Check for Open Sound System ****
Todd Vierlingecc76691998-12-15 17:49:02 +0000388AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000389
390AC_CACHE_CHECK("for Open Sound System",
391 ac_cv_c_opensoundsystem,
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000392 AC_TRY_COMPILE([
Todd Vierlingecc76691998-12-15 17:49:02 +0000393 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000394 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +0000395 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000396 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +0000397 #elif defined(HAVE_SOUNDCARD_H)
398 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000399 #endif
400 ],[
401
Alexandre Julliard60ce85c1998-02-01 18:33:27 +0000402/* check for one of the Open Sound System specific SNDCTL_ defines */
403#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000404#error No open sound system
405#endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000406],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
407
408if test "$ac_cv_c_opensoundsystem" = "yes"
409then
410 AC_DEFINE(HAVE_OSS)
411fi
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000412
Eric Pouech338d3b21999-05-22 18:52:21 +0000413AC_CACHE_CHECK("for Open Sound System/MIDI interface",
414 ac_cv_c_opensoundsystem_midi,
415 AC_TRY_COMPILE([
416 #if defined(HAVE_SYS_SOUNDCARD_H)
417 #include <sys/soundcard.h>
418 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
419 #include <machine/soundcard.h>
420 #elif defined(HAVE_SOUNDCARD_H)
421 #include <soundcard.h>
422 #endif
423 ],[
424
425/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
426#if !defined(SNDCTL_SEQ_SYNC)
427#error No open sound system MIDI interface
428#endif
429],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
430
431if test "$ac_cv_c_opensoundsystem_midi" = "yes"
432then
433 AC_DEFINE(HAVE_OSS_MIDI)
434fi
435
Alexandre Julliard641ee761997-08-04 16:34:36 +0000436dnl **** If ln -s doesn't work, use cp instead ****
437if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
438
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000439dnl **** Check for gcc strength-reduce bug ****
440
441if test "x${GCC}" = "xyes"
442then
443 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000444 AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug,
445 AC_TRY_RUN([
Eric Pouech5aee80f2000-11-11 00:31:39 +0000446int L[[4]] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000447int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +0000448 static int Array[[3]];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000449 unsigned int B = 3;
450 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +0000451 for(i=0; i<B; i++) Array[[i]] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +0000452 for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
453 L[[i]] = 4;
454
455 exit( Array[[1]] != -2 || L[[2]] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000456}],
457 ac_cv_c_gcc_strength_bug="no",
458 ac_cv_c_gcc_strength_bug="yes",
459 ac_cv_c_gcc_strength_bug="yes") )
460 if test "$ac_cv_c_gcc_strength_bug" = "yes"
461 then
462 CFLAGS="$CFLAGS -fno-strength-reduce"
463 fi
464fi
465
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +0000466dnl **** Check if we need to place .type inside a .def directive ****
467
468AC_CACHE_CHECK("whether .type must sit inside a .def directive",
469 ac_cv_c_type_in_def,
470[saved_libs=$LIBS
471LIBS="conftest_asm.s $LIBS"
472cat > conftest_asm.s <<EOF
473 .globl _ac_test
474 .def _ac_test; .scl 2; .type 32; .endef
475_ac_test:
476 .long 0
477EOF
478AC_TRY_LINK(,,ac_cv_c_type_in_def="yes",ac_cv_c_type_in_def="no")
479LIBS=$saved_libs])
480if test "$ac_cv_c_type_in_def" = "yes"
481then
482 AC_DEFINE(NEED_TYPE_IN_DEF)
483fi
484
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +0000485dnl **** Check for underscore on external symbols ****
486
487AC_CACHE_CHECK("whether external symbols need an underscore prefix",
488 ac_cv_c_extern_prefix,
489[saved_libs=$LIBS
490LIBS="conftest_asm.s $LIBS"
491cat > conftest_asm.s <<EOF
492 .globl _ac_test
493_ac_test:
494 .long 0
495EOF
496AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1],
497 ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no")
498LIBS=$saved_libs])
499if test "$ac_cv_c_extern_prefix" = "yes"
500then
501 AC_DEFINE(NEED_UNDERSCORE_PREFIX)
502fi
503
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000504dnl **** Check for .string in assembler ****
505
506AC_CACHE_CHECK("whether assembler accepts .string",
507 ac_cv_c_asm_string,
508[saved_libs=$LIBS
509LIBS="conftest_asm.s $LIBS"
510cat > conftest_asm.s <<EOF
511 .string "test"
512EOF
513AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no")
514LIBS=$saved_libs])
515if test "$ac_cv_c_asm_string" = "yes"
516then
517 AC_DEFINE(HAVE_ASM_STRING)
518fi
519
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000520dnl **** Check for working dll ****
521
Todd Vierling4b992b01998-12-15 15:26:27 +0000522LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000523LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000524if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000525then
Todd Vierling4b992b01998-12-15 15:26:27 +0000526 AC_CACHE_CHECK("whether we can build a Linux dll",
527 ac_cv_c_dll_linux,
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000528 [saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000529 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +0000530 AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no")
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000531 CFLAGS=$saved_cflags
532 ])
Todd Vierling4b992b01998-12-15 15:26:27 +0000533 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000534 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000535 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
536 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000537 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000538 AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll,
Ron Recorde977d6c1999-09-05 12:32:05 +0000539 ac_cv_c_dll_unixware,
Todd Vierling4b992b01998-12-15 15:26:27 +0000540 [saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000541 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Ron Recorde977d6c1999-09-05 12:32:05 +0000542 AC_TRY_LINK(,[return 1],ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")
Todd Vierling4b992b01998-12-15 15:26:27 +0000543 CFLAGS=$saved_cflags
544 ])
Ron Recorde977d6c1999-09-05 12:32:05 +0000545 if test "$ac_cv_c_dll_unixware" = "yes"
Todd Vierling4b992b01998-12-15 15:26:27 +0000546 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000547 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,h,\$(libdir)/%)"
548 LDDLLFLAGS="-Wl,-B,symbolic"
Ron Recorde977d6c1999-09-05 12:32:05 +0000549 else
550 AC_CACHE_CHECK("whether we can build a NetBSD dll",
551 ac_cv_c_dll_netbsd,
552 [saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000553 CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
Ron Recorde977d6c1999-09-05 12:32:05 +0000554 AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
555 CFLAGS=$saved_cflags
556 ])
557 if test "$ac_cv_c_dll_netbsd" = "yes"
558 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000559 LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
560 LDDLLFLAGS="" #FIXME
Ron Recorde977d6c1999-09-05 12:32:05 +0000561 fi
Todd Vierling4b992b01998-12-15 15:26:27 +0000562 fi
563 fi
Ron Recorde977d6c1999-09-05 12:32:05 +0000564 if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
Todd Vierling4b992b01998-12-15 15:26:27 +0000565 then
Marcus Meissner45d31de2000-11-13 04:14:05 +0000566 echo "*** It is currently not possible to build WINE without shared"
567 echo "*** library (.so) support to allow transparent switch between .so"
568 echo "*** and .dll files."
569 echo "*** If you are using Linux, you will need a newer binutils."
570 exit 1
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000571 fi
572fi
Alexandre Julliard0adad952000-01-26 01:45:58 +0000573
574DLLFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +0000575
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000576if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000577 DLLFLAGS="-fPIC"
Alexandre Julliard7e495e12000-07-25 21:01:59 +0000578 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
Alexandre Julliard0adad952000-01-26 01:45:58 +0000579else
Alexandre Julliard7e495e12000-07-25 21:01:59 +0000580 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000581 AC_CACHE_CHECK([whether the linker supports --[[no]]-whole-archive (Linux)],
582 ac_cv_c_whole_archive,
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000583 [saved_cflags=$CFLAGS
584 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
585 AC_TRY_LINK(,[return 1],ac_cv_c_whole_archive="yes",ac_cv_c_whole_archive="no")
586 CFLAGS=$saved_cflags
587 ])
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000588 if test "$ac_cv_c_whole_archive" = "yes"
589 then
590 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
591 else
592 AC_CACHE_CHECK([whether the linker supports -z {all,default}extract (Linux)],
593 ac_cv_c_allextract,
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000594 [saved_cflags=$CFLAGS
595 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
596 AC_TRY_LINK(,[return 1],ac_cv_c_allextract="yes",ac_cv_c_allextract="no")
597 CFLAGS=$saved_cflags
598 ])
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000599 if test "$ac_cv_c_allextract" = "yes"
600 then
601 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000602 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +0000603 fi
604fi
605
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000606AC_SUBST(DLL_LINK)
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000607AC_SUBST(DLLFLAGS)
Todd Vierling4b992b01998-12-15 15:26:27 +0000608AC_SUBST(LDSHARED)
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000609AC_SUBST(LDDLLFLAGS)
Alexandre Julliard0adad952000-01-26 01:45:58 +0000610AC_SUBST(LIBEXT)
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000611
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000612dnl **** Check for reentrant libc ****
613dnl
614dnl For cross-compiling we blindly assume that libc is reentrant. This is
615dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions).
616
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000617wine_cv_libc_reentrant=no
Marcus Meissnerc2606381999-04-11 15:20:29 +0000618dnl
619dnl Linux style errno location
620dnl
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000621AC_CACHE_CHECK("for reentrant libc: __errno_location", wine_cv_libc_r__errno_location,
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000622 [AC_TRY_RUN([int myerrno = 0;
623char buf[256];
624int *__errno_location(){return &myerrno;}
625main(){connect(0,buf,255); exit(!myerrno);}],
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000626 wine_cv_libc_r__errno_location=yes, wine_cv_libc_r__errno_location=no,
627 wine_cv_libc_r__errno_location=yes )
628])
629if test "$wine_cv_libc_r__errno_location" = "yes"
630then
631 AC_DEFINE(HAVE__ERRNO_LOCATION)
632 wine_cv_libc_reentrant=__errno_location
633fi
Marcus Meissnerc2606381999-04-11 15:20:29 +0000634dnl
635dnl FreeBSD style errno location
636dnl
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000637AC_CACHE_CHECK("for reentrant libc: __error", wine_cv_libc_r__error,
638 [AC_TRY_RUN([int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +0000639char buf[256];
640int *__error(){return &myerrno;}
641main(){connect(0,buf,255); exit(!myerrno);}],
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000642 wine_cv_libc_r__error=yes, wine_cv_libc_r__error=no,
643 wine_cv_libc_r__error=yes )
Marcus Meissnerc2606381999-04-11 15:20:29 +0000644])
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000645if test "$wine_cv_libc_r__error" = "yes"
646then
647 AC_DEFINE(HAVE__ERROR)
648 wine_cv_libc_reentrant=__error
649fi
650dnl
651dnl Solaris style errno location
652dnl
653AC_CACHE_CHECK("for reentrant libc: ___errno", wine_cv_libc_r___errno,
654 [AC_TRY_RUN([int myerrno = 0;
655char buf[256];
656int *___errno(){return &myerrno;}
657main(){connect(0,buf,255); exit(!myerrno);}],
658 wine_cv_libc_r___errno=yes, wine_cv_libc_r___errno=no,
659 wine_cv_libc_r___errno=yes )
660])
661if test "$wine_cv_libc_r___errno" = "yes"
662then
663 AC_DEFINE(HAVE___ERRNO)
664 wine_cv_libc_reentrant=___errno
665fi
Ron Recorde977d6c1999-09-05 12:32:05 +0000666dnl
667dnl UnixWare style errno location
668dnl
669AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno,
670 [AC_TRY_RUN([int myerrno = 0;
671char buf[256];
672int *__thr_errno(){return &myerrno;}
673main(){connect(0,buf,255); exit(!myerrno);}],
674 wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no,
675 wine_cv_libc_r__thr_errno=yes )
676])
677if test "$wine_cv_libc_r__thr_errno" = "yes"
678then
679 AC_DEFINE(HAVE__THR_ERRNO)
680 wine_cv_libc_reentrant=__thr_errno
681fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000682if test "$wine_cv_libc_reentrant" = "no"
683then
684 AC_DEFINE(NO_REENTRANT_LIBC)
685fi
686
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000687dnl **** Check for reentrant X libraries ****
688dnl
689dnl This may fail to determine whether X libraries are reentrant if
690dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration
691dnl is possible with the --without-reentrant-x option.
692
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000693if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +0000694then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000695AC_CACHE_CHECK( "for reentrant X libraries", wine_cv_x_reentrant,
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000696 [ if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000697 then
698 wine_cv_x_reentrant=no
699 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000700 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000701 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +0000702 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000703 libX11_check="-D $dir/libX11.so"
704 break 1
705 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +0000706 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000707 libX11_check="$dir/libX11.a"
708 break 1
709 fi
710 done
711 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000712 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +0000713 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000714 wine_cv_x_reentrant=yes
715 else
716 wine_cv_x_reentrant=no
717 fi
718 else
719 wine_cv_x_reentrant=unknown
720 fi
721 fi ] )
Patrik Stridvall24110281999-02-04 10:09:54 +0000722else
723 wine_cv_x_reentrant=no
724fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000725if test "$wine_cv_x_reentrant" = "no"
726then
727 AC_DEFINE(NO_REENTRANT_X11)
728fi
729
Francois Gougetae5e93e1999-11-13 23:02:06 +0000730dnl **** Check for endianness ****
731
732AC_C_BIGENDIAN
733
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000734dnl **** Check for functions ****
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000735
Patrik Stridvall1bb94031999-05-08 15:47:44 +0000736AC_FUNC_ALLOCA()
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000737AC_CHECK_FUNCS(\
Eric Pouechf61d7e02000-04-29 16:44:19 +0000738 __libc_fork \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000739 _lwp_create \
740 clone \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +0000741 finite \
742 fpclass \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000743 getnetbyaddr \
744 getnetbyname \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000745 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000746 getprotobyname \
747 getprotobynumber \
Dimitrie O. Paun1ec253d2000-12-01 20:47:11 +0000748 getrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000749 getservbyport \
750 getsockopt \
751 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +0000752 lstat \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000753 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +0000754 mmap \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000755 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000756 select \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000757 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000758 settimeofday \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000759 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000760 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +0000761 strcasecmp \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000762 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +0000763 strncasecmp \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000764 tcgetattr \
765 timegm \
766 usleep \
767 vfscanf \
768 wait4 \
769 waitpid \
770)
771
772dnl **** Check for header files ****
773
774AC_CHECK_HEADERS(\
Patrik Stridvall96336321999-10-24 22:13:47 +0000775 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000776 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000777 elf.h \
778 float.h \
779 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +0000780 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000781 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000782 linux/cdrom.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +0000783 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000784 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000785 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +0000786 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000787 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +0000788 netinet/in_systm.h \
789 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000790 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +0000791 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000792 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000793 sched.h \
794 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000795 strings.h \
796 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +0000797 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000798 sys/file.h \
799 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000800 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000801 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +0000802 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000803 sys/modem.h \
804 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000805 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000806 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +0000807 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +0000808 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +0000809 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000810 sys/shm.h \
811 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000812 sys/sockio.h \
813 sys/statfs.h \
814 sys/strtio.h \
815 sys/syscall.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +0000816 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000817 sys/wait.h \
818 sys/v86.h \
819 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000820 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000821 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000822 syscall.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +0000823 ucontext.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000824)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000825AC_HEADER_STAT()
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000826
827dnl **** Check for types ****
828
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000829AC_C_CONST()
Marcus Meissner1a8bbd71999-04-26 14:58:58 +0000830AC_C_INLINE()
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000831AC_TYPE_SIZE_T()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000832AC_CHECK_SIZEOF(long long,0)
833
Rein Klazesff7a61f2000-09-24 19:41:57 +0000834
835AC_CACHE_CHECK("whether we can use re-entrant gethostbyname_r Linux style",
836 wine_cv_linux_gethostbyname_r_6,
837 AC_TRY_COMPILE([
838#include <netdb.h>
839 ], [
840 char *name=NULL;
841 struct hostent he;
842 struct hostent *result;
843 char *buf=NULL;
844 int bufsize=0;
845 int res,errnr;
846 char *addr=NULL;
847 int addrlen=0;
848 int addrtype=0;
849 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
850 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
851 ],
852 wine_cv_linux_gethostbyname_r_6=yes,
853 wine_cv_linux_gethostbyname_r_6=no
854 )
855 )
856 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
857 then
858 AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6)
859 fi
860
Marcus Meissner028e9a11999-08-04 15:07:56 +0000861if test "$ac_cv_header_linux_joystick_h" = "yes"
862then
863 AC_CACHE_CHECK("whether linux/joystick.h uses the Linux 2.2+ API",
864 wine_cv_linux_joystick_22_api,
865 AC_TRY_COMPILE([
866 #include <sys/ioctl.h>
867 #include <linux/joystick.h>
868
869 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +0000870 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
871 #error "no 2.2 header"
872 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +0000873 ],/*empty*/,
874 wine_cv_linux_joystick_22_api=yes,
875 wine_cv_linux_joystick_22_api=no,
876 wine_cv_linux_joystick_22_api=no
877 )
878 )
Rein Klazes87d224a2000-04-24 17:33:49 +0000879 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +0000880 then
881 AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API)
882 fi
883fi
884
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000885dnl **** statfs checks ****
886
887if test "$ac_cv_header_sys_vfs_h" = "yes"
888then
889 AC_CACHE_CHECK( "whether sys/vfs.h defines statfs",
890 wine_cv_sys_vfs_has_statfs,
891 AC_TRY_COMPILE([
892 #include <sys/types.h>
893 #ifdef HAVE_SYS_PARAM_H
894 # include <sys/param.h>
895 #endif
896 #include <sys/vfs.h>
897 ],[
898 struct statfs stfs;
899
900 memset(&stfs,0,sizeof(stfs));
901 ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
902 )
903 )
904 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
905 then
906 AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS)
907 fi
908fi
909
910if test "$ac_cv_header_sys_statfs_h" = "yes"
911then
912 AC_CACHE_CHECK( "whether sys/statfs.h defines statfs",
913 wine_cv_sys_statfs_has_statfs,
914 AC_TRY_COMPILE([
915 #include <sys/types.h>
916 #ifdef HAVE_SYS_PARAM_H
917 # include <sys/param.h>
918 #endif
919 #include <sys/statfs.h>
920 ],[
921 struct statfs stfs;
922 ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
923 )
924 )
925 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
926 then
927 AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS)
928 fi
929fi
930
931if test "$ac_cv_header_sys_mount_h" = "yes"
932then
933 AC_CACHE_CHECK( "whether sys/mount.h defines statfs",
934 wine_cv_sys_mount_has_statfs,
935 AC_TRY_COMPILE([
936 #include <sys/types.h>
937 #ifdef HAVE_SYS_PARAM_H
938 # include <sys/param.h>
939 #endif
940 #include <sys/mount.h>
941 ],[
942 struct statfs stfs;
943 ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
944 )
945 )
946 if test "$wine_cv_sys_mount_has_statfs" = "yes"
947 then
948 AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT)
949 fi
950fi
951
952dnl **** FIXME: what about mixed cases, where we need two of them? ***
953
954AC_CACHE_CHECK( "for statfs.f_bfree", wine_cv_statfs_bfree,
955 [ if test "x$statfs_bfree" = "xno"
956 then
957 wine_cv_statfs_bfree=no
958 else
959 AC_TRY_COMPILE([
960 #include <sys/types.h>
961 #ifdef HAVE_SYS_PARAM_H
962 # include <sys/param.h>
963 #endif
964 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
965 # include <sys/mount.h>
966 #else
967 # ifdef STATFS_DEFINED_BY_SYS_VFS
968 # include <sys/vfs.h>
969 # else
970 # ifdef STATFS_DEFINED_BY_SYS_STATFS
971 # include <sys/statfs.h>
972 # endif
973 # endif
974 #endif
975 ],[
976 struct statfs stfs;
977
978 stfs.f_bfree++;
979 ],wine_cv_statfs_bfree=yes,wine_cv_statfs_bfree=no
980 )
981 fi ] )
982if test "$wine_cv_statfs_bfree" = "yes"
983then
984 AC_DEFINE(STATFS_HAS_BFREE)
985fi
986
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000987AC_CACHE_CHECK( "for statfs.f_bavail", wine_cv_statfs_bavail,
988 [ if test "x$statfs_bavail" = "xno"
989 then
990 wine_cv_statfs_bavail=no
991 else
992 AC_TRY_COMPILE([
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000993 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000994 #ifdef HAVE_SYS_PARAM_H
995 # include <sys/param.h>
996 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000997 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000998 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000999 #else
1000 # ifdef STATFS_DEFINED_BY_SYS_VFS
1001 # include <sys/vfs.h>
1002 # else
1003 # ifdef STATFS_DEFINED_BY_SYS_STATFS
1004 # include <sys/statfs.h>
1005 # endif
1006 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00001007 #endif
1008 ],[
1009 struct statfs stfs;
1010
1011 stfs.f_bavail++;
1012 ],wine_cv_statfs_bavail=yes,wine_cv_statfs_bavail=no
1013 )
1014 fi ] )
1015if test "$wine_cv_statfs_bavail" = "yes"
1016then
1017 AC_DEFINE(STATFS_HAS_BAVAIL)
1018fi
1019
Alexandre Julliard829fe321998-07-26 14:27:39 +00001020dnl *** check for file descriptor passing with msg_accrights
1021
1022AC_CACHE_CHECK("for msg_accrights in struct msghdr", ac_cv_c_msg_accrights,
1023 AC_TRY_COMPILE([#include <sys/types.h>
1024#include <sys/socket.h>],[struct msghdr hdr; hdr.msg_accrights=0],
1025 ac_cv_c_msg_accrights="yes", ac_cv_c_msg_accrights="no"))
1026if test "$ac_cv_c_msg_accrights" = "yes"
1027then
1028 AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS)
1029fi
1030
Juergen Lock2d33ab92000-02-13 16:03:29 +00001031dnl *** Check for the sun_len member in struct sockaddr_un
1032
1033AC_CACHE_CHECK("for sun_len in struct sockaddr_un", ac_cv_c_sun_len,
1034 AC_TRY_COMPILE([#include <sys/types.h>
1035#include <sys/socket.h>
1036#include <sys/un.h>], [static struct sockaddr_un addr; addr.sun_len = 1],
1037 ac_cv_c_sun_len="yes", ac_cv_c_sun_len="no"))
1038if test "$ac_cv_c_sun_len" = "yes"
1039then
1040 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)
1041fi
1042
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00001043dnl *** check for the need to define __i386__
1044
1045AC_CACHE_CHECK("whether we need to define __i386__",ac_cv_cpp_def_i386,
1046 AC_EGREP_CPP(yes,[#if (defined(i386) || defined(__i386)) && !defined(__i386__)
1047yes
1048#endif],
1049 ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no"))
1050if test "$ac_cv_cpp_def_i386" = "yes"
1051then
1052 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00001053 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00001054fi
1055
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00001056dnl $GCC is set by autoconf
1057GCC_NO_BUILTIN=""
1058if test "$GCC" = "yes"
1059then
1060 GCC_NO_BUILTIN="-fno-builtin"
1061fi
1062AC_SUBST(GCC_NO_BUILTIN)
1063
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001064dnl **** Generate output files ****
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00001066AC_OUTPUT_COMMANDS([
1067extra_subdirs="\
1068dlls/ddraw/d3ddevice \
1069dlls/ddraw/dclipper \
1070dlls/ddraw/ddraw \
1071dlls/ddraw/direct3d \
1072dlls/ddraw/dpalette \
1073dlls/ddraw/dsurface \
Lionel Ulmer6301e942000-11-05 20:25:02 +00001074dlls/dinput/joystick \
1075dlls/dinput/keyboard \
1076dlls/dinput/mouse \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00001077dlls/kernel/messages \
Alexandre Julliard2affae52000-10-23 21:32:05 +00001078dlls/user/resources \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00001079"
1080for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done ])
1081
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001082MAKE_RULES=Make.rules
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001083AC_SUBST_FILE(MAKE_RULES)
1084
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00001085MAKE_DLL_RULES=dlls/Makedll.rules
1086AC_SUBST_FILE(MAKE_DLL_RULES)
1087
Alexandre Julliard626f4252000-11-10 23:35:20 +00001088MAKE_PROG_RULES=programs/Makeprog.rules
1089AC_SUBST_FILE(MAKE_PROG_RULES)
1090
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001091AC_OUTPUT([
1092Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00001093dlls/Makedll.rules
1094programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001095Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00001096console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001097controls/Makefile
1098debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00001099dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00001100dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00001101dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00001102dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00001103dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001104dlls/crtdll/Makefile
1105dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00001106dlls/ddraw/Makefile
1107dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001108dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00001109dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001110dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001111dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00001112dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00001113dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001114dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00001115dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001116dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00001117dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00001118dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001119dlls/msnet32/Makefile
1120dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00001121dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00001122dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00001123dlls/ole32/Makefile
1124dlls/oleaut32/Makefile
1125dlls/olecli/Makefile
1126dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00001127dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00001128dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001129dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001130dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00001131dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00001132dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00001133dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00001134dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00001135dlls/setupapi/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00001136dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001137dlls/shfolder/Makefile
1138dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00001139dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001140dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00001141dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001142dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00001143dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001144dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001145dlls/winaspi/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00001146dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00001147dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001148dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00001149dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001150dlls/winmm/mcianim/Makefile
1151dlls/winmm/mciavi/Makefile
1152dlls/winmm/mcicda/Makefile
1153dlls/winmm/mciseq/Makefile
1154dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00001155dlls/winmm/midimap/Makefile
1156dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001157dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00001158dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00001159dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001160dlls/wow32/Makefile
1161dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001162dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00001163documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001164documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00001165documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001166files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00001167graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00001168graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00001169graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00001170graphics/win16drv/Makefile
1171graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001172if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00001173include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001174library/Makefile
1175libtest/Makefile
1176loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00001177loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001178loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001179memory/Makefile
1180misc/Makefile
1181miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00001182msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001183objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00001184ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00001185programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001186programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001187programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00001188programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001189programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001190programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001191programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00001192programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00001193programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001194programs/regtest/Makefile
1195programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001196programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00001197programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00001198programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001199programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00001200programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001201relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00001202scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00001203server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001204tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00001205tools/cvdump/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00001206tools/winebuild/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00001207tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00001208tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001209tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00001210tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00001211unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001212win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00001213windows/Makefile
1214windows/x11drv/Makefile ])
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001215
Ove Kaaven8b4431f1999-01-23 13:59:11 +00001216if test "$have_x" = "no"
1217then
1218 echo
1219 echo "*** Warning: X development files not found. Wine will be built without"
1220 echo "*** X support, which currently does not work, and would probably not be"
1221 echo "*** what you want anyway. You will need to install devel packages of"
1222 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00001223elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
1224then
1225 echo
1226 echo "*** Warning: Xpm development files not found. Wine will be built without"
1227 echo "*** Xpm support, which currently does not work. You will need to install"
1228 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00001229fi
1230
Alexandre Julliard638f1691999-01-17 16:32:32 +00001231if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
1232then
1233 echo
1234 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
1235 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00001236fi
1237
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001238if test "$wine_cv_libc_reentrant" = "no"
1239then
1240 echo
1241 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
1242 echo "*** thread support. Consider upgrading libc to a more recent"
1243 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001244fi
1245
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001246if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00001247then
1248 echo
1249 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00001250 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1251fi
1252
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001253if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00001254then
1255 echo
1256 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001257 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
1258 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
1259 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00001260fi
1261
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001262if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001263then
1264 echo
1265 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
1266 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
1267 echo "*** support before reporting bugs."
1268fi
1269
1270
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001271echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00001272echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001273echo
1274
1275dnl Local Variables:
1276dnl comment-start: "dnl "
1277dnl comment-end: ""
1278dnl comment-start-skip: "\\bdnl\\b\\s *"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001279dnl compile-command: "autoconf"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001280dnl End: