mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-06 21:20:07 +00:00
669771681a
Most of the guts of configure.ac have been moved to config.d and are then brought in by m4_include. This will make maintaining configure.ac much easier. Also drop use of PROGRAM and VERSION, using PACKAGE_NAME, PACKAGE_VERSION, and on occasion, PACKAGE_STRING instead, and clean out some old files we no longer need.
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
dnl silence automake about .r files
|
|
F77=touch
|
|
AC_SUBST(F77)
|
|
|
|
AC_ARG_WITH(cpp,
|
|
[ --with-cpp=CPP how qfcc should invoke cpp],
|
|
cpp_name="$withval", cpp_name=auto
|
|
)
|
|
if test "x$cpp_name" != xauto; then
|
|
CPP_NAME="$cpp_name"
|
|
else
|
|
CPP_NAME="cpp %d -o %o %i"
|
|
case "$host_os" in
|
|
*freebsd*)
|
|
CPP_NAME="cpp %d %i %o"
|
|
;;
|
|
*qnx*)
|
|
CPP_NAME="gcc -E -x c++ %d -o %o %i"
|
|
;;
|
|
*darwin*)
|
|
CPP_NAME="/usr/libexec/gcc/darwin/`/usr/bin/arch`/default/cpp %d -o %o %i"
|
|
;;
|
|
*bsd*)
|
|
touch conftest.c
|
|
CPP_NAME="`(f=\`$CC -v -E -Dfoo conftest.c -o conftest.i 2>&1 | grep -e -Dfoo\`; set $f; echo "$1")` %d %i %o"
|
|
rm -f conftest.[ci]
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
AC_DEFINE_UNQUOTED(PATH_SEPARATOR, '/',
|
|
[Define this to your operating system path separator character])
|
|
AC_DEFINE_UNQUOTED(CPP_NAME, "$CPP_NAME",
|
|
[Define this to the command line for the C preprocessor])
|
|
AC_DEFINE_UNQUOTED(QFCC_INCLUDE_PATH, "${prefix}/include/QF/ruamoko",
|
|
[Define this to where qfcc should look for header files])
|
|
eval expanded_libdir="${libdir}/ruamoko"
|
|
eval expanded_libdir="${expanded_libdir}"
|
|
AC_DEFINE_UNQUOTED(QFCC_LIB_PATH, "${expanded_libdir}",
|
|
[Define this to where qfcc should look for lib files])
|