Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 521:33d2d92784c7
prev509:d72564edc482
next526:ba3da45b5754
author nkeynes
date Sat Nov 17 01:13:41 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Detect presence of SH4 + ARM cross-compilers, and disable the system tests if
we don't find the sh-elf environment.
Detect build host to see if we can make a working translator
file annotate diff log raw
1.1 --- a/configure.in Wed Nov 14 10:18:21 2007 +0000
1.2 +++ b/configure.in Sat Nov 17 01:13:41 2007 +0000
1.3 @@ -9,6 +9,8 @@
1.4 AC_PROG_CC
1.5 AM_PROG_CC_STDC
1.6 AC_HEADER_STDC
1.7 +AC_CANONICAL_BUILD
1.8 +AC_CANONICAL_HOST
1.9
1.10 PKG_CHECK_MODULES(PACKAGE,
1.11 [ gtk+-2.0 dnl
1.12 @@ -20,12 +22,47 @@
1.13 AC_CHECK_LIB(GL, glXQueryVersion, [], [
1.14 echo "The OpenGL library (libGL.so) could not be found, but is required."
1.15 exit 1])
1.16 +AC_CHECK_HEADER([GL/gl.h], [], [
1.17 + echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
1.18 + exit 1])
1.19 +
1.20 +dnl Check for a supported cpu target for translation purposes
1.21 +case $host_cpu in
1.22 + i386|i486|i586|i686|x86_64)
1.23 + TRANSLATOR="x86";;
1.24 + *)
1.25 + echo "Warning: No translator available for $host. Building emulation core only";;
1.26 +esac
1.27 +AM_CONDITIONAL(BUILD_SH4X86, [test "$TRANSLATOR"="x86"])
1.28
1.29 dnl Check for cdrom device support
1.30 AC_CHECK_HEADER([linux/cdrom.h], [HAVE_LINUX_CDROM_H=yes], [
1.31 echo "Linux CDROM support not found, building without it."] )
1.32 AM_CONDITIONAL(CDROM_LINUX, [test "$HAVE_LINUX_CDROM_H" = "yes"])
1.33
1.34 +dnl Check for cross-compiler availability
1.35 +AC_PATH_PROG(SHCC, [sh-elf-gcc])
1.36 +AC_PATH_PROG(SHLD, [sh-elf-ld])
1.37 +AC_PATH_PROG(SHOBJCOPY, [sh-elf-objcopy])
1.38 +AC_PATH_PROG(ARMCC, [arm-elf-gcc])
1.39 +AC_PATH_PROG(ARMLD, [arm-elf-ld])
1.40 +AC_PATH_PROG(ARMOBJCOPY, [arm-elf-objcopy])
1.41 +
1.42 +if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
1.43 + BUILD_SH="no"
1.44 + echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
1.45 +else
1.46 + BUILD_SH="yes"
1.47 +fi
1.48 +if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
1.49 + BUILD_ARM="no"
1.50 + echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
1.51 +else
1.52 + BUILD_ARM="yes"
1.53 +fi
1.54 +AM_CONDITIONAL(BUILD_SYSTEST, [test "$BUILD_SH" = "yes"])
1.55 +AM_CONDITIONAL(BUILD_ARMTEST, [test "$BUILD_ARM" = "yes"])
1.56 +
1.57 GETTEXT_PACKAGE=lxdream
1.58 AC_SUBST(GETTEXT_PACKAGE)
1.59 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
1.60 @@ -41,5 +78,6 @@
1.61 Makefile
1.62 src/Makefile
1.63 po/Makefile.in
1.64 +test/Makefile
1.65 ])
1.66
.