Debian Codegraph @

debian/patches/2001_configures_cross-compilation.diff

raw
1 Description: Allow a more permissive gcc|g++ check for cross compilation.
2 Compiler name may have prefix|suffix when cross compiling.
3 Author: Agustin Martin <[email protected]> adapted from original version by Helmut Grohne.
4 Bug-Debian: http://bugs.debian.org/1027405
5 Forwarded:
6
7 --- a/configure.in
8 +++ b/configure.in
9 @@ -416,9 +416,11 @@ fi
10 AC_SUBST(MY_GETOPT_O)
11 AC_SUBST(MY_GETOPT_SO_O)
12
13 -if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
14 - REG_CHECK_GCC_VERSION_SCRIPT
15 -fi
16 +case "$ac_cv_prog_CC" in
17 + *gcc*|*g++*)
18 + REG_CHECK_GCC_VERSION_SCRIPT
19 + ;;
20 +esac
21
22 dnl enable_posix_threads="yes"
23 REG_CHECK_POSIX_THREADS
24 --- a/configure
25 +++ b/configure
26 @@ -6342,7 +6342,8 @@ fi
27
28
29
30 -if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then
31 +case "$ac_cv_prog_CC" in
32 + *gcc*|*g++*)
33
34 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands --version-script" >&5
35 $as_echo_n "checking whether gcc understands --version-script... " >&6; }
36 @@ -6390,7 +6391,8 @@ fi
37 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5
38 $as_echo "$mh_cv_version_script" >&6; }
39
40 -fi
41 + ;;
42 +esac
43
44
45 MH_MT_LIBS=""