~drizzle-trunk/drizzle/development

1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
dnl This file is free software; Sun Microsystems, Inc.
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
5
6
dnl Check for all of the headers and libs that Drizzle needs. We check all
7
dnl of these for plugins too, to ensure that all of the appropriate defines
8
dnl are set.
9
10
AC_DEFUN([PANDORA_DRIZZLE_BUILD],[
11
1192.3.43 by Monty Taylor
Removed many, many checks for functions that do not need to be checked.
12
  AC_STRUCT_TM
13
14
  AC_FUNC_ALLOCA
15
  AC_FUNC_UTIME_NULL
16
  AC_FUNC_VPRINTF
17
18
  PANDORA_WORKING_FDATASYNC
19
20
  AC_CHECK_FUNCS(\
21
    gethrtime \
22
    setupterm \
23
    backtrace \
24
    backtrace_symbols \
25
    backtrace_symbols_fd)
26
27
  AC_HEADER_STAT
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
28
  AC_HEADER_DIRENT
29
  AC_HEADER_STDC
30
  AC_HEADER_SYS_WAIT
31
  AC_HEADER_STDBOOL
1192.3.43 by Monty Taylor
Removed many, many checks for functions that do not need to be checked.
32
1192.3.65 by Monty Taylor
Fixed OSX.
33
  AC_CHECK_HEADERS(sys/types.h sys/fpu.h fpu_control.h ieeefp.h)
1192.3.44 by Monty Taylor
Removed checks for things that are either defined ISO/POSIX standard, or that
34
  AC_CHECK_HEADERS(select.h sys/select.h)
35
  AC_CHECK_HEADERS(utime.h sys/utime.h )
1720.1.5 by Monty Taylor
Added libdrizzle to the tree.
36
  AC_CHECK_HEADERS(synch.h sys/mman.h)
1192.3.44 by Monty Taylor
Removed checks for things that are either defined ISO/POSIX standard, or that
37
  AC_CHECK_HEADERS(sched.h)
38
  AC_CHECK_HEADERS(sys/prctl.h)
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
39
  AC_CHECK_HEADERS(execinfo.h)
1192.3.44 by Monty Taylor
Removed checks for things that are either defined ISO/POSIX standard, or that
40
  AC_CHECK_HEADERS(locale.h)
41
  AC_CHECK_HEADERS(termcap.h termio.h termios.h asm/termbits.h)
42
  AC_CHECK_HEADERS(paths.h)
1192.3.43 by Monty Taylor
Removed many, many checks for functions that do not need to be checked.
43
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
44
  
45
  #--------------------------------------------------------------------
46
  # Check for system libraries. Adds the library to $LIBS
47
  # and defines HAVE_LIBM etc
48
  #--------------------------------------------------------------------
49
  
1192.3.46 by Monty Taylor
pandora-build v0.76
50
    # For the sched_yield() function on Solaris
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
51
  AC_CHECK_FUNC(sched_yield, [],
52
    [AC_CHECK_LIB(posix4, [sched_yield],
53
      [AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield function]) LIBS="$LIBS -lposix4"])])
54
  
55
  AS_IF([test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"],[
56
    AC_CHECK_FUNC(gtty, [], [AC_CHECK_LIB(compat, gtty)])
57
  ])
58
  
1192.3.43 by Monty Taylor
Removed many, many checks for functions that do not need to be checked.
59
  AC_CHECK_HEADERS([curses.h term.h],[],[],[[
60
    #ifdef HAVE_CURSES_H
61
    # include <curses.h>
62
    #endif
63
  ]])
1192.3.65 by Monty Taylor
Fixed OSX.
64
  AC_CHECK_TYPES([uint, ulong])
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
65
1823.5.1 by Monty Taylor
Updated pandora-build files to version 0.157
66
  PANDORA_REQUIRE_BISON
67
1192.3.46 by Monty Taylor
pandora-build v0.76
68
  PANDORA_CXX_DEMANGLE
1579.2.2 by Monty Taylor
Updated pandora-build files to version 0.131
69
  PANDORA_REQUIRE_BOOST([1.38])
1491.5.2 by Monty Taylor
Added build checking requiring libboost_program_options
70
  PANDORA_REQUIRE_BOOST_PROGRAM_OPTIONS
1688.1.3 by Brian Aker
Missing requirement
71
  PANDORA_REQUIRE_BOOST_THREAD
1751.4.2 by Andrew Hutchings
Switch to using boost::regex instead of pcre
72
  PANDORA_REQUIRE_BOOST_REGEX
1751.4.9 by Andrew Hutchings
Rip out internal namespace dependancy and add boost::date_time
73
  PANDORA_REQUIRE_BOOST_DATE_TIME
1777.1.1 by Andrew Hutchings
Fix pandora linking requirements for boost filesystem and make it required.
74
  PANDORA_REQUIRE_BOOST_FILESYSTEM
1909.5.1 by Andrew Hutchings
Re-write of linebuffer to stop buffer overrrun and hopefully improve performance
75
  PANDORA_REQUIRE_BOOST_IOSTREAMS
1683.1.4 by Joseph Daly
add line back that was merged out
76
2244.1.1 by Monty Taylor
Split libdrizzle into 1.0 and 2.0. Applied the C++ changes to 2.0 branch.
77
  LIBDRIZZLE_CPPFLAGS="-I\${top_builddir}/libdrizzle-2.0 -I\${top_srcdir}/libdrizzle-2.0"
78
  OLDLIBDRIZZLE_CPPFLAGS="-I\${top_builddir}/libdrizzle-1.0 -I\${top_srcdir}/libdrizzle-1.0"
79
  AC_SUBST([LIBDRIZZLE_CPPFLAGS])
80
  AC_SUBST([OLDLIBDRIZZLE_CPPFLAGS])
81
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
82
])