-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
32 lines (27 loc) · 836 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AC_INIT([MicroEMACS], [3.6.1-beta1],, [me], [https://github.com/troglobit/MicroEMACS/])
AC_CONFIG_AUX_DIR(aux)
AM_INIT_AUTOMAKE([1.11 foreign])
AM_SILENT_RULES([yes])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADER([src/config.h])
AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC
AC_CANONICAL_HOST
case $host in
*-apple*)
AC_DEFINE([macos], [1], [macOS system])
;;
*-linux*)
AC_DEFINE([linux], [1], [Linux system with GLIBC/uClibc/musl])
;;
*-freebsd* | *-openbsd* | *-netbsd* | *-dragonfly* | *-solaris*)
AC_DEFINE([BSD], [1], [BSD compatible system])
;;
*)
AC_MSG_WARN(Your operating system is not officially supported yet by MicroEMACS.)
AC_MSG_WARN(Set DEFS=-Dfoo manually to one of: AMIGA, VMS, CPM, MSDOS, V7, etc.)
;;
esac
AC_OUTPUT