configure
changeset 6 cb0e8db1f996
parent 1 4ef9250a6471
child 20 ef0f22476bc5
equal deleted inserted replaced
5:ebdf63084644 6:cb0e8db1f996
  1663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1664 
  1664 
  1665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1666 
  1666 
  1667 
  1667 
       
  1668 echo $ac_n "checking target system type""... $ac_c" 1>&6
       
  1669 echo "configure:1670: checking target system type" >&5
       
  1670 
       
  1671 target_alias=$target
       
  1672 case "$target_alias" in
       
  1673 NONE)
       
  1674   case $nonopt in
       
  1675   NONE) target_alias=$host_alias ;;
       
  1676   *) target_alias=$nonopt ;;
       
  1677   esac ;;
       
  1678 esac
       
  1679 
       
  1680 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
       
  1681 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
       
  1682 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
       
  1683 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
       
  1684 echo "$ac_t""$target" 1>&6
       
  1685 
       
  1686 case "$target" in
       
  1687     alpha*-*-linux*)
       
  1688         CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall"
       
  1689         ;;
       
  1690 esac
       
  1691 
  1668 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
  1692 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
  1669 if test "${with_sdl_prefix+set}" = set; then
  1693 if test "${with_sdl_prefix+set}" = set; then
  1670   withval="$with_sdl_prefix"
  1694   withval="$with_sdl_prefix"
  1671   sdl_prefix="$withval"
  1695   sdl_prefix="$withval"
  1672 else
  1696 else
  1704   fi
  1728   fi
  1705 
  1729 
  1706   # Extract the first word of "sdl-config", so it can be a program name with args.
  1730   # Extract the first word of "sdl-config", so it can be a program name with args.
  1707 set dummy sdl-config; ac_word=$2
  1731 set dummy sdl-config; ac_word=$2
  1708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1709 echo "configure:1710: checking for $ac_word" >&5
  1733 echo "configure:1734: checking for $ac_word" >&5
  1710 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  1734 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
  1711   echo $ac_n "(cached) $ac_c" 1>&6
  1735   echo $ac_n "(cached) $ac_c" 1>&6
  1712 else
  1736 else
  1713   case "$SDL_CONFIG" in
  1737   case "$SDL_CONFIG" in
  1714   /*)
  1738   /*)
  1739   echo "$ac_t""no" 1>&6
  1763   echo "$ac_t""no" 1>&6
  1740 fi
  1764 fi
  1741 
  1765 
  1742   min_sdl_version=0.11.2
  1766   min_sdl_version=0.11.2
  1743   echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  1767   echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
  1744 echo "configure:1745: checking for SDL - version >= $min_sdl_version" >&5
  1768 echo "configure:1769: checking for SDL - version >= $min_sdl_version" >&5
  1745   no_sdl=""
  1769   no_sdl=""
  1746   if test "$SDL_CONFIG" = "no" ; then
  1770   if test "$SDL_CONFIG" = "no" ; then
  1747     no_sdl=yes
  1771     no_sdl=yes
  1748   else
  1772   else
  1749     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  1773     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
  1763       rm -f conf.sdltest
  1787       rm -f conf.sdltest
  1764       if test "$cross_compiling" = yes; then
  1788       if test "$cross_compiling" = yes; then
  1765   echo $ac_n "cross compiling; assumed OK... $ac_c"
  1789   echo $ac_n "cross compiling; assumed OK... $ac_c"
  1766 else
  1790 else
  1767   cat > conftest.$ac_ext <<EOF
  1791   cat > conftest.$ac_ext <<EOF
  1768 #line 1769 "configure"
  1792 #line 1793 "configure"
  1769 #include "confdefs.h"
  1793 #include "confdefs.h"
  1770 
  1794 
  1771 #include <stdio.h>
  1795 #include <stdio.h>
  1772 #include <stdlib.h>
  1796 #include <stdlib.h>
  1773 #include <string.h>
  1797 #include <string.h>
  1821     }
  1845     }
  1822 }
  1846 }
  1823 
  1847 
  1824 
  1848 
  1825 EOF
  1849 EOF
  1826 if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1827 then
  1851 then
  1828   :
  1852   :
  1829 else
  1853 else
  1830   echo "configure: failed program was:" >&5
  1854   echo "configure: failed program was:" >&5
  1831   cat conftest.$ac_ext >&5
  1855   cat conftest.$ac_ext >&5
  1855        else
  1879        else
  1856           echo "*** Could not run SDL test program, checking why..."
  1880           echo "*** Could not run SDL test program, checking why..."
  1857           CFLAGS="$CFLAGS $SDL_CFLAGS"
  1881           CFLAGS="$CFLAGS $SDL_CFLAGS"
  1858           LIBS="$LIBS $SDL_LIBS"
  1882           LIBS="$LIBS $SDL_LIBS"
  1859           cat > conftest.$ac_ext <<EOF
  1883           cat > conftest.$ac_ext <<EOF
  1860 #line 1861 "configure"
  1884 #line 1885 "configure"
  1861 #include "confdefs.h"
  1885 #include "confdefs.h"
  1862 
  1886 
  1863 #include <stdio.h>
  1887 #include <stdio.h>
  1864 #include <SDL/SDL.h>
  1888 #include <SDL/SDL.h>
  1865 
  1889 
  1866 int main() {
  1890 int main() {
  1867  return 0; 
  1891  return 0; 
  1868 ; return 0; }
  1892 ; return 0; }
  1869 EOF
  1893 EOF
  1870 if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1894 if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1871   rm -rf conftest*
  1895   rm -rf conftest*
  1872    echo "*** The test program compiled, but did not run. This usually means"
  1896    echo "*** The test program compiled, but did not run. This usually means"
  1873           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  1897           echo "*** that the run-time linker is not finding SDL or finding the wrong"
  1874           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  1898           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  1875           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1899           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  1957   enable_music_mp3=yes
  1981   enable_music_mp3=yes
  1958 fi
  1982 fi
  1959 
  1983 
  1960 if test x$enable_music_mp3 = xyes; then
  1984 if test x$enable_music_mp3 = xyes; then
  1961     echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
  1985     echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
  1962 echo "configure:1963: checking for SMPEG headers and libraries" >&5
  1986 echo "configure:1987: checking for SMPEG headers and libraries" >&5
  1963     have_smpeg=no
  1987     have_smpeg=no
  1964     cat > conftest.$ac_ext <<EOF
  1988     cat > conftest.$ac_ext <<EOF
  1965 #line 1966 "configure"
  1989 #line 1990 "configure"
  1966 #include "confdefs.h"
  1990 #include "confdefs.h"
  1967 
  1991 
  1968      #include <smpeg/smpeg.h>
  1992      #include <smpeg/smpeg.h>
  1969     
  1993     
  1970 int main() {
  1994 int main() {
  1971 
  1995 
  1972     
  1996     
  1973 ; return 0; }
  1997 ; return 0; }
  1974 EOF
  1998 EOF
  1975 if { (eval echo configure:1976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1999 if { (eval echo configure:2000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1976   rm -rf conftest*
  2000   rm -rf conftest*
  1977   
  2001   
  1978     have_smpeg=yes
  2002     have_smpeg=yes
  1979     
  2003     
  1980 else
  2004 else
  2193 s%@LD@%$LD%g
  2217 s%@LD@%$LD%g
  2194 s%@NM@%$NM%g
  2218 s%@NM@%$NM%g
  2195 s%@LN_S@%$LN_S%g
  2219 s%@LN_S@%$LN_S%g
  2196 s%@RANLIB@%$RANLIB%g
  2220 s%@RANLIB@%$RANLIB%g
  2197 s%@LIBTOOL@%$LIBTOOL%g
  2221 s%@LIBTOOL@%$LIBTOOL%g
       
  2222 s%@target@%$target%g
       
  2223 s%@target_alias@%$target_alias%g
       
  2224 s%@target_cpu@%$target_cpu%g
       
  2225 s%@target_vendor@%$target_vendor%g
       
  2226 s%@target_os@%$target_os%g
  2198 s%@SDL_CONFIG@%$SDL_CONFIG%g
  2227 s%@SDL_CONFIG@%$SDL_CONFIG%g
  2199 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
  2228 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
  2200 s%@SDL_LIBS@%$SDL_LIBS%g
  2229 s%@SDL_LIBS@%$SDL_LIBS%g
  2201 s%@MUSIC_SUBDIRS@%$MUSIC_SUBDIRS%g
  2230 s%@MUSIC_SUBDIRS@%$MUSIC_SUBDIRS%g
  2202 s%@USE_MIKMOD_TRUE@%$USE_MIKMOD_TRUE%g
  2231 s%@USE_MIKMOD_TRUE@%$USE_MIKMOD_TRUE%g