configure.ac: call $CC not gcc

This commit is contained in:
Gerhard Rieger 2023-11-12 18:29:33 +01:00
parent 47bb8fff64
commit 343256752a
2 changed files with 5 additions and 1 deletions

View file

@ -256,6 +256,10 @@ Corrections:
Fixed the end-close option, it just did not work. Fixed the end-close option, it just did not work.
In configure.ac was a direct call to gcc instead of $CC which broke
cross compiling.
Thanks to Fergus Dall for sending a patch.
Coding: Coding:
Introduced groups_t instead of uint32_t, for more flexibility. Introduced groups_t instead of uint32_t, for more flexibility.

View file

@ -16,7 +16,7 @@ fi
# find out which defines gcc passes to cpp, so makedepend does not run into # find out which defines gcc passes to cpp, so makedepend does not run into
# (harmless) "error architecture not supported" # (harmless) "error architecture not supported"
AC_MSG_CHECKING(which defines needed for makedepend) AC_MSG_CHECKING(which defines needed for makedepend)
__cpp_defs=`gcc -v -E - </dev/null 2>&1 |$FGREP -e '/cpp ' -e '/cc1 '` __cpp_defs=`$CC -v -E - </dev/null 2>&1 |$FGREP -e '/cpp ' -e '/cc1 '`
SYSDEFS=`aa=; for a in $__cpp_defs SYSDEFS=`aa=; for a in $__cpp_defs
do case "$a" in -D*) aa="$aa $a";; esac; done; echo "$aa"` do case "$a" in -D*) aa="$aa $a";; esac; done; echo "$aa"`
AC_SUBST(SYSDEFS) AC_SUBST(SYSDEFS)