1999-08-05 14:51:50 -07:00
|
|
|
dnl Process this file with autoconf to create configure.
|
|
|
|
|
1999-11-01 09:40:51 -08:00
|
|
|
AC_INIT(src/Imlib2.h)
|
1999-08-05 14:51:50 -07:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
2000-04-08 12:15:48 -07:00
|
|
|
AC_CANONICAL_SYSTEM
|
2000-04-26 19:32:28 -07:00
|
|
|
mmx=no
|
|
|
|
AC_ARG_ENABLE(mmx, "Enables building of MMX assembly routines",
|
|
|
|
[
|
|
|
|
echo "*****************YESYESYESYESYESYES****************"
|
|
|
|
if test x$enableval = xyes; then
|
|
|
|
mmx=yes
|
|
|
|
fi
|
|
|
|
],
|
|
|
|
[
|
|
|
|
echo "*****************NOT****************"
|
|
|
|
if test x$target_os = xlinux-gnu; then
|
|
|
|
mmx=`cat /proc/cpuinfo | grep mmx`
|
|
|
|
if test -n "$mmx"; then
|
|
|
|
mmx=yes
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "You are not running Linux - This script cannot auto-detect mmx assembly."
|
|
|
|
echo "You will have to ebnalbe the mmx assembly (which gives anywhere from 10%"
|
|
|
|
echo "to 300% speedups) by adding --enable-mmx on the configure command-line."
|
2000-04-08 12:15:48 -07:00
|
|
|
fi
|
2000-04-26 19:32:28 -07:00
|
|
|
]
|
|
|
|
)
|
|
|
|
if test x$mmx = xyes; then
|
|
|
|
AC_DEFINE(DO_MMX_ASM, 1, [enabling MMX Assembly])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE(imlib2, 0.0.4)
|
1999-08-05 14:51:50 -07:00
|
|
|
|
|
|
|
pkglibdir='${libdir}'/loaders
|
|
|
|
AC_SUBST(pkglibdir)
|
|
|
|
|
2000-04-08 12:15:48 -07:00
|
|
|
AC_C_BIGENDIAN
|
1999-09-19 14:53:58 -07:00
|
|
|
|
1999-08-05 14:51:50 -07:00
|
|
|
AC_LIBLTDL_CONVENIENCE
|
|
|
|
AC_CONFIG_SUBDIRS(libltdl)
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_STDC
|
|
|
|
AC_C_CONST
|
|
|
|
|
|
|
|
AM_ENABLE_SHARED
|
1999-12-17 07:37:18 -08:00
|
|
|
dnl AM_DISABLE_STATIC
|
1999-08-05 14:51:50 -07:00
|
|
|
AC_LIBTOOL_DLOPEN
|
1999-12-17 07:37:18 -08:00
|
|
|
dnl AC_LIBTOOL_WIN32_DLL
|
1999-08-05 14:51:50 -07:00
|
|
|
AM_PROG_LIBTOOL
|
2000-04-12 16:40:10 -07:00
|
|
|
AM_WITH_DMALLOC
|
1999-08-05 14:51:50 -07:00
|
|
|
|
|
|
|
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 <stdio.h>
|
|
|
|
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)
|
|
|
|
|
2000-02-22 14:29:17 -08:00
|
|
|
AC_CHECK_HEADERS(freetype.h freetype/freetype.h,[ break] , )
|
1999-12-10 06:26:12 -08:00
|
|
|
|
1999-11-02 07:29:52 -08:00
|
|
|
AC_OUTPUT(Makefile loaders/Makefile src/Makefile test/Makefile demo/Makefile,
|
1999-08-05 14:51:50 -07:00
|
|
|
[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
|