1
dnl Process this file with autoconf to produce a configure script.
4
AM_INIT_AUTOMAKE(rawstudio, 2.0)
5
AM_CONFIG_HEADER(config.h)
8
AC_CONFIG_MACRO_DIR([m4])
16
AC_ARG_ENABLE(experimental,
18
[--enable-experimental],
19
[Enable experimental code (default: disabled)]),
23
AC_DEFUN([AX_CHECK_COMPILER_FLAGS],
24
[AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX
25
AC_MSG_CHECKING([whether _AC_LANG compiler accepts $1])
26
dnl Some hackery here since AC_CACHE_VAL can't handle a non-literal varname:
28
[AC_CACHE_VAL(AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1]), [
29
ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
30
_AC_LANG_PREFIX[]FLAGS="$1"
31
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
32
AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
33
AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
34
_AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])],
35
[ax_save_FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
36
_AC_LANG_PREFIX[]FLAGS="$1"
37
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
38
eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=yes,
39
eval AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])=no)
40
_AC_LANG_PREFIX[]FLAGS=$ax_save_FLAGS])
41
eval ax_check_compiler_flags=$AS_TR_SH(ax_cv_[]_AC_LANG_ABBREV[]_flags_[$1])
42
AC_MSG_RESULT($ax_check_compiler_flags)
43
if test "x$ax_check_compiler_flags" = xyes; then
48
])dnl AX_CHECK_COMPILER_FLAGS
50
if test "$EXPERIMENTAL" == "yes"; then
51
AC_DEFINE([EXPERIMENTAL],[1],[Enable experimental code])
55
if test -z "$LIBJPEG"; then
56
AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, jpeg_ok=yes, jpeg_ok=no)
57
if test "$jpeg_ok" = yes; then
58
AC_CHECK_HEADER(jpeglib.h, jpeg_ok=yes, jpeg_ok=no)
59
if test "$jpeg_ok" = yes; then
62
AC_MSG_ERROR([*** JPEG header files not found.])
65
AC_MSG_ERROR([*** Rawstudio requires libjpeg.])
71
if test -z "$LIBTIFF"; then
72
AC_CHECK_LIB(tiff, TIFFOpen, tiff_ok=yes, tiff_ok=no)
73
if test "$tiff_ok" = yes; then
74
AC_CHECK_HEADER(tiffio.h, tiff_ok=yes, tiff_ok=no)
75
if test "$tiff_ok" = yes; then
78
AC_MSG_ERROR([*** libtiff header files not found.])
81
AC_MSG_ERROR([*** Rawstudio requires libtiff.])
86
pkg_modules="gtk+-2.0 >= 2.8.0 libxml-2.0 >= 2.4 gconf-2.0 >= 2.0 lcms dbus-1 exiv2 fftw3f lensfun libcurl flickcurl sqlite3 libssl libgphoto2 x11"
87
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
88
AC_SUBST(PACKAGE_CFLAGS)
89
AC_SUBST(PACKAGE_LIBS)
91
GETTEXT_PACKAGE=rawstudio
92
AC_SUBST(GETTEXT_PACKAGE)
93
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
95
dnl Add the languages which your application supports here.
96
ALL_LINGUAS="cs da de en fr it nb pl ru fi es sv nl pt_BR ca hu ja"
98
AC_CHECK_FUNCS(memmem)
100
AX_CHECK_COMPILER_FLAGS("-msse2", [_CAN_COMPILE_SSE2=yes], [_CAN_COMPILE_SSE2=no])
101
AX_CHECK_COMPILER_FLAGS("-msse4.1", [_CAN_COMPILE_SSE4_1=yes],[_CAN_COMPILE_SSE4_1=no])
102
AX_CHECK_COMPILER_FLAGS("-mavx", [_CAN_COMPILE_AVX=yes],[_CAN_COMPILE_AVX=no])
104
AM_CONDITIONAL(CAN_COMPILE_SSE4_1, test "$_CAN_COMPILE_SSE4_1" = yes)
105
AM_CONDITIONAL(CAN_COMPILE_SSE2, test "$_CAN_COMPILE_SSE2" = yes)
106
AM_CONDITIONAL(CAN_COMPILE_AVX, test "$_CAN_COMPILE_AVX" = yes)
112
/^Repository Root:/ {
122
if (index(url, "/branches/") == 1) {
123
branch = substr(url, 11);
124
printf(" (branch %s)", branch);
125
} else if (index(url, "/tags/") == 1) {
126
tag = substr(url, 7);
127
printf(" (tag %s)", tag);
135
if test -f .version ; then
136
RAWSTUDIO_VERSION=$(cat .version)
138
RAWSTUDIO_VERSION="${VERSION}"
140
if test -d .svn && svn --version>/dev/null 2>&1 ; then
141
RAWSTUDIO_SVNREV=$(LC_ALL=C svn info | awk '/^Revision:/ {printf("-svn%s",$2); }')
142
RAWSTUDIO_BRANCH=$(LC_ALL=C svn info |branchname)
143
elif test -f .svninfo ; then
144
RAWSTUDIO_SVNREV=$(awk '/^Revision:/ {printf("-snapshot%s",$2); }' .svninfo)
145
RAWSTUDIO_BRANCH=$(cat .svninfo|branchname)
151
RAWSTUDIO_VERSION="${RAWSTUDIO_VERSION}${RAWSTUDIO_SVNREV}${RAWSTUDIO_BRANCH}"
153
AC_DEFINE_UNQUOTED([RAWSTUDIO_VERSION], ["$RAWSTUDIO_VERSION"], ["Public revision"])
155
if test -f .svninfo; then
164
librawstudio/Makefile
165
librawstudio/rawstudio-2.0.pc
167
plugins/cache/Makefile
168
plugins/colorspace-adobergb/Makefile
169
plugins/colorspace-prophoto/Makefile
170
plugins/colorspace-srgb/Makefile
171
plugins/colorspace-transform/Makefile
172
plugins/crop/Makefile
174
plugins/demosaic/Makefile
175
plugins/denoise/Makefile
176
plugins/exposure-mask/Makefile
177
plugins/fuji-rotate/Makefile
178
plugins/input-file/Makefile
179
plugins/input-image16/Makefile
180
plugins/lensfun/Makefile
181
plugins/load-dcraw/Makefile
182
plugins/load-gdk/Makefile
183
plugins/load-rawspeed/Makefile
184
plugins/meta-ciff/Makefile
185
plugins/meta-exiv2/Makefile
186
plugins/meta-mrw/Makefile
187
plugins/meta-raf/Makefile
188
plugins/meta-tiff/Makefile
189
plugins/meta-x3f/Makefile
190
plugins/output-jpegfile/Makefile
191
plugins/output-pngfile/Makefile
192
plugins/output-picasa/Makefile
193
plugins/output-facebook/Makefile
194
plugins/output-flickr/Makefile
195
plugins/output-tifffile/Makefile
196
plugins/resample/Makefile
197
plugins/rotate/Makefile