aboutsummaryrefslogtreecommitdiff
path: root/readline/config.h.in
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-05-09 19:42:03 +0000
committerMark Mitchell <mark@codesourcery.com>2005-05-09 19:42:03 +0000
commit430b783269262185201724109a07d3e9a937bca3 (patch)
tree5e30210c1ab5d3e20eac95a273f7bd0377a6ea60 /readline/config.h.in
parent8b04f8b6efd558d50aec658e812eddba0892b2b5 (diff)
downloadgdb-430b783269262185201724109a07d3e9a937bca3.zip
gdb-430b783269262185201724109a07d3e9a937bca3.tar.gz
gdb-430b783269262185201724109a07d3e9a937bca3.tar.bz2
* readline/aclocal.m4: Use AC_TRY_LINK to check for mbstate_t.
* readline/complete.c (pwd.h): Guard with HAVE_PWD_H. (getpwent): Guard with HAVE_GETPWENT. (rl_username_completion_function): Guard use of getpwent. (endpwent): Likewise. * readline/config.h.in (HAVE_FCNTL): New macro. (HAVE_GETPWENT): Likewise. (HAVE_GETPWNAM): Likewise. (HAVE_GETPWUID): Likewise. (HAVE_KILL): Likewise. (HAVE_PWD_H): Likewise. * readline/configure: Regenerated. * readline/configure.in: Handle MinGW when cross compiling. Check for getpwnam, getpwent, getpwuid, kill, and pwd.h. * readline/display.c (rl_clear_screen): Treat Windows like DOS. (insert_some_chars): Likewise. (delete_chars): Likewise. * readline/shell.c (pwd.h): Guard with HAVE_PWD_H. (getpwuid): Guard with HAVE_GETPWUID. (sh_unset_nodelay_mode): Guard use of fnctl with HAVE_FNCTL_H. * readline/signals.c (rl_signal_handler): Don't use SIGALRM or SIGQUIT if not defined. Use "raise" if "kill" is not available. (rl_set_signals): Don't set handlers for SIGQUIT or SIGALRM if they are not defined. (rl_clear_signals): Likewise. * readline/tilde.c (pwd.h): Guard with HAVE_PWD_H. (getpwuid): Guard declaration with HAVE_GETPWUID. (getpwnam): Guard declaration with HAVE_GETPWNAM. (tilde_expand_word): Guard use of getpwnam with HAVE_GETPWNAM.
Diffstat (limited to 'readline/config.h.in')
-rw-r--r--readline/config.h.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/readline/config.h.in b/readline/config.h.in
index 62883d3..8d1f0bc 100644
--- a/readline/config.h.in
+++ b/readline/config.h.in
@@ -22,12 +22,18 @@
#undef VOID_SIGHANDLER
+/* Define if you have the fcntl function. */
+#undef HAVE_FCNTL
+
/* Define if you have the isascii function. */
#undef HAVE_ISASCII
/* Define if you have the isxdigit function. */
#undef HAVE_ISXDIGIT
+/* Define if you have the kill function. */
+#undef HAVE_KILL
+
/* Define if you have the lstat function. */
#undef HAVE_LSTAT
@@ -43,6 +49,15 @@
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
+/* Define if you have the getpwent function. */
+#undef HAVE_GETPWENT
+
+/* Define if you have the getpwnam function. */
+#undef HAVE_GETPWNAM
+
+/* Define if you have the getpwnam function. */
+#undef HAVE_GETPWUID
+
/* Define if you have the select function. */
#undef HAVE_SELECT
@@ -90,6 +105,9 @@
/* Define if you have the <ndir.h> header file. */
#undef HAVE_NDIR_H
+/* Define if you have the <pwd.h> header file. */
+#undef HAVE_PWD_H
+
/* Define if you have the <stdarg.h> header file. */
#undef HAVE_STDARG_H