configure.ac

changeset 47
e5455e692b45
child 48
0d2c13c24fd0
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/configure.ac	Wed May 31 11:40:07 2017 +0200
     1.3 @@ -0,0 +1,37 @@
     1.4 +#                                               -*- Autoconf -*-
     1.5 +# Process this file with autoconf to produce a configure script.
     1.6 +
     1.7 +AC_PREREQ([2.69])
     1.8 +AC_INIT(cline, 1.1, universe@uap-core.de)
     1.9 +AC_CONFIG_SRCDIR([src/cline.c])
    1.10 +AC_CONFIG_HEADERS([config.h])
    1.11 +AM_INIT_AUTOMAKE
    1.12 +
    1.13 +# Conditionals
    1.14 +AC_ARG_ENABLE([debug],
    1.15 +[  --enable-debug    Turn on debugging],
    1.16 +[case "${enableval}" in
    1.17 +  yes) debug=true ;;
    1.18 +  no)  debug=false ;;
    1.19 +  *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
    1.20 +esac],[debug=false])
    1.21 +AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
    1.22 +
    1.23 +# Checks for programs.
    1.24 +AC_PROG_CC
    1.25 +
    1.26 +# Checks for libraries.
    1.27 +
    1.28 +# Checks for header files.
    1.29 +AC_CHECK_HEADERS([stdlib.h string.h])
    1.30 +
    1.31 +# Checks for typedefs, structures, and compiler characteristics.
    1.32 +AC_CHECK_HEADER_STDBOOL
    1.33 +AC_TYPE_SIZE_T
    1.34 +
    1.35 +# Checks for library functions.
    1.36 +AC_FUNC_MALLOC
    1.37 +AC_FUNC_REALLOC
    1.38 +AC_CHECK_FUNCS([memset regcomp strcasecmp strchr])
    1.39 +
    1.40 +AC_OUTPUT(Makefile src/Makefile)

mercurial