⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 It is extension program for SDL to display images other than bmp, but all the other formats.
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(README)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.MAJOR_VERSION=1MINOR_VERSION=2MICRO_VERSION=7INTERFACE_AGE=6BINARY_AGE=7VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSIONAC_SUBST(MAJOR_VERSION)AC_SUBST(MINOR_VERSION)AC_SUBST(MICRO_VERSION)AC_SUBST(INTERFACE_AGE)AC_SUBST(BINARY_AGE)AC_SUBST(VERSION)# libtool versioningLT_RELEASE=$MAJOR_VERSION.$MINOR_VERSIONLT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`LT_REVISION=$INTERFACE_AGELT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`AC_SUBST(LT_RELEASE)AC_SUBST(LT_CURRENT)AC_SUBST(LT_REVISION)AC_SUBST(LT_AGE)dnl Detect the canonical build and host environmentsAC_CANONICAL_HOSTdnl Setup for automakeAM_INIT_AUTOMAKE(SDL_image, $VERSION)dnl Check for toolsAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_PROG_CCAC_C_INLINEAC_PROG_INSTALLAC_PROG_MAKE_SETif test -z "$host_alias"; then    hostaliaswindres=else    hostaliaswindres="$host_alias-windres"fiAC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])case "$host" in    *-*-beos*)        ac_default_prefix=/boot/develop/tools/gnupro        ;;    *-*-cygwin* | *-*-mingw32*)        if test "$build" != "$host"; then # cross-compiling            # Default cross-compile location            ac_default_prefix=/usr/local/cross-tools/i386-mingw32        else            # Look for the location of the tools and install there            if test "$BUILD_PREFIX" != ""; then                ac_default_prefix=$BUILD_PREFIX            fi        fi        if test x$WINDRES != x; then            use_version_rc=true        fi        ;;esacAM_CONDITIONAL(USE_VERSION_RC, test x$use_version_rc = xtrue)dnl Check for SDLSDL_VERSION=1.2.10AM_PATH_SDL($SDL_VERSION,            :,           AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))CFLAGS="$CFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"saved_LIBS="$LIBS"dnl Check command-line optionsAC_ARG_ENABLE([bmp], [AC_HELP_STRING([--enable-bmp], [support loading BMP images [default=yes]])], [], [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])AC_ARG_ENABLE([jpg-shared], AC_HELP_STRING([--enable-jpg-shared], [dynamically load JPG support [[default=yes]]]), [], [enable_jpg_shared=yes])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])AC_ARG_ENABLE([png], [AC_HELP_STRING([--enable-png], [support loading PNG images [default=yes]])], [], [enable_png=yes])AC_ARG_ENABLE([png-shared], AC_HELP_STRING([--enable-png-shared], [dynamically load PNG support [[default=yes]]]), [], [enable_png_shared=yes])AC_ARG_ENABLE([pnm], [AC_HELP_STRING([--enable-pnm], [support loading PNM images [default=yes]])], [], [enable_pnm=yes])AC_ARG_ENABLE([tga], [AC_HELP_STRING([--enable-tga], [support loading TGA images [default=yes]])], [], [enable_tga=yes])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])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])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'`]    for path in $gcc_bin_path $gcc_lib_path $env_lib_path /usr/lib /usr/local/lib; do        lib=[`ls -- $path/$1 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]        if test x$lib != x; then            echo $lib            return        fi    done}if test x$enable_jpg = xyes || test x$enable_tif = xyes; then    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        if test x$enable_jpg = xyes; then            AC_DEFINE([LOAD_JPG])        fi        LIBS="-ljpeg $LIBS"        case "$host" in            *-*-darwin*)                jpg_lib=[`find_lib libjpeg*.dylib`]                ;;            *-*-cygwin* | *-*-mingw32*)                jpg_lib=[`find_lib "jpeg.dll"`]                ;;            *)                jpg_lib=[`find_lib "libjpeg.so.[0-9]"`]                if test x$jpg_lib = x; then                    jpg_lib=[`find_lib "libjpeg.so.[0-9][0-9]"`]                fi                if test x$jpg_lib = x; then                    jpg_lib=[`find_lib "libjpeg.so.[0-9]*"`]                fi                ;;        esac    elif test x$enable_jpg = xyes; then        AC_MSG_WARN([*** Unable to find JPEG library (http://www.ijg.org/)])        AC_MSG_WARN([JPG image loading disabled])    fifiif test x$enable_png = xyes; then    AC_CHECK_HEADER([png.h], [have_png_hdr=yes])    AC_CHECK_LIB([png], [png_create_read_struct], [have_png_lib=yes])    if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then        AC_DEFINE([LOAD_PNG])        case "$host" in            *-*-darwin*)                png_lib=[`find_lib libpng*.dylib`]                ;;            *-*-cygwin* | *-*-mingw32*)                png_lib=[`find_lib "libpng*.dll"`]                ;;            *)                png_lib=[`find_lib "libpng.so.[0-9]"`]                if test x$png_lib = x; then                    png_lib=[`find_lib "libpng.so.[0-9]*"`]                fi                ;;        esac    else        AC_MSG_WARN([*** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)])        AC_MSG_WARN([PNG image loading disabled])    fifiif test x$enable_tif = xyes; then    AC_CHECK_HEADER([tiffio.h], [have_tif_hdr=yes])    AC_CHECK_LIB([tiff], [TIFFClientOpen], [have_tif_lib=yes])    if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then        AC_DEFINE([LOAD_TIF])        case "$host" in            *-*-darwin*)                tif_lib=[`find_lib libtiff*.dylib`]                ;;            *-*-cygwin* | *-*-mingw32*)                tif_lib=[`find_lib "libtiff-*.dll"`]                ;;            *)                tif_lib=[`find_lib "libtiff.so.[0-9]"`]                if test x$tif_lib = x; then                    tif_lib=[`find_lib "libtiff.so.[0-9]*"`]                fi                ;;        esac    else        AC_MSG_WARN([*** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)])        AC_MSG_WARN([TIF image loading disabled])    fifiif test x$enable_bmp = xyes; then    AC_DEFINE([LOAD_BMP])fiif test x$enable_gif = xyes; then    AC_DEFINE([LOAD_GIF])fiif test x$enable_lbm = xyes; then    AC_DEFINE([LOAD_LBM])fiif test x$enable_pcx = xyes; then    AC_DEFINE([LOAD_PCX])fiif test x$enable_pnm = xyes; then    AC_DEFINE([LOAD_PNM])fiif test x$enable_tga = xyes; then    AC_DEFINE([LOAD_TGA])fiif test x$enable_xcf = xyes; then    AC_DEFINE([LOAD_XCF])fiif test x$enable_xpm = xyes; then    AC_DEFINE([LOAD_XPM])fiif test x$enable_xv = xyes; then    AC_DEFINE([LOAD_XV])fiif test x$enable_tif = xyes -a x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then    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        IMG_LIBS="-ltiff -lz $IMG_LIBS"    fifiif test x$enable_jpg = xyes -a x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then    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"    fifiif test x$enable_png = xyes -a x$have_png_hdr = xyes -a x$have_png_lib = xyes; then    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        IMG_LIBS="-lpng -lz $IMG_LIBS"    fifiLIBS="$saved_LIBS"AC_SUBST([WINDRES])AC_SUBST([IMG_LIBS])# Finally create all the generated filesAC_OUTPUT([MakefileSDL_image.specSDL_image.qpg])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -