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)
10 test -z "$LDLIBS" && LDLIBS=-lm AC_SUBST(LDLIBS)
12 dnl **** Command-line arguments ****
15 [ --with-library build Wine as a library instead of an emulator],
16 [AC_DEFINE(WINELIB) MAIN_TARGET="winelib.a"],[MAIN_TARGET="wine"])
20 [ --with-language=LANG change the language (LANG=En/De/Fr/Es/No/Fi/Da)],
26 [ --with-ipc use inter-process communication for DDE],
27 [AC_DEFINE(CONFIG_IPC)])
29 AC_ARG_WITH(malloc-debug,
30 [ --with-malloc-debug enable malloc() debugging],
31 [AC_DEFINE(MALLOC_DEBUGGING)])
33 dnl **** Check for some programs and libraries ****
41 dnl Check for -li386 for NetBSD
42 AC_CHECK_LIB(i386,i386_set_ldt,LDLIBS="$LDLIBS -li386")
44 dnl **** Check for functions and header files ****
46 AC_CHECK_FUNCS(tcgetattr)
47 AC_CHECK_HEADERS(stdlib.h)
52 if test -z "${top_srcdir}"; then
55 TOP_SRCDIR="${top_srcdir}"
58 AC_MSG_CHECKING(for /usr/local/etc/wine.conf)
59 if test -f /usr/local/etc/wine.conf; then
61 WINE_INI_GLOBAL='"/usr/local/etc/wine.conf"'
64 WINE_INI_GLOBAL="\"${TOP_SRCDIR}/wine.ini\""
66 AC_SUBST(WINE_INI_GLOBAL)
67 AC_DEFINE_UNQUOTED(WINE_INI_GLOBAL,$WINE_INI_GLOBAL)
69 MAKE_RULES=$TOP_SRCDIR/Make.rules
70 AC_SUBST_FILE(MAKE_RULES)
72 AC_OUTPUT(Make.rules controls/Makefile ipc/Makefile loader/Makefile memory/Makefile misc/Makefile miscemu/Makefile multimedia/Makefile objects/Makefile win32/Makefile windows/Makefile rc/Makefile debugger/Makefile debugger/readline/Makefile tools/Makefile if1632/Makefile toolkit/Makefile Makefile)
75 echo "Configure finished. Do 'make depend; make' to compile Wine."
79 dnl comment-start: "dnl "
81 dnl comment-start-skip: "\\bdnl\\b\\s *"
82 dnl compile-command: "make configure config.h.in"