Use the correct version to name the shared library, and if the shared library build is enabled, allow the headers to be installed



git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@72 632fc199-4ca6-4c93-a231-07263d6284db
diff --git a/Makefile.am b/Makefile.am
index bafa3d4..53e6a43 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,15 +1,16 @@
 if WITH_SHARED
 
 lib_LTLIBRARIES = libjpeg.la
+libjpeg_la_LDFLAGS = -version-number 62:0:0 -no-undefined
+include_HEADERS = jconfig.h jerror.h jmorecfg.h jpeglib.h
 
 else
 
 noinst_LTLIBRARIES = libjpeg.la
+noinst_HEADERS = jconfig.h jerror.h jmorecfg.h jpeglib.h
 
 endif
 
-noinst_HEADERS = jconfig.h jerror.h jmorecfg.h jpeglib.h
-
 HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
 	jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h turbojpeg.h