1 dnl Process this file with autoconf to produce a configure script.
2 dnl Author: Michael Patra <micky@marie.physik.tu-berlin.de>
3 dnl <patra@itp1.physik.tu-berlin.de>
4 AC_REVISION([configure.in 1.00])
5 AC_INIT(controls/edit.c)
7 # We want these before the checks, so the checks can modify their values.
8 test -z "$CFLAGS" && CFLAGS="-g -O2 -Wall" AC_SUBST(CFLAGS)
9 test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
11 dnl **** Command-line arguments ****
14 [ --with-library build Wine as a library instead of an emulator],
15 [AC_DEFINE(WINELIB) MAIN_TARGET="winelib.a"],[MAIN_TARGET="wine"])
19 [ --with-language=LANG change the default language (LANG=En/De/No/Es)],
20 [LANG="-ALANG\($withval\)"],
21 [LANG="-ALANG\(En\)"],)
25 [ --with-ipc use inter-process communication for DDE],
26 [AC_DEFINE(CONFIG_IPC)])
28 AC_ARG_WITH(malloc-debug,
29 [ --with-malloc-debug enable malloc() debugging],
30 [AC_DEFINE(MALLOC_DEBUGGING)])
32 dnl **** Check for some programs ****
41 AC_CHECK_FUNCS(tcgetattr)
42 AC_CHECK_HEADERS(stdlib.h)
47 if test -z "${top_srcdir}"; then
50 TOP_SRCDIR="${top_srcdir}"
53 AC_MSG_CHECKING(for wine.ini in autoconf.h)
54 if test -f ${TOP_SRCDIR}/autoconf.h; then
55 if test `grep -c WINE_INI_GLOBAL ${TOP_SRCDIR}/autoconf.h` -ne 0; then
56 WINE_INI_GLOBAL=`grep WINE_INI_GLOBAL ${TOP_SRCDIR}/autoconf.h | tr ' ' '\n' | tail -1`
57 AC_MSG_RESULT(${WINE_INI_GLOBAL})
60 if test -z "${WINE_INI_GLOBAL}"; then
64 if test -z "${WINE_INI_GLOBAL}"; then
65 AC_MSG_CHECKING(for /usr/local/etc/wine.conf)
66 if test -f /usr/local/etc/wine.conf; then
68 WINE_INI_GLOBAL='"/usr/local/etc/wine.conf"'
71 WINE_INI_GLOBAL="\"${TOP_SRCDIR}/wine.ini\""
74 AC_SUBST(WINE_INI_GLOBAL)
75 AC_DEFINE_UNQUOTED(WINE_INI_GLOBAL,$WINE_INI_GLOBAL)
77 MAKE_RULES=$TOP_SRCDIR/Make.rules
78 AC_SUBST_FILE(MAKE_RULES)
80 AC_OUTPUT(Make.rules controls/Makefile ipc/Makefile loader/Makefile memory/Makefile misc/Makefile miscemu/Makefile multimedia/Makefile objects/Makefile windows/Makefile rc/Makefile debugger/Makefile debugger/readline/Makefile tools/Makefile if1632/Makefile toolkit/Makefile Makefile)
83 echo "Configure finished. Do 'make depend; make' to compile Wine."
87 dnl comment-start: "dnl "
89 dnl comment-start-skip: "\\bdnl\\b\\s *"
90 dnl compile-command: "make configure config.h.in"