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

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

mercurial