diff -Naur jpeg-6b.orig/configure jpeg-6b/configure --- jpeg-6b.orig/configure 2005-01-04 15:34:08.000000000 +0100 +++ jpeg-6b/configure 2005-01-04 15:39:10.620128760 +0100 @@ -1529,7 +1529,7 @@ if test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; then USELIBTOOL="yes" - LIBTOOL="./libtool" + LIBTOOL="libtool" O="lo" A="la" LN='$(LIBTOOL) --mode=link $(CC)' diff -Naur jpeg-6b.orig/ltconfig jpeg-6b/ltconfig --- jpeg-6b.orig/ltconfig 2005-01-04 15:41:06.025584464 +0100 +++ jpeg-6b/ltconfig 2005-01-04 15:34:08.315086112 +0100 @@ -553,7 +553,7 @@ # On HP-UX, both CC and GCC only warn that PIC is supported... then they # create non-PIC objects. So, if there were any warnings, we assume that # PIC is not supported. - if test -s conftest.err; then + if test -s conftest.err -a $pic_flag -eq '+Z'; then echo "$ac_t"no 1>&6 can_build_shared=no pic_flag=