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 - AGE (Micro): Increment if any interfaces have been added; set to 0
34 dnl if any interfaces have been removed. Removal has
35 dnl precedence over adding, so set to 0 if both happened.
36 dnl - REVISION (Minor): Increment any time the source changes; set to
37 dnl 0 if you incremented CURRENT.
38 dnl - CURRENT (Major): Increment if the interface has changes or removals.
39 dnl ---------------------------------------------------------------------------
43 AC_SUBST([LIBEXIF_AGE])
44 AC_SUBST([LIBEXIF_REVISION])
45 AC_SUBST([LIBEXIF_CURRENT])
46 LIBEXIF_VERSION_INFO=`expr $LIBEXIF_CURRENT + $LIBEXIF_REVISION`:$LIBEXIF_AGE:$LIBEXIF_REVISION
47 AC_SUBST([LIBEXIF_VERSION_INFO])
51 dnl FIXME: AC_LIBTOOL_WIN32_DLL
53 AM_CPPFLAGS="$CPPFLAGS"
54 GP_CONFIG_MSG([Compiler],[${CC}])
57 dnl Create a stdint.h-like file containing size-specific integer definitions
58 dnl that will always be available
59 AX_NEED_STDINT_H([libexif/_stdint.h])
62 dnl ------------------------------------------------------------------------
63 dnl Whether we're supposed to ship binaries in the tarball
64 dnl ------------------------------------------------------------------------
67 AC_ARG_ENABLE([ship-binaries],
68 [AS_HELP_STRING([--enable-ship-binaries],
69 [Whether to ship binaries in the tarball [default=no]])],[
70 if test x$enableval = xyes; then
74 AM_CONDITIONAL([SHIP_BINARIES],[$ship_binaries])
75 GP_CONFIG_MSG([Ship binaries in tarball],[$ship_binaries])
78 dnl ---------------------------------------------------------------------------
79 dnl Whether -lm is required for our math functions
80 dnl ---------------------------------------------------------------------------
82 # we need sqrt and pow, but checking for sqrt should be sufficient
83 AC_ARG_VAR([MATHLIBS],[The libraries required for mathematical functions, e.g. -lm])
84 if test "x$MATHLIBS" = "x"; then
85 # We must not compile with -Wall -Werror here:
86 # char *sqrt() conflicts with double sin(const double xx) in any case.
88 CPPFLAGS_save="$CPPFLAGS"
91 AC_CHECK_FUNC([sqrt],[
94 AC_CHECK_LIB([m],[sqrt],[
98 *** Could not find sqrt() function
102 CFLAGS="$CFLAGS_save"
103 CPPFLAGS="$CPPFLAGS_save"
113 # ---------------------------------------------------------------------------
115 # ---------------------------------------------------------------------------
116 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
117 [Lutz Müller and others])
118 ALL_LINGUAS="de es fr pl"
119 AM_GNU_GETTEXT_VERSION([0.14.1])
120 AM_GNU_GETTEXT([external])
125 dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
126 dnl we require make to do insert the proper $(datadir) value
127 localedir="\$(datadir)/locale"
129 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
132 dnl ---------------------------------------------------------------------------
133 dnl Compiler/Linker Options and Warnings
134 dnl ---------------------------------------------------------------------------
135 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
136 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libexif"
137 AM_LDFLAGS="$LDFLAGS"
138 if test "x$GCC" = "xyes"; then
139 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
140 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
145 AC_SUBST(AM_CPPFLAGS)
149 dnl ---------------------------------------------------------------------------
151 dnl ---------------------------------------------------------------------------
157 libexif/canon/Makefile
158 libexif/olympus/Makefile
159 libexif/pentax/Makefile
165 doc/Doxyfile-internals