- added -fPIC to the LDDLLFLAGS line for HPUX; winegcc needs to pass
  -fPIC to the link line to keep the hp linker happy
- set DLLEXT to .sl on HPUX

diff --git a/configure b/configure
index 3462dac..f76a9c8 100755
--- a/configure
+++ b/configure
@@ -14081,7 +14081,8 @@
             if test "$ac_cv_c_dll_hpux" = "yes"
             then
               LIBEXT="sl"
-              LDDLLFLAGS="-shared"
+              DLLEXT=".sl"
+              LDDLLFLAGS="-shared -fPIC"
               LDSHARED="\$(CC) -shared"
             fi
           fi