mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +00:00
* configure.ac: Add a configure test for Xcursor
* configure: regenerate * config.h.in: regernate git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@33677 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2c788e3701
commit
e7434f0391
4 changed files with 66 additions and 0 deletions
47
configure
vendored
47
configure
vendored
|
@ -4706,6 +4706,53 @@ $as_echo "$XMU_LIBS" >&6; }
|
|||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
|
||||
$as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
|
||||
if test "${ac_cv_lib_Xcursor_XcursorImageCreate+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lXcursor $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char XcursorImageCreate ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return XcursorImageCreate ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_Xcursor_XcursorImageCreate=yes
|
||||
else
|
||||
ac_cv_lib_Xcursor_XcursorImageCreate=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
|
||||
$as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
|
||||
if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = x""yes; then :
|
||||
|
||||
LIBS="-lXcursor $LIBS"
|
||||
|
||||
$as_echo "#define HAVE_XCURSOR 1" >>confdefs.h
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
LIBS="$X_LIBS $LIBS"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue