blob: 9dc543b78b88ab86ed1fa5df0498c0f676fef9cb [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)
Alexandre Julliard02e90081998-01-04 17:49:09 +000071
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000072dnl Check for lint
73AC_CHECK_PROGS(LINT, lclint lint)
74if test "$LINT" = "lint"
75then
76 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
77 dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64'
78fi
79AC_SUBST(LINT)
80AC_SUBST(LINTFLAGS)
81
Alexandre Julliard02e90081998-01-04 17:49:09 +000082dnl **** Check for some libraries ****
83
Howard Abrams13277481999-07-10 13:16:29 +000084dnl Check for -lm for BeOS
85AC_CHECK_LIB(m,sqrt)
Alexandre Julliardd37eb361997-07-20 16:23:21 +000086dnl Check for -li386 for NetBSD and OpenBSD
Alexandre Julliard02e90081998-01-04 17:49:09 +000087AC_CHECK_LIB(i386,i386_set_ldt)
Todd Vierlingecc76691998-12-15 17:49:02 +000088dnl Check for -lossaudio for NetBSD
89AC_CHECK_LIB(ossaudio,_oss_ioctl)
Alexandre Julliard02e90081998-01-04 17:49:09 +000090dnl Check for -lw for Solaris
91AC_CHECK_LIB(w,iswalnum)
Patrik Stridvallea584721998-11-01 16:22:07 +000092dnl Check for -lnsl for Solaris
Ron Recorde977d6c1999-09-05 12:32:05 +000093AC_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 +000094dnl Check for -lsocket for Solaris
Marcus Meissnerf070fda1999-04-24 12:02:14 +000095AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect))
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000096dnl Check for -lxpg4 for FreeBSD
97AC_CHECK_LIB(xpg4,setrunelocale)
Alexandre Julliard0e7bd081999-05-02 11:46:02 +000098dnl Check for -lmmap for OS/2
99AC_CHECK_LIB(mmap,mmap)
Marcus Meissner2d7be871999-12-05 23:06:40 +0000100dnl Check for openpty
101AC_CHECK_FUNCS(openpty,,
102 AC_CHECK_LIB(util,openpty,
103 AC_DEFINE(HAVE_OPENPTY)
104 LIBS="$LIBS -lutil"
105 ))
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000106
107AC_CHECK_HEADERS(dlfcn.h,
108 AC_CHECK_FUNCS(dlopen,
109 AC_DEFINE(HAVE_DL_API),
110 AC_CHECK_LIB(dl,dlopen,
111 AC_DEFINE(HAVE_DL_API)
Alexandre Julliarde1e75372000-04-24 17:17:49 +0000112 LIBS="$LIBS -ldl",
113 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000114 )
Alexandre Julliarde1e75372000-04-24 17:17:49 +0000115 ),
116 LIBEXT="a"
Marcus Meissnerf070fda1999-04-24 12:02:14 +0000117)
Patrik Stridvallea584721998-11-01 16:22:07 +0000118AC_SUBST(XLIB)
Patrik Stridvall2941a212000-04-25 20:34:22 +0000119AC_SUBST(X_DLLS)
120X_DLLS=""
121AC_SUBST(XFILES)
122XFILES=""
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000123AC_SUBST(OPENGLFILES)
124OPENGLFILES=""
Hidenori Takeshima4615e292000-05-23 23:36:41 +0000125AC_SUBST(OPENGL32_DLL)
126OPENGL32_DLL=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +0000127AC_SUBST(DGA_SRCS)
128DGA_SRCS=""
Lionel Ulmer51177f92000-05-01 14:25:49 +0000129AC_SUBST(DGA2_SRCS)
130DGA2_SRCS=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +0000131AC_SUBST(MESA_SRCS)
132MESA_SRCS=""
Patrik Stridvallea584721998-11-01 16:22:07 +0000133if test "$have_x" = "yes"
134then
Patrik Stridvall24110281999-02-04 10:09:54 +0000135 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +0000136 ac_save_CPPFLAGS="$CPPFLAGS"
137 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvall24110281999-02-04 10:09:54 +0000138
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000139 dnl *** Check for -lXpm
140 AC_CHECK_HEADERS(X11/xpm.h,
141 [ dnl *** If X11/xpm.h exists...
142 AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,
143 [ AC_DEFINE(HAVE_LIBXXPM) X_PRE_LIBS="$X_PRE_LIBS -lXpm"],,
144 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
145 )
146 ],
147 [ dnl *** If X11/xpm.h does not exist...
148 dnl NOTE: autoconf does not allow commas inside the third
149 dnl parameter to AC_CHECK_HEADERS, due to some quoting
150 dnl magic it does.
151 echo "Redhat : xpm xpm-devel"
152 echo "Caldera OpenLinux : xpm xpm-devel xpm-devel-static"
Marcus Meissner284995e2000-03-04 19:21:49 +0000153 echo "SuSE : xpm"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000154 echo "Debian/Corel Linux: xpm4g xpm4g-dev"
Marcus Meissnercb99b0e1999-12-20 04:10:06 +0000155 echo
156 echo "Or get the sources from ftp.x.org and all its mirror sites from "
157 echo "the directory /contrib/libraries."
158 echo
159 exit 1
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000160 ]
161 )
Patrik Stridvall24110281999-02-04 10:09:54 +0000162
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000163 dnl *** All three of the following tests require X11/Xlib.h
164 AC_CHECK_HEADERS(X11/Xlib.h,
165 [
166 dnl *** Check for X Shm extension
167 AC_CHECK_HEADERS(X11/extensions/XShm.h,
168 [ dnl *** If X11/extensions/XShm.h exists...
169 AC_CHECK_LIB(Xext, XShmQueryExtension,
170 AC_DEFINE(HAVE_LIBXXSHM),,
171 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
172 ],
173 AC_MSG_WARN([Xshm extension not found!!])
174 )
Marcus Meissnercb99b0e1999-12-20 04:10:06 +0000175
Francois Jacques5b6879c2000-07-28 23:04:54 +0000176 dnl *** Check for X shape extension
177 AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/shape.h,
178 [ dnl *** If X11/extensions/shape.h exists...
179 AC_CHECK_LIB(Xext,XShapeQueryExtension,
180 AC_DEFINE(HAVE_LIBXSHAPE),,
181 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS)
182 ],
183 AC_MSG_WARN([XShape extension found!!])
184 )
185
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000186 dnl *** Check for XFree86 DGA / DGA 2.0 extension
187 AC_CHECK_HEADERS(X11/extensions/xf86dga.h,
188 [ dnl *** If X11/extensions/xf86dga.h exists, check
189 dnl *** for XDGAQueryExtension()...
190 AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension,
191 [ dnl *** If found...
192 AC_DEFINE(HAVE_LIBXXF86DGA2)
193 AC_DEFINE(HAVE_LIBXXF86DGA)
194 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
195 DGA_SRCS='$(DGA_SRCS)'
196 DGA2_SRCS='$(DGA2_SRCS)'
197 ],
198 [ dnl *** If not found, look for XF86DGAQueryExtension()
199 dnl *** instead (DGA 2.0 not found)...
200 AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,
201 [ AC_DEFINE(HAVE_LIBXXF86DGA)
202 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
203 DGA_SRCS='$(DGA_SRCS)'
204 ],,
205 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
206 )
207 ],
208 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
209 )
210 ],
211 AC_MSG_WARN([DGA extension not found!!])
212 )
Patrik Stridvall24110281999-02-04 10:09:54 +0000213
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000214 dnl *** Check for XFree86 VMODE extension
215 AC_CHECK_HEADERS(X11/extensions/xf86vmode.h,
216 [ dnl *** If X11/extensions/xf86vmode.h exists...
217 AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,
218 [ AC_DEFINE(HAVE_LIBXXF86VM)
219 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
220 ],,
221 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
222 )
223 ],
224 AC_MSG_WARN([XFree86 VMODE extension not found!!])
225 )
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +0000226
227 dnl *** Check for XVideo extension supporting XvImages
228 AC_CHECK_HEADERS(X11/extensions/Xvlib.h,
229 [ dnl *** If X11/extensions/Xvlib.h exists...
230 AC_CHECK_LIB(Xv, XvShmCreateImage,
231 [ AC_DEFINE(HAVE_XVIDEO)
232 X_PRE_LIBS="$X_PRE_LIBS -lXv"
233 ],,
234 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
235 )
236 ],
237 AC_MSG_WARN([XVideo extension not found !!])
238 )
239
John R. Sheetsf2b77cc2000-05-23 21:18:51 +0000240 ]
241 ) dnl *** End of X11/Xlib.h check
Lionel Ulmer5c085701999-02-28 19:48:53 +0000242
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000243 dnl Check for the presence of OpenGL
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000244 if test $OPENGL = "yes" -o $OPENGL = "normal"
Patrik Stridvall24110281999-02-04 10:09:54 +0000245 then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000246 AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h)
Marcus Meissner22a969b2000-08-08 20:46:50 +0000247 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000248 then
249 dnl Check for some problems due to old Mesa versions
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000250 AC_CACHE_CHECK("for up-to-date OpenGL version", wine_cv_opengl_version_OK,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000251 AC_TRY_COMPILE(
Lionel Ulmer48c08162000-01-05 01:51:02 +0000252 [#include <GL/gl.h>],
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000253 [GLenum test = GL_UNSIGNED_SHORT_5_6_5;],
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000254 [wine_cv_opengl_version_OK="yes"],
255 [wine_cv_opengl_version_OK="no"]
Lionel Ulmer48c08162000-01-05 01:51:02 +0000256 )
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000257 )
258
259 dnl Check for the thread-safety of the OpenGL library
260 AC_CACHE_CHECK("for thread-safe OpenGL version",
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000261 wine_cv_opengl_version_threadsafe,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000262 [saved_libs=$LIBS
263 LIBS="$X_LIBS -lGL"
264 AC_TRY_LINK([],[pthread_getspecific();],
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000265 [wine_cv_opengl_version_threadsafe="yes"],
266 [wine_cv_opengl_version_threadsafe="no"])
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000267 LIBS=$saved_libs]
Lionel Ulmer48c08162000-01-05 01:51:02 +0000268 )
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000269
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000270 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 +0000271 then
Andreas Mohr4eefb962000-08-01 00:27:35 +0000272 dnl Check for the presence of the library
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000273 AC_CHECK_LIB(GL,glXCreateContext,
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000274 X_PRE_LIBS="$X_PRE_LIBS -lGL"
275 MESA_SRCS='$(MESA_SRCS)'
276 ,,
277 $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS)
278
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000279 if test $ac_cv_lib_GL_glXCreateContext = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000280 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +0000281
282 OPENGLFILES='$(OPENGLFILES)'
283 AC_DEFINE(HAVE_OPENGL)
284
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000285 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 +0000286
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000287 if test $ac_cv_lib_GL_glXGetProcAddressARB = "yes"
288 then
Lionel Ulmer1434d872000-07-23 14:23:31 +0000289 AC_CACHE_CHECK("for OpenGL extension functions prototypes", wine_cv_extension_prototypes,
290 AC_TRY_COMPILE([#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +0000291 #ifdef HAVE_GL_GLEXT_H
292 # include <GL/glext.h>
293 #endif
294 ],
Lionel Ulmer1434d872000-07-23 14:23:31 +0000295 [PFNGLCOLORTABLEEXTPROC test_proc;],
Lionel Ulmerfe210ef2000-07-29 11:30:56 +0000296 [wine_cv_extension_prototypes="yes"],
Lionel Ulmer1434d872000-07-23 14:23:31 +0000297 [wine_cv_extension_prototypes="no"]
298 )
299 )
Lionel Ulmerfe210ef2000-07-29 11:30:56 +0000300 if test $wine_cv_extension_prototypes = "yes"
301 then
302 AC_DEFINE(HAVE_GLEXT_PROTOTYPES)
303 fi
Lionel Ulmer1434d872000-07-23 14:23:31 +0000304
Hidenori Takeshima4615e292000-05-23 23:36:41 +0000305 OPENGL32_DLL=opengl32
Lionel Ulmerbedf40b2000-05-12 20:18:14 +0000306 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +0000307 fi
308 fi
309 fi
Patrik Stridvall24110281999-02-04 10:09:54 +0000310 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +0000311
312 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +0000313 X_DLLS='$(X_DLLS)'
314 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +0000315else
316 XLIB=""
317 X_CFLAGS=""
318 X_LIBS=""
319fi
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000320
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000321dnl **** Check which curses lib to use ***
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000322if test "$CURSES" = "yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +0000323then
Patrik Stridvall5e5ad532000-04-23 20:02:46 +0000324 AC_CHECK_HEADERS(ncurses.h)
325 if test "$ac_cv_header_ncurses_h" = "yes"
326 then
327 AC_CHECK_LIB(ncurses,waddch)
328 fi
329 if test "$ac_cv_lib_ncurses_waddch" = "yes"
330 then
331 AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
332 AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
333 else
334 AC_CHECK_HEADERS(curses.h)
335 if test "$ac_cv_header_curses_h" = "yes"
336 then
337 AC_CHECK_LIB(curses,waddch)
338 if test "$ac_cv_lib_curses_waddch" = "yes"
339 then
340 AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM))
341 AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD))
342 fi
343 fi
Patrik Stridvall24110281999-02-04 10:09:54 +0000344 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +0000345fi
346
Pavel Roskin94d99641998-12-26 11:52:51 +0000347dnl **** Check for IPX (currently Linux only) ****
348AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu,
349 AC_TRY_COMPILE(
350 [#include <sys/socket.h>
351 #include <netipx/ipx.h>],
352 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
Aaron Hopec23872d2000-01-15 23:43:21 +0000353 [ac_cv_c_ipx_gnu="yes"],
Pavel Roskin94d99641998-12-26 11:52:51 +0000354 [ac_cv_c_ipx_gnu="no"])
355 )
Aaron Hopec23872d2000-01-15 23:43:21 +0000356if test "$ac_cv_c_ipx_gnu" = "yes"
357then
358 AC_DEFINE(HAVE_IPX_GNU)
359fi
Pavel Roskin94d99641998-12-26 11:52:51 +0000360
361if test "$ac_cv_c_ipx_gnu" = "no"
362then
363 AC_CACHE_CHECK("for linux style IPX support", ac_cv_c_ipx_linux,
364 AC_TRY_COMPILE(
365 [#include <sys/socket.h>
366 #include <asm/types.h>
367 #include <linux/ipx.h>],
368 [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX],
Aaron Hopec23872d2000-01-15 23:43:21 +0000369 [ac_cv_c_ipx_linux="yes"],
Pavel Roskin94d99641998-12-26 11:52:51 +0000370 [ac_cv_c_ipx_linux="no"])
371 )
Aaron Hopec23872d2000-01-15 23:43:21 +0000372 if test "$ac_cv_c_ipx_linux" = "yes"
373 then
374 AC_DEFINE(HAVE_IPX_LINUX)
375 fi
Pavel Roskin94d99641998-12-26 11:52:51 +0000376fi
377
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000378dnl **** Check for Open Sound System ****
Todd Vierlingecc76691998-12-15 17:49:02 +0000379AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000380
381AC_CACHE_CHECK("for Open Sound System",
382 ac_cv_c_opensoundsystem,
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000383 AC_TRY_COMPILE([
Todd Vierlingecc76691998-12-15 17:49:02 +0000384 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000385 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +0000386 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000387 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +0000388 #elif defined(HAVE_SOUNDCARD_H)
389 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000390 #endif
391 ],[
392
Alexandre Julliard60ce85c1998-02-01 18:33:27 +0000393/* check for one of the Open Sound System specific SNDCTL_ defines */
394#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000395#error No open sound system
396#endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000397],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no"))
398
399if test "$ac_cv_c_opensoundsystem" = "yes"
400then
401 AC_DEFINE(HAVE_OSS)
402fi
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000403
Eric Pouech338d3b21999-05-22 18:52:21 +0000404AC_CACHE_CHECK("for Open Sound System/MIDI interface",
405 ac_cv_c_opensoundsystem_midi,
406 AC_TRY_COMPILE([
407 #if defined(HAVE_SYS_SOUNDCARD_H)
408 #include <sys/soundcard.h>
409 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
410 #include <machine/soundcard.h>
411 #elif defined(HAVE_SOUNDCARD_H)
412 #include <soundcard.h>
413 #endif
414 ],[
415
416/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
417#if !defined(SNDCTL_SEQ_SYNC)
418#error No open sound system MIDI interface
419#endif
420],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no"))
421
422if test "$ac_cv_c_opensoundsystem_midi" = "yes"
423then
424 AC_DEFINE(HAVE_OSS_MIDI)
425fi
426
Alexandre Julliard641ee761997-08-04 16:34:36 +0000427dnl **** If ln -s doesn't work, use cp instead ****
428if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
429
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000430dnl **** Check for gcc strength-reduce bug ****
431
432if test "x${GCC}" = "xyes"
433then
434 CFLAGS="$CFLAGS -Wall"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000435 AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug,
436 AC_TRY_RUN([
Eric Pouech5aee80f2000-11-11 00:31:39 +0000437int L[[4]] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000438int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +0000439 static int Array[[3]];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000440 unsigned int B = 3;
441 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +0000442 for(i=0; i<B; i++) Array[[i]] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +0000443 for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]];
444 L[[i]] = 4;
445
446 exit( Array[[1]] != -2 || L[[2]] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +0000447}],
448 ac_cv_c_gcc_strength_bug="no",
449 ac_cv_c_gcc_strength_bug="yes",
450 ac_cv_c_gcc_strength_bug="yes") )
451 if test "$ac_cv_c_gcc_strength_bug" = "yes"
452 then
453 CFLAGS="$CFLAGS -fno-strength-reduce"
454 fi
455fi
456
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +0000457dnl **** Check for underscore on external symbols ****
458
459AC_CACHE_CHECK("whether external symbols need an underscore prefix",
460 ac_cv_c_extern_prefix,
461[saved_libs=$LIBS
462LIBS="conftest_asm.s $LIBS"
463cat > conftest_asm.s <<EOF
464 .globl _ac_test
465_ac_test:
466 .long 0
467EOF
468AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1],
469 ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no")
470LIBS=$saved_libs])
471if test "$ac_cv_c_extern_prefix" = "yes"
472then
473 AC_DEFINE(NEED_UNDERSCORE_PREFIX)
474fi
475
Alexandre Julliard0623a6f1998-01-18 18:01:49 +0000476dnl **** Check for .string in assembler ****
477
478AC_CACHE_CHECK("whether assembler accepts .string",
479 ac_cv_c_asm_string,
480[saved_libs=$LIBS
481LIBS="conftest_asm.s $LIBS"
482cat > conftest_asm.s <<EOF
483 .string "test"
484EOF
485AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no")
486LIBS=$saved_libs])
487if test "$ac_cv_c_asm_string" = "yes"
488then
489 AC_DEFINE(HAVE_ASM_STRING)
490fi
491
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000492dnl **** Check for working dll ****
493
Todd Vierling4b992b01998-12-15 15:26:27 +0000494LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000495LDDLLFLAGS=""
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000496if test "$LIBEXT" = "so"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000497then
Todd Vierling4b992b01998-12-15 15:26:27 +0000498 AC_CACHE_CHECK("whether we can build a Linux dll",
499 ac_cv_c_dll_linux,
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000500 [saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000501 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
Todd Vierling4b992b01998-12-15 15:26:27 +0000502 AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no")
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000503 CFLAGS=$saved_cflags
504 ])
Todd Vierling4b992b01998-12-15 15:26:27 +0000505 if test "$ac_cv_c_dll_linux" = "yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000506 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000507 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
508 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000509 else
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000510 AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll,
Ron Recorde977d6c1999-09-05 12:32:05 +0000511 ac_cv_c_dll_unixware,
Todd Vierling4b992b01998-12-15 15:26:27 +0000512 [saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000513 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Ron Recorde977d6c1999-09-05 12:32:05 +0000514 AC_TRY_LINK(,[return 1],ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no")
Todd Vierling4b992b01998-12-15 15:26:27 +0000515 CFLAGS=$saved_cflags
516 ])
Ron Recorde977d6c1999-09-05 12:32:05 +0000517 if test "$ac_cv_c_dll_unixware" = "yes"
Todd Vierling4b992b01998-12-15 15:26:27 +0000518 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000519 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,h,\$(libdir)/%)"
520 LDDLLFLAGS="-Wl,-B,symbolic"
Ron Recorde977d6c1999-09-05 12:32:05 +0000521 else
522 AC_CACHE_CHECK("whether we can build a NetBSD dll",
523 ac_cv_c_dll_netbsd,
524 [saved_cflags=$CFLAGS
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000525 CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
Ron Recorde977d6c1999-09-05 12:32:05 +0000526 AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no")
527 CFLAGS=$saved_cflags
528 ])
529 if test "$ac_cv_c_dll_netbsd" = "yes"
530 then
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000531 LDSHARED="\$(CC) -Wl,-Bshareable,-Bforcearchive"
532 LDDLLFLAGS="" #FIXME
Ron Recorde977d6c1999-09-05 12:32:05 +0000533 fi
Todd Vierling4b992b01998-12-15 15:26:27 +0000534 fi
535 fi
Ron Recorde977d6c1999-09-05 12:32:05 +0000536 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 +0000537 then
Marcus Meissner45d31de2000-11-13 04:14:05 +0000538 echo "*** It is currently not possible to build WINE without shared"
539 echo "*** library (.so) support to allow transparent switch between .so"
540 echo "*** and .dll files."
541 echo "*** If you are using Linux, you will need a newer binutils."
542 exit 1
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000543 fi
544fi
Alexandre Julliard0adad952000-01-26 01:45:58 +0000545
546DLLFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +0000547
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000548if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000549 DLLFLAGS="-fPIC"
Alexandre Julliard7e495e12000-07-25 21:01:59 +0000550 DLL_LINK="-L\$(DLLDIR) \$(IMPORTS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode"
Alexandre Julliard0adad952000-01-26 01:45:58 +0000551else
Alexandre Julliard7e495e12000-07-25 21:01:59 +0000552 DLL_LINK="-L\$(DLLDIR) \$(DLLS:%=-l%) -L\$(TOPOBJDIR) -lwine -lwine_unicode \$(X_LIBS) \$(XLIB)"
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000553 AC_CACHE_CHECK([whether the linker supports --[[no]]-whole-archive (Linux)],
554 ac_cv_c_whole_archive,
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000555 [saved_cflags=$CFLAGS
556 CFLAGS="$CFLAGS -Wl,--whole-archive -Wl,--no-whole-archive"
557 AC_TRY_LINK(,[return 1],ac_cv_c_whole_archive="yes",ac_cv_c_whole_archive="no")
558 CFLAGS=$saved_cflags
559 ])
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000560 if test "$ac_cv_c_whole_archive" = "yes"
561 then
562 DLL_LINK="-Wl,--whole-archive $DLL_LINK -Wl,--no-whole-archive"
563 else
564 AC_CACHE_CHECK([whether the linker supports -z {all,default}extract (Linux)],
565 ac_cv_c_allextract,
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000566 [saved_cflags=$CFLAGS
567 CFLAGS="$CFLAGS -Wl,-z,allextract -Wl,-z,defaultextract"
568 AC_TRY_LINK(,[return 1],ac_cv_c_allextract="yes",ac_cv_c_allextract="no")
569 CFLAGS=$saved_cflags
570 ])
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000571 if test "$ac_cv_c_allextract" = "yes"
572 then
573 DLL_LINK="-Wl,-z,allextract $DLL_LINK -Wl,-z,defaultextract"
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +0000574 fi
Alexandre Julliard0adad952000-01-26 01:45:58 +0000575 fi
576fi
577
Alexandre Julliard318f4ce2000-01-31 05:02:49 +0000578AC_SUBST(DLL_LINK)
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +0000579AC_SUBST(DLLFLAGS)
Todd Vierling4b992b01998-12-15 15:26:27 +0000580AC_SUBST(LDSHARED)
Alexandre Julliard4354cda2000-11-09 20:27:45 +0000581AC_SUBST(LDDLLFLAGS)
Alexandre Julliard0adad952000-01-26 01:45:58 +0000582AC_SUBST(LIBEXT)
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +0000583
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000584dnl **** Check for reentrant libc ****
585dnl
586dnl For cross-compiling we blindly assume that libc is reentrant. This is
587dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions).
588
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000589wine_cv_libc_reentrant=no
Marcus Meissnerc2606381999-04-11 15:20:29 +0000590dnl
591dnl Linux style errno location
592dnl
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000593AC_CACHE_CHECK("for reentrant libc: __errno_location", wine_cv_libc_r__errno_location,
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000594 [AC_TRY_RUN([int myerrno = 0;
595char buf[256];
596int *__errno_location(){return &myerrno;}
597main(){connect(0,buf,255); exit(!myerrno);}],
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000598 wine_cv_libc_r__errno_location=yes, wine_cv_libc_r__errno_location=no,
599 wine_cv_libc_r__errno_location=yes )
600])
601if test "$wine_cv_libc_r__errno_location" = "yes"
602then
603 AC_DEFINE(HAVE__ERRNO_LOCATION)
604 wine_cv_libc_reentrant=__errno_location
605fi
Marcus Meissnerc2606381999-04-11 15:20:29 +0000606dnl
607dnl FreeBSD style errno location
608dnl
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000609AC_CACHE_CHECK("for reentrant libc: __error", wine_cv_libc_r__error,
610 [AC_TRY_RUN([int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +0000611char buf[256];
612int *__error(){return &myerrno;}
613main(){connect(0,buf,255); exit(!myerrno);}],
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000614 wine_cv_libc_r__error=yes, wine_cv_libc_r__error=no,
615 wine_cv_libc_r__error=yes )
Marcus Meissnerc2606381999-04-11 15:20:29 +0000616])
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000617if test "$wine_cv_libc_r__error" = "yes"
618then
619 AC_DEFINE(HAVE__ERROR)
620 wine_cv_libc_reentrant=__error
621fi
622dnl
623dnl Solaris style errno location
624dnl
625AC_CACHE_CHECK("for reentrant libc: ___errno", wine_cv_libc_r___errno,
626 [AC_TRY_RUN([int myerrno = 0;
627char buf[256];
628int *___errno(){return &myerrno;}
629main(){connect(0,buf,255); exit(!myerrno);}],
630 wine_cv_libc_r___errno=yes, wine_cv_libc_r___errno=no,
631 wine_cv_libc_r___errno=yes )
632])
633if test "$wine_cv_libc_r___errno" = "yes"
634then
635 AC_DEFINE(HAVE___ERRNO)
636 wine_cv_libc_reentrant=___errno
637fi
Ron Recorde977d6c1999-09-05 12:32:05 +0000638dnl
639dnl UnixWare style errno location
640dnl
641AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno,
642 [AC_TRY_RUN([int myerrno = 0;
643char buf[256];
644int *__thr_errno(){return &myerrno;}
645main(){connect(0,buf,255); exit(!myerrno);}],
646 wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no,
647 wine_cv_libc_r__thr_errno=yes )
648])
649if test "$wine_cv_libc_r__thr_errno" = "yes"
650then
651 AC_DEFINE(HAVE__THR_ERRNO)
652 wine_cv_libc_reentrant=__thr_errno
653fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +0000654if test "$wine_cv_libc_reentrant" = "no"
655then
656 AC_DEFINE(NO_REENTRANT_LIBC)
657fi
658
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000659dnl **** Check for reentrant X libraries ****
660dnl
661dnl This may fail to determine whether X libraries are reentrant if
662dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration
663dnl is possible with the --without-reentrant-x option.
664
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000665if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no"
Patrik Stridvall24110281999-02-04 10:09:54 +0000666then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000667AC_CACHE_CHECK( "for reentrant X libraries", wine_cv_x_reentrant,
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000668 [ if test "x$with_reentrant_x" = "xno"
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000669 then
670 wine_cv_x_reentrant=no
671 else
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000672 libX11_check=none
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000673 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
Alexandre Julliard829fe321998-07-26 14:27:39 +0000674 if test -r $dir/libX11.so; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000675 libX11_check="-D $dir/libX11.so"
676 break 1
677 fi
Alexandre Julliard829fe321998-07-26 14:27:39 +0000678 if test -r $dir/libX11.a; then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000679 libX11_check="$dir/libX11.a"
680 break 1
681 fi
682 done
683 if test "$libX11_check" != "none"; then
Ulrich Weigand715a55e1999-04-18 13:19:56 +0000684 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
Alexandre Julliard829fe321998-07-26 14:27:39 +0000685 then
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000686 wine_cv_x_reentrant=yes
687 else
688 wine_cv_x_reentrant=no
689 fi
690 else
691 wine_cv_x_reentrant=unknown
692 fi
693 fi ] )
Patrik Stridvall24110281999-02-04 10:09:54 +0000694else
695 wine_cv_x_reentrant=no
696fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +0000697if test "$wine_cv_x_reentrant" = "no"
698then
699 AC_DEFINE(NO_REENTRANT_X11)
700fi
701
Francois Gougetae5e93e1999-11-13 23:02:06 +0000702dnl **** Check for endianness ****
703
704AC_C_BIGENDIAN
705
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000706dnl **** Check for functions ****
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000707
Patrik Stridvall1bb94031999-05-08 15:47:44 +0000708AC_FUNC_ALLOCA()
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000709AC_CHECK_FUNCS(\
Eric Pouechf61d7e02000-04-29 16:44:19 +0000710 __libc_fork \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000711 _lwp_create \
712 clone \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000713 getnetbyaddr \
714 getnetbyname \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000715 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000716 getprotobyname \
717 getprotobynumber \
718 getservbyport \
719 getsockopt \
720 inet_network \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000721 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +0000722 mmap \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000723 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000724 select \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000725 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000726 settimeofday \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000727 sigaltstack \
Patrik Stridvallb9010211999-11-13 22:23:35 +0000728 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +0000729 strcasecmp \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000730 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +0000731 strncasecmp \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000732 tcgetattr \
733 timegm \
734 usleep \
735 vfscanf \
736 wait4 \
737 waitpid \
738)
739
740dnl **** Check for header files ****
741
742AC_CHECK_HEADERS(\
Patrik Stridvall96336321999-10-24 22:13:47 +0000743 a.out.h \
744 a_out.h \
745 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000746 arpa/nameser.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000747 elf.h \
748 float.h \
749 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +0000750 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000751 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000752 linux/cdrom.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +0000753 linux/joystick.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000754 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000755 net/if.h \
756 netinet/in.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000757 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +0000758 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000759 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000760 sched.h \
761 socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000762 strings.h \
763 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +0000764 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000765 sys/file.h \
766 sys/filio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000767 sys/ipc.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000768 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +0000769 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000770 sys/modem.h \
771 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000772 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000773 sys/param.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +0000774 sys/reg.h \
Howard Abrams13277481999-07-10 13:16:29 +0000775 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000776 sys/shm.h \
777 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000778 sys/sockio.h \
779 sys/statfs.h \
780 sys/strtio.h \
781 sys/syscall.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000782 sys/wait.h \
783 sys/v86.h \
784 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000785 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +0000786 sys/vm86.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000787 syscall.h \
Alexandre Julliardc97bb4c2000-08-11 20:53:40 +0000788 ucontext.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000789)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000790AC_HEADER_STAT()
Alexandre Julliard2487cce1999-04-18 14:43:16 +0000791
792dnl **** Check for types ****
793
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000794AC_C_CONST()
Marcus Meissner1a8bbd71999-04-26 14:58:58 +0000795AC_C_INLINE()
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000796AC_TYPE_SIZE_T()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000797AC_CHECK_SIZEOF(long long,0)
798
Rein Klazesff7a61f2000-09-24 19:41:57 +0000799
800AC_CACHE_CHECK("whether we can use re-entrant gethostbyname_r Linux style",
801 wine_cv_linux_gethostbyname_r_6,
802 AC_TRY_COMPILE([
803#include <netdb.h>
804 ], [
805 char *name=NULL;
806 struct hostent he;
807 struct hostent *result;
808 char *buf=NULL;
809 int bufsize=0;
810 int res,errnr;
811 char *addr=NULL;
812 int addrlen=0;
813 int addrtype=0;
814 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
815 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
816 ],
817 wine_cv_linux_gethostbyname_r_6=yes,
818 wine_cv_linux_gethostbyname_r_6=no
819 )
820 )
821 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
822 then
823 AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6)
824 fi
825
Marcus Meissner028e9a11999-08-04 15:07:56 +0000826if test "$ac_cv_header_linux_joystick_h" = "yes"
827then
828 AC_CACHE_CHECK("whether linux/joystick.h uses the Linux 2.2+ API",
829 wine_cv_linux_joystick_22_api,
830 AC_TRY_COMPILE([
831 #include <sys/ioctl.h>
832 #include <linux/joystick.h>
833
834 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +0000835 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
836 #error "no 2.2 header"
837 #endif
Marcus Meissner028e9a11999-08-04 15:07:56 +0000838 ],/*empty*/,
839 wine_cv_linux_joystick_22_api=yes,
840 wine_cv_linux_joystick_22_api=no,
841 wine_cv_linux_joystick_22_api=no
842 )
843 )
Rein Klazes87d224a2000-04-24 17:33:49 +0000844 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +0000845 then
846 AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API)
847 fi
848fi
849
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000850dnl **** statfs checks ****
851
852if test "$ac_cv_header_sys_vfs_h" = "yes"
853then
854 AC_CACHE_CHECK( "whether sys/vfs.h defines statfs",
855 wine_cv_sys_vfs_has_statfs,
856 AC_TRY_COMPILE([
857 #include <sys/types.h>
858 #ifdef HAVE_SYS_PARAM_H
859 # include <sys/param.h>
860 #endif
861 #include <sys/vfs.h>
862 ],[
863 struct statfs stfs;
864
865 memset(&stfs,0,sizeof(stfs));
866 ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no
867 )
868 )
869 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
870 then
871 AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS)
872 fi
873fi
874
875if test "$ac_cv_header_sys_statfs_h" = "yes"
876then
877 AC_CACHE_CHECK( "whether sys/statfs.h defines statfs",
878 wine_cv_sys_statfs_has_statfs,
879 AC_TRY_COMPILE([
880 #include <sys/types.h>
881 #ifdef HAVE_SYS_PARAM_H
882 # include <sys/param.h>
883 #endif
884 #include <sys/statfs.h>
885 ],[
886 struct statfs stfs;
887 ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no
888 )
889 )
890 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
891 then
892 AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS)
893 fi
894fi
895
896if test "$ac_cv_header_sys_mount_h" = "yes"
897then
898 AC_CACHE_CHECK( "whether sys/mount.h defines statfs",
899 wine_cv_sys_mount_has_statfs,
900 AC_TRY_COMPILE([
901 #include <sys/types.h>
902 #ifdef HAVE_SYS_PARAM_H
903 # include <sys/param.h>
904 #endif
905 #include <sys/mount.h>
906 ],[
907 struct statfs stfs;
908 ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no
909 )
910 )
911 if test "$wine_cv_sys_mount_has_statfs" = "yes"
912 then
913 AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT)
914 fi
915fi
916
917dnl **** FIXME: what about mixed cases, where we need two of them? ***
918
919AC_CACHE_CHECK( "for statfs.f_bfree", wine_cv_statfs_bfree,
920 [ if test "x$statfs_bfree" = "xno"
921 then
922 wine_cv_statfs_bfree=no
923 else
924 AC_TRY_COMPILE([
925 #include <sys/types.h>
926 #ifdef HAVE_SYS_PARAM_H
927 # include <sys/param.h>
928 #endif
929 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
930 # include <sys/mount.h>
931 #else
932 # ifdef STATFS_DEFINED_BY_SYS_VFS
933 # include <sys/vfs.h>
934 # else
935 # ifdef STATFS_DEFINED_BY_SYS_STATFS
936 # include <sys/statfs.h>
937 # endif
938 # endif
939 #endif
940 ],[
941 struct statfs stfs;
942
943 stfs.f_bfree++;
944 ],wine_cv_statfs_bfree=yes,wine_cv_statfs_bfree=no
945 )
946 fi ] )
947if test "$wine_cv_statfs_bfree" = "yes"
948then
949 AC_DEFINE(STATFS_HAS_BFREE)
950fi
951
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000952AC_CACHE_CHECK( "for statfs.f_bavail", wine_cv_statfs_bavail,
953 [ if test "x$statfs_bavail" = "xno"
954 then
955 wine_cv_statfs_bavail=no
956 else
957 AC_TRY_COMPILE([
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000958 #include <sys/types.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000959 #ifdef HAVE_SYS_PARAM_H
960 # include <sys/param.h>
961 #endif
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000962 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000963 # include <sys/mount.h>
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000964 #else
965 # ifdef STATFS_DEFINED_BY_SYS_VFS
966 # include <sys/vfs.h>
967 # else
968 # ifdef STATFS_DEFINED_BY_SYS_STATFS
969 # include <sys/statfs.h>
970 # endif
971 # endif
Alexandre Julliardc7c217b1998-04-13 12:21:30 +0000972 #endif
973 ],[
974 struct statfs stfs;
975
976 stfs.f_bavail++;
977 ],wine_cv_statfs_bavail=yes,wine_cv_statfs_bavail=no
978 )
979 fi ] )
980if test "$wine_cv_statfs_bavail" = "yes"
981then
982 AC_DEFINE(STATFS_HAS_BAVAIL)
983fi
984
Alexandre Julliard829fe321998-07-26 14:27:39 +0000985dnl *** check for file descriptor passing with msg_accrights
986
987AC_CACHE_CHECK("for msg_accrights in struct msghdr", ac_cv_c_msg_accrights,
988 AC_TRY_COMPILE([#include <sys/types.h>
989#include <sys/socket.h>],[struct msghdr hdr; hdr.msg_accrights=0],
990 ac_cv_c_msg_accrights="yes", ac_cv_c_msg_accrights="no"))
991if test "$ac_cv_c_msg_accrights" = "yes"
992then
993 AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS)
994fi
995
Juergen Lock2d33ab92000-02-13 16:03:29 +0000996dnl *** Check for the sun_len member in struct sockaddr_un
997
998AC_CACHE_CHECK("for sun_len in struct sockaddr_un", ac_cv_c_sun_len,
999 AC_TRY_COMPILE([#include <sys/types.h>
1000#include <sys/socket.h>
1001#include <sys/un.h>], [static struct sockaddr_un addr; addr.sun_len = 1],
1002 ac_cv_c_sun_len="yes", ac_cv_c_sun_len="no"))
1003if test "$ac_cv_c_sun_len" = "yes"
1004then
1005 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN)
1006fi
1007
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00001008dnl *** check for the need to define __i386__
1009
1010AC_CACHE_CHECK("whether we need to define __i386__",ac_cv_cpp_def_i386,
1011 AC_EGREP_CPP(yes,[#if (defined(i386) || defined(__i386)) && !defined(__i386__)
1012yes
1013#endif],
1014 ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no"))
1015if test "$ac_cv_cpp_def_i386" = "yes"
1016then
1017 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00001018 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +00001019fi
1020
Marcus Meissnera7f5cb51999-04-16 08:47:41 +00001021dnl $GCC is set by autoconf
1022GCC_NO_BUILTIN=""
1023if test "$GCC" = "yes"
1024then
1025 GCC_NO_BUILTIN="-fno-builtin"
1026fi
1027AC_SUBST(GCC_NO_BUILTIN)
1028
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001029dnl **** Generate output files ****
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001030
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00001031AC_OUTPUT_COMMANDS([
1032extra_subdirs="\
1033dlls/ddraw/d3ddevice \
1034dlls/ddraw/dclipper \
1035dlls/ddraw/ddraw \
1036dlls/ddraw/direct3d \
1037dlls/ddraw/dpalette \
1038dlls/ddraw/dsurface \
Lionel Ulmer6301e942000-11-05 20:25:02 +00001039dlls/dinput/joystick \
1040dlls/dinput/keyboard \
1041dlls/dinput/mouse \
Alexandre Julliardd1d09052000-07-30 13:39:52 +00001042dlls/kernel/messages \
Alexandre Julliard2affae52000-10-23 21:32:05 +00001043dlls/user/resources \
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +00001044"
1045for i in $extra_subdirs; do [ -d $i ] || (echo "creating $i" && mkdir $i); done ])
1046
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001047MAKE_RULES=Make.rules
Alexandre Julliardff8331e1995-09-18 11:19:54 +00001048AC_SUBST_FILE(MAKE_RULES)
1049
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +00001050MAKE_DLL_RULES=dlls/Makedll.rules
1051AC_SUBST_FILE(MAKE_DLL_RULES)
1052
Alexandre Julliard626f4252000-11-10 23:35:20 +00001053MAKE_PROG_RULES=programs/Makeprog.rules
1054AC_SUBST_FILE(MAKE_PROG_RULES)
1055
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001056AC_OUTPUT([
1057Make.rules
Alexandre Julliard626f4252000-11-10 23:35:20 +00001058dlls/Makedll.rules
1059programs/Makeprog.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001060Makefile
Joseph Pranevich791cd6a1998-12-02 19:58:08 +00001061console/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001062controls/Makefile
1063debugger/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00001064dlls/Makefile
Juergen Schmiedf7b0de31999-01-03 12:48:29 +00001065dlls/advapi32/Makefile
Marcus Meissnerb3d1a221999-03-13 18:07:44 +00001066dlls/avifil32/Makefile
Alexandre Julliarda0d77311998-09-13 16:32:00 +00001067dlls/comctl32/Makefile
Klaas van Gendc9127491999-02-28 20:05:11 +00001068dlls/commdlg/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001069dlls/crtdll/Makefile
1070dlls/dciman32/Makefile
Alexandre Julliardddce6522000-03-17 16:58:10 +00001071dlls/ddraw/Makefile
1072dlls/dinput/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001073dlls/dplay/Makefile
Peter Hunnisett22b861c1999-09-28 16:35:32 +00001074dlls/dplayx/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001075dlls/dsound/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001076dlls/gdi/Makefile
Francois Gougetedf3e431999-11-07 21:22:17 +00001077dlls/icmp/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00001078dlls/imagehlp/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001079dlls/imm32/Makefile
Dimitrie O. Paun36b5b6b2000-06-03 00:07:44 +00001080dlls/kernel/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001081dlls/lzexpand/Makefile
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00001082dlls/mpr/Makefile
Patrik Stridvall8295c861998-10-11 17:09:05 +00001083dlls/msacm/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001084dlls/msnet32/Makefile
1085dlls/msvideo/Makefile
Marcus Meissner51505b11998-11-01 14:00:21 +00001086dlls/ntdll/Makefile
Alexandre Julliard8551f8c1999-12-11 23:56:46 +00001087dlls/odbc32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00001088dlls/ole32/Makefile
1089dlls/oleaut32/Makefile
1090dlls/olecli/Makefile
1091dlls/oledlg/Makefile
Sean Langley58c71d42000-02-07 16:26:56 +00001092dlls/olepro32/Makefile
Ulrich Weigand2a722f41999-09-19 18:36:53 +00001093dlls/olesvr/Makefile
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001094dlls/opengl32/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001095dlls/psapi/Makefile
Marcus Meissner30ef8771998-12-11 13:26:26 +00001096dlls/rasapi32/Makefile
Hidenori Takeshimae75f9fb2000-05-03 18:12:19 +00001097dlls/richedit/Makefile
Huw D M Davies10b1b232000-07-15 19:53:50 +00001098dlls/rpcrt4/Makefile
Mike McCormackdc2461e2000-07-15 21:35:55 +00001099dlls/serialui/Makefile
Francois Jacquesdf5e5792000-07-08 18:27:03 +00001100dlls/setupapi/Makefile
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00001101dlls/shell32/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001102dlls/shfolder/Makefile
1103dlls/shlwapi/Makefile
Andreas Mohr5aa96c11999-03-14 12:34:25 +00001104dlls/tapi32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001105dlls/ttydrv/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00001106dlls/urlmon/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001107dlls/user/Makefile
Ulrich Weigandd43a46a1999-01-31 10:11:04 +00001108dlls/version/Makefile
Ulrich Weigand6c6da671999-08-04 09:49:49 +00001109dlls/win32s/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001110dlls/winaspi/Makefile
Dimitrie O. Paun84bde6a2000-05-30 20:27:23 +00001111dlls/wineps/Makefile
Alexandre Julliard819fa8c2000-04-11 20:07:00 +00001112dlls/wininet/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001113dlls/winmm/Makefile
Eric Pouech2a3b0a12000-02-26 13:14:04 +00001114dlls/winmm/joystick/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001115dlls/winmm/mcianim/Makefile
1116dlls/winmm/mciavi/Makefile
1117dlls/winmm/mcicda/Makefile
1118dlls/winmm/mciseq/Makefile
1119dlls/winmm/mciwave/Makefile
Eric Pouechabe72271999-10-31 02:23:49 +00001120dlls/winmm/midimap/Makefile
1121dlls/winmm/wavemap/Makefile
Eric Pouech68944c21999-10-24 18:42:42 +00001122dlls/winmm/wineoss/Makefile
Alexandre Julliardde078692000-01-23 22:07:15 +00001123dlls/winsock/Makefile
Huw D M Daviese39b6761999-05-17 16:20:51 +00001124dlls/winspool/Makefile
Alexandre Julliardc6075322000-07-09 11:19:35 +00001125dlls/wow32/Makefile
1126dlls/wsock32/Makefile
Alexandre Julliard1dac57f2000-03-19 12:08:09 +00001127dlls/x11drv/Makefile
Alexandre Julliardd37eb361997-07-20 16:23:21 +00001128documentation/Makefile
Alexandre Julliardd6baf1b1999-07-18 15:47:22 +00001129documentation/wine.conf.man
Marcus Meissner5a70c971999-06-05 09:00:21 +00001130documentation/wine.man
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00001131files/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00001132graphics/Makefile
Huw D M Davies3a24f3f1999-05-02 10:15:16 +00001133graphics/enhmetafiledrv/Makefile
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00001134graphics/metafiledrv/Makefile
Alexandre Julliard0e270f41996-08-24 18:26:35 +00001135graphics/win16drv/Makefile
1136graphics/x11drv/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001137if1632/Makefile
James Juranc70dc831999-02-13 12:18:33 +00001138include/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001139library/Makefile
1140libtest/Makefile
1141loader/Makefile
Alexandre Julliard767e6f61998-08-09 12:47:43 +00001142loader/dos/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001143loader/ne/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001144memory/Makefile
1145misc/Makefile
1146miscemu/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00001147msdos/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001148objects/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00001149ole/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00001150programs/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001151programs/avitools/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001152programs/clock/Makefile
Eric Williams30008a01999-02-05 17:40:47 +00001153programs/cmdlgtst/Makefile
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001154programs/control/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001155programs/notepad/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001156programs/osversioncheck/Makefile
Alexandre Julliard02ed4c21996-03-02 19:34:10 +00001157programs/progman/Makefile
Sylvain St.Germain1bb0e661999-03-14 14:00:22 +00001158programs/regapi/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001159programs/regtest/Makefile
1160programs/uninstaller/Makefile
Alexandre Julliarda11d7b11998-03-01 20:05:02 +00001161programs/view/Makefile
Dave Pickles74f440e1999-06-06 15:24:04 +00001162programs/wcmd/Makefile
Joshua Thielena3f23802000-03-15 19:06:39 +00001163programs/winemine/Makefile
Alexandre Julliard1285c2f1996-05-06 16:06:24 +00001164programs/winhelp/Makefile
Alexandre Julliarde658d821997-11-30 17:45:40 +00001165programs/winver/Makefile
Alexandre Julliard44ed71f1997-12-21 19:17:50 +00001166relay32/Makefile
Alexandre Julliard9ea19e51997-01-01 17:29:55 +00001167scheduler/Makefile
Alexandre Julliard642d3131998-07-12 19:29:36 +00001168server/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001169tools/Makefile
John R. Sheetse61d33b2000-03-26 20:25:23 +00001170tools/cvdump/Makefile
Alexandre Julliarde482eeb2000-06-23 20:15:35 +00001171tools/winebuild/Makefile
Jeremy Whitef9f030b2000-11-05 20:06:56 +00001172tools/winelauncher
Bertho Stultiens30855912000-06-13 04:34:41 +00001173tools/wmc/Makefile
Andreas Mohr4eefb962000-08-01 00:27:35 +00001174tools/wrc/Makefile
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00001175tsx11/Makefile
Alexandre Julliardfb270dd2000-06-09 05:27:21 +00001176unicode/Makefile
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001177win32/Makefile
Patrik Stridvallea584721998-11-01 16:22:07 +00001178windows/Makefile
1179windows/x11drv/Makefile ])
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001180
Ove Kaaven8b4431f1999-01-23 13:59:11 +00001181if test "$have_x" = "no"
1182then
1183 echo
1184 echo "*** Warning: X development files not found. Wine will be built without"
1185 echo "*** X support, which currently does not work, and would probably not be"
1186 echo "*** what you want anyway. You will need to install devel packages of"
1187 echo "*** Xlib/Xfree86 and Xpm at the very least."
Ove Kaaven1eb593c1999-02-14 09:34:46 +00001188elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no"
1189then
1190 echo
1191 echo "*** Warning: Xpm development files not found. Wine will be built without"
1192 echo "*** Xpm support, which currently does not work. You will need to install"
1193 echo "*** devel packages of Xpm."
Ove Kaaven8b4431f1999-01-23 13:59:11 +00001194fi
1195
Alexandre Julliard638f1691999-01-17 16:32:32 +00001196if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
1197then
1198 echo
1199 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
1200 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +00001201fi
1202
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001203if test "$wine_cv_libc_reentrant" = "no"
1204then
1205 echo
1206 echo "*** Warning: non-reentrant libc detected. Wine will be build without"
1207 echo "*** thread support. Consider upgrading libc to a more recent"
1208 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00001209fi
1210
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001211if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00001212then
1213 echo
1214 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00001215 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
1216fi
1217
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001218if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "normal"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00001219then
1220 echo
1221 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001222 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
1223 echo "*** A fix for glibc 2.1.3 that seem to work is included in this version of Wine,"
1224 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +00001225fi
1226
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00001227if test "$wine_cv_opengl_version_threadsafe" = "yes" -a $OPENGL = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00001228then
1229 echo
1230 echo "*** Warning: you explicitely linked in a thread-safe OpenGL version. If you"
1231 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
1232 echo "*** support before reporting bugs."
1233fi
1234
1235
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001236echo
Steffen Moeller1511bae1999-02-17 15:27:03 +00001237echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001238echo
1239
1240dnl Local Variables:
1241dnl comment-start: "dnl "
1242dnl comment-end: ""
1243dnl comment-start-skip: "\\bdnl\\b\\s *"
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001244dnl compile-command: "autoconf"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001245dnl End: