blob: 3ba98fdc15030bda156a07421206f2149bc340e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
Upstream-PR: https://github.com/jmccrohan/lcd4linux/pull/3
From cffb509a8471b26177de0887e5461a408fdb8e35 Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Mon, 20 Jun 2022 17:43:23 -0700
Subject: [PATCH] configure: Use macros earlier
When building with slibtool using the rlibtool symlink the build will
fail because it doesn't find the generated libtool. This is required so
rlibtool can determine if its a shared or static build.
This can be fixed easily by using LT_INIT earlier before AC_OUTPUT.
Generally these should be used near the top of configure.ac.
Gentoo Bug: https://bugs.gentoo.org/783492
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,7 @@
AC_PREREQ(2.59)
AC_INIT([LCD4Linux],[0.11.0-SVN],[lcd4linux-users@lists.sourceforge.net])
+AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([lcd4linux.c])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
@@ -40,6 +41,7 @@ AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
PKG_PROG_PKG_CONFIG
+LT_INIT
# dmalloc
AM_WITH_DMALLOC
@@ -171,6 +173,3 @@ AC_MSG_RESULT(
[ $PLUGINS]
[-----------------------------------------]
)
-
-AC_CONFIG_MACRO_DIR([m4])
-LT_INIT
|