$NetBSD: patch-ac,v 1.7 2011/02/05 07:57:15 adam Exp $

--- configure.orig	2011-01-09 21:01:51.000000000 +0000
+++ configure
@@ -7156,7 +7156,7 @@ fi
 
 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
 
-if test "x$GXX" = "xyes"; then
+if 0; then
 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GNU compiler version" >&5
 $as_echo_n "checking GNU compiler version... " >&6; }
 
@@ -8147,11 +8147,11 @@ for ax_openmp_flag in $ax_openmp_flags; 
 #ifdef __cplusplus
 extern "C"
 #endif
-char omp_set_num_threads ();
+#include <omp.h>
 int
 main ()
 {
-return omp_set_num_threads ();
+return omp_get_num_threads ();
   ;
   return 0;
 }
@@ -10785,7 +10785,7 @@ $as_echo "#define HAVE_CAIRO_PDF 1" >>co
 
 fi
 
-INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2 -ldl"
+INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lxml2"
 if test "x$openmp_ok" = "xyes"; then
 	INKSCAPE_LIBS="$INKSCAPE_LIBS -lgomp"
 fi
