Description: work-around the lack of multiarch support in locatelib
 Force config/get_X11 to link with libX11 even if it does not find it.
 Idem for gmp and readline
 This is a work-around for the lack of multiarch support in locatelib

Author: Bill Allombert <ballombe@debian.org>
Last-Update: 2011-09-10
Index: pari-2.5.0/config/get_X11
===================================================================
--- pari-2.5.0.orig/config/get_X11	2011-09-10 18:38:08.000000000 +0200
+++ pari-2.5.0/config/get_X11	2011-09-10 18:38:17.000000000 +0200
@@ -41,7 +41,9 @@
   X11_LIBS="-L$X11 -lX11 $extralib"
   X11_INC="-I$Xincroot"
 else
-  echo "### X11 not found"
-  X11=
+  echo "### X11 forced"
+  X11_LIBS="-lX11"
+  X11_INC=
+  X11="X11"
 fi
 
Index: pari-2.5.0/config/get_gmp
===================================================================
--- pari-2.5.0.orig/config/get_gmp	2011-09-10 18:38:08.000000000 +0200
+++ pari-2.5.0/config/get_gmp	2011-09-10 18:38:17.000000000 +0200
@@ -48,7 +48,7 @@
 fi
 
 if test -z "$gmp"; then
-  echo "### Building without GNU MP support"
+  echo "### GNU MP support forced"
 else
   if test "$fastread" = yes; then
     echo "Using GNU MP, version $gmp_version"
@@ -74,8 +74,8 @@
 if test -n "$gmp"; then
   kernlvl1=gmp
 else
-  kernlvl1=none
+  kernlvl1=gmp
   GMPINCLUDE=
-  GMPLIBS=
+  GMPLIBS=-lgmp
 fi
 . get_pretty
Index: pari-2.5.0/config/get_readline
===================================================================
--- pari-2.5.0.orig/config/get_readline	2011-09-10 18:38:08.000000000 +0200
+++ pari-2.5.0/config/get_readline	2011-09-10 21:48:46.000000000 +0200
@@ -23,6 +23,7 @@
   rl_fullname=$try
 fi
 
+readline=/usr/lib
 if test -n "$readline"; then
 # Readline -- Headers
   pth="$with_readline_include $basic_include_path"
