mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
XShm detector works now.
This commit is contained in:
parent
34f4ba711f
commit
39ad441698
@ -377,8 +377,7 @@ if [ "$HAVE_UDEV" != "no" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
#this one is broken (XShm.h requires some other X headers first), but xshm itself doesn't work either, so it's okay
|
||||
check_header XSHM X11/extensions/XShm.h
|
||||
check_header XSHM X11/Xlib.h X11/extensions/XShm.h
|
||||
|
||||
check_header PARPORT linux/parport.h
|
||||
check_header PARPORT linux/ppdev.h
|
||||
|
@ -66,3 +66,4 @@ HAVE_IMAGEVIEWER=yes # Built-in image viewer support.
|
||||
C89_IMAGEVIEWER=no # stb_image hates C89
|
||||
HAVE_MMAP=auto # MMAP support
|
||||
HAVE_QT=no # QT companion support
|
||||
HAVE_XSHM=auto # XShm video driver support
|
||||
|
@ -134,18 +134,19 @@ check_pkgconf() #$1 = HAVE_$1 $2 = package $3 = version $4 = critical error mess
|
||||
}
|
||||
}
|
||||
|
||||
check_header() #$1 = HAVE_$1 $2 = header file
|
||||
check_header() #$1 = HAVE_$1 $2..$5 = header files
|
||||
{ tmpval="$(eval echo \$HAVE_$1)"
|
||||
[ "$tmpval" = 'no' ] && return 0
|
||||
ECHOBUF="Checking presence of header file $2"
|
||||
CHECKHEADER="$2"
|
||||
# echo -n "Checking presence of header file $2"
|
||||
cat << EOF > "$TEMP_C"
|
||||
#include<$2>
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
echo "#include <$2>" > "$TEMP_C"
|
||||
[ "$3" != "" ] && CHECKHEADER="$3" && echo "#include <$3>" >> "$TEMP_C"
|
||||
[ "$4" != "" ] && CHECKHEADER="$4" && echo "#include <$4>" >> "$TEMP_C"
|
||||
[ "$5" != "" ] && CHECKHEADER="$5" && echo "#include <$5>" >> "$TEMP_C"
|
||||
echo "int main(void) { return 0; }" >> "$TEMP_C"
|
||||
answer='no'
|
||||
"$CC" -o "$TEMP_EXE" "$TEMP_C" $INCLUDE_DIRS >>config.log 2>&1 && answer='yes'
|
||||
eval HAVE_$1="$answer"; echo "$ECHOBUF ... $answer"
|
||||
eval HAVE_$1="$answer"; echo "Checking presence of header file $CHECKHEADER ... $answer"
|
||||
rm "$TEMP_C" "$TEMP_EXE" >/dev/null 2>&1
|
||||
[ "$tmpval" = 'yes' ] && [ "$answer" = 'no' ] && {
|
||||
echo "Build assumed that $2 exists, but cannot locate. Exiting ..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user