Skip to content

Latest commit

 

History

History
388 lines (349 loc) · 12.4 KB

configure.in

File metadata and controls

388 lines (349 loc) · 12.4 KB
 
Aug 10, 2000
Aug 10, 2000
1
dnl Process this file with autoconf to produce a configure script.
May 27, 2013
May 27, 2013
2
AC_INIT(README.txt)
Aug 10, 2000
Aug 10, 2000
3
4
5
6
7
8
9
10
11
12
13
dnl Set various version strings - taken gratefully from the GTk sources
# Making releases:
# MICRO_VERSION += 1;
# INTERFACE_AGE += 1;
# BINARY_AGE += 1;
# if any functions have been added, set INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set BINARY_AGE and INTERFACE_AGE to 0.
Feb 27, 2013
Feb 27, 2013
14
15
MAJOR_VERSION=2
MINOR_VERSION=0
Jun 19, 2019
Jun 19, 2019
16
17
18
MICRO_VERSION=5
INTERFACE_AGE=3
BINARY_AGE=5
Aug 10, 2000
Aug 10, 2000
19
20
21
22
23
24
25
26
27
28
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(MICRO_VERSION)
AC_SUBST(INTERFACE_AGE)
AC_SUBST(BINARY_AGE)
AC_SUBST(VERSION)
# libtool versioning
Oct 4, 2009
Oct 4, 2009
29
30
LT_INIT([win32-dll])
Aug 10, 2000
Aug 10, 2000
31
32
33
34
35
36
37
38
39
40
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
LT_REVISION=$INTERFACE_AGE
LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
Mar 19, 2006
Mar 19, 2006
41
42
dnl Detect the canonical build and host environments
AC_CANONICAL_HOST
Aug 10, 2000
Aug 10, 2000
43
Jul 24, 2001
Jul 24, 2001
44
dnl Setup for automake
Jan 23, 2012
Jan 23, 2012
45
AM_INIT_AUTOMAKE(SDL2_image, $VERSION)
Jul 24, 2001
Jul 24, 2001
46
Aug 10, 2000
Aug 10, 2000
47
dnl Check for tools
Oct 4, 2009
Oct 4, 2009
48
AC_PROG_LIBTOOL
Aug 10, 2000
Aug 10, 2000
49
AC_PROG_CC
Dec 30, 2011
Dec 30, 2011
50
AC_PROG_OBJC
Mar 2, 2001
Mar 2, 2001
51
AC_C_INLINE
Aug 10, 2000
Aug 10, 2000
52
AC_PROG_INSTALL
Jul 18, 2007
Jul 18, 2007
53
54
55
56
57
58
59
AC_PROG_MAKE_SET
if test -z "$host_alias"; then
hostaliaswindres=
else
hostaliaswindres="$host_alias-windres"
fi
AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
Aug 10, 2000
Aug 10, 2000
60
Mar 19, 2006
Mar 19, 2006
61
case "$host" in
Apr 5, 2001
Apr 5, 2001
62
63
64
*-*-beos*)
ac_default_prefix=/boot/develop/tools/gnupro
;;
Aug 10, 2000
Aug 10, 2000
65
*-*-cygwin* | *-*-mingw32*)
Mar 19, 2006
Mar 19, 2006
66
if test "$build" != "$host"; then # cross-compiling
Aug 20, 2001
Aug 20, 2001
67
# Default cross-compile location
Feb 2, 2014
Feb 2, 2014
68
ac_default_prefix=/usr/local/cross-tools/$host
Aug 20, 2001
Aug 20, 2001
69
70
else
# Look for the location of the tools and install there
Jan 24, 2006
Jan 24, 2006
71
if test "$BUILD_PREFIX" != ""; then
Aug 20, 2001
Aug 20, 2001
72
73
ac_default_prefix=$BUILD_PREFIX
fi
Aug 10, 2000
Aug 10, 2000
74
fi
Jul 18, 2007
Jul 18, 2007
75
76
77
if test x$WINDRES != x; then
use_version_rc=true
fi
Aug 10, 2000
Aug 10, 2000
78
;;
Nov 10, 2009
Nov 10, 2009
79
80
81
*-*-darwin*)
AC_ARG_ENABLE([imageio], [AC_HELP_STRING([--enable-imageio], [use native Mac OS X frameworks for loading images [default=yes]])],
[], [enable_imageio=yes])
Oct 14, 2018
Oct 14, 2018
82
83
84
dnl Show a message when we use ImageIO support so it's not a surprise
AC_MSG_CHECKING([for ImageIO support])
AC_MSG_RESULT($enable_imageio)
Nov 10, 2009
Nov 10, 2009
85
if test x$enable_imageio = xyes; then
Sep 7, 2013
Sep 7, 2013
86
IMG_LIBS="-Wl,-framework,ApplicationServices -lobjc $IMG_LIBS"
Nov 10, 2009
Nov 10, 2009
87
88
89
90
else
CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND"
fi
;;
Aug 10, 2000
Aug 10, 2000
91
esac
Jan 4, 2012
Jan 4, 2012
92
AM_CONDITIONAL(USE_IMAGEIO, test x$enable_imageio = xyes)
Jul 18, 2007
Jul 18, 2007
93
AM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)
Aug 10, 2000
Aug 10, 2000
94
Oct 13, 2009
Oct 13, 2009
95
96
97
98
99
100
101
102
103
104
105
106
107
108
dnl set this to use on systems that use lib64 instead of lib
base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
dnl Function to find a library in the compiler search path
find_lib()
{
gcc_bin_path=[`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
gcc_lib_path=[`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`]
env_lib_path=[`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`]
if test "$cross_compiling" = yes; then
host_lib_path=""
else
host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
fi
Nov 29, 2014
Nov 29, 2014
109
for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
Jun 8, 2013
Jun 8, 2013
110
lib=[`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`]
Oct 13, 2009
Oct 13, 2009
111
112
113
114
115
116
117
if test x$lib != x; then
echo $lib
return
fi
done
}
Aug 10, 2000
Aug 10, 2000
118
dnl Check for SDL
Nov 5, 2017
Nov 5, 2017
119
SDL_VERSION=2.0.8
Aug 7, 2009
Aug 7, 2009
120
AC_SUBST(SDL_VERSION)
Jan 31, 2012
Jan 31, 2012
121
AM_PATH_SDL2($SDL_VERSION,
Aug 10, 2000
Aug 10, 2000
122
:,
May 1, 2006
May 1, 2006
123
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
Aug 10, 2000
Aug 10, 2000
124
)
Nov 10, 2009
Nov 10, 2009
125
CFLAGS="$CFLAGS $SDL_CFLAGS"
Jan 26, 2003
Jan 26, 2003
126
LIBS="$LIBS $SDL_LIBS"
May 1, 2006
May 1, 2006
127
saved_LIBS="$LIBS"
Aug 10, 2000
Aug 10, 2000
128
129
dnl Check command-line options
Jan 13, 2009
Jan 13, 2009
130
AC_ARG_ENABLE([bmp], [AC_HELP_STRING([--enable-bmp], [support loading BMP/ICO/CUR images [default=yes]])],
May 1, 2006
May 1, 2006
131
132
133
134
135
[], [enable_bmp=yes])
AC_ARG_ENABLE([gif], [AC_HELP_STRING([--enable-gif], [support loading GIF images [default=yes]])],
[], [enable_gif=yes])
AC_ARG_ENABLE([jpg], [AC_HELP_STRING([--enable-jpg], [support loading JPG images [default=yes]])],
[], [enable_jpg=yes])
May 12, 2006
May 12, 2006
136
137
AC_ARG_ENABLE([jpg-shared], AC_HELP_STRING([--enable-jpg-shared], [dynamically load JPG support [[default=yes]]]),
[], [enable_jpg_shared=yes])
May 1, 2006
May 1, 2006
138
139
140
141
AC_ARG_ENABLE([lbm], [AC_HELP_STRING([--enable-lbm], [support loading LBM images [default=yes]])],
[], [enable_lbm=yes])
AC_ARG_ENABLE([pcx], [AC_HELP_STRING([--enable-pcx], [support loading PCX images [default=yes]])],
[], [enable_pcx=yes])
May 12, 2006
May 12, 2006
142
AC_ARG_ENABLE([png], [AC_HELP_STRING([--enable-png], [support loading PNG images [default=yes]])],
May 1, 2006
May 1, 2006
143
[], [enable_png=yes])
May 12, 2006
May 12, 2006
144
145
AC_ARG_ENABLE([png-shared], AC_HELP_STRING([--enable-png-shared], [dynamically load PNG support [[default=yes]]]),
[], [enable_png_shared=yes])
May 1, 2006
May 1, 2006
146
147
AC_ARG_ENABLE([pnm], [AC_HELP_STRING([--enable-pnm], [support loading PNM images [default=yes]])],
[], [enable_pnm=yes])
Oct 22, 2017
Oct 22, 2017
148
149
AC_ARG_ENABLE([svg], [AC_HELP_STRING([--enable-svg], [support loading SVG images [default=yes]])],
[], [enable_svg=yes])
May 1, 2006
May 1, 2006
150
151
AC_ARG_ENABLE([tga], [AC_HELP_STRING([--enable-tga], [support loading TGA images [default=yes]])],
[], [enable_tga=yes])
May 12, 2006
May 12, 2006
152
153
154
155
AC_ARG_ENABLE([tif], [AC_HELP_STRING([--enable-tif], [support loading TIFF images [default=yes]])],
[], [enable_tif=yes])
AC_ARG_ENABLE([tif-shared], AC_HELP_STRING([--enable-tif-shared], [dynamically load TIFF support [[default=yes]]]),
[], [enable_tif_shared=yes])
May 1, 2006
May 1, 2006
156
157
158
159
160
161
AC_ARG_ENABLE([xcf], [AC_HELP_STRING([--enable-xcf], [support loading XCF images [default=yes]])],
[], [enable_xcf=yes])
AC_ARG_ENABLE([xpm], [AC_HELP_STRING([--enable-xpm], [support loading XPM images [default=yes]])],
[], [enable_xpm=yes])
AC_ARG_ENABLE([xv], [AC_HELP_STRING([--enable-xv], [support loading XV images [default=yes]])],
[], [enable_xv=yes])
Dec 30, 2011
Dec 30, 2011
162
163
164
165
AC_ARG_ENABLE([webp], [AC_HELP_STRING([--enable-webp], [support loading WEBP images [default=yes]])],
[], [enable_webp=yes])
AC_ARG_ENABLE([webp-shared], AC_HELP_STRING([--enable-webp-shared], [dynamically load WEBP support [[default=yes]]]),
[], [enable_webp_shared=yes])
Jul 18, 2007
Jul 18, 2007
166
Mar 10, 2013
Mar 10, 2013
167
if (test x$enable_jpg = xyes || test x$enable_tif = xyes) && test x$enable_imageio != xyes; then
Jul 18, 2007
Jul 18, 2007
168
169
170
AC_CHECK_HEADER([jpeglib.h], [have_jpg_hdr=yes])
AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], [have_jpg_lib=yes])
if test x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
May 1, 2006
May 1, 2006
171
if test x$enable_jpg = xyes; then
Jul 18, 2007
Jul 18, 2007
172
AC_DEFINE([LOAD_JPG])
May 1, 2006
May 1, 2006
173
174
fi
LIBS="-ljpeg $LIBS"
May 12, 2006
May 12, 2006
175
176
case "$host" in
Jul 18, 2007
Jul 18, 2007
177
*-*-darwin*)
Oct 18, 2009
Oct 18, 2009
178
jpg_lib=[`find_lib libjpeg.dylib`]
May 12, 2006
May 12, 2006
179
180
;;
*-*-cygwin* | *-*-mingw32*)
Jan 2, 2012
Jan 2, 2012
181
jpg_lib=[`find_lib "libjpeg*.dll"`]
May 12, 2006
May 12, 2006
182
183
;;
*)
Jun 8, 2013
Jun 8, 2013
184
jpg_lib=[`find_lib "libjpeg[0-9]*.so.*"`]
Jul 21, 2007
Jul 21, 2007
185
if test x$jpg_lib = x; then
Jun 8, 2013
Jun 8, 2013
186
jpg_lib=[`find_lib "libjpeg.so.*"`]
Jul 18, 2007
Jul 18, 2007
187
fi
May 12, 2006
May 12, 2006
188
189
;;
esac
May 1, 2006
May 1, 2006
190
191
elif test x$enable_jpg = xyes; then
AC_MSG_WARN([*** Unable to find JPEG library (http://www.ijg.org/)])
Aug 10, 2000
Aug 10, 2000
192
193
194
AC_MSG_WARN([JPG image loading disabled])
fi
fi
May 1, 2006
May 1, 2006
195
Mar 10, 2013
Mar 10, 2013
196
if test x$enable_png = xyes -a x$enable_imageio != xyes; then
Oct 5, 2009
Oct 5, 2009
197
198
199
200
PKG_CHECK_MODULES([LIBPNG], [libpng], [dnl
have_png_hdr=yes
have_png_lib=yes
], [dnl
Feb 15, 2016
Feb 15, 2016
201
202
203
204
205
206
207
208
AC_CHECK_HEADER([png.h], [
have_png_hdr=yes
LIBPNG_CFLAGS=""
])
AC_CHECK_LIB([png], [png_create_read_struct], [
have_png_lib=yes
LIBPNG_LIBS="-lpng -lz"
], [], [-lz])
Oct 5, 2009
Oct 5, 2009
209
])
Jul 18, 2007
Jul 18, 2007
210
if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
May 1, 2006
May 1, 2006
211
AC_DEFINE([LOAD_PNG])
May 12, 2006
May 12, 2006
212
213
case "$host" in
Jul 18, 2007
Jul 18, 2007
214
*-*-darwin*)
Oct 18, 2009
Oct 18, 2009
215
png_lib=[`find_lib libpng.dylib`]
May 12, 2006
May 12, 2006
216
217
;;
*-*-cygwin* | *-*-mingw32*)
Jul 20, 2007
Jul 20, 2007
218
png_lib=[`find_lib "libpng*.dll"`]
May 12, 2006
May 12, 2006
219
220
;;
*)
Jun 8, 2013
Jun 8, 2013
221
png_lib=[`find_lib "libpng[0-9]*.so.*"`]
Oct 4, 2009
Oct 4, 2009
222
if test x$png_lib = x; then
Jun 8, 2013
Jun 8, 2013
223
png_lib=[`find_lib "libpng.so.*"`]
Oct 4, 2009
Oct 4, 2009
224
fi
May 12, 2006
May 12, 2006
225
226
;;
esac
Aug 10, 2000
Aug 10, 2000
227
else
May 1, 2006
May 1, 2006
228
AC_MSG_WARN([*** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)])
Aug 10, 2000
Aug 10, 2000
229
230
231
AC_MSG_WARN([PNG image loading disabled])
fi
fi
May 1, 2006
May 1, 2006
232
Mar 10, 2013
Mar 10, 2013
233
if test x$enable_tif = xyes -a x$enable_imageio != xyes; then
Jul 18, 2007
Jul 18, 2007
234
AC_CHECK_HEADER([tiffio.h], [have_tif_hdr=yes])
Sep 26, 2009
Sep 26, 2009
235
AC_CHECK_LIB([tiff], [TIFFClientOpen], [have_tif_lib=yes], [], [-lz])
Jul 18, 2007
Jul 18, 2007
236
if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
May 1, 2006
May 1, 2006
237
AC_DEFINE([LOAD_TIF])
May 12, 2006
May 12, 2006
238
239
case "$host" in
Jul 18, 2007
Jul 18, 2007
240
*-*-darwin*)
Oct 18, 2009
Oct 18, 2009
241
tif_lib=[`find_lib libtiff.dylib`]
May 12, 2006
May 12, 2006
242
243
;;
*-*-cygwin* | *-*-mingw32*)
Jul 20, 2007
Jul 20, 2007
244
tif_lib=[`find_lib "libtiff-*.dll"`]
May 12, 2006
May 12, 2006
245
246
;;
*)
Jun 8, 2013
Jun 8, 2013
247
tif_lib=[`find_lib "libtiff[0-9]*.so.*"`]
Jul 18, 2007
Jul 18, 2007
248
if test x$tif_lib = x; then
Jun 8, 2013
Jun 8, 2013
249
tif_lib=[`find_lib "libtiff.so.*"`]
Jul 18, 2007
Jul 18, 2007
250
fi
May 12, 2006
May 12, 2006
251
252
;;
esac
Aug 10, 2000
Aug 10, 2000
253
else
May 12, 2006
May 12, 2006
254
AC_MSG_WARN([*** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)])
Aug 10, 2000
Aug 10, 2000
255
256
257
AC_MSG_WARN([TIF image loading disabled])
fi
fi
May 1, 2006
May 1, 2006
258
Dec 30, 2011
Dec 30, 2011
259
260
261
262
263
if test x$enable_webp = xyes; then
PKG_CHECK_MODULES([LIBWEBP], [libwebp], [dnl
have_webp_hdr=yes
have_webp_lib=yes
], [dnl
Feb 15, 2016
Feb 15, 2016
264
265
266
267
268
269
270
271
AC_CHECK_HEADER([webp/decode.h], [
have_webp_hdr=yes
LIBWEBP_CFLAGS=""
])
AC_CHECK_LIB([webp], [WebPGetDecoderVersion], [
have_webp_lib=yes
LIBWEBP_LIBS="-lwebp"
], [], [-lm])
Dec 30, 2011
Dec 30, 2011
272
273
274
275
276
277
278
279
280
])
if test x$have_webp_hdr = xyes -a x$have_webp_lib = xyes; then
AC_DEFINE([LOAD_WEBP])
case "$host" in
*-*-darwin*)
webp_lib=[`find_lib libwebp.dylib`]
;;
*-*-cygwin* | *-*-mingw32*)
Oct 26, 2018
Oct 26, 2018
281
webp_lib=[`find_lib "libwebp-*.dll"`]
Dec 30, 2011
Dec 30, 2011
282
283
;;
*)
Jun 8, 2013
Jun 8, 2013
284
webp_lib=[`find_lib "libwebp[0-9]*.so.*"`]
Dec 30, 2011
Dec 30, 2011
285
if test x$webp_lib = x; then
Jun 8, 2013
Jun 8, 2013
286
webp_lib=[`find_lib "libwebp.so.*"`]
Dec 30, 2011
Dec 30, 2011
287
288
289
290
291
292
293
294
295
fi
;;
esac
else
AC_MSG_WARN([*** Unable to find WEBP library (http://code.google.com/intl/en-US/speed/webp/index.html)])
AC_MSG_WARN([WEBP Pimage loading disabled])
fi
fi
May 1, 2006
May 1, 2006
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
if test x$enable_bmp = xyes; then
AC_DEFINE([LOAD_BMP])
fi
if test x$enable_gif = xyes; then
AC_DEFINE([LOAD_GIF])
fi
if test x$enable_lbm = xyes; then
AC_DEFINE([LOAD_LBM])
fi
if test x$enable_pcx = xyes; then
AC_DEFINE([LOAD_PCX])
fi
if test x$enable_pnm = xyes; then
AC_DEFINE([LOAD_PNM])
fi
Oct 22, 2017
Oct 22, 2017
316
317
318
319
if test x$enable_svg = xyes; then
AC_DEFINE([LOAD_SVG])
fi
May 1, 2006
May 1, 2006
320
321
322
323
if test x$enable_tga = xyes; then
AC_DEFINE([LOAD_TGA])
fi
Mar 7, 2001
Mar 7, 2001
324
if test x$enable_xcf = xyes; then
May 1, 2006
May 1, 2006
325
AC_DEFINE([LOAD_XCF])
Mar 7, 2001
Mar 7, 2001
326
fi
May 1, 2006
May 1, 2006
327
Nov 29, 2000
Nov 29, 2000
328
if test x$enable_xpm = xyes; then
May 1, 2006
May 1, 2006
329
AC_DEFINE([LOAD_XPM])
Nov 29, 2000
Nov 29, 2000
330
fi
May 1, 2006
May 1, 2006
331
Feb 4, 2006
Feb 4, 2006
332
if test x$enable_xv = xyes; then
May 1, 2006
May 1, 2006
333
AC_DEFINE([LOAD_XV])
Feb 4, 2006
Feb 4, 2006
334
fi
May 1, 2006
May 1, 2006
335
Dec 30, 2011
Dec 30, 2011
336
if test x$enable_webp = xyes -a x$have_webp_hdr = xyes -a x$have_webp_lib = xyes; then
Feb 15, 2016
Feb 15, 2016
337
CFLAGS="$LIBWEBP_CFLAGS $CFLAGS"
Dec 30, 2011
Dec 30, 2011
338
339
340
341
if test x$enable_webp_shared = xyes && test x$webp_lib != x; then
echo "-- dynamic libwebp -> $webp_lib"
AC_DEFINE_UNQUOTED(LOAD_WEBP_DYNAMIC, "$webp_lib")
else
Feb 15, 2016
Feb 15, 2016
342
IMG_LIBS="$LIBWEBP_LIBS $IMG_LIBS"
Dec 30, 2011
Dec 30, 2011
343
344
345
fi
fi
Jul 18, 2007
Jul 18, 2007
346
if test x$enable_tif = xyes -a x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
May 12, 2006
May 12, 2006
347
348
349
350
351
352
353
354
if test x$enable_tif_shared = xyes && test x$tif_lib != x; then
echo "-- dynamic libtiff -> $tif_lib"
AC_DEFINE_UNQUOTED(LOAD_TIF_DYNAMIC, "$tif_lib")
else
if test x$have_libjpeg = xyes; then
# Disable dynamic jpeg since we're linking it explicitly
jpg_lib=''
fi
Jul 5, 2007
Jul 5, 2007
355
IMG_LIBS="-ltiff -lz $IMG_LIBS"
May 12, 2006
May 12, 2006
356
357
fi
fi
Jul 18, 2007
Jul 18, 2007
358
if test x$enable_jpg = xyes -a x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
May 12, 2006
May 12, 2006
359
360
361
362
363
364
365
if test x$enable_jpg_shared = xyes && test x$jpg_lib != x; then
echo "-- dynamic libjpeg -> $jpg_lib"
AC_DEFINE_UNQUOTED(LOAD_JPG_DYNAMIC, "$jpg_lib")
else
IMG_LIBS="-ljpeg $IMG_LIBS"
fi
fi
Jul 18, 2007
Jul 18, 2007
366
if test x$enable_png = xyes -a x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
Feb 15, 2016
Feb 15, 2016
367
CFLAGS="$LIBPNG_CFLAGS $CFLAGS"
May 12, 2006
May 12, 2006
368
369
370
371
if test x$enable_png_shared = xyes && test x$png_lib != x; then
echo "-- dynamic libpng -> $png_lib"
AC_DEFINE_UNQUOTED(LOAD_PNG_DYNAMIC, "$png_lib")
else
Feb 15, 2016
Feb 15, 2016
372
IMG_LIBS="$LIBPNG_LIBS $IMG_LIBS"
May 12, 2006
May 12, 2006
373
374
375
fi
fi
May 1, 2006
May 1, 2006
376
377
LIBS="$saved_LIBS"
Jul 18, 2007
Jul 18, 2007
378
379
AC_SUBST([WINDRES])
AC_SUBST([IMG_LIBS])
Aug 10, 2000
Aug 10, 2000
380
Dec 30, 2011
Dec 30, 2011
381
382
OBJCFLAGS=$CFLAGS
Aug 10, 2000
Aug 10, 2000
383
384
385
# Finally create all the generated files
AC_OUTPUT([
Makefile
Jan 23, 2012
Jan 23, 2012
386
387
SDL2_image.spec
SDL2_image.pc
Aug 10, 2000
Aug 10, 2000
388
])