From 8c1d84eb12212f8aac198d0b8043631c50c5b752 Mon Sep 17 00:00:00 2001 From: Pierre Nguyen Tuong Date: Mon, 23 Sep 2002 15:15:50 +0000 Subject: [PATCH] Option de compilation pour les bibliotheques. On peut generer aux choix des bibliotheques statiques, dynamiques, ou les deux, plus la version correspondante des outils qui seront donc lies statiquement ou dynamiquement. Utilisation: ./configure par defaut, bibliotheques statiques ./configure --enable-static --disable-shared bibliotheques statiques ./configure --disable-static --enable-shared bibliotheques dynamique ./configure --enable-shared bibliotheques statiques et dynamiques ./configure --enable-shared --enable-static bibliotheques statiques et dynamiques --- alliance/src/alliance.m4 | 4 ++++ alliance/src/configure.in | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/alliance/src/alliance.m4 b/alliance/src/alliance.m4 index d1d2261a..aa0f9f94 100644 --- a/alliance/src/alliance.m4 +++ b/alliance/src/alliance.m4 @@ -7,6 +7,10 @@ AC_ARG_ENABLE(system64, --enable-system64 enable compilation on 64 bits systems (default is 32 bits), AC_DEFINE(SYSTEM64)) +AC_DISABLE_SHARED +AC_PROG_LIBTOOL +AC_SUBST(LIBTOOL_DEPS) + AC_MSG_CHECKING(for alliance) if test x$alliance_top != x ; then ALLIANCE_CFLAGS="-I$alliance_top/include" diff --git a/alliance/src/configure.in b/alliance/src/configure.in index 702d7d16..30417403 100644 --- a/alliance/src/configure.in +++ b/alliance/src/configure.in @@ -25,7 +25,7 @@ dnl Almost ten years since I wrote this stuff, I just can't dnl believe it dnl Date : 01/02/2002 dnl Author : Frederic Petrot -dnl $Id: configure.in,v 1.27 2002/09/10 17:42:33 pnt Exp $ +dnl $Id: configure.in,v 1.28 2002/09/23 15:15:50 pnt Exp $ dnl dnl AC_INIT(./configure.in) @@ -70,6 +70,10 @@ changequote([,])dnl AC_CONFIG_SUBDIRS($sdirs) AC_SUBST(SUBDIRS) +AC_DISABLE_SHARED +AC_PROG_LIBTOOL +AC_SUBST(LIBTOOL_DEPS) + AC_OUTPUT([ Makefile ])