*** ./Makefile.in.ORIG	Thu Mar 21 09:14:54 2013
--- ./Makefile.in	Thu Mar 21 09:15:24 2013
***************
*** 23,32 ****
  libdir = $(prefix)/lib
  
  # Where to put the Info files
! infodir = $(prefix)/share/info
  
  # Where to put the manual pages.
! mandir = $(prefix)/share/man
  
  
  
--- 23,32 ----
  libdir = $(prefix)/lib
  
  # Where to put the Info files
! infodir = $(prefix)/info
  
  # Where to put the manual pages.
! mandir = $(prefix)/man
  
  
  
*** ./Makefile.in.ORIG	Thu Mar 21 09:22:22 2013
--- ./Makefile.in	Thu Mar 21 09:22:31 2013
***************
*** 33,39 ****
  CC        = @CC@ 
  XCPPFLAGS = @CPPFLAGS@
  CFLAGS    = @CFLAGS@ $(XCPPFLAGS) $(DEFS)
! LDFLAGS   = @LDFLAGS@
  LIBS      = @LIBS@
  STRIP     = strip
  
--- 33,39 ----
  CC        = @CC@ 
  XCPPFLAGS = @CPPFLAGS@
  CFLAGS    = @CFLAGS@ $(XCPPFLAGS) $(DEFS)
! LDFLAGS   = @LDFLAGS@ -lm
  LIBS      = @LIBS@
  STRIP     = strip
  
*** ./jpegoptim.c.ORIG	Thu Mar 21 09:26:11 2013
--- ./jpegoptim.c	Thu Mar 21 09:27:29 2013
***************
*** 315,320 ****
--- 315,326 ----
    }
  }
  
+ #if defined(_AIX51) && !defined(_AIX52)
+ double round(double x){
+   return (x >= 0) ? floor(x+0.5) : ceil(x-0.5);
+   }
+ #endif
+ 
  /*****************************************************************/
  int main(int argc, char **argv) 
  {
