Skip to content

Commit

Permalink
Sync up with current libcups, drop pdfio submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 2, 2023
1 parent 2454d48 commit 7e63196
Show file tree
Hide file tree
Showing 27 changed files with 79 additions and 8,724 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/tools/ipp3dprinter
/tools/ippdoclint
/tools/ippproxy
/tools/ipptransform
/tools/ipptransform3d
/vcnet/.vs
/vcnet/packages
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "libcups"]
path = libcups
url = https://github.com/OpenPrinting/libcups.git
[submodule "pdfio"]
path = pdfio
url = https://github.com/michaelrsweet/pdfio.git
2 changes: 1 addition & 1 deletion Makedefs.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ CPPFLAGS = -I.. -I../libcups -I../pdfio @CPPFLAGS@
CSFLAGS = -s "$(CODESIGN_IDENTITY)" @CSFLAGS@ --timestamp
INSTALL = @INSTALL@
LDFLAGS = @LDFLAGS@ $(OPTIM)
LIBS = ../pdfio/libpdfio.a -L../libcups/cups `PKG_CONFIG_PATH=../libcups pkg-config --libs cups3` @LIBS@ -lm
LIBS = -L../libcups/cups `PKG_CONFIG_PATH=../libcups pkg-config --libs cups3` @LIBS@
OPTIM = @OPTIM@
WARNINGS = @WARNINGS@

Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Top-level Makefile for IPP sample implementations.
#
# Copyright © 2014-2022 by the Printer Working Group.
# Copyright © 2014-2023 by the Printer Working Group.
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
Expand All @@ -14,7 +14,6 @@ include Makedefs
DIRS = \
libcups/cups \
libcups/tools \
pdfio \
server \
tools

Expand Down
260 changes: 63 additions & 197 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,6 @@ CURAENGINE
IPPTRANSFORM3D_MAN
IPPTRANSFORM3D_HTML
IPPTRANSFORM3D_BIN
PDFTOPPM
LN
RMDIR
RM
Expand Down Expand Up @@ -724,7 +723,6 @@ SHELL'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_pdfrip
enable_pam
enable_debug
enable_maintainer
Expand Down Expand Up @@ -1368,8 +1366,6 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-pdfrip=... set PDF RIP to use (auto, coregraphics, pdftoppm,
none)
--with-sanitizer build with address, leak, memory, thread, or
undefined sanitizer, default=no
--with-ldflags=... Specify additional LDFLAGS
Expand Down Expand Up @@ -1504,39 +1500,6 @@ fi
} # ac_fn_c_try_compile
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
printf %s "(cached) " >&6
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
eval "$3=yes"
else $as_nop
eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
} # ac_fn_c_check_header_compile
# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
Expand Down Expand Up @@ -1583,6 +1546,39 @@ fi
as_fn_set_status $ac_retval
} # ac_fn_c_try_link
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
printf %s "(cached) " >&6
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
eval "$3=yes"
else $as_nop
eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
eval ac_res=\$$3
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile
ac_configure_args_raw=
for ac_arg
do
Expand Down Expand Up @@ -3710,166 +3706,6 @@ fi



# Check whether --with-pdfrip was given.
if test ${with_pdfrip+y}
then :
withval=$with_pdfrip;
fi
if test "x$with_pdfrip" = x -o "x$with_pdfrip" = xauto
then :
case $host_os_name in #(
darwin*) :
use_pdfrip=coregraphics
;; #(
*) :
use_pdfrip=pdftoppm
;; #(
*) :
;;
esac
else $as_nop
use_pdfrip="$with_pdfrip"
fi
ac_header= ac_cache=
for ac_item in $ac_header_c_list
do
if test $ac_cache; then
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
printf "%s\n" "#define $ac_item 1" >> confdefs.h
fi
ac_header= ac_cache=
elif test $ac_header; then
ac_cache=$ac_item
else
ac_header=$ac_item
fi
done
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
fi
case "$use_pdfrip" in #(
coregraphics) :
SAVELIBS="$LIBS"
LIBS="-framework CoreGraphics -framework ImageIO -framework CoreFoundation $LIBS"
ac_fn_c_check_header_compile "$LINENO" "CoreGraphics/CoreGraphics.h" "ac_cv_header_CoreGraphics_CoreGraphics_h" "$ac_includes_default"
if test "x$ac_cv_header_CoreGraphics_CoreGraphics_h" = xyes
then :
printf "%s\n" "#define HAVE_COREGRAPHICS 1" >>confdefs.h
else $as_nop
LIBS="$SAVELIBS"
if test "x$with_pdfrip" = xcoregraphics
then :
as_fn_error $? "Unable to find CoreGraphic framework." "$LINENO" 5
fi
fi
;; #(
pdftoppm) :
# Extract the first word of "pdftoppm", so it can be a program name with args.
set dummy pdftoppm; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PDFTOPPM+y}
then :
printf %s "(cached) " >&6
else $as_nop
case $PDFTOPPM in
[\\/]* | ?:[\\/]*)
ac_cv_path_PDFTOPPM="$PDFTOPPM" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
'') as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
esac
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
ac_cv_path_PDFTOPPM="$as_dir$ac_word$ac_exec_ext"
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
PDFTOPPM=$ac_cv_path_PDFTOPPM
if test -n "$PDFTOPPM"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFTOPPM" >&5
printf "%s\n" "$PDFTOPPM" >&6; }
else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi
if test "x$PDFTOPPM" != x
then :
printf "%s\n" "#define PDFTOPPM \"$PDFTOPPM\"" >>confdefs.h
elif test "x$with_pdfrip" = xpdftoppm
then :
as_fn_error $? "Unable to find pdftoppm program." "$LINENO" 5
fi
;; #(
none) :
;; #(
*) :
as_fn_error $? "Unknown --with-pdfrip value." "$LINENO" 5
;; #(
*) :
;;
esac
IPPTRANSFORM3D_BIN=""
IPPTRANSFORM3D_HTML=""
IPPTRANSFORM3D_MAN=""
Expand Down Expand Up @@ -4064,6 +3900,36 @@ then :
fi



ac_header= ac_cache=
for ac_item in $ac_header_c_list
do
if test $ac_cache; then
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
printf "%s\n" "#define $ac_item 1" >> confdefs.h
fi
ac_header= ac_cache=
elif test $ac_header; then
ac_cache=$ac_item
else
ac_header=$ac_item
fi
done








if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h

fi
if test x$enable_libpam != xno
then :

Expand Down
38 changes: 0 additions & 38 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -79,44 +79,6 @@ AC_PATH_PROG([RMDIR], [rmdir])
AC_PATH_PROG([LN], [ln])


dnl PDF support
AC_ARG_WITH([pdfrip], AS_HELP_STRING([--with-pdfrip=...], [set PDF RIP to use (auto, coregraphics, pdftoppm, none)]))

AS_IF([test "x$with_pdfrip" = x -o "x$with_pdfrip" = xauto], [
AS_CASE([$host_os_name], [darwin*], [
use_pdfrip=coregraphics
], [*], [
use_pdfrip=pdftoppm
])
], [
use_pdfrip="$with_pdfrip"
])

AS_CASE(["$use_pdfrip"], [coregraphics], [
SAVELIBS="$LIBS"
LIBS="-framework CoreGraphics -framework ImageIO -framework CoreFoundation $LIBS"
AC_CHECK_HEADER([CoreGraphics/CoreGraphics.h], [
AC_DEFINE([HAVE_COREGRAPHICS], [1], [CoreGraphics support])
], [
LIBS="$SAVELIBS"
AS_IF([test "x$with_pdfrip" = xcoregraphics], [
AC_MSG_ERROR([Unable to find CoreGraphic framework.])
])
])
], [pdftoppm], [
AC_PATH_PROG([PDFTOPPM], [pdftoppm])
AS_IF([test "x$PDFTOPPM" != x], [
AC_DEFINE_UNQUOTED([PDFTOPPM], ["$PDFTOPPM"], [pdftoppm path])
], [test "x$with_pdfrip" = xpdftoppm], [
AC_MSG_ERROR([Unable to find pdftoppm program.])
])
], [none], [
], [*], [
AC_MSG_ERROR([Unknown --with-pdfrip value.])
])


dnl 3D support
IPPTRANSFORM3D_BIN=""
IPPTRANSFORM3D_HTML=""
Expand Down
2 changes: 1 addition & 1 deletion libcups
Submodule libcups updated 86 files
+3 −0 .gitignore
+1 −0 CHANGES.md
+2 −1 Makedefs.in
+105 −90 config.h.in
+201 −64 configure
+43 −3 configure.ac
+2 −2 cups/Makefile
+79 −10 cups/base.strings
+79 −10 cups/strings/ca.strings
+80 −11 cups/strings/ca_strings.h
+79 −10 cups/strings/cs.strings
+80 −11 cups/strings/cs_strings.h
+79 −10 cups/strings/da.strings
+80 −11 cups/strings/da_strings.h
+79 −10 cups/strings/de.strings
+80 −11 cups/strings/de_strings.h
+79 −10 cups/strings/en.strings
+80 −11 cups/strings/en_strings.h
+79 −10 cups/strings/es.strings
+80 −11 cups/strings/es_strings.h
+79 −10 cups/strings/fr.strings
+80 −11 cups/strings/fr_strings.h
+79 −10 cups/strings/it.strings
+80 −11 cups/strings/it_strings.h
+79 −10 cups/strings/ja.strings
+80 −11 cups/strings/ja_strings.h
+79 −10 cups/strings/pt_BR.strings
+80 −11 cups/strings/pt_BR_strings.h
+79 −10 cups/strings/ru.strings
+80 −11 cups/strings/ru_strings.h
+79 −10 cups/strings/zh_CN.strings
+80 −11 cups/strings/zh_CN_strings.h
+2 −1 doc/Makefile
+1 −1 doc/ippevepcl.html
+1 −1 doc/ippeveprinter.html
+1 −1 doc/ippfind.html
+1 −1 doc/ipptool.html
+1 −1 doc/ipptoolfile.html
+228 −0 doc/ipptransform.html
+2 −1 man/Makefile
+199 −0 man/ipptransform.1
+29 −60 tools/Dependencies
+57 −3 tools/Makefile
+2 −14 tools/dither.h
+786 −0 tools/ipp-options.c
+158 −0 tools/ipp-options.h
+0 −1 tools/ippfind.c
+0 −4 tools/ipptool.c
+4,479 −0 tools/ipptransform.c
+523 −0 tools/pdfio-aes.c
+668 −0 tools/pdfio-array.c
+579 −0 tools/pdfio-common.c
+3,072 −0 tools/pdfio-content.c
+161 −0 tools/pdfio-content.h
+1,049 −0 tools/pdfio-crypto.c
+1,003 −0 tools/pdfio-dict.c
+2,158 −0 tools/pdfio-file.c
+338 −0 tools/pdfio-md5.c
+516 −0 tools/pdfio-object.c
+127 −0 tools/pdfio-page.c
+396 −0 tools/pdfio-private.h
+113 −0 tools/pdfio-rc4.c
+480 −0 tools/pdfio-sha256.c
+1,374 −0 tools/pdfio-stream.c
+140 −0 tools/pdfio-string.c
+606 −0 tools/pdfio-token.c
+731 −0 tools/pdfio-value.c
+202 −0 tools/pdfio.LICENSE
+20 −0 tools/pdfio.NOTICE
+261 −0 tools/pdfio.h
+1,998 −0 tools/ttf.c
+116 −0 tools/ttf.h
+153 −145 vcnet/config.h
+141 −0 vcnet/ipptransform.vcxproj
+9 −0 vcnet/libcups.sln
+118 −103 xcode/config.h
+335 −4 xcode/libcups.xcodeproj/project.pbxproj
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/fuzzipp.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/ippevepcl.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/ippeveps.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/libcups.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/testcreds.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/testlang.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/testpwg.xcscheme
+1 −1 xcode/libcups.xcodeproj/xcshareddata/xcschemes/testtestpage.xcscheme
Loading

0 comments on commit 7e63196

Please sign in to comment.