2 AC_INIT([EXIF library],[0.6.13],[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])
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 -lm is required for our math functions
64 dnl ---------------------------------------------------------------------------
66 # we need sqrt and pow, but checking for sqrt should be sufficient
67 AC_ARG_VAR([MATHLIBS],[The libraries required for mathematical functions, e.g. -lm])
68 if test "x$MATHLIBS" = "x"; then
69 # We must not compile with -Wall -Werror here:
70 # char *sqrt() conflicts with double sin(const double xx) in any case.
71 CFLAGS_save="$CPPFLAGS"
72 CPPFLAGS_save="$CPPFLAGS"
75 AC_CHECK_FUNC([sqrt],[
78 AC_CHECK_LIB([m],[sqrt],[
82 *** Could not find sqrt() function
87 CPPFLAGS="$CPPFLAGS_save"
97 # ---------------------------------------------------------------------------
99 # ---------------------------------------------------------------------------
100 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
101 [Lutz Müller and others])
102 ALL_LINGUAS="de es fr"
103 AM_GNU_GETTEXT_VERSION([0.14.1])
104 AM_GNU_GETTEXT([external])
109 dnl We cannot use AC_DEFINE_UNQUOTED() for these definitions, as
110 dnl we require make to do insert the proper $(datadir) value
111 localedir="\$(datadir)/locale"
113 AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
116 dnl ---------------------------------------------------------------------------
117 dnl Compiler/Linker Options and Warnings
118 dnl ---------------------------------------------------------------------------
119 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)"
120 AM_CPPFLAGS="$AM_CPPFLAGS -I\$(top_srcdir)/libexif"
121 AM_LDFLAGS="$LDFLAGS"
122 if test "x$GCC" = "xyes"; then
123 AM_CPPFLAGS="$AM_CPPFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
124 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
129 AC_SUBST(AM_CPPFLAGS)
133 dnl ---------------------------------------------------------------------------
135 dnl ---------------------------------------------------------------------------
141 libexif/canon/Makefile
142 libexif/olympus/Makefile
143 libexif/pentax/Makefile
149 doc/Doxyfile-internals