check_include_file(sys/timeb.h HAVE_SYS_TIMEB_H)
check_include_file(unistd.h HAVE_UNISTD_H)
check_include_file(windows.h HAVE_WINDOWS_H)
+check_include_file(AL/alext.h HAVE_AL_EXT_H)
if(HAVE_INTTYPES_H)
# ShivaVG needs inttypes.h
#cmakedefine HAVE_STD_ISNAN
#cmakedefine HAVE_WINDOWS_H
#cmakedefine HAVE_MKDTEMP
+#cmakedefine HAVE_AL_EXT_H
+
#cmakedefine GCC_ATOMIC_BUILTINS_FOUND
if ( !is_working() )
return false;
- ALenum format;
+ unsigned int format;
ALsizei size;
ALsizei freq;
ALvoid *data;
#ifndef _SG_SOUNDMGR_OPENAL_PRIVATE_HXX
#define _SG_SOUNDMGR_OPENAL_PRIVATE_HXX 1
+#ifdef HAVE_CONFIG_H
+# include <simgear_config.h>
+#endif
+
#include <string>
#include <vector>
#include <map>
#if defined(__APPLE__)
# include <OpenAL/al.h>
# include <OpenAL/alc.h>
-# include <OpenAL/alext.h>
#elif defined(OPENALSDK)
# include <al.h>
# include <alc.h>
-# include <alext.h>
#else
# include <AL/al.h>
# include <AL/alc.h>
-# include <AL/alext.h>
+# ifdef HAVE_AL_EXT_H
+# include <AL/alext.h>
+# endif
#endif
#include <simgear/structure/SGSharedPtr.hxx>