--- a/Makefile.am
+++ b/Makefile.am
@@ -59,5 +59,5 @@
 tclshrl_SOURCES = tclshrl.c
 wishrl_SOURCES = wishrl.c
 
-man_MANS = tclreadline.n
+man_MANS = tclreadline.3tcl
 
--- a/Makefile.in
+++ b/Makefile.in
@@ -104,7 +104,7 @@
 mkinstalldirs = $(install_sh) -d
 CONFIG_HEADER = config.h
 CONFIG_CLEAN_FILES = tclreadline.h tclreadlineInit.tcl \
-	tclreadlineSetup.tcl tclreadline.n pkgIndex.tcl
+	tclreadlineSetup.tcl tclreadline.3tcl pkgIndex.tcl
 CONFIG_CLEAN_VPATH_FILES =
 @STATIC_TCLSHRL_TRUE@am__EXEEXT_1 = tclshrl$(EXEEXT)
 @STATIC_WISHRL_TRUE@am__EXEEXT_2 = wishrl$(EXEEXT)
@@ -216,7 +216,7 @@
     n|no|NO) false;; \
     *) (install-info --version) >/dev/null 2>&1;; \
   esac
-manndir = $(mandir)/mann
+manndir = $(mandir)/man3
 NROFF = nroff
 MANS = $(man_MANS)
 HEADERS = $(include_HEADERS)
@@ -244,7 +244,7 @@
 AM_RECURSIVE_TARGETS = cscope
 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
 	$(srcdir)/pkgIndex.tcl.in $(srcdir)/tclreadline.h.in \
-	$(srcdir)/tclreadline.n.in $(srcdir)/tclreadlineInit.tcl.in \
+	$(srcdir)/tclreadline.3tcl.in $(srcdir)/tclreadlineInit.tcl.in \
 	$(srcdir)/tclreadlineSetup.tcl.in $(top_srcdir)/./aux/compile \
 	$(top_srcdir)/./aux/config.guess \
 	$(top_srcdir)/./aux/config.sub $(top_srcdir)/./aux/depcomp \
@@ -426,7 +426,7 @@
 @STATIC_WISHRL_TRUE@wishrl_LDFLAGS = -static
 tclshrl_SOURCES = tclshrl.c
 wishrl_SOURCES = wishrl.c
-man_MANS = tclreadline.n
+man_MANS = tclreadline.3tcl
 all: config.h
 	$(MAKE) $(AM_MAKEFLAGS) all-am
 
@@ -486,7 +486,7 @@
 	cd $(top_builddir) && $(SHELL) ./config.status $@
 tclreadlineSetup.tcl: $(top_builddir)/config.status $(srcdir)/tclreadlineSetup.tcl.in
 	cd $(top_builddir) && $(SHELL) ./config.status $@
-tclreadline.n: $(top_builddir)/config.status $(srcdir)/tclreadline.n.in
+tclreadline.3tcl: $(top_builddir)/config.status $(srcdir)/tclreadline.3tcl.in
 	cd $(top_builddir) && $(SHELL) ./config.status $@
 pkgIndex.tcl: $(top_builddir)/config.status $(srcdir)/pkgIndex.tcl.in
 	cd $(top_builddir) && $(SHELL) ./config.status $@
@@ -685,7 +685,7 @@
 	{ for i in $$list1; do echo "$$i"; done;  \
 	if test -n "$$list2"; then \
 	  for i in $$list2; do echo "$$i"; done \
-	    | sed -n '/\.n[a-z]*$$/p'; \
+	    | sed -n '/\.3[a-z]*$$/p'; \
 	fi; \
 	} | while read p; do \
 	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
@@ -712,7 +712,7 @@
 	@list=''; test -n "$(manndir)" || exit 0; \
 	files=`{ for i in $$list; do echo "$$i"; done; \
 	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
-	  sed -n '/\.n[a-z]*$$/p'; \
+	  sed -n '/\.3[a-z]*$$/p'; \
 	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^n][0-9a-z]*$$,n,;x' \
 	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
 	dir='$(DESTDIR)$(manndir)'; $(am__uninstall_files_from_dir)
--- a/configure
+++ b/configure
@@ -12806,7 +12806,7 @@
 
 
 
-ac_config_files="$ac_config_files Makefile tclreadline.h tclreadlineInit.tcl tclreadlineSetup.tcl tclreadline.n pkgIndex.tcl"
+ac_config_files="$ac_config_files Makefile tclreadline.h tclreadlineInit.tcl tclreadlineSetup.tcl tclreadline.3tcl pkgIndex.tcl"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -13835,7 +13835,7 @@
     "tclreadline.h") CONFIG_FILES="$CONFIG_FILES tclreadline.h" ;;
     "tclreadlineInit.tcl") CONFIG_FILES="$CONFIG_FILES tclreadlineInit.tcl" ;;
     "tclreadlineSetup.tcl") CONFIG_FILES="$CONFIG_FILES tclreadlineSetup.tcl" ;;
-    "tclreadline.n") CONFIG_FILES="$CONFIG_FILES tclreadline.n" ;;
+    "tclreadline.3tcl") CONFIG_FILES="$CONFIG_FILES tclreadline.3tcl" ;;
     "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
--- a/tclreadline.n.in
+++ b/tclreadline.n.in
@@ -1,6 +1,6 @@
-.TH tclreadline n "@PATCHLEVEL_STR@" "Johannes Zellner"
+.TH tclreadline 3tcl "@PATCHLEVEL_STR@" "Johannes Zellner"
 
-.\" FILE: tclreadline.n.in
+.\" FILE: tclreadline.3tcl.in
 .\" $Id: e128d228c2160a09a405e97596dec0b0b9da6cfb $
 .\" ---
 .\" tclreadline -- gnu readline for tcl
