From: Ole Streicher <debian@liska.ath.cx>
Date: Tue, 5 Jul 2016 15:13:46 +0200
Subject: Use cminpack provided by Debian

---
 Makefile.am | 3 +--
 polymap.c   | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index a94752b..276165a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -650,7 +650,6 @@ libstarlink_ast_la_SOURCES = \
     $(GRP_C_INCLUDE_FILES) \
     $(F_C_INCLUDE_FILES) \
     $(GRP_F_INCLUDE_FILES) \
-    $(CMINPACK_FILES) \
     $(WCSLIB_FILES) \
     ast_err.h
 
@@ -659,7 +658,7 @@ libstarlink_ast_la_SOURCES = \
 # libstarlink_ast_pal library will be empty, and we link to an external PAL
 # library instead.
 if EXTERNAL_PAL
-libstarlink_ast_la_LIBADD = @LIBPAL@ -lerfa -lm
+libstarlink_ast_la_LIBADD = @LIBPAL@ -lerfa -lcminpack -lm
 else
 libstarlink_ast_la_LIBADD = libstarlink_ast_pal.la
 endif
diff --git a/polymap.c b/polymap.c
index 5265b95..13f1608 100644
--- a/polymap.c
+++ b/polymap.c
@@ -112,7 +112,7 @@ f     - AST_POLYTRAN: Fit a PolyMap inverse or forward transformation
 #include "cmpmap.h"              /* Compound mappings */
 #include "polymap.h"             /* Interface definition for this class */
 #include "unitmap.h"             /* Unit mappings */
-#include "cminpack/cminpack.h"   /* Levenberg - Marquardt minimization */
+#include <cminpack-1/cminpack.h> /* Levenberg - Marquardt minimization */
 #include "pal.h"                 /* SLALIB function definitions */
 
 /* Error code definitions. */
