dnl Process this file with autoconf to produce a configure script. dnl Copyright (C) 2000 Laurynas Biveinis AC_INIT(src/main.cc) AM_INIT_AUTOMAKE(LBInstDJ, 0.5) AM_CONFIG_HEADER(config.h) AC_PREFIX_DEFAULT($DJDIR) AC_PROG_CC AC_PROG_CXX AC_PROG_CXXCPP AC_LANG_CPLUSPLUS dnl Override default compiler options. dnl I really don't like the default '-O2 -g'. CFLAGS="-Wall -W" CXXFLAGS="-Wall -W" AC_CXX_OPT([-fno-rtti]) AC_CXX_OPT([-fno-exceptions]) AC_CHECK_HEADERS(tv.h) dnl Note that MSS library should be specified last in the lib list AC_ARG_WITH(mss, [ --with-mss use Memory Supervision System], lb_mss=yes) if test -z lb_mss; then AC_CHECK_HEADERS(mss.h) LIBS="$LIBS -lmss" AC_DEFINE(USE_MSS) fi dnl AC_CHECK_FUNC(strnicmp) AC_LIB_TVISION AC_ARG_ENABLE(debug, [ --enable-debug compile with debug info], lb_debug=yes) if test -z lb_debug; then CFLAGS="-gstabs+ $CFLAGS" CXXFLAGS="-gstabs+ $CXXFLAGS" else CFLAGS="-O2 -fomit-frame-pointer $CFLAGS" CXXFLAGS="-O2 -fomit-frame-pointer $CXXFLAGS" fi AC_OUTPUT(Makefile src/Makefile)