Debian Codegraph @

debian/patches/cc.patch

raw symbols SCIP
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 -BLT_ENV_CC=$CC
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 -# 4. check for program (AC_PROG_CC)
22 -# 4. default to cc
23 +# Discover using AC_PROG_CC
24 #
25
26 -AC_MSG_CHECKING([which C compiler])
27 if test "x${blt_with_cc}" != "x" ; then
28 CC=${blt_with_cc}
29 - unset ac_cv_prog_CPP
30 - unset ac_cv_prog_CC
31 -elif test "x${BLT_ENV_CC}" != "x" ; then
32 - unset ac_cv_prog_CPP
33 - unset ac_cv_prog_CC
34 -elif test "x${blt_cv_prog_cc}" != "x" ; then
35 - CC=${blt_cv_prog_cc}
36 - unset ac_cv_prog_CC
37 -else
38 - AC_PROG_CC
39 fi
40 -if test "x${CC}" = "x" ; then
41 - CC=cc
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 -AC_MSG_RESULT([$CC])
52 +AC_PROG_CC
53
54 unset blt_cv_prog_cc
55 AC_CACHE_VAL(blt_cv_prog_cc, blt_cv_prog_cc=$CC)