1dnl 2 3AC_PREREQ(2.55) 4AC_INIT(PUAE, 2.5.1, mustafa.tufan@gmail.com, puae) 5AC_CONFIG_HEADER(sysconfig.h) 6AC_CANONICAL_TARGET 7 8dnl Checks for programs. 9AC_PROG_CC 10AC_PROG_CPP 11AC_PROG_MAKE_SET 12AC_PROG_INSTALL 13 14AC_AIX 15AC_ISC_POSIX 16 17dnl Checks for header files 18AC_HEADER_STDC 19 20dnl Checks for typedefs, structures, and compiler characteristics. 21AC_C_CONST 22AC_C_INLINE 23 24AC_CHECK_SIZEOF(char, 1) 25AC_CHECK_SIZEOF(short, 2) 26AC_CHECK_SIZEOF(int, 4) 27AC_CHECK_SIZEOF(long, 4) 28AC_CHECK_SIZEOF(long long, 8) 29AC_CHECK_SIZEOF(__int64, 8) 30AC_CHECK_SIZEOF(void *) 31 32if test $ac_cv_prog_gcc = yes; then 33 CFLAGS="$CFLAGS -Wall -W -Wno-unused" 34fi 35 36dnl Checks for library functions. 37AC_PROG_GCC_TRADITIONAL 38AC_FUNC_VPRINTF 39AC_CHECK_FUNCS([strdup strcasecmp strcmpi stricmp]) 40 41AC_SUBST(ac_cv_c_inline) 42AC_SUBST(SET_MAKE) 43 44AC_SUBST(top_srcdir) 45 46 47dnl Do we want a possible optimization for bigendian targets? 48dnl So far, this has proved benefical only on OS X (and probably Dawrwin), so we 49dnl only enable it there. Should really check compiler version too. 50 51if [[ "$target_cpu" = "powerpc" ]]; then 52 case $target_os in 53 darwin*) 54 CFLAGS="$CFLAGS -DUSE_DUBIOUS_BIGENDIAN_OPTIMIZATION" 55 ;; 56 esac 57fi 58 59AC_CONFIG_FILES([Makefile]) 60 61AC_CONFIG_LINKS([missing.c:../missing.c 62 writelog.c:../writelog.c 63 readcpu.c:../readcpu.c 64 build68k.c:../build68k.c 65 gencpu.c:../gencpu.c 66 gencomp.c:../gencomp.c 67 genblitter.c:../genblitter.c 68 blitops.c:../blitops.c 69 genlinetoscr.c:../genlinetoscr.c 70]) 71 72AC_OUTPUT 73