1085.1.4
by Monty Taylor
pandora-build v1 |
1 |
dnl Copyright (C) 2009 Sun Microsystems |
2 |
dnl This file is free software; Sun Microsystems |
|
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 |
||
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
6 |
AC_DEFUN([PANDORA_LIBTOOL],[ |
1237.10.6
by Monty Taylor
Disabled building things twice by default. This will come in also via pandora-build- but it really makes the build take a long time. |
7 |
AC_REQUIRE([AC_DISABLE_STATIC]) |
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
8 |
AC_REQUIRE([AC_PROG_LIBTOOL]) |
1192.3.56
by Monty Taylor
pandora-build v0.81 - disable static building and also throw an error on Sun Studio and old libtool. |
9 |
m4_ifndef([LT_PREREQ],[ |
10 |
pandora_have_old_libtool=yes
|
|
11 |
],[ |
|
12 |
pandora_have_old_libtool=no
|
|
13 |
]) |
|
14 |
AS_IF([test "$SUNCC" = "yes" -a "${pandora_have_old_libtool}" = "yes"],[ |
|
15 |
AC_MSG_ERROR([Building ${PACKAGE} with Sun Studio requires at least libtool 2.2]) |
|
16 |
]) |
|
17 |
||
1085.1.3
by Monty Taylor
Split out warnings - start using the pandora build system. |
18 |
dnl By requiring AC_PROG_LIBTOOL, we should force the macro system to read |
19 |
dnl libtool.m4, where in 2.2 AC_PROG_LIBTOOL is an alias for LT_INIT |
|
20 |
dnl Then, if we're on 2.2, we should have LT_LANG, so we'll call it. |
|
21 |
m4_ifdef([LT_LANG],[ |
|
22 |
LT_LANG(C)
|
|
23 |
LT_LANG(C++)
|
|
24 |
]) |
|
25 |
]) |