Add basic system detection

This commit is contained in:
Alexandre Moine 2015-08-10 13:27:17 +02:00
parent 91eb928c29
commit 7135a0ce4f
1 changed files with 18 additions and 0 deletions

View File

@ -38,5 +38,23 @@ AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS([memset sqrt strstr])
#############################
# Platform specific setup
#############################
AC_CANONICAL_HOST
# Check for which host we are on and setup a few things
# specifically based on the host
case $host_os in
darwin* )
SYSTEM=DARWIN
;;
linux*)
SYSTEM=LINUX
;;
*mingw*)
SYSTEM=MINGW
;;
esac
AC_CONFIG_FILES([Makefile])
AC_OUTPUT