[pacman-dev] [PATCH] conditional build of pacman.static
Jürgen Hötzel
juergen at hoetzel.info
Sun Dec 24 20:35:25 EST 2006
Hi,
#1 from TODO.autoconf
Jürgen
-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /home/cvs-pacman/pacman-lib/configure.ac,v
retrieving revision 1.20
diff -u -r1.20 configure.ac
--- configure.ac 22 Dec 2006 19:38:55 -0000 1.20
+++ configure.ac 25 Dec 2006 01:23:51 -0000
@@ -43,7 +43,8 @@
AC_PROG_INSTALL
AC_CHECK_FUNCS([strverscmp])
AM_PROG_LIBTOOL
-
+AM_CONDITIONAL(LINKSTATIC, test "$enable_static" = "yes")
+
dnl Humor lowers blood pressure
AC_MSG_CHECKING(your blood pressure)
AC_MSG_RESULT([a bit high, but we can proceed])
Index: src/pacman/Makefile.am
===================================================================
RCS file: /home/cvs-pacman/pacman-lib/src/pacman/Makefile.am,v
retrieving revision 1.8
diff -u -r1.8 Makefile.am
--- src/pacman/Makefile.am 20 Nov 2006 09:10:24 -0000 1.8
+++ src/pacman/Makefile.am 25 Dec 2006 01:23:51 -0000
@@ -1,4 +1,8 @@
-bin_PROGRAMS = pacman pacman.static
+bin_PROGRAMS = pacman
+
+if LINKSTATIC
+bin_PROGRAMS += pacman.static
+endif
SUBDIRS = po
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20061225/e9ef195e/attachment.pgp>
More information about the pacman-dev
mailing list