openbsd-ports/palm/pose/patches/patch-BuildUnix_configure_in

33 lines
1.5 KiB
Plaintext

$OpenBSD: patch-BuildUnix_configure_in,v 1.3 2009/08/10 17:53:18 naddy Exp $
--- BuildUnix/configure.in.orig Fri Mar 29 06:11:13 2002
+++ BuildUnix/configure.in Mon Aug 10 11:47:27 2009
@@ -136,7 +136,7 @@ dnl ==================================================
dnl Define the standard OMNITHREAD options
dnl ========================================================
-THREAD_FLAGS="-D_REENTRANT -DNoNanoSleep -DPthreadDraftVersion=10"
+THREAD_FLAGS="-D_REENTRANT -DPthreadDraftVersion=10"
THREAD_LIBS="-lpthread"
USE_SOLARIS_CPP="false"
@@ -321,8 +321,8 @@ GLLIB=
AC_CHECK_HEADER(GL/gl.h,
AC_CHECK_LIB(GL, glXMakeCurrent, AC_DEFINE(HAVE_GL) GLLIB="-lGL", \
AC_CHECK_LIB(MesaGL, glXMakeCurrent, AC_DEFINE(HAVE_GL) GLLIB=" -lMesaGL",,\
- -L${ac_x_libraries} -lX11 -lXext $X_EXTRA_LIBS -lm), \
- -L${ac_x_libraries} -lX11 -lXext $X_EXTRA_LIBS -lm)
+ -L${ac_x_libraries} -lXext -lX11 -lxcb -lpthread-stubs -lXdmcp -lXau $X_EXTRA_LIBS -lm), \
+ -L${ac_x_libraries} -lXext -lX11 -lxcb -lpthread-stubs -lXdmcp -lXau $X_EXTRA_LIBS -lm)
)
AC_CHECK_HEADER(GL/glu.h,
@@ -347,7 +347,7 @@ AC_CACHE_SAVE
dnl Temporarily add -lfltk and OTHER-LIBRARIES (cf AC_CHECK_LIB) to $LIBS
save_LIBS="$LIBS"
-LIBS="-lfltk ${GLLIB} -L${ac_x_libraries} -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
+LIBS="-lfltk ${GLLIB} -L${ac_x_libraries} -lXext -lX11 -lxcb -lpthread-stubs -lXdmcp -lXau -lm $X_EXTRA_LIBS $LIBS"
AC_LANG_CPLUSPLUS
AC_CACHE_CHECK([for 'int fl_height (void)' in -lfltk], pose_cv_lib_fltk_found,