File: configure.ac

package info (click to toggle)
tenmado 0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,208 kB
  • sloc: ansic: 22,906; sh: 1,072; yacc: 321; makefile: 300; lex: 170
file content (73 lines) | stat: -rw-r--r-- 1,698 bytes parent folder | download | duplicates (5)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
dnl configure.ac for tenmado
dnl Process this file with autoconf to produce a configure script.
dnl autoconf 2.68 or later is required
# $Id: configure.ac,v 1.54 2012/01/31 04:18:35 oohara Exp $
AC_INIT([tenmado], [0.10], [oohara@libra.interq.or.jp])
AC_PREREQ([2.68])
AC_REVISION([$Revision: 1.54 $])
AM_INIT_AUTOMAKE([foreign tar-ustar])
AC_CONFIG_SRCDIR([main.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
# Makefile.in will use awk
AC_PROG_AWK
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AM_PROG_LEX
AC_PROG_YACC

# Checks for libraries.
AC_CHECK_LIB([m], [sin])

# the libdb3 support is obsolete
# don't define HAVE_LIBDB3 or HAVE_LIBDB_3

AC_ARG_WITH([posix],
  AC_HELP_STRING([--without-posix],
                 [don't use (most of) POSIX features (DANGEROUS)]),
  ,
  [with_posix=yes])

if test "x$with_posix" = "xno"
then
  AC_DEFINE([NOT_HAVE_POSIX], [1],
            [Define to 1 if your system does not have POSIX features.])
fi

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([stddef.h])
AC_CHECK_HEADERS([limits.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_UID_T
AC_STRUCT_TM
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([atexit])
AC_CHECK_FUNCS([sqrt])
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([strtol])
AC_CHECK_FUNCS([strerror])

AC_SUBST([LIBS], ["-lSDL_image `sdl-config --libs` $LIBS"])

AC_CONFIG_FILES([Makefile
happy-L/Makefile
happy-L/default/Makefile
happy-L/image/Makefile
libbac/Makefile
libtenm/Makefile
save/Makefile])
AC_OUTPUT