-
Notifications
You must be signed in to change notification settings - Fork 18
/
configure.ac
77 lines (59 loc) · 1.86 KB
/
configure.ac
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
74
75
76
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([OIP],[0.06],[rian dot shelley at usu dot edu])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([kdtree.h])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
dnl Check for SDL
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
:,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
)
CFLAGS="$CFLAGS $SDL_CFLAGS"
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lSDL':
AC_CHECK_LIB([SDL], [main])
# FIXME: Replace `main' with a function in `-lSDL_image':
AC_CHECK_LIB([SDL_image], [main])
# FIXME: Replace `main' with a function in `-lcryptopp':
AC_CHECK_LIB([cryptopp], [main])
# FIXME: Replace `main' with a function in `-lpcap':
AC_CHECK_LIB([pcap], [main])
AC_CHECK_LIB([fontconfig], [FcInit])
#check for freetype
PKG_CHECK_MODULES([FT2], [freetype2])
#ac_oip_LIBS="$LIBS"
#LIBS="-lcryptopp -lpcap"
if test "$ac_cv_lib_SDL_main" == no
then
AC_MSG_ERROR([the SDL development libraries must be installed])
fi
if test "$ac_cv_lib_SDL_image_main" == no
then
AC_MSG_WARN([if you want to compile oipgui, you need to install the SDL_image development libraries])
fi
if test "$ac_cv_lib_cryptopp_main" == no
then
AC_MSG_ERROR([the cryptopp development libraries must be installed])
fi
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h stdlib.h string.h sys/socket.h sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([atexit gethostbyaddr gethostbyname gettimeofday memset select socket])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT