2 AC_INIT([EXIF library],[0.6.12],[libexif-devel@lists.sourceforge.net],[libexif])
3 AC_CONFIG_SRCDIR([libexif/exif-data.h])
4 AM_CONFIG_HEADER([config.h])
5 AM_INIT_AUTOMAKE([gnu 1.8 dist-bzip2])
7 GP_CONFIG_MSG([Source code location],[${srcdir}])
9 dnl ---------------------------------------------------------------------------
11 dnl - AGE (Micro): Increment if any interfaces have been added; set to 0
12 dnl if any interfaces have been removed. Removal has
13 dnl precedence over adding, so set to 0 if both happened.
14 dnl - REVISION (Minor): Increment any time the source changes; set to
15 dnl 0 if you incremented CURRENT.
16 dnl - CURRENT (Major): Increment if the interface has additions, changes,
18 dnl ---------------------------------------------------------------------------
22 AC_SUBST([LIBEXIF_AGE])
23 AC_SUBST([LIBEXIF_REVISION])
24 AC_SUBST([LIBEXIF_CURRENT])
25 LIBEXIF_VERSION_INFO=`expr $LIBEXIF_CURRENT + $LIBEXIF_REVISION`:$LIBEXIF_AGE:$LIBEXIF_REVISION
26 AC_SUBST([LIBEXIF_VERSION_INFO])
33 GP_CONFIG_MSG([Compiler],[${CC}])
36 dnl Create a stdint.h-like file containing size-specific integer definitions
37 dnl that will always be available
38 AC_NEED_STDINT_H([libexif/_stdint.h])
41 dnl ---------------------------------------------------------------------------
42 dnl Whether -lm is required for our math functions
43 dnl ---------------------------------------------------------------------------
45 # we need sqrt and pow, but checking for sqrt should be sufficient
46 AC_CHECK_FUNC([sqrt],,[
47 AC_CHECK_LIB([m],[sqrt],[MATHLIBS="-lm"],AC_MSG_ERROR([
48 *** Couldn't find sqrt
53 dnl ---------------------------------------------------------------------------
55 dnl ---------------------------------------------------------------------------
56 GP_GETTEXT_HACK([${PACKAGE}-${LIBEXIF_CURRENT}],
57 [Lutz Müller and others])
58 ALL_LINGUAS="de es fr"
59 AM_GNU_GETTEXT_VERSION([0.14.1])
63 AC_DEFINE_UNQUOTED([LIBEXIF_LOCALEDIR],["${datadir}/locale"],
64 [The locale directory used with libexif translations])
65 AC_DEFINE_UNQUOTED([LIBMNOTE_LOCALEDIR],["${datadir}/locale"],
66 [The locale directory used with libexif translations])
69 dnl ---------------------------------------------------------------------------
70 dnl Compiler/Linker Options and Warnings
71 dnl ---------------------------------------------------------------------------
72 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)"
73 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)/libexif"
74 AM_CFLAGS="$AM_CFLAGS -I\$(top_srcdir)/libjpeg"
76 if test "x$GCC" = "xyes"; then
77 AM_CFLAGS="$AM_CFLAGS -g -Wall -Wmissing-declarations -Wmissing-prototypes"
78 AM_LDFLAGS="$AM_LDFLAGS -g -Wall"
83 dnl ---------------------------------------------------------------------------
85 dnl ---------------------------------------------------------------------------
92 libexif/canon/Makefile
93 libexif/olympus/Makefile
94 libexif/pentax/Makefile