configure.ac

Wed, 31 May 2017 11:40:07 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 31 May 2017 11:40:07 +0200
changeset 47
e5455e692b45
child 48
0d2c13c24fd0
permissions
-rw-r--r--

replaces Makefiles with autoconf files

47
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 # -*- Autoconf -*-
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 # Process this file with autoconf to produce a configure script.
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 AC_PREREQ([2.69])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 AC_INIT(cline, 1.1, universe@uap-core.de)
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 AC_CONFIG_SRCDIR([src/cline.c])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 AC_CONFIG_HEADERS([config.h])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 AM_INIT_AUTOMAKE
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 # Conditionals
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 AC_ARG_ENABLE([debug],
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 [ --enable-debug Turn on debugging],
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 [case "${enableval}" in
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 yes) debug=true ;;
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 no) debug=false ;;
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 esac],[debug=false])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 # Checks for programs.
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 AC_PROG_CC
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 # Checks for libraries.
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 # Checks for header files.
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 AC_CHECK_HEADERS([stdlib.h string.h])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 # Checks for typedefs, structures, and compiler characteristics.
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 AC_CHECK_HEADER_STDBOOL
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 AC_TYPE_SIZE_T
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 # Checks for library functions.
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 AC_FUNC_MALLOC
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 AC_FUNC_REALLOC
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 AC_CHECK_FUNCS([memset regcomp strcasecmp strchr])
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36
e5455e692b45 replaces Makefiles with autoconf files
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 AC_OUTPUT(Makefile src/Makefile)

mercurial