File: configure.ac

package info (click to toggle)
concalc 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 648 kB
  • ctags: 289
  • sloc: cpp: 7,898; sh: 790; makefile: 15
file content (38 lines) | stat: -rw-r--r-- 952 bytes parent folder | download | duplicates (4)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.50)
AC_INIT(concalc, 0.9.0)
AM_INIT_AUTOMAKE(concalc, 0.9.0)
AC_CONFIG_SRCDIR([src/concalc.cpp])
AC_CONFIG_HEADER([config.h])



# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_HEADER_TIME

#Long double check
AC_CHECK_DECL(atanhl,
  [AC_CHECK_LIB(m,atanhl,,[CFLAGS="$CFLAGS -DNO_LONG_DOUBLE"] [CPPFLAGS="$CPPFLAGS -DNO_LONG_DOUBLE"])], [CPPFLAGS="$CPPFLAGS -DNO_LONG_DOUBLE"],[#include <math.h>])


# Checks for library functions.
AC_FUNC_LSTAT
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_CHECK_FUNCS([gettimeofday mkdir pow])

LDFLAGS="$LDFLAGS -lm"
AC_OUTPUT([Makefile src/Makefile man/Makefile])