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. |
|
1085.1.4
by Monty Taylor
pandora-build v1 |
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 |
||
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
6 |
dnl --------------------------------------------------------------------------- |
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
7 |
dnl Macro: PANDORA_64BIT |
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
8 |
dnl --------------------------------------------------------------------------- |
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
9 |
AC_DEFUN([PANDORA_64BIT],[ |
1093.4.1
by Monty Taylor
pandora-build v0.22 - fixes solaris build. |
10 |
AC_BEFORE([$0], [AC_LIB_PREFIX]) |
11 |
||
1093.9.2
by Monty Taylor
pandora-build v0.35 |
12 |
AC_ARG_ENABLE([64bit], |
13 |
[AS_HELP_STRING([--disable-64bit], |
|
1090.3.2
by Monty Taylor
pandora-build v0.10 |
14 |
[Build 64 bit binary @<:@default=on@:>@])], |
1093.9.2
by Monty Taylor
pandora-build v0.35 |
15 |
[ac_enable_64bit="$enableval"], |
16 |
[ac_enable_64bit="yes"]) |
|
1090.3.2
by Monty Taylor
pandora-build v0.10 |
17 |
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
18 |
AC_CHECK_PROGS(ISAINFO, [isainfo], [no]) |
19 |
AS_IF([test "x$ISAINFO" != "xno"], |
|
20 |
[isainfo_b=`${ISAINFO} -b`], |
|
21 |
[isainfo_b="x"]) |
|
22 |
||
2221.1.2
by Monty Taylor
Port in pandora changes from libmemcached. |
23 |
AS_IF([test "$isainfo_b" != "x" -a "$isainfo_b" != "32"],[ |
1090.3.2
by Monty Taylor
pandora-build v0.10 |
24 |
|
2221.1.2
by Monty Taylor
Port in pandora changes from libmemcached. |
25 |
isainfo_k=`${ISAINFO} -k`
|
1126.6.1
by Monty Taylor
pandora-build v0.58 |
26 |
DTRACEFLAGS="${DTRACEFLAGS} -${isainfo_b}"
|
1090.3.2
by Monty Taylor
pandora-build v0.10 |
27 |
|
28 |
AS_IF([test "x$ac_enable_64bit" = "xyes"],[ |
|
1093.7.3
by Monty Taylor
pandora-build v0.32 |
29 |
|
30 |
AS_IF([test "x${ac_cv_env_LDFLAGS_set}" = "x"],[ |
|
31 |
LDFLAGS="-L/usr/local/lib/${isainfo_k} ${LDFLAGS}"
|
|
32 |
]) |
|
33 |
||
1090.3.2
by Monty Taylor
pandora-build v0.10 |
34 |
AS_IF([test "x$libdir" = "x\${exec_prefix}/lib"],[ |
2221.1.2
by Monty Taylor
Port in pandora changes from libmemcached. |
35 |
dnl The user hasn't overridden the default libdir, so we'll
|
1090.3.2
by Monty Taylor
pandora-build v0.10 |
36 |
dnl the dir suffix to match solaris 32/64-bit policy
|
37 |
libdir="${libdir}/${isainfo_k}"
|
|
38 |
]) |
|
39 |
||
1093.9.6
by Monty Taylor
We actually have to set CFLAGS/CXXFLAGS. Suck. |
40 |
AS_IF([test "x${ac_cv_env_CFLAGS_set}" = "x"],[ |
41 |
CFLAGS="${CFLAGS} -m64"
|
|
1093.9.7
by Monty Taylor
This is a pile of garbage. |
42 |
ac_cv_env_CFLAGS_set=set
|
43 |
ac_cv_env_CFLAGS_value='-m64'
|
|
1093.9.6
by Monty Taylor
We actually have to set CFLAGS/CXXFLAGS. Suck. |
44 |
]) |
45 |
AS_IF([test "x${ac_cv_env_CXXFLAGS_set}" = "x"],[ |
|
46 |
CXXFLAGS="${CXXFLAGS} -m64"
|
|
1093.9.7
by Monty Taylor
This is a pile of garbage. |
47 |
ac_cv_env_CXXFLAGS_set=set
|
48 |
ac_cv_env_CXXFLAGS_value='-m64'
|
|
1093.9.6
by Monty Taylor
We actually have to set CFLAGS/CXXFLAGS. Suck. |
49 |
]) |
50 |
||
1090.3.2
by Monty Taylor
pandora-build v0.10 |
51 |
AS_IF([test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes"],[ |
52 |
AM_CFLAGS="-xmemalign=8s ${AM_CFLAGS}"
|
|
53 |
AM_CXXFLAGS="-xmemalign=8s ${AM_CXXFLAGS}"
|
|
54 |
]) |
|
55 |
]) |
|
56 |
]) |
|
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
57 |
]) |
58 |
dnl --------------------------------------------------------------------------- |
|
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
59 |
dnl End Macro: PANDORA_64BIT |
1081.1.1
by Monty Taylor
Whole boat-load of build fixes. |
60 |
dnl --------------------------------------------------------------------------- |