From 06f3cb4f8ed697f4b4a73b2529b31cffce6a2041 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 13 Oct 2004 20:18:35 +0000 Subject: [PATCH] Fix a couple bugs in openal detection. I should actually generate a new configure and test it, rather than testing the old configure script. --- configure.ac | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 9e93013f..d3035616 100644 --- a/configure.ac +++ b/configure.ac @@ -279,9 +279,7 @@ case "${host}" in AC_SEARCH_LIBS(alGenBuffers, openal32) AC_SEARCH_LIBS(alutInit, [ openal32 ALut ] ) LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32" - if test "x$ac_cv_lib_openal32_algenbuffers" == "xyes"; then - OPENAL_OK="yes" - fi + OPENAL_OK="$ac_cv_search_alGenBuffers" ;; *-apple-darwin*) @@ -296,14 +294,12 @@ case "${host}" in dnl default unix style machines AC_SEARCH_LIBS(alGenBuffers, openal) - if test "x$ac_cv_lib_openal_algenbuffers" == "xyes"; then - OPENAL_OK="yes" - fi + OPENAL_OK="$ac_cv_search_alGenBuffers" ;; esac -if test "x$OPENAL_OK" != "xyes"; then +if test "$OPENAL_OK" == "no"; then echo echo "You *must* have the openal library installed on your system to build" echo "SimGear!" -- 2.39.5