2 AC_INIT([EXIF library],[0.6.14],[libexif-devel@lists.sourceforge.net],[libexif])
3 AC_CONFIG_SRCDIR([libexif/exif-data.h])
4 AC_CONFIG_HEADERS([config.h])
5 AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2 dist-zip])
7 if test ! -d "$srcdir/m4m"; then
9 You are missing the m4m/ directory in your top
10 $PACKAGE_TARNAME source directory.
12 You are probably using an ill-maintained CVS tree.
18 and re-running autogen.sh might help.
22 GP_CHECK_SHELL_ENVIRONMENT
23 GP_CONFIG_MSG([Build])
24 GP_CONFIG_MSG([Source code location],[${srcdir}])
26 dnl ---------------------------------------------------------------------------
27 dnl Advanced information about versioning:
28 dnl * "Writing shared libraries" by Mike Hearn
29 dnl http://navi.cx/~mike/writing-shared-libraries.html
30 dnl * libtool.info chapter "Versioning"
31 dnl ---------------------------------------------------------------------------
33 dnl - CURRENT (Major): Increment if the interface has changes. AGE is always
34 dnl *changed* at the same time.
35 dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
36 dnl if any interfaces have been removed. Removal has
37 dnl precedence over adding, so set to 0 if both happened.
38 dnl It denotes upward compatibility.
39 dnl - REVISION (Minor): Increment any time the source changes; set to
40 dnl 0 if you incremented CURRENT.
42 dnl To summarize. Any interface *change* increment CURRENT. If that interface
43 dnl change does not break upward compatibility (ie it is an addition),
44 dnl increment AGE, Otherwise AGE is reset to 0. If CURRENT has changed,
45 dnl REVISION is set to 0, otherwise REVISION is incremented.
46 dnl ---------------------------------------------------------------------------
50 AC_SUBST([LIBEXIF_AGE])
51 AC_SUBST([LIBEXIF_REVISION])
52 AC_SUBST([LIBEXIF_CURRENT])
53 LIBEXIF_VERSION_INFO=$LIBEXIF_CURRENT:$LIBEXIF_REVISION:$LIBEXIF_AGE
54 AC_SUBST([LIBEXIF_VERSION_INFO])
58 dnl FIXME: AC_LIBTOOL_WIN32_DLL
60 AM_CPPFLAGS="$CPPFLAGS"
61 GP_CONFIG_MSG([Compiler],[${CC}])
64 dnl Create a stdint.h-like file containing size-specific integer definitions
65 dnl that will always be available
66 AX_NEED_STDINT_H([libexif/_stdint.h])
69 dnl ------------------------------------------------------------------------
70 dnl Whether we're supposed to ship binaries in the tarball
71 dnl ------------------------------------------------------------------------
74 AC_ARG_ENABLE([ship-binaries],
75 [AS_HELP_STRING([--enable-ship-binaries],
76 [Whether to ship binaries in the tarball [default=no]])],[
77 if test x$enableval = xyes; then
81 AM_CONDITIONAL([SHIP_BINARIES],[$ship_binaries])
82 GP_CONFIG_MSG([Ship binaries in tarball],[$ship_binaries])
85 dnl ---------------------------------------------------------------------------
86 dnl Whether -lm is required for our math functions
87 dnl ---------------------------------------------------------------------------
89 # we need sqrt and pow, but checking for sqrt should be sufficient
90 AC_ARG_VAR([MATHLIBS],[The libraries required for mathematical functions, e.g. -lm])
91 if test "x$MATHLIBS" = "x"; then
92 # We must not compile with -Wall -Werror here:
93 # char *sqrt() conflicts with double sin(const double xx) in any case.
95 CPPFLAGS_save="$CPPFLAGS"
98 AC_CHECK_FUNC([sqrt],[
101 AC_CHECK_LIB([m],[sqrt],[
105 *** Could not find sqrt() function
109 CFLAGS="$CFLAGS_save"
110 CPPFLAGS="$CPPFLAGS_save"
120 # ---------------------------------------------------------------------------
122 # ---------------------------------------------------------------------------
123 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
124 [Lutz Müller and others])
125 ALL_LINGUAS="de es fr pl"
126 AM_GNU_GETTEXT_VERSION([0.14.1])
127 AM_GNU_GETTEXT([external])
132 dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
133 dnl we require make to do insert the proper $(datadir) value
134 localedir="\$(datadir)/locale"
136 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
139 dnl ---------------------------------------------------------------------------
140 dnl Compiler/Linker Options and Warnings
141 dnl ---------------------------------------------------------------------------
142 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
143 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libexif"
144 AM_LDFLAGS="$LDFLAGS"
145 if test "x$GCC" = "xyes"; then
146 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
147 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
152 AC_SUBST(AM_CPPFLAGS)
156 dnl ---------------------------------------------------------------------------
158 dnl ---------------------------------------------------------------------------
164 libexif/canon/Makefile
165 libexif/olympus/Makefile
166 libexif/pentax/Makefile
172 doc/Doxyfile-internals