File: configure.in

package info (click to toggle)
koala 0.3.2a-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,036 kB
  • ctags: 582
  • sloc: ansic: 29,449; makefile: 1,666; xml: 11
file content (82 lines) | stat: -rw-r--r-- 2,362 bytes parent folder | download | duplicates (3)
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
77
78
79
80
81
82
dnl @(#) configure.in 1.12 @(#)
dnl Process this file with autoconf to generate the configure script
dnl 	Copyright (c) 1999 First Step Internet Services, Inc.
dnl   This program is protected by the BSD license

dnl Setup
AC_INIT(BSD)
AC_CONFIG_HEADER(include/autoconf.h:include/autoconf.h.in)

dnl Program Specifications
AC_PROG_CC
AC_PROG_CC_C_O

dnl Library stuff
AC_CHECK_LIB(pthread, pthread_create)
AC_CHECK_LIB(dl, dlopen)

dnl Header Files
AC_HEADER_STDC
AC_CHECK_HEADERS(stdio.h)
AC_CHECK_HEADERS(getopt.h)
AC_CHECK_HEADERS(sys/time.h)
AC_CHECK_HEADERS(unistd.h)
AC_DECL_SYS_SIGLIST
AC_CHECK_HEADERS(sys/socket.h)
AC_CHECK_HEADERS(netinet/in.h)
AC_CHECK_HEADERS(arpa/inet.h)
AC_CHECK_HEADERS(netdb.h ctype.h)
AC_CHECK_HEADERS(fcntl.h errno.h)
AC_CHECK_HEADERS(signal.h)
AC_CHECK_HEADERS(pthread.h)
AC_CHECK_HEADERS(semaphore.h)

dnl Typedefs

dnl Structures
AC_HEADER_TIME

dnl Compiler Characteristics
AC_C_CONST
AC_C_INLINE

dnl Library Funcs
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(strchr memcpy)

dnl System Services

dnl "package arguments"

dnl Optional "features"
dnl AC_SUBST(enable_buffer)
dnl enable_buffer=linear
dnl AC_ARG_ENABLE(buffer, [--enable-buffer=linear    Select type of buffer.  Linear buffers are the                                  default.  Buffer types:  linear], AC_DEFINE_UNQUOTED(KOALABUFFERTYPE, $enable_buffer), AC_DEFINE(KOALABUFFERTYPE, linear))

AC_SUBST(enable_thread)
enable_thread=0
AC_ARG_ENABLE(thread, [--enable-thread           Enable multi-threading code.  Disabled by default.], AC_DEFINE_UNQUOTED(MULTITHREAD, $enable_thread), AC_DEFINE(MULTITHREAD, 0))

dnl Debug
AC_SUBST(enable_debug)
AC_ARG_ENABLE(debug, [--enable-debug           Enable debugging code.  Disabled by default.], AC_DEFINE(DEBUG, 1), AC_DEFINE(DEBUG, 0))

dnl IPv6
AC_SUBST(enable_afindep)
AC_ARG_ENABLE(ipv6, [--disable-afindep         Disable AF independant code.  Enabled by default.], AC_DEFINE(AFINDEP, 0), AC_DEFINE(AFINDEP, 1))

dnl Locate the gnome-xml (libxml) library
AC_CHECK_PROG(XML_CONFIG, xml-config, xml-config)
if test "$XML_CONFIG" != ""
then
  XML_LIBS="`$XML_CONFIG --libs`"
  XML_CFLAGS="`$XML_CONFIG --cflags`"
else
  AC_MSG_ERROR(Can't find gnome-xml library.)
fi
AC_SUBST(XML_LIBS)
AC_SUBST(XML_CFLAGS)

dnl Output Setings
AC_REVISION(nitehawk@localhost.1ststep.net|configure.in|20000731004013|50924)dnl
AC_OUTPUT(Makefile)