dnl Process this file with autoconf to create configure. AC_INIT(src/Imlib2.h) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(imlib2, 0.0.1) pkglibdir='${libdir}'/loaders AC_SUBST(pkglibdir) AC_C_BIGENDIAN AC_LIBLTDL_CONVENIENCE AC_CONFIG_SUBDIRS(libltdl) AC_PROG_CC AM_PROG_CC_STDC AC_C_CONST AM_ENABLE_SHARED AM_DISABLE_STATIC AC_LIBTOOL_DLOPEN AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL if test X"$enable_shared" = Xyes; then DLLDFLAGS=-export-dynamic AC_SUBST(DLLDFLAGS) fi AC_PROG_INSTALL AC_PROG_MAKE_SET AC_MSG_CHECKING(whether fopen accepts "b" mode) AC_CACHE_VAL([ag_cv_func_fopen_binary], [AC_TRY_RUN([#include int main (int argc, char *argv[]) { FILE *fp = fopen("/bin/sh", "rb"); return (fclose(fp) >= 0); }],[ag_cv_func_fopen_binary=yes], [ag_cv_func_fopen_binary=yes],[ag_cv_func_fopen_binary=yes]) rm -f core *.exe.core]) AC_MSG_RESULT([$ag_cv_func_fopen_binary]) if test x$ag_cv_func_fopen_binary = xyes; then AC_DEFINE(USE_FOPEN_BINARY, 1, [Define this if we can use the "b" mode for fopen safely.]) fi LTLIBOBJS=`echo "$LIBOBJS" | sed 's,.o ,.lo ,g;s,.o$,.lo,'` AC_SUBST(LTLIBOBJS) AC_OUTPUT(Makefile loaders/Makefile src/Makefile test/Makefile demo/Makefile, [test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])