blob: 3c4be24616478f53cd2b11b0c503dac1c2ec43de [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 Julliarda0b2b1d1997-11-16 17:38:29 +000018AC_ARG_ENABLE(dll,
Alexandre Julliard0adad952000-01-26 01:45:58 +000019[ --disable-dll build static libraries instead of DLLs],
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000020[if test "$enableval" = "no"; then LIBEXT="a"; fi])
Alexandre Julliard642d3131998-07-12 19:29:36 +000021
Alexandre Julliardf90efa91998-06-14 15:24:15 +000022AC_ARG_ENABLE(debug,
23[ --disable-debug compile out all debugging messages],
24[if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi])
25
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000026AC_ARG_ENABLE(opengl,
27[ --enable-opengl force usage of OpenGL even if the latter is thread-safe],
28[if test "$enableval" = "no"; then OPENGL="no"; elif test "$enableval" = "yes"; then OPENGL="yes"; fi])
29
Alexandre Julliardf90efa91998-06-14 15:24:15 +000030AC_ARG_ENABLE(trace,
31[ --disable-trace compile out TRACE messages],
32[if test "$enableval" = "no"; then TRACE_MSGS="no"; fi])
33
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000034AC_ARG_WITH(curses,
35[ --without-curses do not use curses],
36[if test "$withval" = "no"; then CURSES="no"; fi])
37
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000038AC_ARG_WITH(reentrant-x,
Joseph Pranevich791cd6a1998-12-02 19:58:08 +000039[ --without-reentrant-x compile for use with non-reentrant X libraries])
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000040
Alexandre Julliard18f92e71996-07-17 20:02:21 +000041AC_SUBST(OPTIONS)
Alexandre Julliardb7258be1995-09-01 15:57:28 +000042
Alexandre Julliardf90efa91998-06-14 15:24:15 +000043if test "$DEBUG_MSGS" = "no"
44then
45 AC_DEFINE(NO_DEBUG_MSGS)
46 AC_DEFINE(NO_TRACE_MSGS)
47else
48 if test "$TRACE_MSGS" = "no"
49 then
50 AC_DEFINE(NO_TRACE_MSGS)
51 fi
52fi
53
Alexandre Julliard02e90081998-01-04 17:49:09 +000054dnl **** Check for some programs ****
Alexandre Julliardff8331e1995-09-18 11:19:54 +000055
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000056AC_PROG_MAKE_SET
57AC_PROG_CC
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000058AC_PROG_CPP
Alexandre Julliardff8331e1995-09-18 11:19:54 +000059AC_PATH_XTRA
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000060AC_PROG_YACC
61AC_PROG_LEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +000062AC_CHECK_PROGS(XLEX,$LEX flex lex,none)
63if test "$XLEX" = "none"
64then
65 echo "*** Error: No suitable lex found. ***"
66 echo " Please install the 'flex' package."
67 exit 1
68fi
69AC_DECL_YYTEXT
Alexandre Julliardff8331e1995-09-18 11:19:54 +000070AC_PROG_RANLIB
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000071AC_PROG_INSTALL
Alexandre Julliard641ee761997-08-04 16:34:36 +000072AC_PROG_LN_S
Mike McCormacke0df32f2000-08-11 21:15:21 +000073AC_CHECK_PROG(C2MAN,c2man,c2man,\$(TOPSRCDIR)/tools/c2man.pl)
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000074AC_PATH_PROG(LDCONFIG, ldconfig, true, /sbin:/usr/sbin:$PATH)
Alexandre Julliard02e90081998-01-04 17:49:09 +000075
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000076dnl Check for lint
77AC_CHECK_PROGS(LINT, lclint lint)
78if test "$LINT" = "lint"
79then
80 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
81 dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
82fi
83AC_SUBST(LINT)
84AC_SUBST(LINTFLAGS)
85
Alexandre Julliard02e90081998-01-04 17:49:09 +000086dnl **** Check for some libraries ****
87
Howard Abrams13277481999-07-10 13:16:29 +000088dnl Check for -lm for BeOS
89AC_CHECK_LIB(m,sqrt)
Alexandre Julliardd37eb361997-07-20 16:23:21 +000090dnl Check for -li386 for NetBSD and OpenBSD
Alexandre Julliard02e90081998-01-04 17:49:09 +000091AC_CHECK_LIB(i386,i386_set_ldt)
Todd Vierlingecc76691998-12-15 17:49:02 +000092dnl Check for -lossaudio for NetBSD
93AC_CHECK_LIB(ossaudio,_oss_ioctl)
Alexandre Julliard02e90081998-01-04 17:49:09 +000094dnl Check for -lw for Solaris
95AC_CHECK_LIB(w,iswalnum)
Patrik Stridvallea584721998-11-01 16:22:07 +000096dnl Check for -lnsl for Solaris
Ron Recorde977d6c1999-09-05 12:32:05 +000097AC_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 +000098dnl Check for -lsocket for Solaris
Marcus Meissnerf070fda1999-04-24 12:02:14 +000099AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000100dnl Check for -lxpg4 for FreeBSD
101AC_CHECK_LIB(xpg4,setrunelocale)
Alexandre Julliard0e7bd081999-05-02 11:46:02 +0000102dnl Check for -lmmap for OS/2
103AC_CHECK_LIB(mmap,mmap)
Marcus Meissner2d7be871999-12-05 23:06:40 +0000104dnl Check for openpty
105AC_CHECK_FUNCS(openpty,,
106 AC_CHECK_LIB(util,openpty,
107 AC_DEFINE(HAVE_OPENPTY)
108 LIBS="$LIBS -lutil"
109 ))
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000110
111AC_CHECK_HEADERS(dlfcn.h,
112 AC_CHECK_FUNCS(dlopen,
113 AC_DEFINE(HAVE_DL_API),
114 AC_CHECK_LIB(dl,dlopen,
115 AC_DEFINE(HAVE_DL_API)
Alexandre Julliarde1e75372000-04-24 17:17:49 +0000116 LIBS="$LIBS -ldl",
117 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000118 )
Alexandre Julliarde1e75372000-04-24 17:17:49 +0000119 ),
120 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000121)
Patrik Stridvallea584721998-11-01 16:22:07 +0000122AC_SUBST(XLIB)
Patrik Stridvall2941a212000-04-25 20:34:22 +0000123AC_SUBST(X_DLLS)
124X_DLLS=""
125AC_SUBST(XFILES)
126XFILES=""
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000127AC_SUBST(OPENGLFILES)
128OPENGLFILES=""
Hidenori Takeshima4615e292000-05-23 23:36:41 +0000129AC_SUBST(OPENGL32_DLL)
130OPENGL32_DLL=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +0000131AC_SUBST(DGA_SRCS)
132DGA_SRCS=""
Lionel Ulmer51177f92000-05-01 14:25:49 +0000133AC_SUBST(DGA2_SRCS)
134DGA2_SRCS=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +0000135AC_SUBST(MESA_SRCS)
136MESA_SRCS=""
Patrik Stridvallea584721998-11-01 16:22:07 +0000137if test "$have_x" = "yes"
138then
Patrik Stridvall24110281999-02-04 10:09:54 +0000139 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +0000140 ac_save_CPPFLAGS="$CPPFLAGS"
141 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvall24110281999-02-04 10:09:54 +0000142
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000143 dnl *** Check for -lXpm
144 AC_CHECK_HEADERS(X11/xpm.h,
145 [ dnl *** If X11/xpm.h exists...
146 AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,
147 [ AC_DEFINE(HAVE_LIBXXPM) X_PRE_LIBS="$X_PRE_LIBS -lXpm"],,
148 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
149 )
150 ],
151 [ dnl *** If X11/xpm.h does not exist...
152 dnl NOTE: autoconf does not allow commas inside the third
153 dnl parameter to AC_CHECK_HEADERS, due to some quoting
154 dnl magic it does.
155 echo "Redhat : xpm xpm-devel"
156 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +0000157 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000158 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +0000159 echo
160 echo "Or get the sources from ftp.x.org and all its mirror sites from "
161 echo "the directory /contrib/libraries."
162 echo
163 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000164 ]
165 )
Patrik Stridvall24110281999-02-04 10:09:54 +0000166
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000167 dnl *** All three of the following tests require X11/Xlib.h
168 AC_CHECK_HEADERS(X11/Xlib.h,
169 [
170 dnl *** Check for X Shm extension
171 AC_CHECK_HEADERS(X11/extensions/XShm.h,
172 [ dnl *** If X11/extensions/XShm.h exists...
173 AC_CHECK_LIB(Xext, XShmQueryExtension,
174 AC_DEFINE(HAVE_LIBXXSHM),,
175 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
176 ],
177 AC_MSG_WARN([Xshm extension not found!!])
178 )
Marcus Meissnercb99b0e1999-12-20 04:10:06 +0000179
Francois Jacques5b6879c2000-07-28 23:04:54 +0000180 dnl *** Check for X shape extension
181 AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/shape.h,
182 [ dnl *** If X11/extensions/shape.h exists...
183 AC_CHECK_LIB(Xext,XShapeQueryExtension,
184 AC_DEFINE(HAVE_LIBXSHAPE),,
185 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
186 ],
187 AC_MSG_WARN([XShape extension found!!])
188 )
189
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000190 dnl *** Check for XFree86 DGA / DGA 2.0 extension
191 AC_CHECK_HEADERS(X11/extensions/xf86dga.h,
192 [ dnl *** If X11/extensions/xf86dga.h exists, check
193 dnl *** for XDGAQueryExtension()...
194 AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
195 [ dnl *** If found...
196 AC_DEFINE(HAVE_LIBXXF86DGA2)
197 AC_DEFINE(HAVE_LIBXXF86DGA)
198 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
199 DGA_SRCS='$(DGA_SRCS)'
200 DGA2_SRCS='$(DGA2_SRCS)'
201 ],
202 [ dnl *** If not found, look for XF86DGAQueryExtension()
203 dnl *** instead (DGA 2.0 not found)...
204 AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
205 [ AC_DEFINE(HAVE_LIBXXF86DGA)
206 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
207 DGA_SRCS='$(DGA_SRCS)'
208 ],,
209 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
210 )
211 ],
212 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
213 )
214 ],
215 AC_MSG_WARN([DGA extension not found!!])
216 )
Patrik Stridvall24110281999-02-04 10:09:54 +0000217
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000218 dnl *** Check for XFree86 VMODE extension
219 AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,
220 [ dnl *** If X11/extensions/xf86vmode.h exists...
221 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
222 [ AC_DEFINE(HAVE_LIBXXF86VM)
223 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
224 ],,
225 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
226 )
227 ],
228 AC_MSG_WARN([XFree86 VMODE extension not found!!])
229 )
230 ]
231 ) dnl *** End of X11/Xlib.h check
Lionel Ulmer5c085701999-02-28 19:48:53 +0000232
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000233 dnl Check for the presence of OpenGL
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000234 if test $OPENGL = "yes" -o $OPENGL = "normal"
Patrik Stridvall24110281999-02-04 10:09:54 +0000235 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000236 AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
Marcus Meissner22a969b2000-08-08 20:46:50 +0000237 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000238 then
239 dnl Check for some problems due to old Mesa versions
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000240 AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000241 AC_TRY_COMPILE(
Lionel Ulmer48c08162000-01-05 01:51:02 +0000242 [#include <GL/gl.h>],
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000243 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000244 [wine_cv_opengl_version_OK="yes"],
245 [wine_cv_opengl_version_OK="no"]
Lionel Ulmer48c08162000-01-05 01:51:02 +0000246 )
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000247 )
248
249 dnl Check for the thread-safety of the OpenGL library
250 AC_CACHE_CHECK("for thread-safe OpenGL version",
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000251 wine_cv_opengl_version_threadsafe,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000252 [saved_libs=$LIBS
253 LIBS="$X_LIBS -lGL"
254 AC_TRY_LINK([],[pthread_getspecific();],
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000255 [wine_cv_opengl_version_threadsafe="yes"],
256 [wine_cv_opengl_version_threadsafe="no"])
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000257 LIBS=$saved_libs]
Lionel Ulmer48c08162000-01-05 01:51:02 +0000258 )
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000259
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000260 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 +0000261 then
Andreas Mohr4eefb962000-08-01 00:27:35 +0000262 dnl Check for the presence of the library
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000263 AC_CHECK_LIB(GL,glXCreateContext,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000264 X_PRE_LIBS="$X_PRE_LIBS -lGL"
265 MESA_SRCS='$(MESA_SRCS)'
266 ,,
267 $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
268
Marcus Meissner22a969b2000-08-08 20:46:50 +0000269
270 OPENGLFILES='$(OPENGLFILES)'
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +0000271 AC_DEFINE(HAVE_OPENGL)
Marcus Meissner22a969b2000-08-08 20:46:50 +0000272
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000273 if test $ac_cv_lib_GL_glXCreateContext = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000274 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000275 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 +0000276
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000277 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
278 then
Lionel Ulmer1434d872000-07-23 14:23:31 +0000279 AC_CACHE_CHECK("for OpenGL extension functions prototypes", wine_cv_extension_prototypes,
280 AC_TRY_COMPILE([#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +0000281 #ifdef HAVE_GL_GLEXT_H
282 # include <GL/glext.h>
283 #endif
284 ],
Lionel Ulmer1434d872000-07-23 14:23:31 +0000285 [PFNGLCOLORTABLEEXTPROC test_proc;],
Lionel Ulmerfe210ef2000-07-29 11:30:56 +0000286 [wine_cv_extension_prototypes="yes"],
Lionel Ulmer1434d872000-07-23 14:23:31 +0000287 [wine_cv_extension_prototypes="no"]
288 )
289 )
Lionel Ulmerfe210ef2000-07-29 11:30:56 +0000290 if test $wine_cv_extension_prototypes = "yes"
291 then
292 AC_DEFINE(HAVE_GLEXT_PROTOTYPES)
293 fi
Lionel Ulmer1434d872000-07-23 14:23:31 +0000294
Hidenori Takeshima4615e292000-05-23 23:36:41 +0000295 OPENGL32_DLL=opengl32
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000296 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000297 fi
298 fi
299 fi
Patrik Stridvall24110281999-02-04 10:09:54 +0000300 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +0000301
302 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +0000303 X_DLLS='$(X_DLLS)'
304 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +0000305else
306 XLIB=""
307 X_CFLAGS=""
308 X_LIBS=""
309fi
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000310
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000311dnl **** Check which curses lib to use ***
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000312if test "$CURSES" = "yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +0000313then
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000314 AC_CHECK_HEADERS(ncurses.h)
315 if test "$ac_cv_header_ncurses_h" = "yes"
316 then
317 AC_CHECK_LIB(ncurses,waddch)
318 fi
319 if test "$ac_cv_lib_ncurses_waddch" = "yes"
320 then
321 AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
322 AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
323 else
324 AC_CHECK_HEADERS(curses.h)
325 if test "$ac_cv_header_curses_h" = "yes"
326 then
327 AC_CHECK_LIB(curses,waddch)
328 if test "$ac_cv_lib_curses_waddch" = "yes"
329 then
330 AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
331 AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
332 fi
333 fi
Patrik Stridvall24110281999-02-04 10:09:54 +0000334 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000335fi
336
Pavel Roskin94d99641998-12-26 11:52:51 +0000337dnl **** Check for IPX (currently Linux only) ****
338AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu,
339 AC_TRY_COMPILE(
340 [#include <sys/socket.h>
341 #include <netipx/ipx.h>],
342 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
Aaron Hopec23872d2000-01-15 23:43:21 +0000343 [ac_cv_c_ipx_gnu="yes"],
Pavel Roskin94d99641998-12-26 11:52:51 +0000344 [ac_cv_c_ipx_gnu="no"])
345 )
Aaron Hopec23872d2000-01-15 23:43:21 +0000346if test "$ac_cv_c_ipx_gnu" = "yes"
347then
348 AC_DEFINE(HAVE_IPX_GNU)
349fi
Pavel Roskin94d99641998-12-26 11:52:51 +0000350
351if test "$ac_cv_c_ipx_gnu" = "no"
352then
353 AC_CACHE_CHECK("for linux style IPX support", ac_cv_c_ipx_linux,
354 AC_TRY_COMPILE(
355 [#include <sys/socket.h>
356 #include <asm/types.h>
357 #include <linux/ipx.h>],
358 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
Aaron Hopec23872d2000-01-15 23:43:21 +0000359 [ac_cv_c_ipx_linux="yes"],
Pavel Roskin94d99641998-12-26 11:52:51 +0000360 [ac_cv_c_ipx_linux="no"])
361 )
Aaron Hopec23872d2000-01-15 23:43:21 +0000362 if test "$ac_cv_c_ipx_linux" = "yes"
363 then
364 AC_DEFINE(HAVE_IPX_LINUX)
365 fi
Pavel Roskin94d99641998-12-26 11:52:51 +0000366fi
367
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000368dnl **** Check for Open Sound System ****
Todd Vierlingecc76691998-12-15 17:49:02 +0000369AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000370
371AC_CACHE_CHECK("for Open Sound System",
372 ac_cv_c_opensoundsystem,
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000373 AC_TRY_COMPILE([
Todd Vierlingecc76691998-12-15 17:49:02 +0000374 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000375 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +0000376 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000377 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +0000378 #elif defined(HAVE_SOUNDCARD_H)
379 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000380 #endif
381 ],[
382
Alexandre Julliard60ce85c1998-02-01 18:33:27 +0000383/* check for one of the Open Sound System specific SNDCTL_ defines */
384#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000385#error No open sound system
386#endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000387],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
388
389if test "$ac_cv_c_opensoundsystem" = "yes"
390then
391 AC_DEFINE(HAVE_OSS)
392fi
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000393
Eric Pouech338d3b21999-05-22 18:52:21 +0000394AC_CACHE_CHECK("for Open Sound System/MIDI interface",
395 ac_cv_c_opensoundsystem_midi,
396 AC_TRY_COMPILE([
397 #if defined(HAVE_SYS_SOUNDCARD_H)
398 #include <sys/soundcard.h>
399 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
400 #include <machine/soundcard.h>
401 #elif defined(HAVE_SOUNDCARD_H)
402 #include <soundcard.h>
403 #endif
404 ],[
405
406/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
407#if !defined(SNDCTL_SEQ_SYNC)
408#error No open sound system MIDI interface
409#endif
410],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
411
412if test "$ac_cv_c_opensoundsystem_midi" = "yes"
413then
414 AC_DEFINE(HAVE_OSS_MIDI)
415fi
416
Alexandre Julliard641ee761997-08-04 16:34:36 +0000417dnl **** If ln -s doesn't work, use cp instead ****
418if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
419
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000420dnl **** Check for gcc strength-reduce bug ****
421
422if test "x${GCC}" = "xyes"
423then
424 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000425 AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug,
426 AC_TRY_RUN([
427int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +0000428 static int Array[[3]];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000429 unsigned int B = 3;
430 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +0000431 for(i=0; i<B; i++) Array[[i]] = i - 3;
432 exit( Array[[1]] != -2 );
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000433}],
434 ac_cv_c_gcc_strength_bug="no",
435 ac_cv_c_gcc_strength_bug="yes",
436 ac_cv_c_gcc_strength_bug="yes") )
437 if test "$ac_cv_c_gcc_strength_bug" = "yes"
438 then
439 CFLAGS="$CFLAGS -fno-strength-reduce"
440 fi
441fi
442
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +0000443dnl **** Check for underscore on external symbols ****
444
445AC_CACHE_CHECK("whether external symbols need an underscore prefix",
446 ac_cv_c_extern_prefix,
447[saved_libs=$LIBS
448LIBS="conftest_asm.s $LIBS"
449cat > conftest_asm.s <<EOF
450 .globl _ac_test
451_ac_test:
452 .long 0
453EOF
454AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1],
455 ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no")
456LIBS=$saved_libs])
457if test "$ac_cv_c_extern_prefix" = "yes"
458then
459 AC_DEFINE(NEED_UNDERSCORE_PREFIX)
460fi
461
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000462dnl **** Check for .string in assembler ****
463
464AC_CACHE_CHECK("whether assembler accepts .string",
465 ac_cv_c_asm_string,
466[saved_libs=$LIBS
467LIBS="conftest_asm.s $LIBS"
468cat > conftest_asm.s <<EOF
469 .string "test"
470EOF
471AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no")
472LIBS=$saved_libs])
473if test "$ac_cv_c_asm_string" = "yes"
474then
475 AC_DEFINE(HAVE_ASM_STRING)
476fi
477
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000478dnl **** Check for working dll ****
479
Todd Vierling4b992b01998-12-15 15:26:27 +0000480LDSHARED=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000481if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000482then
Todd Vierling4b992b01998-12-15 15:26:27 +0000483 AC_CACHE_CHECK("whether we can build a Linux dll",
484 ac_cv_c_dll_linux,
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000485 [saved_cflags=$CFLAGS
486 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
Todd Vierling4b992b01998-12-15 15:26:27 +0000487 AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no")
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000488 CFLAGS=$saved_cflags
489 ])
Todd Vierling4b992b01998-12-15 15:26:27 +0000490 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000491 then
Alexandre Julliard0adad952000-01-26 01:45:58 +0000492 LDSHARED="\$(CC) -shared -Wl,-soname,\$(SONAME),-rpath,\$(libdir)"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000493 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000494 AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll,
Ron Recorde977d6c1999-09-05 12:32:05 +0000495 ac_cv_c_dll_unixware,
Todd Vierling4b992b01998-12-15 15:26:27 +0000496 [saved_cflags=$CFLAGS
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000497 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0"
Ron Recorde977d6c1999-09-05 12:32:05 +0000498 AC_TRY_LINK(,[return 1],ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")
Todd Vierling4b992b01998-12-15 15:26:27 +0000499 CFLAGS=$saved_cflags
500 ])
Ron Recorde977d6c1999-09-05 12:32:05 +0000501 if test "$ac_cv_c_dll_unixware" = "yes"
Todd Vierling4b992b01998-12-15 15:26:27 +0000502 then
Alexandre Julliard0adad952000-01-26 01:45:58 +0000503 LDSHARED="\$(CC) -Wl,-G,-h,\$(libdir)/\$(SONAME)"
Ron Recorde977d6c1999-09-05 12:32:05 +0000504 else
505 AC_CACHE_CHECK("whether we can build a NetBSD dll",
506 ac_cv_c_dll_netbsd,
507 [saved_cflags=$CFLAGS
508 CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive"
509 AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
510 CFLAGS=$saved_cflags
511 ])
512 if test "$ac_cv_c_dll_netbsd" = "yes"
513 then
Ron Recorde977d6c1999-09-05 12:32:05 +0000514 LDSHARED="ld -Bshareable -Bforcearchive"
515 fi
Todd Vierling4b992b01998-12-15 15:26:27 +0000516 fi
517 fi
Ron Recorde977d6c1999-09-05 12:32:05 +0000518 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 +0000519 then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000520 LIBEXT="a"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000521 fi
522fi
Alexandre Julliard0adad952000-01-26 01:45:58 +0000523
524DLLFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +0000525
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000526if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000527 DLLFLAGS="-fPIC"
Alexandre Julliard7e495e12000-07-25 21:01:59 +0000528 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
Alexandre Julliard0adad952000-01-26 01:45:58 +0000529else
Alexandre Julliard7e495e12000-07-25 21:01:59 +0000530 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000531 AC_CACHE_CHECK([whether the linker supports --[[no]]-whole-archive (Linux)],
532 ac_cv_c_whole_archive,
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000533 [saved_cflags=$CFLAGS
534 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
535 AC_TRY_LINK(,[return 1],ac_cv_c_whole_archive="yes",ac_cv_c_whole_archive="no")
536 CFLAGS=$saved_cflags
537 ])
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000538 if test "$ac_cv_c_whole_archive" = "yes"
539 then
540 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
541 else
542 AC_CACHE_CHECK([whether the linker supports -z {all,default}extract (Linux)],
543 ac_cv_c_allextract,
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000544 [saved_cflags=$CFLAGS
545 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
546 AC_TRY_LINK(,[return 1],ac_cv_c_allextract="yes",ac_cv_c_allextract="no")
547 CFLAGS=$saved_cflags
548 ])
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000549 if test "$ac_cv_c_allextract" = "yes"
550 then
551 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000552 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +0000553 fi
554fi
555
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000556AC_SUBST(DLL_LINK)
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000557AC_SUBST(DLLFLAGS)
Todd Vierling4b992b01998-12-15 15:26:27 +0000558AC_SUBST(LDSHARED)
Alexandre Julliard0adad952000-01-26 01:45:58 +0000559AC_SUBST(LIBEXT)
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000560
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000561dnl **** Check for reentrant libc ****
562dnl
563dnl For cross-compiling we blindly assume that libc is reentrant. This is
564dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions).
565
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000566wine_cv_libc_reentrant=no
Marcus Meissnerc2606381999-04-11 15:20:29 +0000567dnl
568dnl Linux style errno location
569dnl
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000570AC_CACHE_CHECK("for reentrant libc: __errno_location", wine_cv_libc_r__errno_location,
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000571 [AC_TRY_RUN([int myerrno = 0;
572char buf[256];
573int *__errno_location(){return &myerrno;}
574main(){connect(0,buf,255); exit(!myerrno);}],
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000575 wine_cv_libc_r__errno_location=yes, wine_cv_libc_r__errno_location=no,
576 wine_cv_libc_r__errno_location=yes )
577])
578if test "$wine_cv_libc_r__errno_location" = "yes"
579then
580 AC_DEFINE(HAVE__ERRNO_LOCATION)
581 wine_cv_libc_reentrant=__errno_location
582fi
Marcus Meissnerc2606381999-04-11 15:20:29 +0000583dnl
584dnl FreeBSD style errno location
585dnl
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000586AC_CACHE_CHECK("for reentrant libc: __error", wine_cv_libc_r__error,
587 [AC_TRY_RUN([int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +0000588char buf[256];
589int *__error(){return &myerrno;}
590main(){connect(0,buf,255); exit(!myerrno);}],
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000591 wine_cv_libc_r__error=yes, wine_cv_libc_r__error=no,
592 wine_cv_libc_r__error=yes )
Marcus Meissnerc2606381999-04-11 15:20:29 +0000593])
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000594if test "$wine_cv_libc_r__error" = "yes"
595then
596 AC_DEFINE(HAVE__ERROR)
597 wine_cv_libc_reentrant=__error
598fi
599dnl
600dnl Solaris style errno location
601dnl
602AC_CACHE_CHECK("for reentrant libc: ___errno", wine_cv_libc_r___errno,
603 [AC_TRY_RUN([int myerrno = 0;
604char buf[256];
605int *___errno(){return &myerrno;}
606main(){connect(0,buf,255); exit(!myerrno);}],
607 wine_cv_libc_r___errno=yes, wine_cv_libc_r___errno=no,
608 wine_cv_libc_r___errno=yes )
609])
610if test "$wine_cv_libc_r___errno" = "yes"
611then
612 AC_DEFINE(HAVE___ERRNO)
613 wine_cv_libc_reentrant=___errno
614fi
Ron Recorde977d6c1999-09-05 12:32:05 +0000615dnl
616dnl UnixWare style errno location
617dnl
618AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno,
619 [AC_TRY_RUN([int myerrno = 0;
620char buf[256];
621int *__thr_errno(){return &myerrno;}
622main(){connect(0,buf,255); exit(!myerrno);}],
623 wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no,
624 wine_cv_libc_r__thr_errno=yes )
625])
626if test "$wine_cv_libc_r__thr_errno" = "yes"
627then
628 AC_DEFINE(HAVE__THR_ERRNO)
629 wine_cv_libc_reentrant=__thr_errno
630fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000631if test "$wine_cv_libc_reentrant" = "no"
632then
633 AC_DEFINE(NO_REENTRANT_LIBC)
634fi
635
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000636dnl **** Check for reentrant X libraries ****
637dnl
638dnl This may fail to determine whether X libraries are reentrant if
639dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration
640dnl is possible with the --without-reentrant-x option.
641
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000642if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +0000643then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000644AC_CACHE_CHECK( "for reentrant X libraries", wine_cv_x_reentrant,
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000645 [ if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000646 then
647 wine_cv_x_reentrant=no
648 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000649 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000650 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +0000651 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000652 libX11_check="-D $dir/libX11.so"
653 break 1
654 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +0000655 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000656 libX11_check="$dir/libX11.a"
657 break 1
658 fi
659 done
660 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000661 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +0000662 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000663 wine_cv_x_reentrant=yes
664 else
665 wine_cv_x_reentrant=no
666 fi
667 else
668 wine_cv_x_reentrant=unknown
669 fi
670 fi ] )
Patrik Stridvall24110281999-02-04 10:09:54 +0000671else
672 wine_cv_x_reentrant=no
673fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000674if test "$wine_cv_x_reentrant" = "no"
675then
676 AC_DEFINE(NO_REENTRANT_X11)
677fi
678
Francois Gougetae5e93e1999-11-13 23:02:06 +0000679dnl **** Check for endianness ****
680
681AC_C_BIGENDIAN
682
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000683dnl **** Check for functions ****
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000684
Patrik Stridvall1bb94031999-05-08 15:47:44 +0000685AC_FUNC_ALLOCA()
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000686AC_CHECK_FUNCS(\
Eric Pouechf61d7e02000-04-29 16:44:19 +0000687 __libc_fork \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000688 _lwp_create \
689 clone \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000690 getnetbyaddr \
691 getnetbyname \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000692 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000693 getprotobyname \
694 getprotobynumber \
695 getservbyport \
696 getsockopt \
697 inet_network \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000698 memmove \
699 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000700 select \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000701 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000702 settimeofday \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000703 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000704 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +0000705 strcasecmp \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000706 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +0000707 strncasecmp \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000708 tcgetattr \
709 timegm \
710 usleep \
711 vfscanf \
712 wait4 \
713 waitpid \
714)
715
716dnl **** Check for header files ****
717
718AC_CHECK_HEADERS(\
Patrik Stridvall96336321999-10-24 22:13:47 +0000719 a.out.h \
720 a_out.h \
721 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000722 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000723 elf.h \
724 float.h \
725 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +0000726 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000727 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000728 linux/cdrom.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +0000729 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000730 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000731 net/if.h \
732 netinet/in.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000733 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +0000734 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000735 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000736 sched.h \
737 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000738 strings.h \
739 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +0000740 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000741 sys/file.h \
742 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000743 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000744 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +0000745 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000746 sys/modem.h \
747 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000748 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000749 sys/param.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +0000750 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +0000751 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000752 sys/shm.h \
753 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000754 sys/sockio.h \
755 sys/statfs.h \
756 sys/strtio.h \
757 sys/syscall.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000758 sys/wait.h \
759 sys/v86.h \
760 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000761 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000762 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000763 syscall.h \
Alexandre Julliardc97bb4c2000-08-11 20:53:40 +0000764 ucontext.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000765)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000766AC_HEADER_STAT()
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000767
768dnl **** Check for types ****
769
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000770AC_C_CONST()
Marcus Meissner1a8bbd71999-04-26 14:58:58 +0000771AC_C_INLINE()
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000772AC_TYPE_SIZE_T()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000773AC_CHECK_SIZEOF(long long,0)
774
Marcus Meissner028e9a11999-08-04 15:07:56 +0000775if test "$ac_cv_header_linux_joystick_h" = "yes"
776then
777 AC_CACHE_CHECK("whether linux/joystick.h uses the Linux 2.2+ API",
778 wine_cv_linux_joystick_22_api,
779 AC_TRY_COMPILE([
780 #include <sys/ioctl.h>
781 #include <linux/joystick.h>
782
783 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +0000784 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
785 #error "no 2.2 header"
786 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +0000787 ],/*empty*/,
788 wine_cv_linux_joystick_22_api=yes,
789 wine_cv_linux_joystick_22_api=no,
790 wine_cv_linux_joystick_22_api=no
791 )
792 )
Rein Klazes87d224a2000-04-24 17:33:49 +0000793 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +0000794 then
795 AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API)
796 fi
797fi
798
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000799dnl **** statfs checks ****
800
801if test "$ac_cv_header_sys_vfs_h" = "yes"
802then
803 AC_CACHE_CHECK( "whether sys/vfs.h defines statfs",
804 wine_cv_sys_vfs_has_statfs,
805 AC_TRY_COMPILE([
806 #include <sys/types.h>
807 #ifdef HAVE_SYS_PARAM_H
808 # include <sys/param.h>
809 #endif
810 #include <sys/vfs.h>
811 ],[
812 struct statfs stfs;
813
814 memset(&stfs,0,sizeof(stfs));
815 ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
816 )
817 )
818 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
819 then
820 AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS)
821 fi
822fi
823
824if test "$ac_cv_header_sys_statfs_h" = "yes"
825then
826 AC_CACHE_CHECK( "whether sys/statfs.h defines statfs",
827 wine_cv_sys_statfs_has_statfs,
828 AC_TRY_COMPILE([
829 #include <sys/types.h>
830 #ifdef HAVE_SYS_PARAM_H
831 # include <sys/param.h>
832 #endif
833 #include <sys/statfs.h>
834 ],[
835 struct statfs stfs;
836 ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
837 )
838 )
839 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
840 then
841 AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS)
842 fi
843fi
844
845if test "$ac_cv_header_sys_mount_h" = "yes"
846then
847 AC_CACHE_CHECK( "whether sys/mount.h defines statfs",
848 wine_cv_sys_mount_has_statfs,
849 AC_TRY_COMPILE([
850 #include <sys/types.h>
851 #ifdef HAVE_SYS_PARAM_H
852 # include <sys/param.h>
853 #endif
854 #include <sys/mount.h>
855 ],[
856 struct statfs stfs;
857 ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
858 )
859 )
860 if test "$wine_cv_sys_mount_has_statfs" = "yes"
861 then
862 AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT)
863 fi
864fi
865
866dnl **** FIXME: what about mixed cases, where we need two of them? ***
867
868AC_CACHE_CHECK( "for statfs.f_bfree", wine_cv_statfs_bfree,
869 [ if test "x$statfs_bfree" = "xno"
870 then
871 wine_cv_statfs_bfree=no
872 else
873 AC_TRY_COMPILE([
874 #include <sys/types.h>
875 #ifdef HAVE_SYS_PARAM_H
876 # include <sys/param.h>
877 #endif
878 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
879 # include <sys/mount.h>
880 #else
881 # ifdef STATFS_DEFINED_BY_SYS_VFS
882 # include <sys/vfs.h>
883 # else
884 # ifdef STATFS_DEFINED_BY_SYS_STATFS
885 # include <sys/statfs.h>
886 # endif
887 # endif
888 #endif
889 ],[
890 struct statfs stfs;
891
892 stfs.f_bfree++;
893 ],wine_cv_statfs_bfree=yes,wine_cv_statfs_bfree=no
894 )
895 fi ] )
896if test "$wine_cv_statfs_bfree" = "yes"
897then
898 AC_DEFINE(STATFS_HAS_BFREE)
899fi
900
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000901AC_CACHE_CHECK( "for statfs.f_bavail", wine_cv_statfs_bavail,
902 [ if test "x$statfs_bavail" = "xno"
903 then
904 wine_cv_statfs_bavail=no
905 else
906 AC_TRY_COMPILE([
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000907 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000908 #ifdef HAVE_SYS_PARAM_H
909 # include <sys/param.h>
910 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000911 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000912 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000913 #else
914 # ifdef STATFS_DEFINED_BY_SYS_VFS
915 # include <sys/vfs.h>
916 # else
917 # ifdef STATFS_DEFINED_BY_SYS_STATFS
918 # include <sys/statfs.h>
919 # endif
920 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000921 #endif
922 ],[
923 struct statfs stfs;
924
925 stfs.f_bavail++;
926 ],wine_cv_statfs_bavail=yes,wine_cv_statfs_bavail=no
927 )
928 fi ] )
929if test "$wine_cv_statfs_bavail" = "yes"
930then
931 AC_DEFINE(STATFS_HAS_BAVAIL)
932fi
933
Alexandre Julliard829fe321998-07-26 14:27:39 +0000934dnl *** check for file descriptor passing with msg_accrights
935
936AC_CACHE_CHECK("for msg_accrights in struct msghdr", ac_cv_c_msg_accrights,
937 AC_TRY_COMPILE([#include <sys/types.h>
938#include <sys/socket.h>],[struct msghdr hdr; hdr.msg_accrights=0],
939 ac_cv_c_msg_accrights="yes", ac_cv_c_msg_accrights="no"))
940if test "$ac_cv_c_msg_accrights" = "yes"
941then
942 AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS)
943fi
944
Juergen Lock2d33ab92000-02-13 16:03:29 +0000945dnl *** Check for the sun_len member in struct sockaddr_un
946
947AC_CACHE_CHECK("for sun_len in struct sockaddr_un", ac_cv_c_sun_len,
948 AC_TRY_COMPILE([#include <sys/types.h>
949#include <sys/socket.h>
950#include <sys/un.h>], [static struct sockaddr_un addr; addr.sun_len = 1],
951 ac_cv_c_sun_len="yes", ac_cv_c_sun_len="no"))
952if test "$ac_cv_c_sun_len" = "yes"
953then
954 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)
955fi
956
Alexandre Julliard51d46ba1999-05-08 16:05:27 +0000957dnl *** check for the need to define __i386__
958
959AC_CACHE_CHECK("whether we need to define __i386__",ac_cv_cpp_def_i386,
960 AC_EGREP_CPP(yes,[#if (defined(i386) || defined(__i386)) && !defined(__i386__)
961yes
962#endif],
963 ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no"))
964if test "$ac_cv_cpp_def_i386" = "yes"
965then
966 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +0000967 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +0000968fi
969
Marcus Meissnera7f5cb51999-04-16 08:47:41 +0000970dnl $GCC is set by autoconf
971GCC_NO_BUILTIN=""
972if test "$GCC" = "yes"
973then
974 GCC_NO_BUILTIN="-fno-builtin"
975fi
976AC_SUBST(GCC_NO_BUILTIN)
977
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000978dnl **** Generate output files ****
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000979
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +0000980AC_OUTPUT_COMMANDS([
981extra_subdirs="\
982dlls/ddraw/d3ddevice \
983dlls/ddraw/dclipper \
984dlls/ddraw/ddraw \
985dlls/ddraw/direct3d \
986dlls/ddraw/dpalette \
987dlls/ddraw/dsurface \
Alexandre Julliardd1d09052000-07-30 13:39:52 +0000988dlls/kernel/messages \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +0000989"
990for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done ])
991
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000992MAKE_RULES=Make.rules
Alexandre Julliardff8331e1995-09-18 11:19:54 +0000993AC_SUBST_FILE(MAKE_RULES)
994
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +0000995MAKE_DLL_RULES=dlls/Makedll.rules
996AC_SUBST_FILE(MAKE_DLL_RULES)
997
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000998AC_OUTPUT([
999Make.rules
1000Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00001001console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001002controls/Makefile
1003debugger/Makefile
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00001004dlls/Makedll.rules
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00001005dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00001006dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00001007dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00001008dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00001009dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001010dlls/crtdll/Makefile
1011dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00001012dlls/ddraw/Makefile
1013dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001014dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00001015dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001016dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001017dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00001018dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00001019dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001020dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00001021dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001022dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00001023dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00001024dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001025dlls/msnet32/Makefile
1026dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00001027dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00001028dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00001029dlls/ole32/Makefile
1030dlls/oleaut32/Makefile
1031dlls/olecli/Makefile
1032dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00001033dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00001034dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001035dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001036dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00001037dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00001038dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00001039dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00001040dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00001041dlls/setupapi/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00001042dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001043dlls/shfolder/Makefile
1044dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00001045dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001046dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00001047dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001048dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00001049dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001050dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001051dlls/winaspi/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00001052dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00001053dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001054dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00001055dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001056dlls/winmm/mcianim/Makefile
1057dlls/winmm/mciavi/Makefile
1058dlls/winmm/mcicda/Makefile
1059dlls/winmm/mciseq/Makefile
1060dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00001061dlls/winmm/midimap/Makefile
1062dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001063dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00001064dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00001065dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001066dlls/wow32/Makefile
1067dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001068dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00001069documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001070documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00001071documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001072files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00001073graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00001074graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00001075graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00001076graphics/win16drv/Makefile
1077graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001078if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00001079include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001080library/Makefile
1081libtest/Makefile
1082loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00001083loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001084loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001085memory/Makefile
1086misc/Makefile
1087miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00001088msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001089objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00001090ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00001091programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001092programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001093programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00001094programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001095programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001096programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001097programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00001098programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00001099programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001100programs/regtest/Makefile
1101programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001102programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00001103programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00001104programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001105programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00001106programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001107relay32/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001108resources/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00001109scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00001110server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001111tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00001112tools/cvdump/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00001113tools/winebuild/Makefile
Bertho Stultiens30855912000-06-13 04:34:41 +00001114tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001115tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00001116tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00001117unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001118win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00001119windows/Makefile
1120windows/x11drv/Makefile ])
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001121
Ove Kaaven8b4431f1999-01-23 13:59:11 +00001122if test "$have_x" = "no"
1123then
1124 echo
1125 echo "*** Warning: X development files not found. Wine will be built without"
1126 echo "*** X support, which currently does not work, and would probably not be"
1127 echo "*** what you want anyway. You will need to install devel packages of"
1128 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00001129elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
1130then
1131 echo
1132 echo "*** Warning: Xpm development files not found. Wine will be built without"
1133 echo "*** Xpm support, which currently does not work. You will need to install"
1134 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00001135fi
1136
Alexandre Julliard638f1691999-01-17 16:32:32 +00001137if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
1138then
1139 echo
1140 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
1141 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00001142fi
1143
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001144if test "$wine_cv_libc_reentrant" = "no"
1145then
1146 echo
1147 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
1148 echo "*** thread support. Consider upgrading libc to a more recent"
1149 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001150fi
1151
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001152if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00001153then
1154 echo
1155 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00001156 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1157fi
1158
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001159if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00001160then
1161 echo
1162 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001163 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
1164 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
1165 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00001166fi
1167
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001168if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001169then
1170 echo
1171 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
1172 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
1173 echo "*** support before reporting bugs."
1174fi
1175
1176
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001177echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00001178echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001179echo
1180
1181dnl Local Variables:
1182dnl comment-start: "dnl "
1183dnl comment-end: ""
1184dnl comment-start-skip: "\\bdnl\\b\\s *"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001185dnl compile-command: "autoconf"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001186dnl End: