Installation
============

gnotepad+ uses the GNU autoconf package, so installation should be
relatively simple.  The quick and dirty way to install gnotepad+ is to
simply do:

	./configure
	make
	make install

This installs an executable called "gnp" into "/usr/local/bin/", a
manpage in "/usr/local/man/man1/", and pixmap image files into
"/usr/local/share/gnotepad+/xpm/".

However, there are a few configuration options which one may want to
change:

--prefix=DIR
	Install gnotepad+ in DIR instead of /usr/local

--disable-warnings
	If "configure" detects that you are using gcc or g++ as your
	compiler, it will add these additional compiler flags:
	
		-Wall -Wmissing-prototypes -Wno-implicit-int

	The "-Wno-implicit-int" is actually a little misleading and
	contradictory to the previous two.  This option *supresses*
	certain compiler warnings instead of enabling them.  This is
	done because depending on the version of gcc you are using,
	and depending on your X11 header files, there could be a LOT
	of warning messages printed since a lot of the prototypes in
	the X11 header files are declared with implicit integer return
	types.

	See the gcc man page for an explanation of these options.  The
	default is to enable these options, and it suggested that you
	leave this alone.

--enable-ansi
	If gcc or g++ is detected as your compiler, enabling ansi will
	automatically add '-ansi -pedantic' as additional compiler
	flags.  By default, this is not enabled since it is really
	only useful for development purposes.

--enable-debug
	Enable runtime debugging code.  This is useful only if you are
	debugging gnotepad+.  By default, this option is disabled.
	However, enabling this does not hurt since it does not take up
	much code, and greatly improves debugging.

--enable-flock
	Use flock() to lock files.  

--disable-fcntl
	By default, gnotepad+ uses fcntl() to lock files.  Over NFS
	this can result in poor performance on read/write.

--disable-gtk-xmhtml
	By default, gnotepad+ will look for the gtkxmhtml library.
	This library is a simple HTML renderer, and allows you to view
	an HTML document as WYSIWYG (What You See Is What You Get).
	Note the gtkxmhtml library is an HTML *viewer*, not an editor.
	
	The gtkxmhtml library is normally distributed with the GNOME
	libraries (gnome-libs), so if you are using GNOME, you should
	already have this on your system.  If you not have GNOME, or
	do not already have this library, you can get it from the
	gnotepad+ homepage.

--disable-gnome
	By default, gnotepad+ will look for GNOME libraries and header
	files and will enable GNOME support if they are found.  You
	may disable GNOME support by specifying this option.

gnotepad+ should compile cleanly (without errors), and hopefully also
compile without any warnings.  If successful, you should end up with a
binary called in the "src/" subdirectory called "gnp".


Platform Notes
==============

Linux

	On recent Linux systems, flock() and fcntl() locks don't mix.
	If you use the --enable-flock switch on such systems, be sure
	to also use the --disable-fcntl option.


Miscellaneous Notes
===================

	1. "gnp --help" shows available command line options.

	2. "gnp --version" shows version information.

	3. "gnp --info" shows compiler options used.

	4. gnp will automatically create a subdirectory called ".gnp"
	in your home directory.  in here, you can create "gtkrc" and
	put any GTK specific settings (e.g., the text font).  there
	will also be three other files: "apprc", "appgtkrc", and
	"recentrc".  you do NOT need to edit these by hand.

