-
Notifications
You must be signed in to change notification settings - Fork 15
/
configure.ac
42 lines (33 loc) · 1.03 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
34
35
36
37
38
39
40
41
42
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
AC_INIT([abcmidi], [2011-08-03], [[email protected]])
AC_CONFIG_SRCDIR([abc.h])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
cflags_save="$CFLAGS"
AC_PROG_CC
CFLAGS="$cflags_save"
dnl This mechanism allows one to enable debug compilations...
AC_ARG_ENABLE(debug,
[ --enable-debug Enable debugging information],
USE_DEBUG="$enableval", USE_DEBUG="no")
if test $USE_DEBUG = yes ; then
CFLAGS="$CFLAGS -g"
else
CFLAGS="$CFLAGS -O2"
fi
AC_PROG_INSTALL
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strcasecmp strchr])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT