| 1 |
Author: Helmut Grohne <[email protected]> |
| 2 |
Subject: Patch fixes a bug in blt's configure script which |
| 3 |
makes it FTBFS when the CC variable is exported. |
| 4 |
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136377 |
| 5 |
Last-Modified: Thu, 11 Jun 2026 13:09:16 +0300 |
| 6 |
|
| 7 |
--- a/configure.in |
| 8 |
+++ b/configure.in |
| 9 |
@@ -83,34 +83,20 @@ |
| 10 |
# |
| 11 |
# ----------------------------------------------------------------------- |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
# |
| 16 |
# CC search order |
| 17 |
# |
| 18 |
# 1. command line (--with-cc) |
| 19 |
# 2. environment variable ($CC) |
| 20 |
# 3. cached variable ($blt_cv_prog_cc) |
| 21 |
|
| 22 |
|
| 23 |
+# Discover using AC_PROG_CC |
| 24 |
# |
| 25 |
|
| 26 |
|
| 27 |
if test "x${blt_with_cc}" != "x" ; then |
| 28 |
CC=${blt_with_cc} |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
fi |
| 40 |
|
| 41 |
|
| 42 |
+if test "x$CC" = x && test "x${blt_cv_prog_cc}" != "x" ; then |
| 43 |
+ CC=${blt_cv_prog_cc} |
| 44 |
fi |
| 45 |
|
| 46 |
case $target in |
| 47 |
@@ -121,7 +107,7 @@ |
| 48 |
;; |
| 49 |
esac |
| 50 |
|
| 51 |
|
| 52 |
+AC_PROG_CC |
| 53 |
|
| 54 |
unset blt_cv_prog_cc |
| 55 |
AC_CACHE_VAL(blt_cv_prog_cc, blt_cv_prog_cc=$CC) |