X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.ac;h=83040536a7920ba735fc8de2d7f40b62fdd7634b;hb=6491746809f30231df40049a278c8e43adec5072;hp=66732599ff454d41ed97f9b901b98f963201e756;hpb=7e1fe7d852ea77f3f533fd1677aa9a1a51e2a778;p=simgear.git diff --git a/configure.ac b/configure.ac index 66732599..83040536 100644 --- a/configure.ac +++ b/configure.ac @@ -268,6 +268,7 @@ LIBS="$base_LIBS" dnl check for OpenAL libraries OPENAL_OK="no" +ALUT_OK="no" case "${host}" in *-*-cygwin* | *-*-mingw32*) dnl CygWin under Windoze. @@ -278,6 +279,7 @@ case "${host}" in LIBS="$LIBS -lwinmm -ldsound -ldxguid -lole32" openal_LIBS="$LIBS" OPENAL_OK="$ac_cv_search_alGenBuffers" + ALUT_OK="$ac_cv_search_alutInit" ;; *-apple-darwin*) @@ -287,6 +289,7 @@ case "${host}" in openal_LIBS="$LIBS" # not sure how to test if OpenAL exists on MacOS (does it come by default?) OPENAL_OK="yes" + ALUT_OK="yes" ;; *) @@ -297,6 +300,7 @@ case "${host}" in AC_SEARCH_LIBS(alGenBuffers, openal) AC_SEARCH_LIBS(alutInit, [ alut openal ] ) OPENAL_OK="$ac_cv_search_alGenBuffers" + ALUT_OK="$ac_cv_search_alutInit" openal_LIBS="$LIBS" LIBS=$save_LIBS ;; @@ -314,6 +318,19 @@ if test "$OPENAL_OK" == "no"; then exit fi +if test "$ALUT_OK" == "no"; then + echo + echo "You *must* have the alut library installed on your system to build" + echo "SimGear!" + echo + echo "Please see README.OpenAL for more details." + echo + echo "configure aborted." + exit +fi + + + LIBS="$base_LIBS" AC_SUBST(base_LIBS) @@ -369,6 +386,18 @@ int main() { LIBS="$saved_LIBS" +AC_CHECK_HEADER(osg/Version) +if test "x$ac_cv_header_osg_Version" != "xyes"; then + echo + echo "You *must* have the OpenSceneGraph support library installed on your system" + echo "to build this version of SimGear!" + echo + echo "Please see README.OSG for more details." + echo + echo "configure aborted." + exit +fi + AC_LANG_POP dnl Check for system installed zlib