Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 5351
Collapse All | Expand All

(-)acconfig.h.orig (+3 lines)
Lines 53-56 Link Here
53
#undef HAVE_SSL
53
#undef HAVE_SSL
54
54
55
/* */
55
/* */
56
#undef HAVE_LIBGPM
57
58
/* */
56
#undef X2
59
#undef X2
(-)configure.in.orig (-2 / +27 lines)
Lines 56-63 Link Here
56
AC_HAVE_FUNCS(getpid setpgid getpgid setpgrp getpgrp)
56
AC_HAVE_FUNCS(getpid setpgid getpgid setpgrp getpgrp)
57
57
58
dnl Checks for libraries.
58
dnl Checks for libraries.
59
dnl Replace `main' with a function in -lgpm:
60
AC_CHECK_LIB(gpm, Gpm_Open)
61
dnl Replace `main' with a function in -lsocket:
59
dnl Replace `main' with a function in -lsocket:
62
AC_CHECK_FUNC(socket, cf_result=yes, cf_result=no)
60
AC_CHECK_FUNC(socket, cf_result=yes, cf_result=no)
63
if test "$cf_result" = no; then
61
if test "$cf_result" = no; then
Lines 161-166 Link Here
161
AC_MSG_RESULT($cf_result)
159
AC_MSG_RESULT($cf_result)
162
#endif
160
#endif
163
161
162
dnl Configure switch for gpm added
163
dnl Replace `main' with a function in -lgpm:
164
#ifdef HAVE_LIBGPM
165
AC_ARG_WITH(gpm, [  --without-gpm           disable GPM support], [if test "$withval" = no; then disable_gpm=yes; fi])
166
AC_MSG_CHECKING([for GPM])
167
LIBS_X="$LIBS"
168
cf_result=no
169
if test -z "$disable_gpm"; then
170
	if test "$cf_result" = no; then
171
		LIBS="-lgpm $LIBS_X"
172
		AC_TRY_LINK([#include <gpm.h>], [Gpm_Connect gpm; Gpm_Open(&gpm, 0)], cf_result=yes, cf_result=no)
173
	fi
174
175
	if test "$cf_result" != yes; then
176
		if test "$withval" = yes; then
177
			AC_MSG_ERROR("GPM not found")
178
		fi
179
        	LIBS="$LIBS_X"
180
	else
181
		AC_DEFINE(HAVE_LIBGPM)
182
	fi
183
fi
184
AC_MSG_RESULT($cf_result)
185
#endif
186
187
188
164
test "$have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe"
189
test "$have_emx" = yes && LDFLAGS="$LDFLAGS -Zexe"
165
190
166
AC_OUTPUT(Makefile)
191
AC_OUTPUT(Makefile)

Return to bug 5351