Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. |
| 2 | dnl Author: Michael Patra <micky@marie.physik.tu-berlin.de> |
| 3 | dnl <patra@itp1.physik.tu-berlin.de> |
| 4 | AC_REVISION([configure.in 1.00]) |
| 5 | AC_INIT(controls/edit.c) |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 6 | AC_CONFIG_HEADER(include/config.h) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 7 | AC_CONFIG_AUX_DIR(tools) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8 | |
| 9 | # We want these before the checks, so the checks can modify their values. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 10 | |
Alexandre Julliard | c6c0944 | 1997-01-12 18:32:19 +0000 | [diff] [blame] | 11 | test -z "$PROGEXT" && PROGEXT="" AC_SUBST(PROGEXT) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 13 | dnl **** Command-line arguments **** |
| 14 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 15 | dnl Default values |
| 16 | MAIN_TARGET=emu |
| 17 | LIB_TARGET=libwine.a |
Todd Vierling | 8beb15a | 1998-12-18 17:30:52 +0000 | [diff] [blame] | 18 | ALT_LINK="-L\$(TOPOBJDIR) -lwine" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 19 | TRACE_MSGS=yes # the TRACE() macro |
| 20 | DEBUG_MSGS=yes # the TRACE(), WARN(), and FIXME() macros. |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 21 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 22 | AC_ARG_ENABLE(emulator, |
| 23 | [ --disable-emulator build only the Wine library, not the emulator], |
| 24 | [if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi]) |
| 25 | |
| 26 | AC_ARG_ENABLE(dll, |
| 27 | [ --enable-dll build the Wine library as a DLL], |
| 28 | [if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi]) |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 29 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 30 | AC_ARG_ENABLE(lib, |
| 31 | [ --disable-lib build the Wine without building libwine.a], |
Ove Kaaven | 11e1a5e | 1998-11-06 10:01:45 +0000 | [diff] [blame] | 32 | [if test "$enableval" = "no"; then ALT_LINK="\$(LIBOBJS) \$(X11OBJS)"; LIB_TARGET=""; fi]) |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 33 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 34 | AC_ARG_ENABLE(debug, |
| 35 | [ --disable-debug compile out all debugging messages], |
| 36 | [if test "$enableval" = "no"; then DEBUG_MSGS="no"; fi]) |
| 37 | |
| 38 | AC_ARG_ENABLE(trace, |
| 39 | [ --disable-trace compile out TRACE messages], |
| 40 | [if test "$enableval" = "no"; then TRACE_MSGS="no"; fi]) |
| 41 | |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 42 | AC_ARG_WITH(reentrant-x, |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 43 | [ --without-reentrant-x compile for use with non-reentrant X libraries]) |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 44 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 45 | AC_SUBST(MAIN_TARGET) |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 46 | AC_SUBST(LIB_TARGET) |
Uwe Bonnes | 2a4707a | 1998-10-11 14:57:08 +0000 | [diff] [blame] | 47 | AC_SUBST(ALT_LINK) |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 48 | AC_SUBST(OPTIONS) |
Alexandre Julliard | b7258be | 1995-09-01 15:57:28 +0000 | [diff] [blame] | 49 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 50 | if test "$DEBUG_MSGS" = "no" |
| 51 | then |
| 52 | AC_DEFINE(NO_DEBUG_MSGS) |
| 53 | AC_DEFINE(NO_TRACE_MSGS) |
| 54 | else |
| 55 | if test "$TRACE_MSGS" = "no" |
| 56 | then |
| 57 | AC_DEFINE(NO_TRACE_MSGS) |
| 58 | fi |
| 59 | fi |
| 60 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 61 | dnl **** Check for some programs **** |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 62 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 63 | AC_PROG_MAKE_SET |
| 64 | AC_PROG_CC |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 65 | AC_PROG_CPP |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 66 | AC_PATH_XTRA |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 67 | AC_PROG_YACC |
| 68 | AC_PROG_LEX |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 69 | AC_PROG_RANLIB |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 70 | AC_PROG_INSTALL |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 71 | AC_PROG_LN_S |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 72 | AC_CHECK_PROG(C2MAN,c2man,c2man,true) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 73 | AC_PATH_PROG(LDCONFIG, ldconfig, false, /sbin:/usr/sbin:$PATH) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 74 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 75 | dnl Check for lint |
| 76 | AC_CHECK_PROGS(LINT, lclint lint) |
| 77 | if test "$LINT" = "lint" |
| 78 | then |
| 79 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 80 | dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64' |
| 81 | fi |
| 82 | AC_SUBST(LINT) |
| 83 | AC_SUBST(LINTFLAGS) |
| 84 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 85 | dnl **** Check for some libraries **** |
| 86 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 87 | dnl Check for -lm for BeOS |
| 88 | AC_CHECK_LIB(m,sqrt) |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 89 | dnl Check for -li386 for NetBSD and OpenBSD |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 90 | AC_CHECK_LIB(i386,i386_set_ldt) |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 91 | dnl Check for -lossaudio for NetBSD |
| 92 | AC_CHECK_LIB(ossaudio,_oss_ioctl) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 93 | dnl Check for -lw for Solaris |
| 94 | AC_CHECK_LIB(w,iswalnum) |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 95 | dnl Check for -lnsl for Solaris |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 96 | AC_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 Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 97 | dnl Check for -lsocket for Solaris |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 98 | AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 99 | dnl Check for -lxpg4 for FreeBSD |
| 100 | AC_CHECK_LIB(xpg4,setrunelocale) |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 101 | dnl Check for -lmmap for OS/2 |
| 102 | AC_CHECK_LIB(mmap,mmap) |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 103 | |
| 104 | AC_CHECK_HEADERS(dlfcn.h, |
| 105 | AC_CHECK_FUNCS(dlopen, |
| 106 | AC_DEFINE(HAVE_DL_API), |
| 107 | AC_CHECK_LIB(dl,dlopen, |
| 108 | AC_DEFINE(HAVE_DL_API) |
| 109 | LIBS="$LIBS -ldl" |
| 110 | ) |
| 111 | ) |
| 112 | ) |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 113 | AC_SUBST(XLIB) |
| 114 | if test "$have_x" = "yes" |
| 115 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 116 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 117 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 118 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 119 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 120 | dnl Check for -lXpm |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 121 | AC_CHECK_HEADERS(X11/xpm.h) |
| 122 | if test "$ac_cv_header_X11_xpm_h" = "yes" |
| 123 | then |
| 124 | AC_CHECK_LIB(Xpm,XpmCreatePixmapFromData,AC_DEFINE(HAVE_LIBXXPM) X_PRE_LIBS="$X_PRE_LIBS -lXpm",,$X_LIBS -lXext -lX11) |
| 125 | fi |
| 126 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 127 | dnl Check for X Shm extension |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 128 | AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/XShm.h) |
| 129 | if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 130 | then |
| 131 | AC_CHECK_LIB(Xext,XShmQueryExtension,AC_DEFINE(HAVE_LIBXXSHM),,$X_LIBS -lXext -lX11) |
| 132 | fi |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 133 | dnl Check for XFree86 DGA / DGA 2.0 extension |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 134 | AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/xf86dga.h) |
| 135 | if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" |
| 136 | then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 137 | AC_CHECK_LIB(Xxf86dga,XDGAQueryExtension,AC_DEFINE(HAVE_LIBXXF86DGA2) X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga",,$X_LIBS -lXext -lX11) |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 138 | AC_CHECK_LIB(Xxf86dga,XF86DGAQueryExtension,AC_DEFINE(HAVE_LIBXXF86DGA) X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga",,$X_LIBS -lXext -lX11) |
| 139 | fi |
| 140 | |
Stephen Crowley | 399931a | 1998-12-08 13:10:56 +0000 | [diff] [blame] | 141 | dnl Check for XFree86 VMODE extension |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 142 | AC_CHECK_HEADERS(X11/Xlib.h X11/extensions/xf86vmode.h) |
| 143 | if test "$ac_cv_header_X11_Xlib_h" = "yes" -a "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 144 | then |
| 145 | AC_CHECK_LIB(Xxf86vm,XF86VidModeQueryExtension,AC_DEFINE(HAVE_LIBXXF86VM) X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm",,$X_LIBS -lXext -lX11) |
| 146 | fi |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 147 | |
Lionel Ulmer | 5ff0077 | 1999-01-03 17:00:19 +0000 | [diff] [blame] | 148 | dnl Check for the presence of Mesa |
Lionel Ulmer | 5d68f79 | 1999-07-23 19:33:24 +0000 | [diff] [blame] | 149 | AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/osmesa.h) |
| 150 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 151 | then |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 152 | dnl Check for some problems due to old Mesa versions |
| 153 | AC_CACHE_CHECK("for up-to-date Mesa version", wine_cv_mesa_version_OK, |
| 154 | AC_TRY_COMPILE( |
| 155 | [#include <GL/gl.h>], |
| 156 | [GLenum test = GL_UNSIGNED_SHORT_5_6_5;], |
| 157 | [wine_cv_mesa_version_OK="yes"], |
| 158 | [wine_cv_mesa_version_OK="no"] |
| 159 | ) |
| 160 | ) |
| 161 | |
| 162 | if test "$wine_cv_mesa_version_OK" = "yes" |
| 163 | then |
| 164 | dnl Check for the presense of the library |
Lionel Ulmer | 5d68f79 | 1999-07-23 19:33:24 +0000 | [diff] [blame] | 165 | AC_CHECK_LIB(GL,glXCreateContext,AC_DEFINE(HAVE_LIBMESAGL) X_PRE_LIBS="$X_PRE_LIBS -lGL",,$X_LIBS -lXext -lX11 -lm) |
| 166 | if test "$ac_cv_lib_GL_glXCreateContext" = "no" |
| 167 | then |
Eric Pouech | 1a97191 | 1999-07-24 10:25:45 +0000 | [diff] [blame] | 168 | AC_CHECK_LIB(MesaGL,glXCreateContext,AC_DEFINE(HAVE_LIBMESAGL) X_PRE_LIBS="$X_PRE_LIBS -lMesaGL",,$X_LIBS -lXext -lX11 -lm) |
Lionel Ulmer | 5d68f79 | 1999-07-23 19:33:24 +0000 | [diff] [blame] | 169 | fi |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 170 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 171 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 172 | |
| 173 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 174 | else |
| 175 | XLIB="" |
| 176 | X_CFLAGS="" |
| 177 | X_LIBS="" |
| 178 | fi |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 179 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 180 | dnl **** Check which curses lib to use *** |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 181 | AC_CHECK_HEADERS(ncurses.h) |
| 182 | if test "$ac_cv_header_ncurses_h" = "yes" |
| 183 | then |
| 184 | AC_CHECK_LIB(ncurses,waddch) |
| 185 | fi |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 186 | if test "$ac_cv_lib_ncurses_waddch" = "yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 187 | then |
| 188 | AC_CHECK_LIB(ncurses,resizeterm,AC_DEFINE(HAVE_RESIZETERM)) |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 189 | AC_CHECK_LIB(ncurses,getbkgd,AC_DEFINE(HAVE_GETBKGD)) |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 190 | else |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 191 | AC_CHECK_HEADERS(curses.h) |
| 192 | if test "$ac_cv_header_curses_h" = "yes" |
| 193 | then |
| 194 | AC_CHECK_LIB(curses,waddch) |
| 195 | AC_CHECK_LIB(curses,resizeterm,AC_DEFINE(HAVE_RESIZETERM)) |
Michael Veksler | f544507 | 1999-02-25 17:11:05 +0000 | [diff] [blame] | 196 | AC_CHECK_LIB(curses,getbkgd,AC_DEFINE(HAVE_GETBKGD)) |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 197 | fi |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 198 | fi |
| 199 | |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 200 | dnl **** Check for IPX (currently Linux only) **** |
| 201 | AC_CACHE_CHECK("for GNU style IPX support", ac_cv_c_ipx_gnu, |
| 202 | AC_TRY_COMPILE( |
| 203 | [#include <sys/socket.h> |
| 204 | #include <netipx/ipx.h>], |
| 205 | [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX], |
| 206 | [AC_DEFINE(HAVE_IPX_GNU) |
| 207 | ac_cv_c_ipx_gnu="yes"], |
| 208 | [ac_cv_c_ipx_gnu="no"]) |
| 209 | ) |
| 210 | |
| 211 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 212 | then |
| 213 | AC_CACHE_CHECK("for linux style IPX support", ac_cv_c_ipx_linux, |
| 214 | AC_TRY_COMPILE( |
| 215 | [#include <sys/socket.h> |
| 216 | #include <asm/types.h> |
| 217 | #include <linux/ipx.h>], |
| 218 | [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX], |
| 219 | [AC_DEFINE(HAVE_IPX_LINUX) |
| 220 | ac_cv_c_ipx_linux="yes"], |
| 221 | [ac_cv_c_ipx_linux="no"]) |
| 222 | ) |
| 223 | fi |
| 224 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 225 | dnl **** Check for Open Sound System **** |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 226 | AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 227 | |
| 228 | AC_CACHE_CHECK("for Open Sound System", |
| 229 | ac_cv_c_opensoundsystem, |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 230 | AC_TRY_COMPILE([ |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 231 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 232 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 233 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 234 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 235 | #elif defined(HAVE_SOUNDCARD_H) |
| 236 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 237 | #endif |
| 238 | ],[ |
| 239 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 240 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 241 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 242 | #error No open sound system |
| 243 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 244 | ],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no")) |
| 245 | |
| 246 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 247 | then |
| 248 | AC_DEFINE(HAVE_OSS) |
| 249 | fi |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 250 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 251 | AC_CACHE_CHECK("for Open Sound System/MIDI interface", |
| 252 | ac_cv_c_opensoundsystem_midi, |
| 253 | AC_TRY_COMPILE([ |
| 254 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 255 | #include <sys/soundcard.h> |
| 256 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 257 | #include <machine/soundcard.h> |
| 258 | #elif defined(HAVE_SOUNDCARD_H) |
| 259 | #include <soundcard.h> |
| 260 | #endif |
| 261 | ],[ |
| 262 | |
| 263 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 264 | #if !defined(SNDCTL_SEQ_SYNC) |
| 265 | #error No open sound system MIDI interface |
| 266 | #endif |
| 267 | ],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no")) |
| 268 | |
| 269 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 270 | then |
| 271 | AC_DEFINE(HAVE_OSS_MIDI) |
| 272 | fi |
| 273 | |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 274 | dnl **** If ln -s doesn't work, use cp instead **** |
| 275 | if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi |
| 276 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 277 | dnl **** Check for gcc strength-reduce bug **** |
| 278 | |
| 279 | if test "x${GCC}" = "xyes" |
| 280 | then |
| 281 | CFLAGS="$CFLAGS -Wall" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 282 | AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug, |
| 283 | AC_TRY_RUN([ |
| 284 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 285 | static int Array[[3]]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 286 | unsigned int B = 3; |
| 287 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 288 | for(i=0; i<B; i++) Array[[i]] = i - 3; |
| 289 | exit( Array[[1]] != -2 ); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 290 | }], |
| 291 | ac_cv_c_gcc_strength_bug="no", |
| 292 | ac_cv_c_gcc_strength_bug="yes", |
| 293 | ac_cv_c_gcc_strength_bug="yes") ) |
| 294 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 295 | then |
| 296 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 297 | fi |
| 298 | fi |
| 299 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 300 | dnl **** Check for underscore on external symbols **** |
| 301 | |
| 302 | AC_CACHE_CHECK("whether external symbols need an underscore prefix", |
| 303 | ac_cv_c_extern_prefix, |
| 304 | [saved_libs=$LIBS |
| 305 | LIBS="conftest_asm.s $LIBS" |
| 306 | cat > conftest_asm.s <<EOF |
| 307 | .globl _ac_test |
| 308 | _ac_test: |
| 309 | .long 0 |
| 310 | EOF |
| 311 | AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1], |
| 312 | ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no") |
| 313 | LIBS=$saved_libs]) |
| 314 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 315 | then |
| 316 | AC_DEFINE(NEED_UNDERSCORE_PREFIX) |
| 317 | fi |
| 318 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 319 | dnl **** Check for .string in assembler **** |
| 320 | |
| 321 | AC_CACHE_CHECK("whether assembler accepts .string", |
| 322 | ac_cv_c_asm_string, |
| 323 | [saved_libs=$LIBS |
| 324 | LIBS="conftest_asm.s $LIBS" |
| 325 | cat > conftest_asm.s <<EOF |
| 326 | .string "test" |
| 327 | EOF |
| 328 | AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no") |
| 329 | LIBS=$saved_libs]) |
| 330 | if test "$ac_cv_c_asm_string" = "yes" |
| 331 | then |
| 332 | AC_DEFINE(HAVE_ASM_STRING) |
| 333 | fi |
| 334 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 335 | dnl **** Check for working dll **** |
| 336 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 337 | DLLFLAGS="" |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 338 | BUILDFLAGS="" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 339 | LDSHARED="" |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 340 | if test "$LIB_TARGET" = "libwine.so.1.0" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 341 | then |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 342 | AC_CACHE_CHECK("whether we can build a Linux dll", |
| 343 | ac_cv_c_dll_linux, |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 344 | [saved_cflags=$CFLAGS |
| 345 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 346 | AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no") |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 347 | CFLAGS=$saved_cflags |
| 348 | ]) |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 349 | if test "$ac_cv_c_dll_linux" = "yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 350 | then |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 351 | BUILDFLAGS="-pic" |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 352 | DLLFLAGS="-fPIC" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 353 | LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 354 | else |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 355 | AC_CACHE_CHECK("whether we can build a UnixWare dll", |
| 356 | ac_cv_c_dll_unixware, |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 357 | [saved_cflags=$CFLAGS |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 358 | CFLAGS="$CFLAGS -fPIC -Wl,-G,conftest.so.1.0" |
| 359 | AC_TRY_LINK(,[return 1],ac_cv_c_dll_unixware="yes",ac_cv_c_dll_unixware="no") |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 360 | CFLAGS=$saved_cflags |
| 361 | ]) |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 362 | if test "$ac_cv_c_dll_unixware" = "yes" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 363 | then |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 364 | BUILDFLAGS="-pic" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 365 | DLLFLAGS="-fPIC" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 366 | LDSHARED="\$(CC) -Wl,-G,-h,/usr/local/lib/libwine.so" |
| 367 | else |
| 368 | AC_CACHE_CHECK("whether we can build a NetBSD dll", |
| 369 | ac_cv_c_dll_netbsd, |
| 370 | [saved_cflags=$CFLAGS |
| 371 | CFLAGS="$CFLAGS -fPIC -Bshareable -Bforcearchive" |
| 372 | AC_TRY_LINK(,[return 1],ac_cv_c_dll_netbsd="yes",ac_cv_c_dll_netbsd="no") |
| 373 | CFLAGS=$saved_cflags |
| 374 | ]) |
| 375 | if test "$ac_cv_c_dll_netbsd" = "yes" |
| 376 | then |
| 377 | BUILDFLAGS="-pic" |
| 378 | DLLFLAGS="-fPIC" |
| 379 | LDSHARED="ld -Bshareable -Bforcearchive" |
| 380 | fi |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 381 | fi |
| 382 | fi |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 383 | if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 384 | then |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 385 | LIB_TARGET="libwine.a" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 386 | fi |
| 387 | fi |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 388 | AC_SUBST(BUILDFLAGS) |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 389 | AC_SUBST(DLLFLAGS) |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 390 | AC_SUBST(LDSHARED) |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 391 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 392 | dnl **** Check for reentrant libc **** |
| 393 | dnl |
| 394 | dnl For cross-compiling we blindly assume that libc is reentrant. This is |
| 395 | dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions). |
| 396 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 397 | wine_cv_libc_reentrant=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 398 | dnl |
| 399 | dnl Linux style errno location |
| 400 | dnl |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 401 | AC_CACHE_CHECK("for reentrant libc: __errno_location", wine_cv_libc_r__errno_location, |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 402 | [AC_TRY_RUN([int myerrno = 0; |
| 403 | char buf[256]; |
| 404 | int *__errno_location(){return &myerrno;} |
| 405 | main(){connect(0,buf,255); exit(!myerrno);}], |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 406 | wine_cv_libc_r__errno_location=yes, wine_cv_libc_r__errno_location=no, |
| 407 | wine_cv_libc_r__errno_location=yes ) |
| 408 | ]) |
| 409 | if test "$wine_cv_libc_r__errno_location" = "yes" |
| 410 | then |
| 411 | AC_DEFINE(HAVE__ERRNO_LOCATION) |
| 412 | wine_cv_libc_reentrant=__errno_location |
| 413 | fi |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 414 | dnl |
| 415 | dnl FreeBSD style errno location |
| 416 | dnl |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 417 | AC_CACHE_CHECK("for reentrant libc: __error", wine_cv_libc_r__error, |
| 418 | [AC_TRY_RUN([int myerrno = 0; |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 419 | char buf[256]; |
| 420 | int *__error(){return &myerrno;} |
| 421 | main(){connect(0,buf,255); exit(!myerrno);}], |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 422 | wine_cv_libc_r__error=yes, wine_cv_libc_r__error=no, |
| 423 | wine_cv_libc_r__error=yes ) |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 424 | ]) |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 425 | if test "$wine_cv_libc_r__error" = "yes" |
| 426 | then |
| 427 | AC_DEFINE(HAVE__ERROR) |
| 428 | wine_cv_libc_reentrant=__error |
| 429 | fi |
| 430 | dnl |
| 431 | dnl Solaris style errno location |
| 432 | dnl |
| 433 | AC_CACHE_CHECK("for reentrant libc: ___errno", wine_cv_libc_r___errno, |
| 434 | [AC_TRY_RUN([int myerrno = 0; |
| 435 | char buf[256]; |
| 436 | int *___errno(){return &myerrno;} |
| 437 | main(){connect(0,buf,255); exit(!myerrno);}], |
| 438 | wine_cv_libc_r___errno=yes, wine_cv_libc_r___errno=no, |
| 439 | wine_cv_libc_r___errno=yes ) |
| 440 | ]) |
| 441 | if test "$wine_cv_libc_r___errno" = "yes" |
| 442 | then |
| 443 | AC_DEFINE(HAVE___ERRNO) |
| 444 | wine_cv_libc_reentrant=___errno |
| 445 | fi |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 446 | dnl |
| 447 | dnl UnixWare style errno location |
| 448 | dnl |
| 449 | AC_CACHE_CHECK("for reentrant libc: __thr_errno", wine_cv_libc_r__thr_errno, |
| 450 | [AC_TRY_RUN([int myerrno = 0; |
| 451 | char buf[256]; |
| 452 | int *__thr_errno(){return &myerrno;} |
| 453 | main(){connect(0,buf,255); exit(!myerrno);}], |
| 454 | wine_cv_libc_r__thr_errno=yes, wine_cv_libc_r__thr_errno=no, |
| 455 | wine_cv_libc_r__thr_errno=yes ) |
| 456 | ]) |
| 457 | if test "$wine_cv_libc_r__thr_errno" = "yes" |
| 458 | then |
| 459 | AC_DEFINE(HAVE__THR_ERRNO) |
| 460 | wine_cv_libc_reentrant=__thr_errno |
| 461 | fi |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 462 | if test "$wine_cv_libc_reentrant" = "no" |
| 463 | then |
| 464 | AC_DEFINE(NO_REENTRANT_LIBC) |
| 465 | fi |
| 466 | |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 467 | dnl **** Check for reentrant X libraries **** |
| 468 | dnl |
| 469 | dnl This may fail to determine whether X libraries are reentrant if |
| 470 | dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration |
| 471 | dnl is possible with the --without-reentrant-x option. |
| 472 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 473 | if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 474 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 475 | AC_CACHE_CHECK( "for reentrant X libraries", wine_cv_x_reentrant, |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 476 | [ if test "x$with_reentrant_x" = "xno" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 477 | then |
| 478 | wine_cv_x_reentrant=no |
| 479 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 480 | libX11_check=none |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 481 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 482 | if test -r $dir/libX11.so; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 483 | libX11_check="-D $dir/libX11.so" |
| 484 | break 1 |
| 485 | fi |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 486 | if test -r $dir/libX11.a; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 487 | libX11_check="$dir/libX11.a" |
| 488 | break 1 |
| 489 | fi |
| 490 | done |
| 491 | if test "$libX11_check" != "none"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 492 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 493 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 494 | wine_cv_x_reentrant=yes |
| 495 | else |
| 496 | wine_cv_x_reentrant=no |
| 497 | fi |
| 498 | else |
| 499 | wine_cv_x_reentrant=unknown |
| 500 | fi |
| 501 | fi ] ) |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 502 | else |
| 503 | wine_cv_x_reentrant=no |
| 504 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 505 | if test "$wine_cv_x_reentrant" = "no" |
| 506 | then |
| 507 | AC_DEFINE(NO_REENTRANT_X11) |
| 508 | fi |
| 509 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 510 | dnl **** Check for functions **** |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 511 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 512 | AC_FUNC_ALLOCA() |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 513 | AC_CHECK_FUNCS(\ |
| 514 | _lwp_create \ |
| 515 | clone \ |
| 516 | getpagesize \ |
| 517 | memmove \ |
| 518 | rfork \ |
| 519 | sendmsg \ |
| 520 | sigaltstack \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 521 | strcasecmp \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 522 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 523 | strncasecmp \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 524 | tcgetattr \ |
| 525 | timegm \ |
| 526 | usleep \ |
| 527 | vfscanf \ |
| 528 | wait4 \ |
| 529 | waitpid \ |
| 530 | ) |
| 531 | |
| 532 | dnl **** Check for header files **** |
| 533 | |
| 534 | AC_CHECK_HEADERS(\ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 535 | a.out.h \ |
| 536 | a_out.h \ |
| 537 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 538 | arpa/nameser.h \ |
| 539 | curses.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 540 | elf.h \ |
| 541 | float.h \ |
| 542 | libio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 543 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 544 | linux/cdrom.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 545 | linux/joystick.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 546 | linux/ucdrom.h \ |
| 547 | ncurses.h \ |
| 548 | net/if.h \ |
| 549 | netinet/in.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 550 | netinet/tcp.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 551 | resolv.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 552 | sched.h \ |
| 553 | socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 554 | strings.h \ |
| 555 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 556 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 557 | sys/file.h \ |
| 558 | sys/filio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 559 | sys/ipc.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 560 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 561 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 562 | sys/modem.h \ |
| 563 | sys/mount.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 564 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 565 | sys/param.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 566 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 567 | sys/shm.h \ |
| 568 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 569 | sys/sockio.h \ |
| 570 | sys/statfs.h \ |
| 571 | sys/strtio.h \ |
| 572 | sys/syscall.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 573 | sys/wait.h \ |
| 574 | sys/v86.h \ |
| 575 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 576 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 577 | sys/vm86.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 578 | syscall.h \ |
| 579 | ucontext.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 580 | wctype.h \ |
| 581 | ) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 582 | AC_HEADER_STAT() |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 583 | |
| 584 | dnl **** Check for types **** |
| 585 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 586 | AC_C_CONST() |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 587 | AC_C_INLINE() |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 588 | AC_TYPE_SIZE_T() |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 589 | AC_CHECK_SIZEOF(long long,0) |
| 590 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 591 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
| 592 | then |
| 593 | AC_CACHE_CHECK("whether linux/joystick.h uses the Linux 2.2+ API", |
| 594 | wine_cv_linux_joystick_22_api, |
| 595 | AC_TRY_COMPILE([ |
| 596 | #include <sys/ioctl.h> |
| 597 | #include <linux/joystick.h> |
| 598 | |
| 599 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 600 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 601 | #error "no 2.2 header" |
| 602 | #endif |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 603 | ],/*empty*/, |
| 604 | wine_cv_linux_joystick_22_api=yes, |
| 605 | wine_cv_linux_joystick_22_api=no, |
| 606 | wine_cv_linux_joystick_22_api=no |
| 607 | ) |
| 608 | ) |
| 609 | if test "$wine_cv_linux_joystick_22_api" |
| 610 | then |
| 611 | AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API) |
| 612 | fi |
| 613 | fi |
| 614 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 615 | dnl **** statfs checks **** |
| 616 | |
| 617 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 618 | then |
| 619 | AC_CACHE_CHECK( "whether sys/vfs.h defines statfs", |
| 620 | wine_cv_sys_vfs_has_statfs, |
| 621 | AC_TRY_COMPILE([ |
| 622 | #include <sys/types.h> |
| 623 | #ifdef HAVE_SYS_PARAM_H |
| 624 | # include <sys/param.h> |
| 625 | #endif |
| 626 | #include <sys/vfs.h> |
| 627 | ],[ |
| 628 | struct statfs stfs; |
| 629 | |
| 630 | memset(&stfs,0,sizeof(stfs)); |
| 631 | ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no |
| 632 | ) |
| 633 | ) |
| 634 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 635 | then |
| 636 | AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS) |
| 637 | fi |
| 638 | fi |
| 639 | |
| 640 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 641 | then |
| 642 | AC_CACHE_CHECK( "whether sys/statfs.h defines statfs", |
| 643 | wine_cv_sys_statfs_has_statfs, |
| 644 | AC_TRY_COMPILE([ |
| 645 | #include <sys/types.h> |
| 646 | #ifdef HAVE_SYS_PARAM_H |
| 647 | # include <sys/param.h> |
| 648 | #endif |
| 649 | #include <sys/statfs.h> |
| 650 | ],[ |
| 651 | struct statfs stfs; |
| 652 | ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no |
| 653 | ) |
| 654 | ) |
| 655 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 656 | then |
| 657 | AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS) |
| 658 | fi |
| 659 | fi |
| 660 | |
| 661 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 662 | then |
| 663 | AC_CACHE_CHECK( "whether sys/mount.h defines statfs", |
| 664 | wine_cv_sys_mount_has_statfs, |
| 665 | AC_TRY_COMPILE([ |
| 666 | #include <sys/types.h> |
| 667 | #ifdef HAVE_SYS_PARAM_H |
| 668 | # include <sys/param.h> |
| 669 | #endif |
| 670 | #include <sys/mount.h> |
| 671 | ],[ |
| 672 | struct statfs stfs; |
| 673 | ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no |
| 674 | ) |
| 675 | ) |
| 676 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 677 | then |
| 678 | AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT) |
| 679 | fi |
| 680 | fi |
| 681 | |
| 682 | dnl **** FIXME: what about mixed cases, where we need two of them? *** |
| 683 | |
| 684 | AC_CACHE_CHECK( "for statfs.f_bfree", wine_cv_statfs_bfree, |
| 685 | [ if test "x$statfs_bfree" = "xno" |
| 686 | then |
| 687 | wine_cv_statfs_bfree=no |
| 688 | else |
| 689 | AC_TRY_COMPILE([ |
| 690 | #include <sys/types.h> |
| 691 | #ifdef HAVE_SYS_PARAM_H |
| 692 | # include <sys/param.h> |
| 693 | #endif |
| 694 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 695 | # include <sys/mount.h> |
| 696 | #else |
| 697 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 698 | # include <sys/vfs.h> |
| 699 | # else |
| 700 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 701 | # include <sys/statfs.h> |
| 702 | # endif |
| 703 | # endif |
| 704 | #endif |
| 705 | ],[ |
| 706 | struct statfs stfs; |
| 707 | |
| 708 | stfs.f_bfree++; |
| 709 | ],wine_cv_statfs_bfree=yes,wine_cv_statfs_bfree=no |
| 710 | ) |
| 711 | fi ] ) |
| 712 | if test "$wine_cv_statfs_bfree" = "yes" |
| 713 | then |
| 714 | AC_DEFINE(STATFS_HAS_BFREE) |
| 715 | fi |
| 716 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 717 | AC_CACHE_CHECK( "for statfs.f_bavail", wine_cv_statfs_bavail, |
| 718 | [ if test "x$statfs_bavail" = "xno" |
| 719 | then |
| 720 | wine_cv_statfs_bavail=no |
| 721 | else |
| 722 | AC_TRY_COMPILE([ |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 723 | #include <sys/types.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 724 | #ifdef HAVE_SYS_PARAM_H |
| 725 | # include <sys/param.h> |
| 726 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 727 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 728 | # include <sys/mount.h> |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 729 | #else |
| 730 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 731 | # include <sys/vfs.h> |
| 732 | # else |
| 733 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 734 | # include <sys/statfs.h> |
| 735 | # endif |
| 736 | # endif |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 737 | #endif |
| 738 | ],[ |
| 739 | struct statfs stfs; |
| 740 | |
| 741 | stfs.f_bavail++; |
| 742 | ],wine_cv_statfs_bavail=yes,wine_cv_statfs_bavail=no |
| 743 | ) |
| 744 | fi ] ) |
| 745 | if test "$wine_cv_statfs_bavail" = "yes" |
| 746 | then |
| 747 | AC_DEFINE(STATFS_HAS_BAVAIL) |
| 748 | fi |
| 749 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 750 | dnl *** check for working sigaltstack |
| 751 | dnl glibc 2.0x defines it, but it always fails... so it is useless for us. |
| 752 | |
| 753 | AC_CACHE_CHECK("for working sigaltstack", |
| 754 | ac_cv_c_working_sigaltstack, |
| 755 | AC_TRY_RUN([ |
| 756 | #include <stdio.h> |
| 757 | #include <time.h> /* <sys/time.h> ? bad magic without end */ |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 758 | #include <sys/types.h> |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 759 | #include <sys/signal.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 760 | #ifdef HAVE_SYS_PARAM_H |
| 761 | # include <sys/param.h> |
| 762 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 763 | #ifdef HAVE_SYSCALL_H |
| 764 | # include <syscall.h> |
| 765 | #else |
| 766 | # ifdef HAVE_SYS_SYSCALL_H |
| 767 | # include <sys/syscall.h> |
| 768 | # endif |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 769 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 770 | |
| 771 | unsigned char *xaltstack; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 772 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 773 | int |
| 774 | main(int argc,char **argv) { |
| 775 | struct sigaltstack ss; |
| 776 | |
| 777 | xaltstack = malloc(16384); |
| 778 | ss.ss_sp = xaltstack; |
| 779 | ss.ss_size = 16384; |
| 780 | ss.ss_flags = 0; |
| 781 | if (sigaltstack(&ss, NULL) < 0) { |
| 782 | /* this catches the glibc case */ |
| 783 | perror("sigaltstack"); |
| 784 | return (1); /* aka exit(1) aka fail */ |
| 785 | } |
| 786 | /* assume it works. */ |
| 787 | return 0; /* OK */ |
| 788 | } |
| 789 | ], |
| 790 | ac_cv_c_working_sigaltstack="yes", |
| 791 | ac_cv_c_working_sigaltstack="no", |
| 792 | ac_cv_c_working_sigaltstack="no" |
| 793 | )) |
| 794 | |
| 795 | if test "$ac_cv_c_working_sigaltstack" = "yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 796 | then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 797 | AC_DEFINE(HAVE_WORKING_SIGALTSTACK) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 798 | fi |
| 799 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 800 | |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 801 | dnl *** check for file descriptor passing with msg_accrights |
| 802 | |
| 803 | AC_CACHE_CHECK("for msg_accrights in struct msghdr", ac_cv_c_msg_accrights, |
| 804 | AC_TRY_COMPILE([#include <sys/types.h> |
| 805 | #include <sys/socket.h>],[struct msghdr hdr; hdr.msg_accrights=0], |
| 806 | ac_cv_c_msg_accrights="yes", ac_cv_c_msg_accrights="no")) |
| 807 | if test "$ac_cv_c_msg_accrights" = "yes" |
| 808 | then |
| 809 | AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS) |
| 810 | fi |
| 811 | |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 812 | dnl *** check for the need to define __i386__ |
| 813 | |
| 814 | AC_CACHE_CHECK("whether we need to define __i386__",ac_cv_cpp_def_i386, |
| 815 | AC_EGREP_CPP(yes,[#if (defined(i386) || defined(__i386)) && !defined(__i386__) |
| 816 | yes |
| 817 | #endif], |
| 818 | ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no")) |
| 819 | if test "$ac_cv_cpp_def_i386" = "yes" |
| 820 | then |
| 821 | CFLAGS="$CFLAGS -D__i386__" |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 822 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 823 | fi |
| 824 | |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 825 | dnl $GCC is set by autoconf |
| 826 | GCC_NO_BUILTIN="" |
| 827 | if test "$GCC" = "yes" |
| 828 | then |
| 829 | GCC_NO_BUILTIN="-fno-builtin" |
| 830 | fi |
| 831 | AC_SUBST(GCC_NO_BUILTIN) |
| 832 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 833 | dnl **** Generate output files **** |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 834 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 835 | MAKE_RULES=Make.rules |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 836 | AC_SUBST_FILE(MAKE_RULES) |
| 837 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 838 | AC_OUTPUT([ |
| 839 | Make.rules |
| 840 | Makefile |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 841 | console/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 842 | controls/Makefile |
| 843 | debugger/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 844 | dlls/Makefile |
Juergen Schmied | f7b0de3 | 1999-01-03 12:48:29 +0000 | [diff] [blame] | 845 | dlls/advapi32/Makefile |
Marcus Meissner | b3d1a22 | 1999-03-13 18:07:44 +0000 | [diff] [blame] | 846 | dlls/avifil32/Makefile |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 847 | dlls/comctl32/Makefile |
Klaas van Gend | c912749 | 1999-02-28 20:05:11 +0000 | [diff] [blame] | 848 | dlls/commdlg/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 849 | dlls/crtdll/Makefile |
| 850 | dlls/dciman32/Makefile |
Peter Hunnisett | 22b861c | 1999-09-28 16:35:32 +0000 | [diff] [blame] | 851 | dlls/dplayx/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 852 | dlls/dsound/Makefile |
Francois Gouget | edf3e43 | 1999-11-07 21:22:17 +0000 | [diff] [blame] | 853 | dlls/icmp/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 854 | dlls/imagehlp/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 855 | dlls/imm32/Makefile |
| 856 | dlls/lzexpand/Makefile |
Ulrich Weigand | bb1984e | 1999-08-07 14:32:33 +0000 | [diff] [blame] | 857 | dlls/mpr/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 858 | dlls/msacm/Makefile |
| 859 | dlls/msacm32/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 860 | dlls/msnet32/Makefile |
| 861 | dlls/msvideo/Makefile |
Marcus Meissner | 51505b1 | 1998-11-01 14:00:21 +0000 | [diff] [blame] | 862 | dlls/ntdll/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 863 | dlls/ole32/Makefile |
| 864 | dlls/oleaut32/Makefile |
| 865 | dlls/olecli/Makefile |
| 866 | dlls/oledlg/Makefile |
| 867 | dlls/olesvr/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 868 | dlls/psapi/Makefile |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 869 | dlls/rasapi32/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 870 | dlls/shell32/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 871 | dlls/sound/Makefile |
| 872 | dlls/stress/Makefile |
Andreas Mohr | 5aa96c1 | 1999-03-14 12:34:25 +0000 | [diff] [blame] | 873 | dlls/tapi32/Makefile |
Ulrich Weigand | d43a46a | 1999-01-31 10:11:04 +0000 | [diff] [blame] | 874 | dlls/ver/Makefile |
| 875 | dlls/version/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 876 | dlls/win32s/Makefile |
Ulrich Weigand | 4b32fd0 | 1999-07-15 14:51:40 +0000 | [diff] [blame] | 877 | dlls/win87em/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 878 | dlls/winaspi/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 879 | dlls/windebug/Makefile |
| 880 | dlls/wing/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 881 | dlls/winmm/Makefile |
| 882 | dlls/winmm/mcianim/Makefile |
| 883 | dlls/winmm/mciavi/Makefile |
| 884 | dlls/winmm/mcicda/Makefile |
| 885 | dlls/winmm/mciseq/Makefile |
| 886 | dlls/winmm/mciwave/Makefile |
Eric Pouech | abe7227 | 1999-10-31 02:23:49 +0000 | [diff] [blame] | 887 | dlls/winmm/midimap/Makefile |
| 888 | dlls/winmm/wavemap/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 889 | dlls/winmm/wineoss/Makefile |
Huw D M Davies | e39b676 | 1999-05-17 16:20:51 +0000 | [diff] [blame] | 890 | dlls/winspool/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 891 | dlls/wnaspi32/Makefile |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 892 | documentation/Makefile |
Alexandre Julliard | d6baf1b | 1999-07-18 15:47:22 +0000 | [diff] [blame] | 893 | documentation/wine.conf.man |
Marcus Meissner | 5a70c97 | 1999-06-05 09:00:21 +0000 | [diff] [blame] | 894 | documentation/wine.man |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 895 | files/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 896 | graphics/Makefile |
Huw D M Davies | 3a24f3f | 1999-05-02 10:15:16 +0000 | [diff] [blame] | 897 | graphics/enhmetafiledrv/Makefile |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 898 | graphics/metafiledrv/Makefile |
Alexandre Julliard | ebfc0fe | 1998-06-28 18:40:26 +0000 | [diff] [blame] | 899 | graphics/psdrv/Makefile |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 900 | graphics/ttydrv/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 901 | graphics/win16drv/Makefile |
| 902 | graphics/x11drv/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 903 | if1632/Makefile |
James Juran | c70dc83 | 1999-02-13 12:18:33 +0000 | [diff] [blame] | 904 | include/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 905 | library/Makefile |
| 906 | libtest/Makefile |
| 907 | loader/Makefile |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 908 | loader/ne/Makefile |
Alexandre Julliard | 767e6f6 | 1998-08-09 12:47:43 +0000 | [diff] [blame] | 909 | loader/dos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 910 | memory/Makefile |
| 911 | misc/Makefile |
| 912 | miscemu/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 913 | msdos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 914 | objects/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 915 | ole/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 916 | programs/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 917 | programs/clock/Makefile |
Eric Williams | 30008a0 | 1999-02-05 17:40:47 +0000 | [diff] [blame] | 918 | programs/cmdlgtst/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 919 | programs/control/Makefile |
Marcus Meissner | 32b32d8 | 1999-01-29 15:12:10 +0000 | [diff] [blame] | 920 | programs/avitools/Makefile |
Morten Eriksen | 55bcda8 | 1999-09-22 15:22:58 +0000 | [diff] [blame] | 921 | programs/osversioncheck/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 922 | programs/notepad/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 923 | programs/progman/Makefile |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 924 | programs/regtest/Makefile |
Sylvain St.Germain | 1bb0e66 | 1999-03-14 14:00:22 +0000 | [diff] [blame] | 925 | programs/regapi/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 926 | programs/view/Makefile |
Dave Pickles | 74f440e | 1999-06-06 15:24:04 +0000 | [diff] [blame] | 927 | programs/wcmd/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 928 | programs/winhelp/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 929 | programs/winver/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 930 | rc/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 931 | relay32/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 932 | resources/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 933 | scheduler/Makefile |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 934 | server/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 935 | tools/Makefile |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 936 | tools/wrc/Makefile |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 937 | tsx11/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 938 | win32/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 939 | windows/Makefile |
Patrik Stridvall | f638aef | 1998-12-07 09:36:13 +0000 | [diff] [blame] | 940 | windows/ttydrv/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 941 | windows/x11drv/Makefile ]) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 942 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 943 | if test "$have_x" = "no" |
| 944 | then |
| 945 | echo |
| 946 | echo "*** Warning: X development files not found. Wine will be built without" |
| 947 | echo "*** X support, which currently does not work, and would probably not be" |
| 948 | echo "*** what you want anyway. You will need to install devel packages of" |
| 949 | echo "*** Xlib/Xfree86 and Xpm at the very least." |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 950 | elif test "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = "no" |
| 951 | then |
| 952 | echo |
| 953 | echo "*** Warning: Xpm development files not found. Wine will be built without" |
| 954 | echo "*** Xpm support, which currently does not work. You will need to install" |
| 955 | echo "*** devel packages of Xpm." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 956 | fi |
| 957 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 958 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 959 | then |
| 960 | echo |
| 961 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 962 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 963 | fi |
| 964 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 965 | if test "$wine_cv_libc_reentrant" = "no" |
| 966 | then |
| 967 | echo |
| 968 | echo "*** Warning: non-reentrant libc detected. Wine will be build without" |
| 969 | echo "*** thread support. Consider upgrading libc to a more recent" |
| 970 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 971 | fi |
| 972 | |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 973 | if test "$wine_cv_mesa_version_OK" = "no" |
| 974 | then |
| 975 | echo |
| 976 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
| 977 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)" |
| 978 | fi |
| 979 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 980 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 981 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 982 | echo |
| 983 | |
| 984 | dnl Local Variables: |
| 985 | dnl comment-start: "dnl " |
| 986 | dnl comment-end: "" |
| 987 | dnl comment-start-skip: "\\bdnl\\b\\s *" |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 988 | dnl compile-command: "autoconf" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 989 | dnl End: |