Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chpock committed Jul 7, 2024
1 parent 6bd45d2 commit ffc8f4f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
39 changes: 39 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -8837,6 +8837,45 @@ if test ${USECCRYPT} = yes; then
done


fi
# Include CpuArch.c only if we are not using c-lzma. Otherwise, this file
# will be included when processing the lzma option.
if test ${USECPAGES} != yes || test ${USELZMA} != yes; then

vars="7zip/C/CpuArch.c"
for i in $vars; do
case $i in
\$*)
# allow $-var names
PKG_SOURCES="$PKG_SOURCES $i"
PKG_OBJECTS="$PKG_OBJECTS $i"
;;
*)
# check for existence - allows for generic/win/unix VPATH
# To add more dirs here (like 'src'), you have to update VPATH
# in Makefile.in as well
if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \
-a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \
-a ! -f "${srcdir}/macosx/$i" \
; then
as_fn_error $? "could not find source file '$i'" "$LINENO" 5
fi
PKG_SOURCES="$PKG_SOURCES $i"
# this assumes it is in a VPATH dir
i=`basename $i`
# handle user calling this before or after TEA_SETUP_COMPILER
if test x"${OBJEXT}" != x ; then
j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}"
else
j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}"
fi
PKG_OBJECTS="$PKG_OBJECTS $j"
;;
esac
done



fi
else
COOKFS_PKGCONFIG_USECCRYPT=0
Expand Down
5 changes: 5 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ if test ${USECCRYPT} = yes; then
if test "${TEA_PLATFORM}" = "windows" ; then
TEA_ADD_LIBS([-lbcrypt])
fi
# Include CpuArch.c only if we are not using c-lzma. Otherwise, this file
# will be included when processing the lzma option.
if test ${USECPAGES} != yes || test ${USELZMA} != yes; then
TEA_ADD_SOURCES([7zip/C/CpuArch.c])
fi
else
COOKFS_PKGCONFIG_USECCRYPT=0
COOKFS_PKGCONFIG_FEATURE_CRYPT=0
Expand Down

0 comments on commit ffc8f4f

Please sign in to comment.