CONFIGURE: Extend Linux CD check and run it on Linux only.
This commit is contained in:
parent
99bb62f0e9
commit
be0d133238
1 changed files with 16 additions and 7 deletions
23
configure
vendored
23
configure
vendored
|
@ -4261,15 +4261,24 @@ define_in_config_if_yes "$_opengles" "USE_GLES"
|
|||
#
|
||||
# Check for Linux CD-ROM support
|
||||
#
|
||||
echocheck "Linux CD-ROM"
|
||||
linuxcd=no
|
||||
cat > $TMPC << EOF
|
||||
case $_host_os in
|
||||
*linux*)
|
||||
echocheck "Linux CD-ROM"
|
||||
linuxcd=no
|
||||
cat > $TMPC << EOF
|
||||
#include <linux/cdrom.h>
|
||||
int main(void) { int x = CDROMREADAUDIO; return 0; }
|
||||
#include <sys/types.h>
|
||||
int main(void) {
|
||||
int x = CDROMREADAUDIO;
|
||||
dev_t dev;
|
||||
return major(dev) + x;
|
||||
}
|
||||
EOF
|
||||
cc_check && linuxcd=yes
|
||||
define_in_config_if_yes "$linuxcd" 'USE_LINUXCD'
|
||||
echo "$linuxcd"
|
||||
cc_check && linuxcd=yes
|
||||
define_in_config_if_yes "$linuxcd" 'USE_LINUXCD'
|
||||
echo "$linuxcd"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue