From a71c50f4f494ceee10efae235abc92997cb7c0ac Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 10 May 2014 12:15:25 +0000
Subject: we only use release versions, no point in checking .git


diff --git a/config/version b/config/version
index ed2635b..5f29f62 100644
--- a/config/version
+++ b/config/version
@@ -19,15 +19,6 @@ patchlevel_verbose=
 
 case "$stat" in # $stat rewritten by config/settar ?
   *git-*) patchlevel_verbose="[ $stat ]";;
-  *) if test -d "$TOP/.git"; then
-       t=`git rev-list HEAD 2>/dev/null | wc -l` # ~ svn revision number
-       t=`echo $t | sed -e 's/ //g'` # some broken wc prepend spaces
-       T=`git log -1 --pretty=format:%h` # commit hash
-       if test -z "$t"; then t=0; fi
-       vcsversion=$t-$T
-       status="$stat $vcsversion"
-       patchlevel_verbose="[ $status ]"
-     fi
 esac
 version=$VersionMajor.$VersionMinor
 pari_release="$version.$patch"
-- 
2.13.1


From 746e5c106c55cf182606df557625b983e3d0a84c Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 10 May 2014 12:44:58 +0000
Subject: Haiku support.


diff --git a/config/arch-osname b/config/arch-osname
index 5da1bc8..3527f2f 100755
--- a/config/arch-osname
+++ b/config/arch-osname
@@ -74,6 +74,8 @@ if test -n "$myuname"; then
             case $arch in i386-*) arch=i386;;esac;;
   aix)      arch=`uname -p`;
             case $arch in powerpc) arch=ppc;;esac;;
+  haiku)    arch=`uname -p`
+            ;;
   esac
 fi
 echo $arch-$osname
diff --git a/config/get_dlld b/config/get_dlld
index c0054c0..ff184eb 100644
--- a/config/get_dlld
+++ b/config/get_dlld
@@ -9,7 +9,7 @@ DLSUFFIX=so
 soname=.$soname_num
 do_dll=yes
 case "$osname" in
-  gnu*|aix|osf1|solaris|linux|freebsd|netbsd)
+  gnu*|aix|osf1|solaris|linux|freebsd|netbsd|haiku)
     case $pari_release_verbose in
       *STABLE*)      sodest=.$version.$patch;; # released version
       *DEVELOPMENT*) sodest=.$patch.0.0;;      # unstable version
diff --git a/config/get_ld b/config/get_ld
index c140024..087895b 100644
--- a/config/get_ld
+++ b/config/get_ld
@@ -3,6 +3,7 @@
 _ld_list='LD LDFLAGS LIBS runpathprexix LDneedsWl LDused GNULDused'
 case "$osname" in
   darwin) LIBS= ;;
+  haiku)  LIBS= ;;
   osf1)   LIBS='-lm -lots';;
   *)      LIBS=-lm;;
 esac
diff --git a/config/get_libc b/config/get_libc
index 8b1f5a8..88afba1 100644
--- a/config/get_libc
+++ b/config/get_libc
@@ -2,7 +2,7 @@
 exe=$osname-$arch-tmp$$$exe_suff
 _has_list=
 echo Looking in C lib for some symbols...
-extra_flags=-lm
+#extra_flags=-lm
 
 if test "$arch" = "x86_64" && test "$sizeof_long" = "8"; then
   list=sse2; . ./look
-- 
2.13.1


From 20c2c18ede8952adaf07d027d88f9415ae52ae41 Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Thu, 14 Apr 2016 22:46:58 +0000
Subject: Install man pages in $MANDIR/man1/ instead of $MANDIR.


diff --git a/config/Makefile.SH b/config/Makefile.SH
index 27c6d5b..a4cc165 100644
--- a/config/Makefile.SH
+++ b/config/Makefile.SH
@@ -399,17 +399,17 @@ install-bin-sta: gp-sta$exe_suff
 	-cd \$(BINDIR); $postconfig gp-$version$exe_suff
 
 install-man::
-	-mkdir -p \$(MANDIR)
-	-\$(RM) \$(MANDIR)/pari.1 \$(MANDIR)/gp.1 \$(MANDIR)/gp-$version.1
-	\$(INSTALL_DATA) $doc/gphelp.1 \$(MANDIR)
-	\$(INSTALL_DATA) $doc/gp.1 \$(MANDIR)/gp-$version.1
-	-\$(LN) gp.1 \$(MANDIR)/pari.1
-	-\$(LN) gp-$version.1 \$(MANDIR)/gp.1
+	-mkdir -p \$(MANDIR)/man1
+	-\$(RM) \$(MANDIR)/man1/pari.1 \$(MANDIR)/man1/gp.1 \$(MANDIR)/man1/gp-$version.1
+	\$(INSTALL_DATA) $doc/gphelp.1 \$(MANDIR)/man1
+	\$(INSTALL_DATA) $doc/gp.1 \$(MANDIR)/man1/gp-$version.1
+	-\$(LN) gp.1 \$(MANDIR)/man1/pari.1
+	-\$(LN) gp-$version.1 \$(MANDIR)/man1/gp.1
 
 install-misc:
 	-mkdir -p \$(MISCDIR) \$(BINDIR)
 	\$(INSTALL_PROGRAM) $misc/tex2mail \$(BINDIR)
-	\$(INSTALL_DATA) $doc/tex2mail.1 \$(MANDIR)
+	\$(INSTALL_DATA) $doc/tex2mail.1 \$(MANDIR)/man1
 	\$(INSTALL_DATA) $misc/README    \$(MISCDIR)
 	\$(INSTALL_DATA) $misc/color.dft \$(MISCDIR)
 	\$(INSTALL_DATA) $misc/gpalias   \$(MISCDIR)
-- 
2.13.1

