~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_drizzle_build.m4

  • Committer: Brian Aker
  • Date: 2010-06-28 16:17:36 UTC
  • mfrom: (1637.4.1 drizzle)
  • Revision ID: brian@gaz-20100628161736-eormhb2mnd551i2h
Merge unused

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
 
dnl This file is free software; Sun Microsystems, Inc.
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
3
3
dnl gives unlimited permission to copy and/or distribute it,
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
9
9
 
10
10
AC_DEFUN([PANDORA_DRIZZLE_BUILD],[
11
11
 
 
12
  PANDORA_HAVE_CXX_UNORDERED
 
13
 
 
14
  PANDORA_CXX_CSTDINT
 
15
  PANDORA_CXX_CINTTYPES
 
16
 
12
17
  AC_STRUCT_TM
13
18
 
14
19
  AC_FUNC_ALLOCA
33
38
  AC_CHECK_HEADERS(sys/types.h sys/fpu.h fpu_control.h ieeefp.h)
34
39
  AC_CHECK_HEADERS(select.h sys/select.h)
35
40
  AC_CHECK_HEADERS(utime.h sys/utime.h )
36
 
  AC_CHECK_HEADERS(synch.h sys/mman.h)
 
41
  AC_CHECK_HEADERS(synch.h sys/mman.h sys/socket.h)
37
42
  AC_CHECK_HEADERS(sched.h)
38
43
  AC_CHECK_HEADERS(sys/prctl.h)
39
44
  AC_CHECK_HEADERS(execinfo.h)
63
68
  ]])
64
69
  AC_CHECK_TYPES([uint, ulong])
65
70
 
66
 
  PANDORA_REQUIRE_BISON
67
 
 
68
71
  PANDORA_CXX_DEMANGLE
69
72
  PANDORA_REQUIRE_BOOST([1.38])
70
73
  PANDORA_REQUIRE_BOOST_PROGRAM_OPTIONS
71
 
  PANDORA_REQUIRE_BOOST_THREAD
72
 
  PANDORA_REQUIRE_BOOST_REGEX
73
 
  PANDORA_REQUIRE_BOOST_DATE_TIME
74
 
  PANDORA_REQUIRE_BOOST_FILESYSTEM
75
 
  PANDORA_REQUIRE_BOOST_IOSTREAMS
76
 
 
 
74
 
 
75
 
 
76
  AH_TOP([
 
77
#ifndef __CONFIG_H__
 
78
#define __CONFIG_H__
 
79
 
 
80
#include "config/top.h"
 
81
])
 
82
  mkdir -p config
 
83
  cat > config/top.h.stamp <<EOF_CONFIG_TOP
 
84
 
 
85
#if defined(i386) && !defined(__i386__)
 
86
#define __i386__
 
87
#endif
 
88
 
 
89
#if defined(_FILE_OFFSET_BITS)
 
90
# undef _FILE_OFFSET_BITS
 
91
#endif
 
92
EOF_CONFIG_TOP
 
93
  diff config/top.h.stamp config/top.h >/dev/null 2>&1 || mv config/top.h.stamp config/top.h
 
94
  rm -f config/top.h.stamp
 
95
 
 
96
 
 
97
  AH_BOTTOM([
 
98
#if defined(__cplusplus)
 
99
# include CSTDINT_H
 
100
# include CINTTYPES_H
 
101
#else
 
102
# include <stdint.h>
 
103
# include <inttypes.h>
 
104
#endif
 
105
 
 
106
#if !defined(HAVE_ULONG) && !defined(__USE_MISC)
 
107
typedef unsigned long int ulong;
 
108
#endif
 
109
 
 
110
#endif /* __CONFIG_H__ */
 
111
  ])
77
112
])