============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name		: 
Your email address	: 


System Configuration
---------------------
  Architecture (example: Intel Pentium)  	:  Intel Itanium

  Operating System (example: Linux 2.0.26 ELF) 	:  HP-UX 11.2x 

  PostgreSQL version (example: PostgreSQL-7.3.4):   PostgreSQL-7.3.4

  Compiler used (example:  gcc 2.95.2)		:  HP C/ANSI C compiler C.05.40


Please enter a FULL description of your problem:
------------------------------------------------
There are two problems:

1. There is no tas (test-and-set) routine for HP-UX IA-64
   in the s_lock.h header file.

2. In HP-UX IA-64, the suffix of shared libraries is ".so",
   but PostgreSQL generates a ".sl" suffix.


Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
----------------------------------------------------------------------


If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

Attached is a patch which fixes the problems listed above.

1. The file s_lock.h adds the tas (test-and-set) routine
   for HP-UX PA-RISC and HP-UX IA-64.

2. The file Makefile.hpux is changed to use ".so" as the
   shared library suffix for HP-UX IA-64.

3. The files configure.in, configure, config.guess, config.sub,
   libtool.m4, ltmain.sh are changed to properly detect the
   HP-UX IA-64 platform. These are generated by autoconf.

4. The files src/test/regress/resultmap, and 
   src/test/regress/expected/geometry-ia64-precision.out are modified
   to support the HP-UX IA-64 platform.


