This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
SCO 3.2v5 patch for perl5.005_03-MAINT_TRIAL_1
[perl5.git] / hints / hpux.sh
index 9b8b3b4..ceef5a3 100644 (file)
@@ -20,6 +20,7 @@
 # Distinguish between MC68020, MC68030, MC68040
 # Don't assume every OS != 10 is < 10, (e.g., 11).
 # From: Chuck Phillips <cdp@fc.hp.com>
+# HP-UX 10 pthreads hints: Matthew T Harden <mthard@mthard1.monsanto.com>
 
 # This version: August 15, 1997
 # Current maintainer: Jeff Okamoto <okamoto@corp.hp.com>
@@ -80,6 +81,16 @@ EOM
        esac
     else
        ccflags="$ccflags -Aa"  # The add-on compiler supports ANSI C
+       # cppstdin and cpprun need the -Aa option if you use the unbundled 
+       # ANSI C compiler (*not* the bundled K&R compiler or gcc)
+       # [XXX this should be set automatically by Configure, but isn't yet.]
+       # [XXX This is reported not to work.  You may have to edit config.sh.
+       #  After running Configure, set cpprun and cppstdin in config.sh,
+       #  run "Configure -S" and then "make".]
+       cpprun="${cc:-cc} -E -Aa"
+       cppstdin="$cpprun"
+       cppminus='-'
+       cpplast='-'
     fi
     # For HP's ANSI C compiler, up to "+O3" is safe for everything
     # except shared libraries (PIC code).  Max safe for PIC is "+O2".
@@ -128,7 +139,6 @@ else
        selecttype='int *'
 fi
 
-
 # Remove bad libraries that will cause problems
 # (This doesn't remove libraries that don't actually exist)
 # -lld is unneeded (and I can't figure out what it's used for anyway)
@@ -183,12 +193,3 @@ esac
 #     assembler of the form:
 #          (warning) Use of GR3 when frame >= 8192 may cause conflict.
 #     These warnings are harmless and can be safely ignored.
-
-#
-# You should enable these if you use the unbundled ANSI C compiler
-# (*not* when using the bundled K&R compiler or gcc)
-# [XXX this should be enabled automatically]
-#
-#cpprun='/opt/ansic/bin/cc -E -Aa'
-#cppstdin="$cpprun"
-