ports/print/tex-dvipsk/files/patch-configure
Muhammad Moinur Rahman 7a740b7c90
*/tex*: Update version 20230313=>20240312
- devel/tex-kpathsea: Update version 6.3.5=>6.4.0
- devel/tex-libtexlua: Update distinfo
- devel/tex-synctex: Update distinfo
- devel/tex-web2c: Update version 20230313=>20240312
- japanese/tex-ptex: Update distinfo
- print/tex-basic-engines: Update version 20230313=>20240312
- print/tex-dvipdfmx: Update version 20230313=>20240312
- print/tex-dvipsk: Update version 20230313=>20240312
- print/tex-jadetex: Update version 20230313=>20240312
- print/tex-luatex: Update version 20230313=>20240312
- print/tex-ptexenc: Update version 1.4.3=>1.4.6
- print/tex-xdvik: Bump REVISION
- print/tex-xetex: Update verison 0.99993=>20240312
- print/tex-xmltex: Update verison 1.9=>20240312
- print/texlive-base: Update version 20230313=>20240312
- print/texlive-docs: Update version 20230313=>20240312
- print/texlive-texmf-source: Update version 20230313=>20240312
- print/texlive-texmf: Update version 20230313=>20240312
- print/texlive-tlmgr: Update version 20230313=>20240312
- print/xpdfopen: Update version 0.86=>20240312

Sponsored by: Nepustil
2024-05-29 20:34:04 +02:00

120 lines
3.2 KiB
Text

--- configure.orig 2024-02-05 17:23:27 UTC
+++ configure
@@ -804,6 +804,7 @@ with_system_kpathsea
enable_libtool_lock
enable_largefile
with_system_kpathsea
+with_paper
enable_year2038
'
ac_precious_vars='build_alias
@@ -1476,6 +1477,7 @@ Optional Packages:
compiler's sysroot if not specified).
--with-system-kpathsea use installed kpathsea headers and library (requires
pkg-config)
+ --with-paper=DIR use paper include/library files from DIR
Some influential environment variables:
CC C compiler command
@@ -14940,6 +14942,102 @@ fi
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
+
+
+eval CPPFLAGS=\"$LIBPAPER_INCLUDES \$CPPFLAGS\"
+eval LIBS=\"$LIBPAPER_LIBS \$LIBS\"
+
+_cppflags=$CPPFLAGS _ldflags=$LDFLAGS
+
+# Check whether --with-paper was given.
+if test "${with_paper+set}" = set; then :
+ withval=$with_paper; if test -d "$withval"; then
+ CPPFLAGS="$CPPFLAGS -I$withval/include"
+ LDFLAGS="$LDFLAGS -L$withval/lib"
+ fi
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for paper header files" >&5
+$as_echo_n "checking for paper header files... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <paper.h>
+int
+main ()
+{
+struct paper *p;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing paperpswidth" >&5
+$as_echo_n "checking for library containing paperpswidth... " >&6; }
+if ${ac_cv_search_paperpswidth+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char paperpswidth ();
+int
+main ()
+{
+return paperpswidth ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' paper; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib LIBS="-lpaper $LIBS" $ac_func_search_save_LIBS"
+ fi
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_paperpswidth=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_paperpswidth+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_paperpswidth+:} false; then :
+
+else
+ ac_cv_search_paperpswidth=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_paperpswidth" >&5
+$as_echo "$ac_cv_search_paperpswidth" >&6; }
+ac_res=$ac_cv_search_paperpswidth
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
+
+fi
+
+else
+ CPPFLAGS=$_cppflags
+ LDDFLAGS=$_ldflags
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext