--- configure.in.orig 2005-01-23 17:17:21.000000000 -0500 +++ configure.in 2005-01-23 17:17:38.000000000 -0500 @@ -15,8 +15,6 @@ dnl Mingw, because it doesnt have a standard file tree. Maybe if ming do this dnl else do -I/usr/include. Or some shit. You figure it out. -LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/lib" - dnl -- Same thing here. AC_CANONICAL_SYSTEM @@ -84,7 +82,9 @@ CFLAGS="$CFLAGS -I$opengl_prefix/include" LDFLAGS-"$LDFLAGS -L$opengl_prefix/lib" fi +if test x$x_libraries != x; then LDFLAGS="$LDFLAGS -L$x_libraries" +fi AC_CHECK_LIB(GL, glGetError,found_opengl="yes",,) if test x$found_opengl = xyes; then echo checking for OpenGL... yes @@ -118,36 +118,10 @@ else AC_MSG_RESULT(no) - CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer -fexpensive-optimizations -s" NFLAGS="$NFLAGS -O1" ZSNESEXE="zsnes" fi -AC_MSG_CHECKING(which processor class to optimize for) -if test x$debug != xyes; then - case "$target" in - i486-*-*) - CFLAGS="$CFLAGS -march=i486" - AC_MSG_RESULT(486) - ;; - i586-*-*) - CFLAGS="$CFLAGS -march=pentium" - AC_MSG_RESULT(586) - ;; - i686-*-*) - CFLAGS="$CFLAGS -march=pentiumpro" - dnl CFLAGS="$CFLAGS -march=pentium3 -mmmx -msse -mfpmath=sse,387" - AC_MSG_RESULT(686) - ;; - *) - AC_MSG_RESULT(386) - AC_MSG_WARN(*** This is probably not what you want use --target) - ;; - esac -else - AC_MSG_RESULT(no optimization because debug enabled) -fi - dnl Checks for header files. AC_HEADER_STDC AC_HEADER_MAJOR