-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathconfigure.ac
More file actions
116 lines (96 loc) · 3.74 KB
/
configure.ac
File metadata and controls
116 lines (96 loc) · 3.74 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
AC_PREREQ(2.69)
AC_INIT([libexif command line interface],
[0.6.22.1],
[libexif-devel@lists.sourceforge.net],
[exif],
[https://libexif.github.io/])
AC_CONFIG_SRCDIR([exif/main.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([auto-m4])
AM_INIT_AUTOMAKE([
-Wall
gnu
1.14.1
dist-xz
dist-bzip2
check-news
])
# Use the silent-rules feature when possible.
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
AM_SILENT_RULES([yes])
GP_CHECK_SHELL_ENVIRONMENT
GP_CONFIG_MSG([Build])
GP_CONFIG_MSG([Source code location], [${srcdir}])
AC_PROG_CC
AC_C_INLINE
AM_PROG_AR
LT_INIT([win32-dll])
AM_CPPFLAGS="$CPPFLAGS -I\$(top_srcdir) -I\$(top_builddir)"
GP_CONFIG_MSG([Compiler], [${CC}])
AC_CHECK_FUNCS([isatty fileno])
# ---------------------------------------------------------------------------
# i18n support
# ---------------------------------------------------------------------------
GP_GETTEXT_HACK([${PACKAGE}], [Lutz Mueller and others])
ALL_LINGUAS="ast cs da de eo es fi fr fur gl hr hu id is it ja ko lv ms nl pl pt pt_BR ro ru sk sr sv tr uk vi zh_CN"
AM_PO_SUBDIRS()
AM_GNU_GETTEXT_VERSION([0.18.3])
AM_GNU_GETTEXT([external])
AM_ICONV()
GP_GETTEXT_FLAGS()
# ---------------------------------------------------------------------------
# locale.h: locale.h provides setlocale. It seems that some systems don't
# have it (at least if configured --without-nls).
# ---------------------------------------------------------------------------
AC_CHECK_HEADERS([locale.h])
AC_CHECK_HEADER([iconv.h], [
AC_DEFINE([HAVE_ICONV], [1], [whether iconv is available])])
dnl Versions of GNU gettext >= 0.10.36 automatically convert messages into
dnl the correct locale encoding, but with older versions and maybe non-GNU
dnl versions the app needs to do that itself.
AC_ARG_ENABLE([gettext-iconv],
[AS_HELP_STRING([--enable-gettext-iconv],
[convert character encodings (only needed when gettext doesn't do it itself)])],
[AC_DEFINE([ENABLE_GETTEXT_ICONV], [1],
[whether to run iconv on gettext output])])
AC_CHECK_FUNCS([mblen])
# ---------------------------------------------------------------------------
# libraries needed
# ---------------------------------------------------------------------------
PKG_PROG_PKG_CONFIG()
AC_MSG_CHECKING([for pkg-config program])
AC_MSG_RESULT([${PKG_CONFIG}])
dnl Need 0.6.18 for exif_loader_get_buf
GP_CHECK_LIBRARY([LIBEXIF], [libexif], [>= 0.6.18])
# ---------------------------------------------------------------------------
# popt.h: Simplifies handling of command-line options enormously.
# ---------------------------------------------------------------------------
GP_CHECK_LIBRARY([POPT], [popt], [>= 1.12])
# ---------------------------------------------------------------------------
# Check for misc headers
# ---------------------------------------------------------------------------
AC_CHECK_HEADERS([unistd.h])
# ---------------------------------------------------------------------------
# Warnings: If we have GCC, be paranoid.
# ---------------------------------------------------------------------------
AS_VAR_IF([GCC], [yes], [dnl
AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
])
AC_SUBST([AM_CPPFLAGS])dnl
AC_SUBST([AM_LDFLAGS])dnl
# ---------------------------------------------------------------------------
# Output files
# ---------------------------------------------------------------------------
AC_CONFIG_FILES([
po/Makefile.in
Makefile
m4m/Makefile
exif.spec
libjpeg/Makefile
exif/Makefile
test/Makefile
test/check-vars.sh
])
AC_OUTPUT
GP_CONFIG_OUTPUT()dnl