-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
38 lines (34 loc) · 859 Bytes
/
configure.ac
File metadata and controls
38 lines (34 loc) · 859 Bytes
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
33
34
35
36
37
38
AC_INIT([slogan], [1.0], [anmitalidev@nuros.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects])
dnl Check for the host CPU architecture and set conditionals
case $host_cpu in
x86_64)
isa_dir=x86_64
;;
i?86)
isa_dir=x86
;;
riscv64)
isa_dir=rv64gc
;;
riscv32)
isa_dir=rv32gc
;;
mips*)
isa_dir=mips
;;
*)
AC_MSG_ERROR([Unsupported architecture: $host_cpu])
;;
esac
AM_CONDITIONAL([ARCH_X86_64], [test "x$isa_dir" = "xx86_64"])
AM_CONDITIONAL([ARCH_X86], [test "x$isa_dir" = "xx86"])
AM_CONDITIONAL([ARCH_RV64GC], [test "x$isa_dir" = "xrv64gc"])
AM_CONDITIONAL([ARCH_RV32GC], [test "x$isa_dir" = "xrv32gc"])
AM_CONDITIONAL([ARCH_MIPS], [test "x$isa_dir" = "xmips"])
AC_PROG_CC
AM_PROG_AS
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT