From aa21657005137b148600786d8b59e188eb685616 Mon Sep 17 00:00:00 2001
From: Daniel Koester <Koester@Math.Uni-Augsburg.DE>
Date: Wed, 7 Aug 2002 09:55:50 +0000
Subject: [PATCH] changed default library installation mode: will now install
 static and shared by default.

---
 README       | 8 ++++----
 configure.ac | 3 +--
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/README b/README
index 9b848b4..fd73dac 100644
--- a/README
+++ b/README
@@ -63,13 +63,13 @@ The default installation path is also the build directory. This can be changed v
 
   --prefix=PREFIX         install architecture-independent files in PREFIX.
 
-Default library mode is static. Change this via
+Default library mode is to install static and shared libraries. Change this via
 
-  --enable-shared=??
+  --enable-shared=?? and/or --enable-static=??
 
-where ?? is "yes" or "no". Setting "yes" will additionally install shared ".so.???" libraries.
+where ?? is "yes" or "no".
 
-We recommend setting the environment variable "CFLAGS", so that "configure" does NOT automatically substitute a "-g" debugging option while compiling, as well as using the highest possible optimization flag "-O???" during a build of (non-debug) libraries.
+We recommend setting the environment variables "CFLAGS" and "FFLAGS" to "", so that "configure" does NOT automatically substitute a "-g" debugging option while compiling, as well as using the highest possible optimization flag "-O???" during a build of (non-debug) libraries.
 
 
 
diff --git a/configure.ac b/configure.ac
index 03a8513..d58b8c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,6 @@ AC_PROG_LN_S
 AC_PROG_CC
 AC_PROG_F77
 
-AC_DISABLE_SHARED
 AC_PROG_LIBTOOL
 
 # change the installation directory. This could surely be done more elegantly...
@@ -51,7 +50,7 @@ AC_PATH_XTRA
 
 # Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS([malloc.h unistd.h X11/Xlib.h X11/Xutil.h],,
+AC_CHECK_HEADERS([malloc.h unistd.h X11/Xlib.h X11/Xutil.h X11/extensions/Xext.h],,
 		 [AC_MSG_ERROR([Exiting...])])
 AC_CHECK_HEADERS([GL/gl.h GL/glx.h rpc/xdr.h],,[AC_MSG_ERROR([Exiting...])])
 
-- 
GitLab