dnl Process this file with autoconf to produce a configure script. dnl Author: Michael Patra dnl AC_REVISION([configure.in 1.00]) AC_INIT(controls/edit.c) AC_CONFIG_AUX_DIR(tools) # We want these before the checks, so the checks can modify their values. test -z "$CFLAGS" && CFLAGS="-g -O2" AC_SUBST(CFLAGS) test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS) test -z "$LDLIBS" && LDLIBS=-lm AC_SUBST(LDLIBS) dnl **** Command-line arguments **** AC_ARG_WITH(library, [ --with-library build Wine as a library instead of an emulator], [AC_DEFINE(WINELIB) MAIN_TARGET="libwine.a"],[MAIN_TARGET="wine"]) AC_ARG_WITH(dll, [ --with-dll build Wine as a DLL instead of an emulator], [AC_DEFINE(WINELIB) AC_DEFINE(WINELIBDLL) MAIN_TARGET="libwine.so.1.0" CFLAGS="$CFLAGS -fPIC"]) AC_SUBST(MAIN_TARGET) AC_ARG_WITH(ipc, [ --with-ipc use inter-process communication for DDE], [AC_DEFINE(CONFIG_IPC)]) AC_ARG_WITH(malloc-debug, [ --with-malloc-debug enable malloc() debugging], [AC_DEFINE(MALLOC_DEBUGGING)]) dnl **** Check for some programs and libraries **** AC_PROG_MAKE_SET AC_PROG_CC AC_PROG_CPP AC_PATH_XTRA AC_PROG_YACC AC_PROG_LEX AC_PROG_RANLIB AC_PROG_INSTALL dnl Check for -li386 for NetBSD AC_CHECK_LIB(i386,i386_set_ldt,LDLIBS="$LDLIBS -li386") dnl **** Check for gcc strength-reduce bug **** if test "x${GCC}" = "xyes" then CFLAGS="$CFLAGS -Wall" AC_C_CROSS AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug, AC_TRY_RUN([ int main(void) { static int Array[[3]]; unsigned int B = 3; int i; for(i=0; i