OSDN Git Service

Change how readline support is included in psql.c ...
authorMarc G. Fournier <scrappy@hub.org>
Sat, 25 Jan 1997 03:51:59 +0000 (03:51 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sat, 25 Jan 1997 03:51:59 +0000 (03:51 +0000)
See message to hackers@ mailing list concerning this...

src/bin/psql/psql.c
src/include/config.h

index 2e73072..6095c3a 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.49 1997/01/13 02:35:32 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.50 1997/01/25 03:51:59 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include "strdup.h"
 #endif
 
-#ifdef NOREADLINE
-#include "rlstubs.h"
+#ifndef HAVE_LIBREADLINE
+# include "rlstubs.h"
 #else
-/* from the GNU readline library */
-#ifdef OLD_READLINE
-#include "readline.h"
-#include "history.h"
-#else
-#include <readline/readline.h>
-#include <readline/history.h>
-#endif
+# ifdef HAVE_READLINE_H
+#  include <readline.h>
+#  include <history.h>
+# else
+#  include <readline/readline.h>
+#  include <readline/history.h>
+# endif
 #endif
 
 #define PROMPT "=> "
index 66737fd..8dc0548 100644 (file)
@@ -8,6 +8,17 @@
 
 #define BLCKSZ 8192
 
+/* Define to enable readline/history support in psql */
+/* #undef HAVE_LIBREADLINE */
+
+/* These two defines are not used until HAVE_LIBREADLINE
+ * are also defined
+ *
+ * Define if <readline.h> vs <readline/readline.h> 
+ */
+/* #undef HAVE_READLINE_H */
+
+
 #define HAVE_SYS_SELECT_H
 #define HAVE_TERMIOS_H
 #define HAVE_VALUES_H