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