summaryrefslogtreecommitdiff
path: root/Build/source/texk/psutils/configure.ac
blob: aa6249d229add29f23e7f73988259b1db0c891a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dnl Process this file with autoconf to produce a configure script.
dnl
dnl   Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
dnl
dnl   This file is free software; the copyright holder
dnl   gives unlimited permission to copy and/or distribute it,
dnl   with or without modifications, as long as this notice is preserved.
dnl
m4_include([version.ac])[] dnl define psutils_version
AC_INIT([psutils (TeX Live)], psutils_version, [tex-k@tug.org])
AC_PREREQ([2.65])
AC_CONFIG_SRCDIR([psutils-]psutils_version[/psutil.c])
AC_CONFIG_AUX_DIR([../../build-aux])
AC_CONFIG_MACRO_DIR([../../m4])

KPSE_COMMON([psutils])

AC_CONFIG_HEADERS([config.h])

AH_TOP([#ifndef _PSUTILS_CONFIG_H
#define _PSUTILS_CONFIG_H 1])
AH_BOTTOM([#include <kpathsea/kpathsea.h>

#define _Noreturn
#define _GL_ATTRIBUTE_CONST

#ifdef WIN32
# define set_binary_mode(file, mode) _setmode(file, mode)
# ifndef __MINGW32__
#  define ftello _ftelli64
#  define fseeko _fseeki64
# endif
#else
# define set_binary_mode(file, mode) 0
#endif

#endif /* _PSUTILS_CONFIG_H */])

KPSE_KPATHSEA_FLAGS
KPSE_LIBPAPER_FLAGS

KPSE_COND_WIN32_WRAP

AC_SUBST([PSUTILS_TREE], [psutils-]psutils_version)

AC_CONFIG_FILES([Makefile])

AC_CONFIG_LINKS([extractres.pl:psutils-]psutils_version[/extractres])
AC_CONFIG_LINKS([includeres.pl:psutils-]psutils_version[/extractres])
AC_CONFIG_LINKS([psjoin.pl:psutils-]psutils_version[/psjoin])

AC_OUTPUT