-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
33 lines (26 loc) · 1.07 KB
/
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
33
# Must init the autoconf setup
# The first parameter is project name
# second is version number
# third is bug report address
AC_INIT([hashmap], [1.0])
# Safety checks in case user overwritten --srcdir
AC_CONFIG_SRCDIR([hashmap.c])
# Store the auxiliary build tools (e.g., install-sh, config.sub, config.guess)
# in this dir (build-aux)
AC_CONFIG_AUX_DIR([build-aux])
# Init automake, and specify this program use relaxed structures.
# i.e. this program doesn't follow the gnu coding standards, and doesn't have
# ChangeLog, COPYING, AUTHORS, INSTALL, README etc. files.
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
# Check for C compiler
AC_PROG_CC
# We can add more checks in this section
AC_C_BIGENDIAN(
[AC_DEFINE(ENDIAN_BIG, 1, [machine is bigendian])],
[AC_DEFINE(ENDIAN_LITTLE, 1, [machine is littleendian])],
[AC_MSG_ERROR([Cannot detect endianness. Must pass ac_cv_c_bigendian={yes,no} to configure.])])
# Tells automake to create a Makefile
# See https://www.gnu.org/software/automake/manual/html_node/Requirements.html
AC_CONFIG_FILES([Makefile])
# Generate the output
AC_OUTPUT