diff --git a/configure.ac b/configure.ac index 44a3860d4..1d8c93067 100644 --- a/configure.ac +++ b/configure.ac @@ -342,9 +342,9 @@ AS_IF([test x$with_openal != xno], [ #endif int main(void) { ALCdevice *device = alcOpenDevice(0); - if (!device) return 1; ALCcontext *context = alcCreateContext(device, 0); - if (!context) return 1; + alcDestroyContext(context); + alcCloseDevice(device); return 0; } ]) ])