blob: 1d7704d3bda9a9ef3d546cffac93a9c11cfc3027 (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.71])
AC_INIT([pnmcurve],[0.0.5],[Johannes.Hofmann@gmx.de])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/pnmcurve.c])
AC_CONFIG_HEADERS([config.h])
CPPFLAGS="$CPPFLAGS"
CFLAGS="-g -O2 $CFLAGS"
LDFLAGS="-g $LDFLAGS"
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_LANG([C])
AC_LANG([C++])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_PID_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([strsep strdup])
# Check for gsl
AC_PATH_PROG(GSLCONFIG,gsl-config)
if test "x$GSLCONFIG" = x; then
echo "gsl-config not found"
exit 1
fi
CFLAGS="`$GSLCONFIG --cflags` $CFLAGS"
CXXFLAGS="`$GSLCONFIG --cflags` $CFLAGS"
LIBS="`$GSLCONFIG --libs` $LIBS"
# Check for fltk
AC_PATH_PROG(FLTKCONFIG,fltk-config)
if test "x$FLTKCONFIG" = x; then
echo "fltk-config not found"
exit 1
fi
FLTKCXXFLAGS="`$FLTKCONFIG --cflags` $CXXFLAGS"
FLTKLDFLAGS="`$FLTKCONFIG --ldflags` $LIBS"
AC_SUBST(FLTKLDFLAGS)
AC_SUBST(FLTKCXXFLAGS)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
|