File: configure.ac

package info (click to toggle)
fenix-plugins 0.0.20070803-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 36,452 kB
  • sloc: sh: 8,736; ansic: 3,026; xml: 413; makefile: 221
file content (52 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download | duplicates (7)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

#AC_PREREQ(2.56)
AC_INIT(agua, 1.0)

AC_CONFIG_SRCDIR([agua.c])

AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET

AC_DISABLE_STATIC
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL

AC_PROG_LIBTOOL

AM_MAINTAINER_MODE

echo "You Machine: ${target_cpu} ${target_os}"

AC_ARG_WITH(fenix-prefix,[  --with-fenix-prefix=PFX Prefix where Fenix is installed (optional)],
            fenix_prefix="$withval", fenix_prefix="/opt/Fenix")

CFLAGS="$CFLAGS -I${fenix_prefix}/include -I${fenix_prefix}/fxi/inc -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"

# Check for SDL library
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,:,AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))

# Checks for libraries.
AC_CHECK_LIB([SDL], SDL_Init)
AC_CHECK_LIB(z, gzsetparams,, [AC_MSG_ERROR(zlib library not found)])

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([memory.h stdlib.h])

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT