$OpenBSD: patch-Configure,v 1.3 2014/09/15 15:11:35 landry Exp $
--- Configure.orig	Wed Sep 14 13:26:40 2005
+++ Configure	Thu Sep 11 09:10:43 2014
@@ -246,7 +246,7 @@ fi
 #  We might need the following :
 #
 echo Looking for some tools first ...
-list='ld zcat gzip ranlib perl emacs'
+list='ld zcat gzip ranlib perl'
 pathspace=`echo $PATH | sed -e "s/$dir_sep/ /g" | sed -e 's,\\\\,/,g'`
 
 for file in $list; do
@@ -844,7 +844,7 @@ if test -n "$__gnuc__"; then
       esac
     ;;
   esac
-  OPTFLAGS="$OPTFLAGS -DGCC_INLINE $warn"
+  OPTFLAGS="$CFLAGS -DGCC_INLINE $warn"
   DBGFLAGS="-g $warn"
   # Some architectures need -fPIC for building dynamic lib
   case "$osname-$arch" in hpux-*) DLCFLAGS=-fPIC;; esac
@@ -1009,7 +1009,7 @@ if test "$optimization" = profiling; then DLLD=; else
 #    aix-*)  DLSUFFIX=a  ;; dynamic linking does not work!
     sunos-*) sodest=$VersionMajor$VersionMinor.$patch
              soname=$sodest;;
-    gnu-*|*-alpha|solaris-*|linux-*|freebsd-*)
+    gnu-*|solaris-*|linux-*|freebsd-*)
       case $libpari_base in
         pari) sodest=$version.$patch;; # released versions
         *) sodest=$patch.0.0;; # unstable versions
@@ -1047,10 +1047,6 @@ if test -n "$DLLD"; then
       freebsd-*)  DLLDFLAGS="-Bshareable -x" ;;
       gnu-*|linux-*)    DLLDFLAGS="-shared -soname \$(LIBPARI_SONAME)" ;;
       irix-*)     DLLDFLAGS="-shared -elf -no_unresolved -all" ;;
-      *-alpha)    DLLDFLAGS="-shared"; EXTRADLLDFLAGS='${LIBS}'
-         case "$optimization" in
-           full) DLLDFLAGS="$DLLDFLAGS -O3" ;;
-         esac;;
       sunos-*)    DLLDFLAGS="-assert nodefinitions" ;;
       solaris-*)  DLLDFLAGS="-G -h \$(LIBPARI_SONAME)" ;;
       *)          DLLD=;;
@@ -1162,7 +1158,6 @@ extra_flags=
 list=exp2; . ./look
 list=strftime; . ./look
 case "$arch" in
-  alpha) list='times ftime';; # gp-dyn has problems with getrusage 
   *) case "$osname" in
     *cygwin*) list='times ftime';; # getrusage based timer always returns 0
     *) list='getrusage times ftime';;
