Check for X11 function prototypes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2003-10-22 19:19:10 +00:00
parent 1ed6a22785
commit ec2d942a07
4 changed files with 57 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-10-22 Adam Fedor <fedor@gnu.org>
* configure.ac: Check for X11 function prototypes (Fixes problems
on Solaris 2.6).
2003-10-20 20:09 Alexander Malmberg <alexander@malmberg.org>
* Tools/xpbs.m (-xProvideSelection:): Copy all characters and the

View file

@ -11,6 +11,9 @@
/* Define to type of window server to build */
#undef BUILD_SERVER
/* Define if X11 doesn't automatically use prototypes */
#undef FUNCPROTO
/* Define to 1 if you have the <DPS/dpsclient.h> header file. */
#undef HAVE_DPS_DPSCLIENT_H

35
configure vendored
View file

@ -4387,6 +4387,41 @@ if test -r $x_includes/X11/DPS; then
fi
# Old X11 support
echo "$as_me:$LINENO: checking for X11 function prototypes" >&5
echo $ECHO_N "checking for X11 function prototypes... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <X11/Xlib.h>
#if NeedFunctionPrototypes
yes
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1; then
have_funcproto=yes
else
have_funcproto=no
fi
rm -f conftest*
echo "$as_me:$LINENO: result: $have_funcproto" >&5
echo "${ECHO_T}$have_funcproto" >&6
if test "$have_funcproto" = no; then
cat >>confdefs.h <<\_ACEOF
#define FUNCPROTO 1
_ACEOF
fi
#--------------------------------------------------------------------
# Find for DPS
#--------------------------------------------------------------------

View file

@ -166,6 +166,20 @@ if test -r $x_includes/X11/DPS; then
fi
AC_SUBST(X_PRE_LIBS)
# Old X11 support
AC_MSG_CHECKING([for X11 function prototypes])
AC_EGREP_CPP(yes,
[#include <X11/Xlib.h>
#if NeedFunctionPrototypes
yes
#endif
], have_funcproto=yes, have_funcproto=no)
AC_MSG_RESULT([$have_funcproto])
if test "$have_funcproto" = no; then
AC_DEFINE(FUNCPROTO,1,[Define if X11 doesn't automatically use prototypes])
fi
#--------------------------------------------------------------------
# Find for DPS
#--------------------------------------------------------------------