New Gap spkg (>=4.5) does not build with shared only GMP/MPIR

Imported from <a href="http://trac.sagemath.org/sage_trac/ticket/13954">trac #13954</a>.

Spkg diff, for review only.

Reported by: jpflori

Component: packages

CC: kcrisman,, dimpase

Report Upstream: N/A

Authors: Jean-Pierre Flori

Dependencies: 

Work issues: 

Reviewers: Dmitrii Pasechnik

Merged in: sage-5.7.beta2

Attachments: <ol><li><a href="http://trac.sagemath.org/sage_trac/attachment/ticket/13954/gap-4.5.7.p3.diff">gap-4.5.7.p3.diff: Spkg diff, for review only.</a> by jpflori at 20130126T18:06:08</li></ol>