From 5bbcd7f7712ec02aa4f189c4d616698f9d9aa32c Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sun, 29 Aug 2004 09:59:37 +0000 Subject: [PATCH] #define HAVE_MKSTEMPS 1 as libkdefakes provides it Some more checks so that we don't have any undefined warning svn path=/trunk/kdegraphics/kpdf/; revision=342403 --- aconf.h | 4 ++++ configure.in.in | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/aconf.h b/aconf.h index e3e51cf41..da998dc38 100644 --- a/aconf.h +++ b/aconf.h @@ -1,6 +1,10 @@ +#define HAVE_FSEEK0 0 // define it to 0, if you have it, config.h will have it defined to 1 + // and that will be used + #include #define HAVE_FREETYPE_H HAVE_FREETYPE #define HAVE_FREETYPE_FREETYPE_H HAVE_FREETYPE #define OPI_SUPPORT 0 #define TEXTOUT_WORD_LIST 0 +#define HAVE_MKSTEMPS 1 //libkdefakes provides it diff --git a/configure.in.in b/configure.in.in index a1d912768..4d63c0473 100644 --- a/configure.in.in +++ b/configure.in.in @@ -44,10 +44,21 @@ if test "$xpdfrc" != NO; then AC_DEFINE_UNQUOTED(SYSTEM_XPDFRC, "$xpdfrc/xpdfrc", [Define the location your xpdfrc]) fi +dnl #### Check for FSEEK variants +AC_SYS_LARGEFILE +AC_FUNC_FSEEKO +AC_CHECK_FUNCS(fseek64, xpdf_cv_func_fseek64=yes, xpdf_cv_func_fseek64=no) +AC_CHECK_FUNCS(ftell64, xpdf_cv_func_ftell64=yes, xpdf_cv_func_ftell64=no) +if test "$xpdf_cv_func_fseek64" = yes -a "$xpdf_cv_func_ftell64" = yes; then + AC_DEFINE(HAVE_FSEEK64, 1) +else + AC_DEFINE(HAVE_FSEEK64, 0) +fi + +dnl #### Check for libt1 AC_LANG_SAVE AC_LANG_CPLUSPLUS -dnl #### Check for libt1 kpdf_have_t1lib= KDE_CHECK_LIB(t1, T1_InitLib, [LIBT1="-lt1"; kpdf_have_t1lib=yes], [