Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

birq / configure.ac @ 509aa3e7

History | View | Annotate | Download (1.36 KB)

1
#                                               -*- Autoconf -*-
2
# Process this file with autoconf to produce a configure script.
3
m4_define([MAJOR_VERSION], 1)
4
m4_define([MINOR_VERSION], 4)
5
m4_define([MICRO_VERSION], 0)
6

    
7
AC_PREREQ(2.59)
8
AC_INIT([birq],
9
        [MAJOR_VERSION.MINOR_VERSION.MICRO_VERSION],
10
        [serj.kalichev at gmail dot com])
11

    
12
AC_CONFIG_AUX_DIR([.])
13
AC_CONFIG_HEADERS([config.h])
14
AM_INIT_AUTOMAKE(subdir-objects)
15

    
16
# Checks for programs.
17
AC_PROG_CC
18
AM_PROG_CC_C_O
19
AC_PROG_RANLIB
20

    
21
# needed to handle 64-bit architecture
22
AC_CHECK_SIZEOF(int)
23
AC_CHECK_SIZEOF(long)
24
AC_CHECK_SIZEOF(size_t)
25

    
26
################################
27
# Deal with debugging options
28
################################
29
AC_ARG_ENABLE(debug,
30
              [AS_HELP_STRING([--enable-debug],
31
                              [Turn on debugging including asserts [default=no]])],
32
              [],
33
              [enable_debug=no])
34
AM_CONDITIONAL(DEBUG,test x$enable_debug = xyes)
35

    
36
################################
37
# Check for getopt_long()
38
################################
39
AC_CHECK_HEADERS(getopt.h, [],
40
    AC_MSG_WARN([getopt.h not found: only short parameters can be used on command line]))
41

    
42
################################
43
# Check for locale.h
44
################################
45
AC_CHECK_HEADERS(locale.h, [],
46
    AC_MSG_WARN([locale.h not found: the locales is not supported]))
47

    
48
AC_CONFIG_FILES(Makefile)
49
AC_OUTPUT