~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Monty Taylor
  • Date: 2009-07-26 21:02:25 UTC
  • mto: (1093.7.1 captain)
  • mto: This revision was merged to the branch mainline in revision 1101.
  • Revision ID: mordred@inaugust.com-20090726210225-0d0z31s2r3zd7bhx
pandora-buildĀ v0.27

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
dnl with or without modifications, as long as this notice is preserved.
5
5
 
6
6
dnl Which version of the canonical setup we're using
7
 
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.25])
 
7
AC_DEFUN([PANDORA_CANONICAL_VERSION],[0.27])
8
8
 
9
9
AC_DEFUN([PANDORA_FORCE_DEPEND_TRACKING],[
10
10
  dnl Force dependency tracking on for Sun Studio builds
73
73
    AS_IF([test "$GCC" = "yes"], PANDORA_ENSURE_GCC_VERSION)
74
74
  ])
75
75
 
76
 
  dnl Canonicalize the configuration name.
77
 
 
78
 
  AC_DEFINE_UNQUOTED([HOST_VENDOR], ["$host_vendor"],[Vendor of Build System])
79
 
  AC_DEFINE_UNQUOTED([HOST_OS], ["$host_os"], [OS of Build System])
80
 
  AC_DEFINE_UNQUOTED([HOST_CPU], ["$host_cpu"], [CPU of Build System])
81
 
 
82
 
  AC_DEFINE_UNQUOTED([TARGET_VENDOR], ["$target_vendor"],[Vendor of Target System])
83
 
  AC_DEFINE_UNQUOTED([TARGET_OS], ["$target_os"], [OS of Target System])
84
 
  AC_DEFINE_UNQUOTED([TARGET_CPU], ["$target_cpu"], [CPU of Target System])
85
 
 
86
 
 
87
 
  case "$target_os" in
88
 
    *linux*)
89
 
    TARGET_LINUX="true"
90
 
    AC_SUBST(TARGET_LINUX)
91
 
    AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
92
 
      ;;
93
 
    *darwin*)
94
 
      TARGET_OSX="true"
95
 
      AC_SUBST(TARGET_OSX)
96
 
      AC_DEFINE([TARGET_OS_OSX], [1], [Whether we build for OSX])
97
 
      ;;
98
 
    *solaris*)
99
 
      TARGET_SOLARIS="true"
100
 
      AC_SUBST(TARGET_SOLARIS)
101
 
      AC_DEFINE([TARGET_OS_SOLARIS], [1], [Whether we are building for Solaris])
102
 
      ;;
103
 
    *freebsd*)
104
 
      TARGET_FREEBSD="true"
105
 
      AC_SUBST(TARGET_FREEBSD)
106
 
      AC_DEFINE([TARGET_OS_FREEBSD], [1], [Whether we are building for FreeBSD])
107
 
      AC_DEFINE([__APPLE_CC__],[1],[Workaround for bug in FreeBSD headers])
108
 
      ;;
109
 
    *)
110
 
      ;;
111
 
  esac
112
 
 
113
 
 
114
 
  AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
115
 
  AC_CHECK_DECL([__ICC], [INTELCC="yes"], [INTELCC="no"])
116
 
 
117
 
  AS_IF([test "x$INTELCC" = "xyes"], [enable_rpath=no])
 
76
  PANDORA_PLATFORM
118
77
 
119
78
  PANDORA_LIBTOOL
120
79