Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2 | dnl Original author: Michael Patra |
| 3 | dnl See ChangeLog file for detailed change history. |
| 4 | |
| 5 | m4_define(WINE_VERSION,regexp(m4_include(VERSION),[version \([-.0-9A-Za-z]+\)],[\1])) |
| 6 | |
| 7 | AC_PREREQ(2.50) |
| 8 | AC_INIT([Wine],WINE_VERSION) |
| 9 | AC_CONFIG_SRCDIR(server/atom.c) |
| 10 | AC_CONFIG_HEADERS(include/config.h) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 11 | AC_CONFIG_AUX_DIR(tools) |
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 |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 16 | LIBEXT=so # library type .so or .a |
Alexandre Julliard | 7e56f68 | 1996-01-31 19:02:28 +0000 | [diff] [blame] | 17 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18 | AC_ARG_ENABLE(debug, AC_HELP_STRING([--disable-debug],[compile out all debugging messages])) |
| 19 | AC_ARG_ENABLE(trace, AC_HELP_STRING([--disable-trace],[compile out TRACE messages])) |
| 20 | AC_ARG_ENABLE(opengl,AC_HELP_STRING([--enable-opengl],[force usage of OpenGL even if the latter is thread-safe via pthread])) |
| 21 | AC_ARG_WITH(curses, AC_HELP_STRING([--without-curses],[do not use curses])) |
| 22 | AC_ARG_WITH(reentrant-x,AC_HELP_STRING([--without-reentrant-x],[compile for use with non-reentrant X libraries])) |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 23 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 24 | AC_SUBST(OPTIONS) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 26 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 27 | AC_DEFINE(NO_DEBUG_MSGS,1,[Define to disable all debug messages.]) |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 28 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 29 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 30 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 31 | AC_DEFINE(NO_TRACE_MSGS,1,[Define to disable trace messages.]) |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 32 | fi |
| 33 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 34 | dnl **** Check for some programs **** |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 35 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 36 | AC_CANONICAL_TARGET |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 37 | AC_PROG_MAKE_SET |
| 38 | AC_PROG_CC |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 39 | AC_PROG_CPP |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 40 | AC_PATH_XTRA |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 41 | AC_PROG_YACC |
| 42 | AC_PROG_LEX |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 43 | |
| 44 | dnl **** Just additional warning checks, since AC_PROG just sets 'yacc' even |
| 45 | dnl **** without one present. |
| 46 | AC_CHECK_PROGS(XYACC,$YACC bison yacc,none) |
| 47 | if test "$XYACC" = "none" |
| 48 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 49 | AC_MSG_ERROR([no suitable bison/yacc found. Please install the 'bison' package.]) |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 50 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 51 | AC_CHECK_PROGS(XLEX,$LEX flex lex,none) |
| 52 | if test "$XLEX" = "none" |
| 53 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 54 | AC_MSG_ERROR([no suitable lex found. Please install the 'flex' package.]) |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 55 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 56 | AC_PROG_RANLIB |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 57 | AC_PROG_INSTALL |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 58 | AC_PROG_LN_S |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 59 | AC_CHECK_PROG(C2MAN,c2man,c2man,\$(TOPSRCDIR)/tools/c2man.pl) |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 60 | AC_PATH_PROG(LDCONFIG, ldconfig, true, /sbin:/usr/sbin:$PATH) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 61 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 62 | dnl Check for lint |
| 63 | AC_CHECK_PROGS(LINT, lclint lint) |
| 64 | if test "$LINT" = "lint" |
| 65 | then |
| 66 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 67 | dnl LINTFLAGS='-D_SIZE_T "-Dsize_t=unsigned long" -errchk=longptr64' |
| 68 | fi |
| 69 | AC_SUBST(LINT) |
| 70 | AC_SUBST(LINTFLAGS) |
| 71 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 72 | case $host_os in |
| 73 | *cygwin*) LDCOMBINE="ld -r --enable-stdcall-fixup" ;; |
| 74 | *) LDCOMBINE="ld -r" ;; |
| 75 | esac |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 76 | AC_SUBST(LDCOMBINE) |
| 77 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 78 | dnl **** Check for some libraries **** |
| 79 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 80 | dnl Check for -lm |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 81 | AC_CHECK_LIB(m,sqrt) |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 82 | dnl Check for -li386 for NetBSD and OpenBSD |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 83 | AC_CHECK_LIB(i386,i386_set_ldt) |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 84 | dnl Check for -lossaudio for NetBSD |
| 85 | AC_CHECK_LIB(ossaudio,_oss_ioctl) |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 86 | dnl Check for -lw for Solaris |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 87 | AC_CHECK_FUNCS(iswalnum,,AC_CHECK_LIB(w,iswalnum)) |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 88 | dnl Check for -lnsl for Solaris |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 89 | AC_CHECK_FUNCS(gethostbyname,,AC_CHECK_LIB(nsl,gethostbyname)) |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 90 | dnl Check for -lsocket for Solaris |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 91 | AC_CHECK_FUNCS(connect,,AC_CHECK_LIB(socket,connect)) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 92 | dnl Check for -lxpg4 for FreeBSD |
Satsuki Fujishima | 66fb607 | 2001-03-19 19:19:59 +0000 | [diff] [blame] | 93 | AC_CHECK_LIB(xpg4,_xpg4_setrunelocale) |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 94 | dnl Check for -lmmap for OS/2 |
| 95 | AC_CHECK_LIB(mmap,mmap) |
Alexandre Julliard | 3f510ad | 2002-01-01 01:13:03 +0000 | [diff] [blame] | 96 | |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 97 | dnl Check for openpty |
Alexandre Julliard | 3f510ad | 2002-01-01 01:13:03 +0000 | [diff] [blame] | 98 | UTILLIBS="" |
| 99 | AC_SUBST(UTILLIBS) |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 100 | AC_CHECK_FUNCS(openpty,, |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 101 | [AC_CHECK_LIB(util,openpty, |
| 102 | [AC_DEFINE(HAVE_OPENPTY) |
Alexandre Julliard | 3f510ad | 2002-01-01 01:13:03 +0000 | [diff] [blame] | 103 | UTILLIBS="-lutil"] |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 104 | )]) |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 105 | |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 106 | DLLIBS="" |
| 107 | AC_SUBST(DLLIBS) |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 108 | AC_CHECK_HEADERS(dlfcn.h, |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 109 | [AC_CHECK_FUNCS(dlopen,, |
| 110 | [AC_CHECK_LIB(dl,dlopen, |
| 111 | [AC_DEFINE(HAVE_DLOPEN,1,[Define if you have dlopen]) |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 112 | DLLIBS="-ldl"], |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 113 | LIBEXT="a")] |
| 114 | )], |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 115 | LIBEXT="a" |
| 116 | ) |
| 117 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 118 | JPEGLIB="" |
| 119 | AC_SUBST(JPEGLIB) |
| 120 | AC_CHECK_HEADERS(jpeglib.h, |
| 121 | AC_CHECK_LIB(jpeg,jpeg_start_decompress, |
| 122 | AC_DEFINE(HAVE_LIBJPEG,1,[Define if you have libjpeg including devel headers]) |
| 123 | JPEGLIB="-ljpeg" |
| 124 | ) |
| 125 | ) |
| 126 | |
| 127 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 128 | AC_SUBST(XLIB) |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 129 | AC_SUBST(XFILES) |
| 130 | XFILES="" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 131 | AC_SUBST(OPENGLFILES) |
| 132 | OPENGLFILES="" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 133 | AC_SUBST(GLU32FILES) |
Alexandre Julliard | f33f7f0 | 2001-09-17 20:09:08 +0000 | [diff] [blame] | 134 | GLU32FILES="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 135 | if test "$have_x" = "yes" |
| 136 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 137 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 138 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 139 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 140 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 141 | dnl *** All of the following tests require X11/Xlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 142 | AC_CHECK_HEADERS(X11/Xlib.h, |
| 143 | [ |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 144 | dnl *** Check for X keyboard extension |
| 145 | AC_CHECK_HEADERS(X11/XKBlib.h, |
| 146 | [ dnl *** If X11/XKBlib.h exists... |
| 147 | AC_CHECK_LIB(X11, XkbQueryExtension, |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 148 | AC_DEFINE(HAVE_XKB, 1, [Define if you have the XKB extension]),, |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 149 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS) |
| 150 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 151 | AC_MSG_WARN([[Xkb extension not found, Wine will be built without it]]) |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 152 | ) |
| 153 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 154 | dnl *** Check for X Shm extension |
| 155 | AC_CHECK_HEADERS(X11/extensions/XShm.h, |
| 156 | [ dnl *** If X11/extensions/XShm.h exists... |
| 157 | AC_CHECK_LIB(Xext, XShmQueryExtension, |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 158 | AC_DEFINE(HAVE_LIBXXSHM, 1, [Define if you have the X Shm extension]),, |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 159 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS) |
| 160 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 161 | AC_MSG_WARN([[XShm extension not found, Wine will be built without it]]) |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 162 | ) |
Marcus Meissner | cb99b0e | 1999-12-20 04:10:06 +0000 | [diff] [blame] | 163 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 164 | dnl *** Check for X shape extension |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 165 | AC_CHECK_HEADERS(X11/extensions/shape.h, |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 166 | [ dnl *** If X11/extensions/shape.h exists... |
| 167 | AC_CHECK_LIB(Xext,XShapeQueryExtension, |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 168 | AC_DEFINE(HAVE_LIBXSHAPE, 1, [Define if you have the X Shape extension]),, |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 169 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS) |
| 170 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 171 | AC_MSG_WARN([[XShape extension not found, Wine will be built without it]]) |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 172 | ) |
| 173 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 174 | dnl *** Check for XFree86 DGA / DGA 2.0 extension |
| 175 | AC_CHECK_HEADERS(X11/extensions/xf86dga.h, |
| 176 | [ dnl *** If X11/extensions/xf86dga.h exists, check |
| 177 | dnl *** for XDGAQueryExtension()... |
| 178 | AC_CHECK_LIB(Xxf86dga, XDGAQueryExtension, |
| 179 | [ dnl *** If found... |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 180 | AC_DEFINE(HAVE_LIBXXF86DGA2, 1, |
| 181 | [Define if you have the Xxf86dga library version 2]) |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 182 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 183 | ], |
| 184 | [ dnl *** If not found, look for XF86DGAQueryExtension() |
| 185 | dnl *** instead (DGA 2.0 not found)... |
| 186 | AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension, |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 187 | [ AC_DEFINE(HAVE_LIBXXF86DGA, 1, |
| 188 | [Define if you have the Xxf86dga library version 1]) |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 189 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 190 | ],, |
| 191 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 192 | ) |
| 193 | ], |
| 194 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 195 | ) |
| 196 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 197 | AC_MSG_WARN([[DGA extension not found, Wine will be built without it]]) |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 198 | ) |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 199 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 200 | dnl *** Check for XFree86 VMODE extension |
| 201 | AC_CHECK_HEADERS(X11/extensions/xf86vmode.h, |
| 202 | [ dnl *** If X11/extensions/xf86vmode.h exists... |
| 203 | AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension, |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 204 | [ AC_DEFINE(HAVE_LIBXXF86VM, 1, [Define if you have the Xxf86vm library]) |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 205 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
| 206 | ],, |
| 207 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 208 | ) |
| 209 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 210 | AC_MSG_WARN([[XFree86 VMODE extension not found, Wine will be built without it]]) |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 211 | ) |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 212 | |
| 213 | dnl *** Check for XVideo extension supporting XvImages |
| 214 | AC_CHECK_HEADERS(X11/extensions/Xvlib.h, |
| 215 | [ dnl *** If X11/extensions/Xvlib.h exists... |
| 216 | AC_CHECK_LIB(Xv, XvShmCreateImage, |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 217 | [ AC_DEFINE(HAVE_XVIDEO, 1, [Define if the X libraries support XVideo]) |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 218 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
| 219 | ],, |
| 220 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 221 | ) |
| 222 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 223 | AC_MSG_WARN([[XVideo extension not found, Wine will be built without it]]) |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 224 | ) |
| 225 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 226 | dnl *** Check for XRender extension |
| 227 | AC_CHECK_HEADERS(X11/extensions/Xrender.h, |
| 228 | [ dnl *** If X11/extensions/Xrender.h exists... |
| 229 | AC_CHECK_LIB(Xrender, XRenderQueryExtension, |
| 230 | [ AC_DEFINE(HAVE_LIBXRENDER, 1, [Define if you have the XRender extension library]) |
| 231 | X_PRE_LIBS="$X_PRE_LIBS -lXrender" |
| 232 | ],, |
| 233 | $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 234 | ) |
| 235 | ], |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 236 | AC_MSG_WARN([[XRender extension not found, Wine will be built without it]]) |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 237 | ) |
| 238 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 239 | ] |
| 240 | ) dnl *** End of X11/Xlib.h check |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 241 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 242 | dnl Check for the presence of OpenGL |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 243 | if test "x$enable_opengl" != "xno" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 244 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 245 | if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 246 | then |
| 247 | AC_MSG_ERROR([/usr/X11R6/lib/libGL.a is present on your system. |
| 248 | This prevents linking to OpenGL. Delete the file and restart configure.]) |
| 249 | fi |
| 250 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 251 | AC_CHECK_HEADERS(GL/gl.h GL/glx.h GL/glext.h) |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 252 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 253 | then |
| 254 | dnl Check for some problems due to old Mesa versions |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 255 | AC_CACHE_CHECK([for up-to-date OpenGL version], wine_cv_opengl_version_OK, |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 256 | AC_TRY_COMPILE( |
Lionel Ulmer | 48c0816 | 2000-01-05 01:51:02 +0000 | [diff] [blame] | 257 | [#include <GL/gl.h>], |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 258 | [GLenum test = GL_UNSIGNED_SHORT_5_6_5;], |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 259 | [wine_cv_opengl_version_OK="yes"], |
| 260 | [wine_cv_opengl_version_OK="no"] |
Lionel Ulmer | 48c0816 | 2000-01-05 01:51:02 +0000 | [diff] [blame] | 261 | ) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 262 | ) |
| 263 | |
| 264 | dnl Check for the thread-safety of the OpenGL library |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 265 | AC_CACHE_CHECK([for thread-safe OpenGL version], |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 266 | wine_cv_opengl_version_threadsafe, |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 267 | [saved_libs=$LIBS |
| 268 | LIBS="$X_LIBS -lGL" |
| 269 | AC_TRY_LINK([],[pthread_getspecific();], |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 270 | [wine_cv_opengl_version_threadsafe="yes"], |
| 271 | [wine_cv_opengl_version_threadsafe="no"]) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 272 | LIBS=$saved_libs] |
Lionel Ulmer | 48c0816 | 2000-01-05 01:51:02 +0000 | [diff] [blame] | 273 | ) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 274 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 275 | if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 276 | then |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 277 | dnl Check for the presence of the library |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 278 | AC_CHECK_LIB(GL,glXCreateContext, |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 279 | X_PRE_LIBS="$X_PRE_LIBS -lGL" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 280 | ,, |
| 281 | $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS) |
| 282 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 283 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 284 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 285 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 286 | AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is present on the system]) |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 287 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 288 | AC_CHECK_LIB(GL,glXGetProcAddressARB, |
| 289 | AC_DEFINE(HAVE_GLX_GETPROCADDRESS, 1, |
| 290 | [Define if the OpenGL library supports the glXGetProcAddressARB call]),, |
| 291 | $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 292 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 293 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 294 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 295 | AC_CACHE_CHECK([for OpenGL extension functions prototypes], wine_cv_extension_prototypes, |
| 296 | [AC_TRY_COMPILE([#include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 297 | #ifdef HAVE_GL_GLEXT_H |
| 298 | # include <GL/glext.h> |
| 299 | #endif |
| 300 | ], |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 301 | [PFNGLCOLORTABLEEXTPROC test_proc;], |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 302 | [wine_cv_extension_prototypes="yes"], |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 303 | [wine_cv_extension_prototypes="no"] |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 304 | )] |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 305 | ) |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 306 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 307 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 308 | AC_DEFINE(HAVE_GLEXT_PROTOTYPES, 1, |
| 309 | [Define if the OpenGL headers define extension typedefs]) |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 310 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 311 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 312 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 313 | fi |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 314 | dnl Check for GLU32 library. |
Marcus Meissner | 6e9ab40 | 2001-08-08 23:21:16 +0000 | [diff] [blame] | 315 | AC_CHECK_LIB(GLU,gluLookAt, |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 316 | [X_PRE_LIBS="$X_PRE_LIBS -lGLU" |
| 317 | GLU32FILES='$(GLU32FILES)'] |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 318 | ,, |
| 319 | $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
| 320 | ) |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 321 | fi |
| 322 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 323 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 324 | |
| 325 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 326 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 327 | else |
| 328 | XLIB="" |
| 329 | X_CFLAGS="" |
| 330 | X_LIBS="" |
| 331 | fi |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 332 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 333 | dnl **** Check which curses lib to use *** |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 334 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 335 | if test "x$with_curses" != "xno" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 336 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 337 | AC_CHECK_HEADERS(ncurses.h, |
Bernhard Rosenkraenzer | 5ea3031 | 2002-01-06 19:08:03 +0000 | [diff] [blame] | 338 | [AC_CHECK_LIB(ncurses,waddch, |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 339 | [AC_DEFINE(HAVE_LIBNCURSES, 1, [Define if you have the ncurses library (-lncurses)]) |
| 340 | CURSESLIBS="-lncurses"], |
| 341 | [AC_CHECK_HEADERS(curses.h, |
| 342 | [AC_CHECK_LIB(curses,waddch, |
| 343 | [AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have the curses library (-lcurses)]) |
Bernhard Rosenkraenzer | 5ea3031 | 2002-01-06 19:08:03 +0000 | [diff] [blame] | 344 | CURSESLIBS="-lcurses"])])])]) |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 345 | saved_libs="$LIBS" |
| 346 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 347 | AC_CHECK_FUNCS(getbkgd resizeterm) |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 348 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 349 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 350 | AC_SUBST(CURSESLIBS) |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 351 | |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 352 | CUPSLIBS="" |
| 353 | dnl **** Check for CUPS **** |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 354 | wine_cv_warn_cups_h=no |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 355 | AC_CHECK_LIB(cups,cupsGetPPD, |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 356 | [AC_CHECK_HEADER(cups/cups.h, |
| 357 | [AC_DEFINE(HAVE_CUPS, 1, [Define if we have CUPS]) |
| 358 | CUPSLIBS="-lcups"], |
| 359 | wine_cv_warn_cups_h=yes)] |
Marcus Meissner | ab8b7db | 2001-04-27 18:02:46 +0000 | [diff] [blame] | 360 | ) |
| 361 | AC_SUBST(CUPSLIBS) |
| 362 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 363 | dnl **** Check for FreeType 2 **** |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 364 | AC_CHECK_LIB(freetype,FT_Init_FreeType,ft_lib=yes,ft_lib=no,$X_LIBS) |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 365 | if test "$ft_lib" = "no" |
| 366 | then |
| 367 | FREETYPELIBS="" |
| 368 | FREETYPEINCL="" |
| 369 | wine_cv_msg_freetype=no |
| 370 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 371 | AC_CHECK_PROG(ft_devel,freetype-config,freetype-config,no) |
| 372 | if test "$ft_devel" = "no" |
| 373 | then |
| 374 | AC_CHECK_PROG(ft_devel2,freetype2-config,freetype2-config,no) |
| 375 | if test "$ft_devel2" = "freetype2-config" |
| 376 | then |
| 377 | ft_devel=$ft_devel2 |
| 378 | fi |
| 379 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 380 | if test "$ft_devel" = "no" |
| 381 | then |
| 382 | FREETYPELIBS="" |
| 383 | FREETYPEINCL="" |
| 384 | wine_cv_msg_freetype=yes |
| 385 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 386 | FREETYPELIBS=`$ft_devel --libs` |
| 387 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 388 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 389 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
| 390 | AC_CHECK_HEADERS(freetype/freetype.h \ |
| 391 | freetype/ftglyph.h \ |
| 392 | freetype/tttables.h \ |
| 393 | freetype/ftnames.h \ |
| 394 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 395 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 396 | freetype/ftoutln.h \ |
| 397 | freetype/internal/sfnt.h) |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 398 | AC_TRY_CPP([#include <ft2build.h> |
| 399 | #include <freetype/fttrigon.h>], |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 400 | [AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1, |
| 401 | [Define if you have the <freetype/fttrigon.h> header file.]) |
| 402 | wine_cv_fttrigon=yes], |
| 403 | wine_cv_fttrigon=no) |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 404 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 405 | dnl Check that we have at least freetype/freetype.h |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 406 | if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 407 | then |
| 408 | AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed]) |
| 409 | wine_cv_msg_freetype=no |
| 410 | else |
| 411 | FREETYPELIBS="" |
| 412 | FREETYPEINCL="" |
| 413 | wine_cv_msg_freetype=yes |
| 414 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 415 | fi |
| 416 | fi |
| 417 | AC_SUBST(FREETYPELIBS) |
| 418 | AC_SUBST(FREETYPEINCL) |
| 419 | |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 420 | dnl **** Check for parport (currently Linux only) **** |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 421 | AC_CACHE_CHECK([for parport header/ppdev.h], ac_cv_c_ppdev, |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 422 | AC_TRY_COMPILE( |
| 423 | [#include <linux/ppdev.h>], |
| 424 | [ioctl (1,PPCLAIM,0)], |
| 425 | [ac_cv_c_ppdev="yes"], |
| 426 | [ac_cv_c_ppdev="no"]) |
| 427 | ) |
| 428 | if test "$ac_cv_c_ppdev" = "yes" |
| 429 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 430 | AC_DEFINE(HAVE_PPDEV, 1, [Define if we can use ppdev.h for parallel port access]) |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 431 | fi |
| 432 | |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 433 | dnl **** Check for IPX (currently Linux only) **** |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 434 | AC_CACHE_CHECK([for GNU style IPX support], ac_cv_c_ipx_gnu, |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 435 | AC_TRY_COMPILE( |
| 436 | [#include <sys/socket.h> |
| 437 | #include <netipx/ipx.h>], |
| 438 | [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX], |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 439 | [ac_cv_c_ipx_gnu="yes"], |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 440 | [ac_cv_c_ipx_gnu="no"]) |
| 441 | ) |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 442 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 443 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 444 | AC_DEFINE(HAVE_IPX_GNU, 1, [Define if IPX should use netipx/ipx.h from libc]) |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 445 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 446 | |
| 447 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 448 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 449 | AC_CACHE_CHECK([for linux style IPX support], ac_cv_c_ipx_linux, |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 450 | AC_TRY_COMPILE( |
| 451 | [#include <sys/socket.h> |
| 452 | #include <asm/types.h> |
| 453 | #include <linux/ipx.h>], |
| 454 | [((struct sockaddr_ipx *)0)->sipx_family == AF_IPX], |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 455 | [ac_cv_c_ipx_linux="yes"], |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 456 | [ac_cv_c_ipx_linux="no"]) |
| 457 | ) |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 458 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 459 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 460 | AC_DEFINE(HAVE_IPX_LINUX, 1, [Define if IPX includes are taken from Linux kernel]) |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 461 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 462 | fi |
| 463 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 464 | dnl **** Check for Open Sound System **** |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 465 | AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h soundcard.h, break) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 466 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 467 | AC_CACHE_CHECK([for Open Sound System], |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 468 | ac_cv_c_opensoundsystem, |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 469 | AC_TRY_COMPILE([ |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 470 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 471 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 472 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 473 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 474 | #elif defined(HAVE_SOUNDCARD_H) |
| 475 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 476 | #endif |
| 477 | ],[ |
| 478 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 479 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 480 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 481 | #error No open sound system |
| 482 | #endif |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 483 | ],ac_cv_c_opensoundsystem="yes",ac_cv_c_opensoundsystem="no")) |
| 484 | |
| 485 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 486 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 487 | AC_DEFINE(HAVE_OSS, 1, [Define if you have the Open Sound system]) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 488 | fi |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 489 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 490 | AC_CACHE_CHECK([for Open Sound System/MIDI interface], |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 491 | ac_cv_c_opensoundsystem_midi, |
| 492 | AC_TRY_COMPILE([ |
| 493 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 494 | #include <sys/soundcard.h> |
| 495 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 496 | #include <machine/soundcard.h> |
| 497 | #elif defined(HAVE_SOUNDCARD_H) |
| 498 | #include <soundcard.h> |
| 499 | #endif |
| 500 | ],[ |
| 501 | |
| 502 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 503 | #if !defined(SNDCTL_SEQ_SYNC) |
| 504 | #error No open sound system MIDI interface |
| 505 | #endif |
| 506 | ],ac_cv_c_opensoundsystem_midi="yes",ac_cv_c_opensoundsystem_midi="no")) |
| 507 | |
| 508 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 509 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 510 | AC_DEFINE(HAVE_OSS_MIDI, 1, [Define if you have the Open Sound system (MIDI interface)]) |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 511 | fi |
| 512 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame^] | 513 | dnl **** Check for aRts Sound Server **** |
| 514 | AC_PATH_PROG(ARTSCCONFIG, artsc-config) |
| 515 | AC_CACHE_CHECK([for aRts Sound server], |
| 516 | ac_cv_c_artsserver, |
| 517 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; |
| 518 | then |
| 519 | ac_cv_c_artsserver=no |
| 520 | else |
| 521 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` |
| 522 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 523 | ac_cv_c_artsserver=no |
| 524 | save_CFLAGS="$CFLAGS" |
| 525 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 526 | AC_TRY_COMPILE([ |
| 527 | #include <artsc.h> |
| 528 | ],[ |
| 529 | arts_stream_t stream; |
| 530 | ],[ |
| 531 | ac_cv_c_artsserver=yes |
| 532 | ]) |
| 533 | CFLAGS="$save_CFLAGS" |
| 534 | fi) |
| 535 | |
| 536 | if test "$ac_cv_c_artsserver" = "yes" |
| 537 | then |
| 538 | AC_SUBST(ARTSLIBS, $ARTSC_LIBS) |
| 539 | AC_SUBST(ARTSINCL, $ARTSC_CFLAGS) |
| 540 | |
| 541 | AC_DEFINE(HAVE_ARTS, 1, [Define if you have ARTS sound server]) |
| 542 | fi |
| 543 | |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 544 | dnl **** Check for broken glibc mmap64 **** |
| 545 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 546 | AC_CACHE_CHECK( [whether mmap64 works defined as mmap], ac_cv_mmap64_works, |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 547 | AC_TRY_RUN([ |
| 548 | #define _FILE_OFFSET_BITS 64 |
| 549 | #include <stdio.h> |
| 550 | #include <unistd.h> |
| 551 | #include <fcntl.h> |
| 552 | #include <sys/mman.h> |
| 553 | #include <errno.h> |
| 554 | |
| 555 | int main(int argc,char **argv) { |
| 556 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 557 | if (fd == -1) exit(1); |
| 558 | |
| 559 | unlink("conftest.map"); |
| 560 | |
| 561 | write(fd,"test",4); |
| 562 | |
| 563 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 564 | (errno == EINVAL) |
| 565 | ) { |
| 566 | exit(1); |
| 567 | } |
| 568 | close(fd); |
| 569 | fprintf(stderr,"success!\n"); |
| 570 | exit(0); |
| 571 | } |
| 572 | |
| 573 | ], |
| 574 | ac_cv_mmap64_works="yes", |
| 575 | ac_cv_mmap64_works="no", |
| 576 | ac_cv_mmap64_works="no") ) |
| 577 | |
| 578 | if test "$ac_cv_mmap64_works" = "yes" |
| 579 | then |
| 580 | AC_DEFINE(_FILE_OFFSET_BITS, 64, [Set this to 64 to enable 64-bit file support on Linux]) |
| 581 | fi |
| 582 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 583 | dnl **** Check for gcc strength-reduce bug **** |
| 584 | |
| 585 | if test "x${GCC}" = "xyes" |
| 586 | then |
| 587 | CFLAGS="$CFLAGS -Wall" |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 588 | AC_CACHE_CHECK( [for gcc strength-reduce bug], ac_cv_c_gcc_strength_bug, |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 589 | AC_TRY_RUN([ |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 590 | int L[[4]] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 591 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 592 | static int Array[[3]]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 593 | unsigned int B = 3; |
| 594 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 595 | for(i=0; i<B; i++) Array[[i]] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 596 | for(i=0; i<4 - 1; i++) L[[i]] = L[[i + 1]]; |
| 597 | L[[i]] = 4; |
| 598 | |
| 599 | exit( Array[[1]] != -2 || L[[2]] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 600 | }], |
| 601 | ac_cv_c_gcc_strength_bug="no", |
| 602 | ac_cv_c_gcc_strength_bug="yes", |
| 603 | ac_cv_c_gcc_strength_bug="yes") ) |
| 604 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 605 | then |
| 606 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 607 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 608 | |
| 609 | dnl Check for -mpreferred-stack-boundary |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 610 | AC_CACHE_CHECK([for gcc -mpreferred-stack-boundary=2 support], |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 611 | ac_cv_c_gcc_stack_boundary, |
| 612 | [saved_cflags=$CFLAGS |
| 613 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 614 | AC_TRY_COMPILE(,[return 0],ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no") |
| 615 | CFLAGS=$saved_cflags |
| 616 | ]) |
| 617 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 618 | then |
| 619 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 620 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 621 | fi |
| 622 | |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 623 | dnl **** Check if we need to place .type inside a .def directive **** |
| 624 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 625 | AC_CACHE_CHECK([whether .type must sit inside a .def directive], |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 626 | ac_cv_c_type_in_def, |
| 627 | [saved_libs=$LIBS |
| 628 | LIBS="conftest_asm.s $LIBS" |
| 629 | cat > conftest_asm.s <<EOF |
| 630 | .globl _ac_test |
| 631 | .def _ac_test; .scl 2; .type 32; .endef |
| 632 | _ac_test: |
| 633 | .long 0 |
| 634 | EOF |
| 635 | AC_TRY_LINK(,,ac_cv_c_type_in_def="yes",ac_cv_c_type_in_def="no") |
| 636 | LIBS=$saved_libs]) |
| 637 | if test "$ac_cv_c_type_in_def" = "yes" |
| 638 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 639 | AC_DEFINE(NEED_TYPE_IN_DEF, 1, [Define if .type asm directive must be inside a .def directive]) |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 640 | fi |
| 641 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 642 | dnl **** Check for underscore on external symbols **** |
| 643 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 644 | AC_CACHE_CHECK([whether external symbols need an underscore prefix], |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 645 | ac_cv_c_extern_prefix, |
| 646 | [saved_libs=$LIBS |
| 647 | LIBS="conftest_asm.s $LIBS" |
| 648 | cat > conftest_asm.s <<EOF |
| 649 | .globl _ac_test |
| 650 | _ac_test: |
| 651 | .long 0 |
| 652 | EOF |
| 653 | AC_TRY_LINK([extern int ac_test;],[if (ac_test) return 1], |
| 654 | ac_cv_c_extern_prefix="yes",ac_cv_c_extern_prefix="no") |
| 655 | LIBS=$saved_libs]) |
| 656 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 657 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 658 | AC_DEFINE(NEED_UNDERSCORE_PREFIX, 1, |
| 659 | [Define if symbols declared in assembly code need an underscore prefix]) |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 660 | fi |
| 661 | |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 662 | dnl **** Check whether stdcall symbols need to be decorated **** |
| 663 | |
| 664 | AC_CACHE_CHECK([whether stdcall symbols need to be decorated], |
| 665 | ac_cv_c_stdcall_decoration, |
| 666 | [saved_libs=$LIBS |
| 667 | LIBS="conftest_asm.s $LIBS" |
| 668 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 669 | then |
| 670 | cat > conftest_asm.s <<EOF |
| 671 | .globl _ac_test@0 |
| 672 | _ac_test@0: |
| 673 | EOF |
| 674 | else |
| 675 | cat > conftest_asm.s <<EOF |
| 676 | .globl ac_test@0 |
| 677 | ac_test@0: |
| 678 | EOF |
| 679 | fi |
| 680 | AC_TRY_LINK([extern void __attribute__((__stdcall__)) ac_test(void);], |
| 681 | [ac_test(); return 0], |
| 682 | ac_cv_c_stdcall_decoration="yes",ac_cv_c_stdcall_decoration="no") |
| 683 | LIBS=$saved_libs]) |
| 684 | if test "$ac_cv_c_stdcall_decoration" = "yes" |
| 685 | then |
| 686 | AC_DEFINE(NEED_STDCALL_DECORATION, 1, |
| 687 | [Define if stdcall symbols need to be decorated]) |
| 688 | fi |
| 689 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 690 | dnl **** Check for .string in assembler **** |
| 691 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 692 | AC_CACHE_CHECK([whether assembler accepts .string], |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 693 | ac_cv_c_asm_string, |
| 694 | [saved_libs=$LIBS |
| 695 | LIBS="conftest_asm.s $LIBS" |
| 696 | cat > conftest_asm.s <<EOF |
| 697 | .string "test" |
| 698 | EOF |
| 699 | AC_TRY_LINK(,,ac_cv_c_asm_string="yes",ac_cv_c_asm_string="no") |
| 700 | LIBS=$saved_libs]) |
| 701 | if test "$ac_cv_c_asm_string" = "yes" |
| 702 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 703 | AC_DEFINE(HAVE_ASM_STRING, 1, [Define to use .string instead of .ascii]) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 704 | fi |
| 705 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 706 | dnl **** Check for working dll **** |
| 707 | |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 708 | LDSHARED="" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 709 | LDDLLFLAGS="" |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 710 | if test "$LIBEXT" = "so" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 711 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 712 | AC_CACHE_CHECK([whether we can build a GNU style ELF dll], |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 713 | ac_cv_c_dll_gnuelf, |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 714 | [saved_cflags=$CFLAGS |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 715 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 716 | AC_TRY_LINK(,[return 1],ac_cv_c_dll_gnuelf="yes",ac_cv_c_dll_gnuelf="no") |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 717 | CFLAGS=$saved_cflags |
| 718 | ]) |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 719 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 720 | then |
Jeremy White | c7b4ed7 | 2001-07-14 00:49:50 +0000 | [diff] [blame] | 721 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 722 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 723 | else |
Patrik Stridvall | a9ee4a2 | 2000-01-30 00:36:50 +0000 | [diff] [blame] | 724 | AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll, |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 725 | ac_cv_c_dll_unixware, |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 726 | [saved_cflags=$CFLAGS |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 727 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 728 | 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] | 729 | CFLAGS=$saved_cflags |
| 730 | ]) |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 731 | if test "$ac_cv_c_dll_unixware" = "yes" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 732 | then |
Jeremy White | c7b4ed7 | 2001-07-14 00:49:50 +0000 | [diff] [blame] | 733 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 734 | LDDLLFLAGS="-Wl,-B,symbolic" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 735 | fi |
| 736 | fi |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 737 | if test "$ac_cv_c_dll_gnuelf" = "no" -a "$ac_cv_c_dll_unixware" = "no" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 738 | then |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 739 | LIBEXT="a" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 740 | AC_CHECK_PROG(DLLWRAP,dllwrap,dllwrap,false) |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 741 | if test "$DLLWRAP" = "dllwrap"; then |
| 742 | dnl FIXME - check whether dllwrap works correctly... |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 743 | case $host_os in |
| 744 | *cygwin*) |
| 745 | LIBEXT="dll" |
| 746 | ;; |
| 747 | esac |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 748 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 749 | fi |
| 750 | fi |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 751 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 752 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 753 | AC_MSG_ERROR( |
| 754 | [could not find a way to build shared libraries. |
| 755 | It is currently not possible to build Wine without shared library |
| 756 | (.so) support to allow transparent switch between .so and .dll files. |
| 757 | If you are using Linux, you will need a newer binutils.] |
| 758 | ) |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 759 | fi |
| 760 | |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 761 | DLLFLAGS="" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 762 | LDPATH="" |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 763 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 764 | if test "$LIBEXT" = "so"; then |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 765 | DLLFLAGS="-fPIC" |
Alexandre Julliard | c1bfca0 | 2002-03-20 22:19:06 +0000 | [diff] [blame] | 766 | DLLEXT=".so" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 767 | LDPATH="LD_LIBRARY_PATH=\"\$(TOPOBJDIR)/unicode:\$\$LD_LIBRARY_PATH\"" |
| 768 | elif test "$LIBEXT" = "dll"; then |
| 769 | #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME |
Alexandre Julliard | c1bfca0 | 2002-03-20 22:19:06 +0000 | [diff] [blame] | 770 | DLLEXT="" |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 771 | LDPATH="PATH=\"\$(TOPOBJDIR)/unicode:\$\$PATH\"" |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 772 | fi |
| 773 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 774 | AC_SUBST(DLLFLAGS) |
Alexandre Julliard | c1bfca0 | 2002-03-20 22:19:06 +0000 | [diff] [blame] | 775 | AC_SUBST(DLLEXT) |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 776 | AC_SUBST(LDSHARED) |
Alexandre Julliard | 4354cda | 2000-11-09 20:27:45 +0000 | [diff] [blame] | 777 | AC_SUBST(LDDLLFLAGS) |
Alexandre Julliard | 0adad95 | 2000-01-26 01:45:58 +0000 | [diff] [blame] | 778 | AC_SUBST(LIBEXT) |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 779 | AC_SUBST(LDPATH) |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 780 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 781 | dnl **** Check for reentrant libc **** |
| 782 | dnl |
| 783 | dnl For cross-compiling we blindly assume that libc is reentrant. This is |
| 784 | dnl ok since non-reentrant libc is quite rare (mostly old libc5 versions). |
| 785 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 786 | AC_DEFUN([WINE_CHECK_ERRNO], |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 787 | [ |
| 788 | AC_CACHE_CHECK(for reentrant libc: $1, wine_cv_libc_r_$1, |
| 789 | [AC_TRY_RUN([int myerrno = 0; |
| 790 | char buf[256]; |
| 791 | int *$1(){return &myerrno;} |
| 792 | main(){connect(0,buf,255); exit(!myerrno);}], |
| 793 | wine_cv_libc_r_$1=yes, wine_cv_libc_r_$1=no, |
| 794 | wine_cv_libc_r_$1=yes ) |
| 795 | ]) |
| 796 | if test "$wine_cv_libc_r_$1" = "yes" |
| 797 | then |
| 798 | wine_cv_libc_reentrant=$1 |
| 799 | fi |
| 800 | ]) |
| 801 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 802 | wine_cv_libc_reentrant=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 803 | dnl Linux style errno location |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 804 | WINE_CHECK_ERRNO(__errno_location) |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 805 | dnl FreeBSD style errno location |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 806 | WINE_CHECK_ERRNO(__error) |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 807 | dnl Solaris style errno location |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 808 | WINE_CHECK_ERRNO(___errno) |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 809 | dnl UnixWare style errno location |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 810 | WINE_CHECK_ERRNO(__thr_errno) |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 811 | dnl NetBSD style errno location |
| 812 | WINE_CHECK_ERRNO(__errno) |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 813 | |
| 814 | if test "$wine_cv_libc_reentrant" != "no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 815 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 816 | AC_DEFINE_UNQUOTED(ERRNO_LOCATION,$wine_cv_libc_reentrant, |
| 817 | [Define to the name of the function returning errno for reentrant libc]) |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 818 | fi |
| 819 | |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 820 | dnl **** Check for reentrant X libraries **** |
| 821 | dnl |
| 822 | dnl This may fail to determine whether X libraries are reentrant if |
| 823 | dnl AC_PATH_XTRA does not set x_libraries. In this case manual configuration |
| 824 | dnl is possible with the --without-reentrant-x option. |
| 825 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 826 | if test "$have_x" = "yes" -a "$wine_cv_libc_reentrant" != "no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 827 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 828 | AC_CACHE_CHECK( [for reentrant X libraries], wine_cv_x_reentrant, |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 829 | [ if test "x$with_reentrant_x" = "xno" |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 830 | then |
| 831 | wine_cv_x_reentrant=no |
| 832 | else |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 833 | libX11_check=none |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 834 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 835 | if test -r $dir/libX11.so; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 836 | libX11_check="-D $dir/libX11.so" |
| 837 | break 1 |
| 838 | fi |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 839 | if test -r $dir/libX11.a; then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 840 | libX11_check="$dir/libX11.a" |
| 841 | break 1 |
| 842 | fi |
| 843 | done |
| 844 | if test "$libX11_check" != "none"; then |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 845 | 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] | 846 | then |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 847 | wine_cv_x_reentrant=yes |
| 848 | else |
| 849 | wine_cv_x_reentrant=no |
| 850 | fi |
| 851 | else |
| 852 | wine_cv_x_reentrant=unknown |
| 853 | fi |
| 854 | fi ] ) |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 855 | else |
| 856 | wine_cv_x_reentrant=no |
| 857 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 858 | if test "$wine_cv_x_reentrant" = "no" |
| 859 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 860 | AC_DEFINE(NO_REENTRANT_X11, 1, |
| 861 | [Define if X libraries are not reentrant (compiled without -D_REENTRANT)]) |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 862 | fi |
| 863 | |
Ulrich Weigand | 9759140 | 2000-12-19 03:38:53 +0000 | [diff] [blame] | 864 | |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 865 | dnl **** Check for functions **** |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 866 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 867 | AC_FUNC_ALLOCA() |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 868 | AC_CHECK_FUNCS(\ |
Eric Pouech | f61d7e0 | 2000-04-29 16:44:19 +0000 | [diff] [blame] | 869 | __libc_fork \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 870 | _lwp_create \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 871 | _pclose \ |
| 872 | _popen \ |
| 873 | _stricmp \ |
| 874 | _strnicmp \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 875 | clone \ |
Andreas Mohr | a7ca2ba | 2001-01-12 23:07:11 +0000 | [diff] [blame] | 876 | ecvt \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 877 | finite \ |
| 878 | fpclass \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 879 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 880 | getnetbyaddr \ |
| 881 | getnetbyname \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 882 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 883 | getprotobyname \ |
| 884 | getprotobynumber \ |
Dimitrie O. Paun | 1ec253d | 2000-12-01 20:47:11 +0000 | [diff] [blame] | 885 | getrlimit \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 886 | getservbyport \ |
| 887 | getsockopt \ |
| 888 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 889 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 890 | lstat \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 891 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 892 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 893 | pclose \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 894 | pread \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 895 | popen \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 896 | pwrite \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 897 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 898 | select \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 899 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 900 | settimeofday \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 901 | sigaltstack \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 902 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 903 | strcasecmp \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 904 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 905 | strncasecmp \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 906 | tcgetattr \ |
| 907 | timegm \ |
| 908 | usleep \ |
| 909 | vfscanf \ |
| 910 | wait4 \ |
| 911 | waitpid \ |
| 912 | ) |
| 913 | |
| 914 | dnl **** Check for header files **** |
| 915 | |
| 916 | AC_CHECK_HEADERS(\ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 917 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 918 | arpa/nameser.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 919 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 920 | elf.h \ |
| 921 | float.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 922 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 923 | io.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 924 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 925 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 926 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 927 | linux/cdrom.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 928 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 929 | linux/joystick.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 930 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 931 | linux/ucdrom.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 932 | net/if.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 933 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 934 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 935 | netinet/in_systm.h \ |
| 936 | netinet/ip.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 937 | netinet/tcp.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 938 | pty.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 939 | resolv.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 940 | sched.h \ |
| 941 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 942 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 943 | strings.h \ |
| 944 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 945 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 946 | sys/file.h \ |
| 947 | sys/filio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 948 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 949 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 950 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 951 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 952 | sys/modem.h \ |
| 953 | sys/mount.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 954 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 955 | sys/param.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 956 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 957 | sys/reg.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 958 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 959 | sys/shm.h \ |
| 960 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 961 | sys/sockio.h \ |
| 962 | sys/statfs.h \ |
| 963 | sys/strtio.h \ |
| 964 | sys/syscall.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 965 | sys/time.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 966 | sys/user.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 967 | sys/wait.h \ |
| 968 | sys/v86.h \ |
| 969 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 970 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 971 | sys/vm86.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 972 | syscall.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 973 | ucontext.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 974 | unistd.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 975 | ) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 976 | AC_HEADER_STAT() |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 977 | |
| 978 | dnl **** Check for types **** |
| 979 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 980 | AC_C_CONST |
| 981 | AC_C_INLINE |
| 982 | AC_TYPE_MODE_T |
| 983 | AC_TYPE_OFF_T |
| 984 | AC_TYPE_PID_T |
| 985 | AC_TYPE_SIZE_T |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 986 | AC_CHECK_SIZEOF(long long,0) |
| 987 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 988 | AC_CACHE_CHECK([whether linux/input.h is for real], |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 989 | wine_cv_linux_input_h, |
| 990 | AC_TRY_COMPILE([ |
| 991 | #include <linux/input.h> |
| 992 | ] , [ |
| 993 | int foo = EVIOCGBIT(EV_ABS,42); |
| 994 | int bar = BTN_PINKIE; |
| 995 | int fortytwo = 42; |
| 996 | ], |
| 997 | wine_cv_linux_input_h=yes, |
| 998 | wine_cv_linux_input_h=no, |
| 999 | no |
| 1000 | ) |
| 1001 | ) |
| 1002 | if test "$wine_cv_linux_input_h" = "yes" |
| 1003 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1004 | AC_DEFINE(HAVE_CORRECT_LINUXINPUT_H, 1, |
| 1005 | [Define if we have linux/input.h AND it contains the INPUT event API]) |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 1006 | fi |
| 1007 | |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 1008 | |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 1009 | AC_CACHE_CHECK([whether we can use re-entrant gethostbyname_r Linux style], |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 1010 | wine_cv_linux_gethostbyname_r_6, |
| 1011 | AC_TRY_COMPILE([ |
| 1012 | #include <netdb.h> |
| 1013 | ], [ |
| 1014 | char *name=NULL; |
| 1015 | struct hostent he; |
| 1016 | struct hostent *result; |
| 1017 | char *buf=NULL; |
| 1018 | int bufsize=0; |
| 1019 | int res,errnr; |
| 1020 | char *addr=NULL; |
| 1021 | int addrlen=0; |
| 1022 | int addrtype=0; |
| 1023 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 1024 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
| 1025 | ], |
| 1026 | wine_cv_linux_gethostbyname_r_6=yes, |
| 1027 | wine_cv_linux_gethostbyname_r_6=no |
| 1028 | ) |
| 1029 | ) |
| 1030 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 1031 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1032 | AC_DEFINE(HAVE_LINUX_GETHOSTBYNAME_R_6, 1, |
| 1033 | [Define if Linux-style gethostbyname_r and gethostbyaddr_r are available]) |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 1034 | fi |
| 1035 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 1036 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
| 1037 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 1038 | AC_CACHE_CHECK([whether linux/joystick.h uses the Linux 2.2+ API], |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 1039 | wine_cv_linux_joystick_22_api, |
| 1040 | AC_TRY_COMPILE([ |
| 1041 | #include <sys/ioctl.h> |
| 1042 | #include <linux/joystick.h> |
| 1043 | |
| 1044 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 1045 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 1046 | #error "no 2.2 header" |
| 1047 | #endif |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 1048 | ],/*empty*/, |
| 1049 | wine_cv_linux_joystick_22_api=yes, |
| 1050 | wine_cv_linux_joystick_22_api=no, |
| 1051 | wine_cv_linux_joystick_22_api=no |
| 1052 | ) |
| 1053 | ) |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 1054 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 1055 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1056 | AC_DEFINE(HAVE_LINUX_22_JOYSTICK_API, 1, |
| 1057 | [Define if <linux/joystick.h> defines the Linux 2.2 joystick API]) |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 1058 | fi |
| 1059 | fi |
| 1060 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1061 | dnl **** statfs checks **** |
| 1062 | |
| 1063 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 1064 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 1065 | AC_CACHE_CHECK( [whether sys/vfs.h defines statfs], |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1066 | wine_cv_sys_vfs_has_statfs, |
| 1067 | AC_TRY_COMPILE([ |
| 1068 | #include <sys/types.h> |
| 1069 | #ifdef HAVE_SYS_PARAM_H |
| 1070 | # include <sys/param.h> |
| 1071 | #endif |
| 1072 | #include <sys/vfs.h> |
| 1073 | ],[ |
| 1074 | struct statfs stfs; |
| 1075 | |
| 1076 | memset(&stfs,0,sizeof(stfs)); |
| 1077 | ],wine_cv_sys_vfs_has_statfs=yes,wine_cv_sys_vfs_has_statfs=no |
| 1078 | ) |
| 1079 | ) |
| 1080 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 1081 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1082 | AC_DEFINE(STATFS_DEFINED_BY_SYS_VFS, 1, |
| 1083 | [Define if the struct statfs is defined by <sys/vfs.h>]) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1084 | fi |
| 1085 | fi |
| 1086 | |
| 1087 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 1088 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 1089 | AC_CACHE_CHECK( [whether sys/statfs.h defines statfs], |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1090 | wine_cv_sys_statfs_has_statfs, |
| 1091 | AC_TRY_COMPILE([ |
| 1092 | #include <sys/types.h> |
| 1093 | #ifdef HAVE_SYS_PARAM_H |
| 1094 | # include <sys/param.h> |
| 1095 | #endif |
| 1096 | #include <sys/statfs.h> |
| 1097 | ],[ |
| 1098 | struct statfs stfs; |
| 1099 | ],wine_cv_sys_statfs_has_statfs=yes,wine_cv_sys_statfs_has_statfs=no |
| 1100 | ) |
| 1101 | ) |
| 1102 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 1103 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1104 | AC_DEFINE(STATFS_DEFINED_BY_SYS_STATFS, 1, |
| 1105 | [Define if the struct statfs is defined by <sys/statfs.h>]) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1106 | fi |
| 1107 | fi |
| 1108 | |
| 1109 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 1110 | then |
Bernhard Rosenkraenzer | fea260a | 2001-09-19 20:30:28 +0000 | [diff] [blame] | 1111 | AC_CACHE_CHECK( [whether sys/mount.h defines statfs], |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1112 | wine_cv_sys_mount_has_statfs, |
| 1113 | AC_TRY_COMPILE([ |
| 1114 | #include <sys/types.h> |
| 1115 | #ifdef HAVE_SYS_PARAM_H |
| 1116 | # include <sys/param.h> |
| 1117 | #endif |
| 1118 | #include <sys/mount.h> |
| 1119 | ],[ |
| 1120 | struct statfs stfs; |
| 1121 | ],wine_cv_sys_mount_has_statfs=yes,wine_cv_sys_mount_has_statfs=no |
| 1122 | ) |
| 1123 | ) |
| 1124 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 1125 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1126 | AC_DEFINE(STATFS_DEFINED_BY_SYS_MOUNT, 1, |
| 1127 | [Define if the struct statfs is defined by <sys/mount.h>]) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1128 | fi |
| 1129 | fi |
| 1130 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1131 | dnl *** Check for some structure members |
| 1132 | |
| 1133 | dnl Macro to check if a structure contains a specified member |
| 1134 | dnl Usage: WINE_CHECK_STRUCT_MEMBER(struct,member,[includes,[action-if-found,[action-if-not-found]]]) |
| 1135 | |
| 1136 | AC_DEFUN([WINE_CHECK_STRUCT_MEMBER], |
| 1137 | [AC_CACHE_CHECK([for $2 in struct $1], ac_cv_c_$1_$2, |
| 1138 | AC_TRY_COMPILE([$3],[struct $1 s; s.$2 = 0],ac_cv_c_$1_$2="yes",ac_cv_c_$1_$2="no")) |
| 1139 | AS_IF([ test "x$ac_cv_c_$1_$2" = "xyes"],[$4],[$5]) |
| 1140 | ]) |
| 1141 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1142 | dnl **** FIXME: what about mixed cases, where we need two of them? *** |
| 1143 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1144 | WINE_CHECK_STRUCT_MEMBER(statfs,f_bfree, |
| 1145 | [#include <sys/types.h> |
| 1146 | #ifdef HAVE_SYS_PARAM_H |
| 1147 | # include <sys/param.h> |
| 1148 | #endif |
| 1149 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 1150 | # include <sys/mount.h> |
| 1151 | #else |
| 1152 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 1153 | # include <sys/vfs.h> |
| 1154 | # else |
| 1155 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 1156 | # include <sys/statfs.h> |
| 1157 | # endif |
| 1158 | # endif |
| 1159 | #endif], |
| 1160 | [AC_DEFINE(STATFS_HAS_BFREE, 1, [Define if the struct statfs has the member bfree])]) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1161 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1162 | WINE_CHECK_STRUCT_MEMBER(statfs,f_bavail, |
| 1163 | [#include <sys/types.h> |
| 1164 | #ifdef HAVE_SYS_PARAM_H |
| 1165 | # include <sys/param.h> |
| 1166 | #endif |
| 1167 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 1168 | # include <sys/mount.h> |
| 1169 | #else |
| 1170 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 1171 | # include <sys/vfs.h> |
| 1172 | # else |
| 1173 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 1174 | # include <sys/statfs.h> |
| 1175 | # endif |
| 1176 | # endif |
| 1177 | #endif], |
| 1178 | [AC_DEFINE(STATFS_HAS_BAVAIL, 1, [Define if the struct statfs has the member bavail])]) |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 1179 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1180 | dnl Check for file descriptor passing with msg_accrights |
| 1181 | WINE_CHECK_STRUCT_MEMBER(msghdr,msg_accrights, |
| 1182 | [#include <sys/types.h> |
| 1183 | #include <sys/socket.h>], |
| 1184 | [AC_DEFINE(HAVE_MSGHDR_ACCRIGHTS, 1, [Define if struct msghdr contains msg_accrights])]) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1185 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1186 | dnl Check for the sa_len member in struct sockaddr |
| 1187 | WINE_CHECK_STRUCT_MEMBER(sockaddr,sa_len, |
| 1188 | [#include <sys/types.h> |
| 1189 | #include <sys/socket.h>], |
| 1190 | [AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if struct sockaddr contains sa_len])]) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 1191 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1192 | dnl Check for the sun_len member in struct sockaddr_un |
| 1193 | WINE_CHECK_STRUCT_MEMBER(sockaddr_un,sun_len, |
| 1194 | [#include <sys/types.h> |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 1195 | #include <sys/socket.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1196 | #include <sys/un.h>], |
| 1197 | [AC_DEFINE(HAVE_SOCKADDR_SUN_LEN, 1, [Define if struct sockaddr_un contains sun_len])]) |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 1198 | |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 1199 | dnl *** check for the need to define __i386__ |
| 1200 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1201 | case $target_cpu in |
| 1202 | *i[3456789]86* ) |
| 1203 | AC_CACHE_CHECK([whether we need to define __i386__],ac_cv_cpp_def_i386, |
| 1204 | AC_EGREP_CPP(yes,[#ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 1205 | yes |
| 1206 | #endif], |
| 1207 | ac_cv_cpp_def_i386="yes", ac_cv_cpp_def_i386="no")) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1208 | ;; |
| 1209 | esac |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 1210 | if test "$ac_cv_cpp_def_i386" = "yes" |
| 1211 | then |
| 1212 | CFLAGS="$CFLAGS -D__i386__" |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 1213 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 1214 | fi |
| 1215 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1216 | dnl **** Generate output files **** |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1217 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1218 | dnl Macro to create non-existent directories from config.status |
| 1219 | dnl Usage: WINE_CONFIG_EXTRA_DIR(dirname) |
| 1220 | AC_DEFUN([WINE_CONFIG_EXTRA_DIR], |
| 1221 | [AC_CONFIG_COMMANDS([$1],[test -d "$1" || (AC_MSG_NOTICE([creating $1]) && mkdir "$1")])]) |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 1222 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1223 | AH_TOP([#define __WINE_CONFIG_H]) |
| 1224 | |
| 1225 | WINE_CONFIG_EXTRA_DIR(dlls/ddraw/d3ddevice) |
| 1226 | WINE_CONFIG_EXTRA_DIR(dlls/ddraw/dclipper) |
| 1227 | WINE_CONFIG_EXTRA_DIR(dlls/ddraw/ddraw) |
| 1228 | WINE_CONFIG_EXTRA_DIR(dlls/ddraw/direct3d) |
| 1229 | WINE_CONFIG_EXTRA_DIR(dlls/ddraw/dpalette) |
| 1230 | WINE_CONFIG_EXTRA_DIR(dlls/ddraw/dsurface) |
| 1231 | WINE_CONFIG_EXTRA_DIR(dlls/dinput/joystick) |
| 1232 | WINE_CONFIG_EXTRA_DIR(dlls/dinput/keyboard) |
| 1233 | WINE_CONFIG_EXTRA_DIR(dlls/dinput/mouse) |
| 1234 | WINE_CONFIG_EXTRA_DIR(dlls/kernel/messages) |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 1235 | WINE_CONFIG_EXTRA_DIR(dlls/kernel/tests) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1236 | WINE_CONFIG_EXTRA_DIR(dlls/user/dde) |
| 1237 | WINE_CONFIG_EXTRA_DIR(dlls/user/resources) |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 1238 | WINE_CONFIG_EXTRA_DIR(dlls/user/tests) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1239 | WINE_CONFIG_EXTRA_DIR(dlls/wineps/data) |
| 1240 | WINE_CONFIG_EXTRA_DIR(include/wine) |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 1241 | WINE_CONFIG_EXTRA_DIR(programs/regapi/tests) |
| 1242 | WINE_CONFIG_EXTRA_DIR(programs/winetest/tests) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1243 | |
| 1244 | AC_CONFIG_COMMANDS([include/wine/version.h], |
| 1245 | [AC_MSG_NOTICE([creating include/wine/version.h]) |
| 1246 | cat >$tmp/version.h <<CEOF |
| 1247 | /* Generated automatically by configure; DO NOT EDIT! */ |
| 1248 | #define WINE_RELEASE_INFO "Wine version $wine_version" |
| 1249 | CEOF |
| 1250 | if cmp -s $tmp/version.h include/wine/version.h 2>/dev/null; then |
| 1251 | AC_MSG_NOTICE([include/wine/version.h is unchanged]) |
| 1252 | rm -f $tmp/version.h |
| 1253 | else |
| 1254 | rm -f include/wine/version.h |
| 1255 | mv $tmp/version.h include/wine/version.h |
| 1256 | fi], |
| 1257 | [wine_version=$PACKAGE_VERSION]) |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 1258 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1259 | MAKE_RULES=Make.rules |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 1260 | AC_SUBST_FILE(MAKE_RULES) |
| 1261 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 1262 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 1263 | AC_SUBST_FILE(MAKE_DLL_RULES) |
| 1264 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 1265 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 1266 | AC_SUBST_FILE(MAKE_PROG_RULES) |
| 1267 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1268 | AC_CONFIG_FILES([ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1269 | Make.rules |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 1270 | dlls/Makedll.rules |
| 1271 | programs/Makeprog.rules |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1272 | Makefile |
Joseph Pranevich | 791cd6a | 1998-12-02 19:58:08 +0000 | [diff] [blame] | 1273 | console/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1274 | controls/Makefile |
| 1275 | debugger/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1276 | dlls/Makefile |
Juergen Schmied | f7b0de3 | 1999-01-03 12:48:29 +0000 | [diff] [blame] | 1277 | dlls/advapi32/Makefile |
Hidenori Takeshima | 1c53a7f | 2001-11-06 00:41:05 +0000 | [diff] [blame] | 1278 | dlls/avicap32/Makefile |
Marcus Meissner | b3d1a22 | 1999-03-13 18:07:44 +0000 | [diff] [blame] | 1279 | dlls/avifil32/Makefile |
Alexandre Julliard | a0d7731 | 1998-09-13 16:32:00 +0000 | [diff] [blame] | 1280 | dlls/comctl32/Makefile |
Klaas van Gend | c912749 | 1999-02-28 20:05:11 +0000 | [diff] [blame] | 1281 | dlls/commdlg/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1282 | dlls/crtdll/Makefile |
Travis Michielsen | 0f21ee8 | 2002-01-10 19:41:11 +0000 | [diff] [blame] | 1283 | dlls/crypt32/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1284 | dlls/dciman32/Makefile |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 1285 | dlls/ddraw/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 1286 | dlls/devenum/Makefile |
Alexandre Julliard | ddce652 | 2000-03-17 16:58:10 +0000 | [diff] [blame] | 1287 | dlls/dinput/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 1288 | dlls/dplay/Makefile |
Peter Hunnisett | 22b861c | 1999-09-28 16:35:32 +0000 | [diff] [blame] | 1289 | dlls/dplayx/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 1290 | dlls/dsound/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 1291 | dlls/gdi/Makefile |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 1292 | dlls/glu32/Makefile |
Francois Gouget | edf3e43 | 1999-11-07 21:22:17 +0000 | [diff] [blame] | 1293 | dlls/icmp/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 1294 | dlls/imagehlp/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1295 | dlls/imm32/Makefile |
Dimitrie O. Paun | 36b5b6b | 2000-06-03 00:07:44 +0000 | [diff] [blame] | 1296 | dlls/kernel/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1297 | dlls/lzexpand/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 1298 | dlls/mapi32/Makefile |
Ulrich Weigand | bb1984e | 1999-08-07 14:32:33 +0000 | [diff] [blame] | 1299 | dlls/mpr/Makefile |
Patrik Stridvall | 8295c86 | 1998-10-11 17:09:05 +0000 | [diff] [blame] | 1300 | dlls/msacm/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 1301 | dlls/msdmo/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 1302 | dlls/msimg32/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1303 | dlls/msnet32/Makefile |
Hidenori Takeshima | 1c53a7f | 2001-11-06 00:41:05 +0000 | [diff] [blame] | 1304 | dlls/msrle32/Makefile |
Jon Griffiths | 1db20bf | 2001-01-10 23:59:25 +0000 | [diff] [blame] | 1305 | dlls/msvcrt/Makefile |
Aric Stewart | c2a5ebc | 2002-01-29 18:09:46 +0000 | [diff] [blame] | 1306 | dlls/msvcrt20/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1307 | dlls/msvideo/Makefile |
Mike McCormack | 2e40b96 | 2001-11-06 17:52:36 +0000 | [diff] [blame] | 1308 | dlls/netapi32/Makefile |
Marcus Meissner | 51505b1 | 1998-11-01 14:00:21 +0000 | [diff] [blame] | 1309 | dlls/ntdll/Makefile |
Alexandre Julliard | 8551f8c | 1999-12-11 23:56:46 +0000 | [diff] [blame] | 1310 | dlls/odbc32/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 1311 | dlls/ole32/Makefile |
| 1312 | dlls/oleaut32/Makefile |
| 1313 | dlls/olecli/Makefile |
| 1314 | dlls/oledlg/Makefile |
Sean Langley | 58c71d4 | 2000-02-07 16:26:56 +0000 | [diff] [blame] | 1315 | dlls/olepro32/Makefile |
Ulrich Weigand | 2a722f4 | 1999-09-19 18:36:53 +0000 | [diff] [blame] | 1316 | dlls/olesvr/Makefile |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 1317 | dlls/opengl32/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1318 | dlls/psapi/Makefile |
Hidenori Takeshima | b4be998 | 2001-10-23 20:35:23 +0000 | [diff] [blame] | 1319 | dlls/qcap/Makefile |
Hidenori Takeshima | b7d4b4e | 2001-07-02 18:57:22 +0000 | [diff] [blame] | 1320 | dlls/quartz/Makefile |
Marcus Meissner | 30ef877 | 1998-12-11 13:26:26 +0000 | [diff] [blame] | 1321 | dlls/rasapi32/Makefile |
Hidenori Takeshima | e75f9fb | 2000-05-03 18:12:19 +0000 | [diff] [blame] | 1322 | dlls/richedit/Makefile |
Huw D M Davies | 10b1b23 | 2000-07-15 19:53:50 +0000 | [diff] [blame] | 1323 | dlls/rpcrt4/Makefile |
Mike McCormack | dc2461e | 2000-07-15 21:35:55 +0000 | [diff] [blame] | 1324 | dlls/serialui/Makefile |
Francois Jacques | df5e579 | 2000-07-08 18:27:03 +0000 | [diff] [blame] | 1325 | dlls/setupapi/Makefile |
John R. Sheets | bc80a3b | 2001-01-11 22:32:44 +0000 | [diff] [blame] | 1326 | dlls/shdocvw/Makefile |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 1327 | dlls/shell32/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 1328 | dlls/shfolder/Makefile |
| 1329 | dlls/shlwapi/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 1330 | dlls/sti/Makefile |
Andreas Mohr | 5aa96c1 | 1999-03-14 12:34:25 +0000 | [diff] [blame] | 1331 | dlls/tapi32/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 1332 | dlls/ttydrv/Makefile |
Hidenori Takeshima | 1a8b339 | 2001-09-14 21:36:30 +0000 | [diff] [blame] | 1333 | dlls/url/Makefile |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 1334 | dlls/urlmon/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 1335 | dlls/user/Makefile |
Ulrich Weigand | d43a46a | 1999-01-31 10:11:04 +0000 | [diff] [blame] | 1336 | dlls/version/Makefile |
Ulrich Weigand | 6c6da67 | 1999-08-04 09:49:49 +0000 | [diff] [blame] | 1337 | dlls/win32s/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1338 | dlls/winaspi/Makefile |
Ove Kaaven | e5557b3 | 2000-12-26 00:22:45 +0000 | [diff] [blame] | 1339 | dlls/winedos/Makefile |
Dimitrie O. Paun | 84bde6a | 2000-05-30 20:27:23 +0000 | [diff] [blame] | 1340 | dlls/wineps/Makefile |
Alexandre Julliard | 819fa8c | 2000-04-11 20:07:00 +0000 | [diff] [blame] | 1341 | dlls/wininet/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 1342 | dlls/winmm/Makefile |
Eric Pouech | 2a3b0a1 | 2000-02-26 13:14:04 +0000 | [diff] [blame] | 1343 | dlls/winmm/joystick/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 1344 | dlls/winmm/mcianim/Makefile |
| 1345 | dlls/winmm/mciavi/Makefile |
| 1346 | dlls/winmm/mcicda/Makefile |
| 1347 | dlls/winmm/mciseq/Makefile |
| 1348 | dlls/winmm/mciwave/Makefile |
Eric Pouech | abe7227 | 1999-10-31 02:23:49 +0000 | [diff] [blame] | 1349 | dlls/winmm/midimap/Makefile |
| 1350 | dlls/winmm/wavemap/Makefile |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame^] | 1351 | dlls/winmm/winearts/Makefile |
Eric Pouech | 68944c2 | 1999-10-24 18:42:42 +0000 | [diff] [blame] | 1352 | dlls/winmm/wineoss/Makefile |
Hidenori Takeshima | 9c67213 | 2000-12-14 21:56:18 +0000 | [diff] [blame] | 1353 | dlls/winnls/Makefile |
Alexandre Julliard | de07869 | 2000-01-23 22:07:15 +0000 | [diff] [blame] | 1354 | dlls/winsock/Makefile |
Huw D M Davies | e39b676 | 1999-05-17 16:20:51 +0000 | [diff] [blame] | 1355 | dlls/winspool/Makefile |
Rein Klazes | 2a4c68b | 2001-04-16 19:36:12 +0000 | [diff] [blame] | 1356 | dlls/wintrust/Makefile |
Alexandre Julliard | c607532 | 2000-07-09 11:19:35 +0000 | [diff] [blame] | 1357 | dlls/wow32/Makefile |
| 1358 | dlls/wsock32/Makefile |
Alexandre Julliard | 1dac57f | 2000-03-19 12:08:09 +0000 | [diff] [blame] | 1359 | dlls/x11drv/Makefile |
Alexandre Julliard | d37eb36 | 1997-07-20 16:23:21 +0000 | [diff] [blame] | 1360 | documentation/Makefile |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1361 | files/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 1362 | graphics/Makefile |
Huw D M Davies | 3a24f3f | 1999-05-02 10:15:16 +0000 | [diff] [blame] | 1363 | graphics/enhmetafiledrv/Makefile |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 1364 | graphics/metafiledrv/Makefile |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 1365 | graphics/win16drv/Makefile |
| 1366 | graphics/x11drv/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1367 | if1632/Makefile |
James Juran | c70dc83 | 1999-02-13 12:18:33 +0000 | [diff] [blame] | 1368 | include/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1369 | library/Makefile |
| 1370 | libtest/Makefile |
| 1371 | loader/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 1372 | loader/ne/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1373 | memory/Makefile |
| 1374 | misc/Makefile |
| 1375 | miscemu/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 1376 | msdos/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1377 | objects/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 1378 | ole/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 1379 | programs/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 1380 | programs/avitools/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 1381 | programs/clock/Makefile |
Eric Williams | 30008a0 | 1999-02-05 17:40:47 +0000 | [diff] [blame] | 1382 | programs/cmdlgtst/Makefile |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1383 | programs/control/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 1384 | programs/notepad/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 1385 | programs/osversioncheck/Makefile |
Alexandre Julliard | 02ed4c2 | 1996-03-02 19:34:10 +0000 | [diff] [blame] | 1386 | programs/progman/Makefile |
Sylvain St.Germain | 1bb0e66 | 1999-03-14 14:00:22 +0000 | [diff] [blame] | 1387 | programs/regapi/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 1388 | programs/regtest/Makefile |
| 1389 | programs/uninstaller/Makefile |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 1390 | programs/view/Makefile |
Dave Pickles | 74f440e | 1999-06-06 15:24:04 +0000 | [diff] [blame] | 1391 | programs/wcmd/Makefile |
Eric Pouech | 0b83d4c | 2001-11-23 23:04:58 +0000 | [diff] [blame] | 1392 | programs/wineconsole/Makefile |
Joshua Thielen | a3f2380 | 2000-03-15 19:06:39 +0000 | [diff] [blame] | 1393 | programs/winemine/Makefile |
Alexandre Julliard | fc68434 | 2001-03-21 21:41:27 +0000 | [diff] [blame] | 1394 | programs/winetest/Makefile |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 1395 | programs/winhelp/Makefile |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 1396 | programs/winver/Makefile |
Alexandre Julliard | 44ed71f | 1997-12-21 19:17:50 +0000 | [diff] [blame] | 1397 | relay32/Makefile |
Alexandre Julliard | 9ea19e5 | 1997-01-01 17:29:55 +0000 | [diff] [blame] | 1398 | scheduler/Makefile |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 1399 | server/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1400 | tools/Makefile |
Patrik Stridvall | 647ac51 | 2001-07-30 20:21:34 +0000 | [diff] [blame] | 1401 | tools/winapi/Makefile |
Alexandre Julliard | e482eeb | 2000-06-23 20:15:35 +0000 | [diff] [blame] | 1402 | tools/winebuild/Makefile |
Eric Pouech | d786a12 | 2001-09-07 16:04:38 +0000 | [diff] [blame] | 1403 | tools/winedump/Makefile |
Bertho Stultiens | 3085591 | 2000-06-13 04:34:41 +0000 | [diff] [blame] | 1404 | tools/wmc/Makefile |
Andreas Mohr | 4eefb96 | 2000-08-01 00:27:35 +0000 | [diff] [blame] | 1405 | tools/wrc/Makefile |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 1406 | tsx11/Makefile |
Alexandre Julliard | fb270dd | 2000-06-09 05:27:21 +0000 | [diff] [blame] | 1407 | unicode/Makefile |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1408 | win32/Makefile |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 1409 | windows/Makefile |
| 1410 | windows/x11drv/Makefile ]) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1411 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1412 | AC_OUTPUT |
| 1413 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 1414 | if test "$have_x" = "no" |
| 1415 | then |
| 1416 | echo |
| 1417 | echo "*** Warning: X development files not found. Wine will be built without" |
| 1418 | echo "*** X support, which currently does not work, and would probably not be" |
| 1419 | echo "*** what you want anyway. You will need to install devel packages of" |
Alexandre Julliard | 18e4b5e | 2002-01-04 18:52:40 +0000 | [diff] [blame] | 1420 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 1421 | fi |
| 1422 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 1423 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 1424 | then |
| 1425 | echo |
| 1426 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 1427 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 1428 | fi |
| 1429 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1430 | if test "$wine_cv_libc_reentrant" = "no" |
| 1431 | then |
| 1432 | echo |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1433 | echo "*** Warning: non-reentrant libc detected. Wine will be built without" |
| 1434 | echo "*** threading support. Consider upgrading libc to a more recent" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1435 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 1436 | fi |
| 1437 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 1438 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 1439 | then |
| 1440 | echo |
| 1441 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 1442 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 1443 | fi |
| 1444 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1445 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 1446 | then |
| 1447 | echo |
| 1448 | echo "*** Warning: the OpenGL version you have installed relies on libpthread for" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 1449 | echo "*** thread-safety. To prevent crashes, OpenGL support has been removed." |
Andreas Mohr | 18a9d74 | 2001-01-17 21:52:42 +0000 | [diff] [blame] | 1450 | echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine," |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 1451 | echo "*** start configure with '--enable-opengl' to force OpenGL support." |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 1452 | fi |
| 1453 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1454 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 1455 | then |
| 1456 | echo |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 1457 | echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 1458 | echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL" |
| 1459 | echo "*** support before reporting bugs." |
| 1460 | fi |
| 1461 | |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 1462 | if test "$wine_cv_warn_cups_h" = "yes" |
| 1463 | then |
| 1464 | echo |
| 1465 | echo "*** Note: You have cups runtime libraries, but no development" |
| 1466 | echo "*** libraries. Install the cups-devel package or whichever package" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1467 | echo "*** contains cups.h to enable CUPS support in Wine." |
Marcus Meissner | 3ee02ba | 2001-04-30 18:18:50 +0000 | [diff] [blame] | 1468 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 1469 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 1470 | if test "$wine_cv_msg_freetype" = "yes" |
| 1471 | then |
| 1472 | echo |
| 1473 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1474 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 1475 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 1476 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 1477 | fi |
| 1478 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1479 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 1480 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1481 | echo |
| 1482 | |
| 1483 | dnl Local Variables: |
| 1484 | dnl comment-start: "dnl " |
| 1485 | dnl comment-end: "" |
| 1486 | dnl comment-start-skip: "\\bdnl\\b\\s *" |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1487 | dnl compile-command: "autoconf" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1488 | dnl End: |