mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
58 lines
1 KiB
Text
58 lines
1 KiB
Text
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ(2.13)
|
|
AC_INIT(Forge_main.m)
|
|
AC_CONFIG_HEADER(Headers/Config.h)
|
|
AC_REVISION($Revision$) dnl
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
AC_DEFINE(PACKAGE, "Forge")
|
|
AC_DEFINE(VERSION, "0.1.0")
|
|
|
|
AC_SUBST(VERSION)
|
|
|
|
ISODATE=$(date +%Y-%m-%d)
|
|
AC_SUBST(ISODATE)
|
|
|
|
dnl Checks for programs.
|
|
AC_PROG_INSTALL
|
|
AC_PROG_CC
|
|
AC_PROG_CPP
|
|
|
|
AC_LANG_C
|
|
|
|
dnl We want warnings, lots of warnings...
|
|
if test "x$GCC" = xyes; then
|
|
CFLAGS="$CFLAGS -Wall -Werror -Wno-comment"
|
|
# CFLAGS="$CFLAGS -Wall -pedantic"
|
|
fi
|
|
|
|
dnl Checks for libraries.
|
|
|
|
dnl Checks for header files.
|
|
AC_HEADER_STDC
|
|
AC_CHECK_HEADERS(unistd.h)
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_CHECK_HEADER(QF/qtypes.h, HAVE_QF=yes, HAVE_QF=no)
|
|
if test "$HAVE_QF" = yes; then
|
|
AC_CHECK_LIB(QFutil, Qopen,
|
|
HAVE_QF=yes, HAVE_QF=no,
|
|
[]
|
|
)
|
|
fi
|
|
|
|
if test "$HAVE_QF" != yes; then
|
|
echo '***'
|
|
echo '*** You seem to not have the QuakeForge libs & headers installed'
|
|
echo '***'
|
|
exit 1
|
|
fi
|
|
|
|
AC_SUBST(CFLAGS)
|
|
AC_SUBST(LDFLAGS)
|
|
|
|
AC_OUTPUT(
|
|
GNUmakefile.preamble
|
|
)
|